From 130de81e2eaf74018b3bfcc55b1a11c10a26b602 Mon Sep 17 00:00:00 2001 From: quobix Date: Thu, 29 Oct 2026 12:33:37 -0400 Subject: [PATCH 01/19] Support native AsyncAPI reports and bounded bilingual history --- .ai-docs/bilingual-comparison.md | 51 ++++++++++ README.md | 37 ++++++- cmd/asyncapi_test.go | 146 +++++++++++++++++++++++++++ cmd/bilingual_benchmark_test.go | 18 ++++ cmd/common.go | 5 +- cmd/compact_report.go | 12 ++- cmd/comparison_rules.go | 77 ++++++++++++++ cmd/console.go | 16 ++- cmd/engine.go | 77 ++++++++++++-- cmd/engine_test.go | 2 +- cmd/flatten_report.go | 10 +- cmd/history_cleanup.go | 13 +++ cmd/html_report.go | 8 +- cmd/left_right_sources.go | 16 ++- cmd/loaders.go | 8 ++ cmd/markdown_report.go | 13 ++- cmd/report.go | 14 ++- cmd/report_common.go | 23 ++++- cmd/root.go | 4 +- cmd/summary.go | 24 +++-- cmd/summary_test.go | 2 +- git/github.go | 22 ++++ git/history_sources.go | 96 ++++++++++++++++++ git/options.go | 2 + git/read_local.go | 9 +- git/revision_fs.go | 19 ++-- go.mod | 8 +- go.sum | 16 +-- html-report/generator.go | 37 ++++--- internal/breakingrules/config.go | 15 ++- model/commit.go | 64 ++++++++---- model/comparison_rules.go | 15 +++ model/history_source.go | 151 ++++++++++++++++++++++++++++ model/history_source_test.go | 32 ++++++ model/report.go | 1 + model/specification.go | 94 +++++++++++++++++ sample-specs/asyncapi-original.yaml | 28 ++++++ sample-specs/asyncapi.yaml | 28 ++++++ 38 files changed, 1103 insertions(+), 110 deletions(-) create mode 100644 .ai-docs/bilingual-comparison.md create mode 100644 cmd/asyncapi_test.go create mode 100644 cmd/bilingual_benchmark_test.go create mode 100644 cmd/comparison_rules.go create mode 100644 cmd/history_cleanup.go create mode 100644 git/history_sources.go create mode 100644 model/comparison_rules.go create mode 100644 model/history_source.go create mode 100644 model/history_source_test.go create mode 100644 model/specification.go create mode 100644 sample-specs/asyncapi-original.yaml create mode 100644 sample-specs/asyncapi.yaml diff --git a/.ai-docs/bilingual-comparison.md b/.ai-docs/bilingual-comparison.md new file mode 100644 index 0000000..4ae1957 --- /dev/null +++ b/.ai-docs/bilingual-comparison.md @@ -0,0 +1,51 @@ +# OpenAPI and AsyncAPI comparisons + +One command family supports OpenAPI and AsyncAPI 3.x. `model.ParseSpecification` +uses libopenapi's strict YAML/JSON parser once, checks the root version marker, +and transfers the parsed AsyncAPI tree to libasyncapi. Mixed formats, ambiguous +markers, unsupported AsyncAPI versions and partial AsyncAPI models fail clearly. + +`cmd.runChangerator` selects doctor's native engine. Both engines return the +existing change primitives and node graph. Commands share count, flattening, +rendering, exit-code and report-file code. Native OpenAPI `Commit.Changes` remains +available; `Commit.AllChanges` selects the additive neutral report when present. + +## Policy + +Existing unscoped rule files remain OpenAPI-only. A combined file has optional +`openapiRules`, `asyncapiRules`, and `schemaRules` sections. The last section +configures JSON Schemas embedded in AsyncAPI; it does not change OpenAPI policy. +Unknown sections are rejected. Rules are merged into fresh defaults. The CLI's +shared breakingrules lock covers the entire delegated comparison and restores +defaults afterwards, including comparisons without a custom policy. + +## Source and resource ownership + +Direct file, URL and revision inputs use the same source loader for both formats. +Local revision references use GitRevisionFS. GitHub references use that virtual +filesystem with doctor's GitHub file service, pinned to the same commit SHA. +The working tree is never used to supply a historical sibling reference. + +Canonical history loading retains source bytes and configuration factories. +Batch reports keep a two-document model window and reuse adjacent revisions. +Malformed predecessor inputs are bypassed; selected baseline bytes and revision +identity are preserved. Failed candidate revisions still reach the existing +warning and JSON `metaData.partial/skippedCommits` handling. A successful +unchanged pair counts as success. The console disables idle model retention; +its existing bounded result cache owns and releases each comparison pair. + +The JSON flattening boundary drops model-only object pointers and copies only +commit metadata. It preserves semantic paths, rawPath when normalized, and the +raw versus deduplicated count distinction. Reports add a `specification` object +with `kind`, `originalVersion`, and `modifiedVersion`; direct reports continue +to omit synthetic git metadata. HTML items have the same additive metadata and +retain the unpruned graph for the document and explorer views. + +## Verification + +Keep the canonical petstore totals unchanged: summary 42 changes / 18 breaking; +components summary 9/2 and raw JSON 10/3. Run cmd and full Go suites, race checks +on dispatch/policy/history, and command smoke checks. Compare +`BenchmarkOpenAPIReport` against the base branch with the same Go toolchain and +hardware; use `-benchmem` and multiple samples. The model-window test verifies +that 30 adjacent revisions parse once each and retain at most two idle models. diff --git a/README.md b/README.md index 2a501aa..37c47b2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ## The world's **_most powerful and complete_** OpenAPI diff tool. -`openapi-changes` lets you inspect what changed in an OpenAPI specification between two files, +`openapi-changes` lets you inspect what changed in an OpenAPI or AsyncAPI 3.x specification between two files, between git revisions of the same file, across local git history, or directly from a GitHub-hosted file URL. It can render the same semantic change model as: @@ -20,6 +20,41 @@ It can render the same semantic change model as: - a markdown report - a self-contained offline HTML report +The same commands accept both formats, including git history and revision-scoped +references. Each comparison must use the same format on both sides. AsyncAPI 2.x +and mixed OpenAPI/AsyncAPI comparisons are rejected. + +```sh +openapi-changes summary previous-asyncapi.yaml asyncapi.yaml +openapi-changes report HEAD~1:asyncapi.yaml HEAD:asyncapi.yaml +openapi-changes html-report --report-file changes.html previous-asyncapi.yaml asyncapi.yaml +``` + +Existing breaking-rule files retain their OpenAPI meaning. To configure both +engines, use named sections: + +```yaml +openapiRules: + info: + description: + modified: false +asyncapiRules: + channel: + address: + modified: true + multiFormatSchema: + modified: true +schemaRules: + schema: + description: + modified: false +``` + +`schemaRules` applies to JSON Schemas in AsyncAPI. Foreign schema languages are +compared as opaque content; changing their format or content is breaking by +default. JSON and HTML report items include format and version metadata in +`specification`. Human counts remain deduplicated; JSON retains raw changes. + It works well for local exploration, CI/CD checks, release notes, and API review workflows. ## How is it the 'most powerful and complete?'? diff --git a/cmd/asyncapi_test.go b/cmd/asyncapi_test.go new file mode 100644 index 0000000..4efa5c4 --- /dev/null +++ b/cmd/asyncapi_test.go @@ -0,0 +1,146 @@ +package cmd + +import ( + "encoding/json" + "fmt" + "os" + "path/filepath" + "strings" + "testing" + + "github.com/pb33f/libopenapi/datamodel" + "github.com/pb33f/openapi-changes/model" + "github.com/pb33f/testify/require" +) + +func asyncPair(t *testing.T) (string, string) { + t.Helper() + old := `asyncapi: 3.0.0 +info: + title: Synthetic events + version: 1.0.0 +channels: + orders: + address: orders.v1 + messages: + created: + payload: + type: string + users: + address: users.v1 +` + dir := t.TempDir() + left, right := filepath.Join(dir, "left.yaml"), filepath.Join(dir, "right.yaml") + require.NoError(t, os.WriteFile(left, []byte(old), 0600)) + require.NoError(t, os.WriteFile(right, []byte(strings.ReplaceAll(old, ".v1", ".v2")), 0600)) + return left, right +} + +func TestAsyncAPIHistoryUsesRevisionSchemaAndSkipsMalformed(t *testing.T) { + dir := t.TempDir() + runGitInDir(t, dir, "init") + runGitInDir(t, dir, "config", "user.name", "Fixture") + runGitInDir(t, dir, "config", "user.email", "fixture@example.test") + spec := "asyncapi: 3.0.0\ninfo: {title: Events, version: 1.0.0}\nchannels:\n events:\n address: events\n messages:\n event:\n payload:\n $ref: payload.yaml\n" + for i, kind := range []string{"string", "integer", "boolean"} { + require.NoError(t, os.WriteFile(filepath.Join(dir, "asyncapi.yaml"), []byte(spec+fmt.Sprintf("# revision %d\n", i)), 0600)) + require.NoError(t, os.WriteFile(filepath.Join(dir, "payload.yaml"), []byte("type: "+kind+"\n"), 0600)) + runGitInDir(t, dir, "add", ".") + runGitInDir(t, dir, "commit", "-m", fmt.Sprint(i)) + if i == 0 { + require.NoError(t, os.WriteFile(filepath.Join(dir, "asyncapi.yaml"), []byte("asyncapi: ["), 0600)) + runGitInDir(t, dir, "add", ".") + runGitInDir(t, dir, "commit", "-m", "malformed") + } + } + // A dirty sibling must not influence either historical side. + require.NoError(t, os.WriteFile(filepath.Join(dir, "payload.yaml"), []byte("type: object\n"), 0600)) + flat, err := runGitHistoryReport(dir, "asyncapi.yaml", summaryOpts{limit: 0, limitTime: -1, globalRevisions: true}, nil) + require.NoError(t, err) + require.NotNil(t, flat) + encoded, err := json.Marshal(flat) + require.NoError(t, err) + require.Contains(t, string(encoded), `"partial":true`) + require.Contains(t, string(encoded), `"new":"boolean"`) + require.Contains(t, string(encoded), `"original":"string"`) + require.NotContains(t, string(encoded), `"new":"object"`) +} + +func TestAsyncAPIRulesAreScoped(t *testing.T) { + left, right := asyncPair(t) + path := filepath.Join(t.TempDir(), "rules.yaml") + require.NoError(t, os.WriteFile(path, []byte("asyncapiRules:\n channel:\n address:\n modified: false\n"), 0600)) + rules, err := loadComparisonRules(path) + require.NoError(t, err) + custom, err := runLeftRightReport(left, right, summaryOpts{rules: rules}, nil) + require.NoError(t, err) + for _, change := range custom.Changes { + require.False(t, change.Breaking) + } + defaults, err := runLeftRightReport(left, right, summaryOpts{}, nil) + require.NoError(t, err) + for _, change := range defaults.Changes { + require.True(t, change.Breaking) + } +} + +func TestAsyncAPIInputBoundaries(t *testing.T) { + left, _ := asyncPair(t) + for _, spec := range []string{"openapi: 3.0.0\ninfo: {title: API, version: 1.0.0}\npaths: {}\n", "asyncapi: 2.6.0\ninfo: {title: API, version: 1.0.0}\n", "asyncapi: 3.0.0\nopenapi: 3.0.0\ninfo: {title: API, version: 1.0.0}\n"} { + file := filepath.Join(t.TempDir(), "right.yaml") + require.NoError(t, os.WriteFile(file, []byte(spec), 0600)) + _, err := runLeftRightReport(left, file, summaryOpts{}, nil) + require.Error(t, err) + } +} + +func TestAsyncAPIAllReports(t *testing.T) { + left, right := asyncPair(t) + commits, err := loadLeftRightCommits(left, right, summaryOpts{}) + require.NoError(t, err) + require.Len(t, commits, 1) + require.True(t, commits[0].Comparable()) + flat, err := runLeftRightReport(left, right, summaryOpts{}, nil) + require.NoError(t, err) + require.Len(t, flat.Changes, 2) + require.NotEqual(t, flat.Changes[0].Path, flat.Changes[1].Path) + require.Nil(t, flat.Commit) + require.Equal(t, "asyncapi", flat.Specification.Kind) + require.Equal(t, "3.0.0", flat.Specification.OriginalVersion) + markdown, err := generateMarkdownReport(commits, nil, false) + require.NoError(t, err) + require.Contains(t, string(markdown), "**2** changes") + output, err := generateHTMLReport(commits, nil, false, left, right) + require.NoError(t, err) + require.Contains(t, string(output), "orders") + ctr, root, release, err := bridgeRunChangerator(commits[0], nil) + require.NoError(t, err) + require.NotNil(t, root) + defer release() + require.Len(t, ctr.DeduplicateChanges(), 2) +} + +func TestAsyncAPIUnchangedHistoryWithMalformedRevision(t *testing.T) { + spec := []byte("asyncapi: 3.0.0\ninfo: {title: Events, version: 1.0.0}\nchannels: {}\n") + config := func() (*datamodel.DocumentConfiguration, error) { return datamodel.NewDocumentConfiguration(), nil } + old := &model.HistorySource{Revision: "good-old", Data: spec, Config: config} + bad := &model.HistorySource{Revision: "bad", Data: []byte("asyncapi: ["), Previous: old, Config: config} + latest := &model.HistorySource{Revision: "good-new", Data: spec, Previous: bad, Config: config} + commits := []*model.Commit{{Hash: "good-new", Data: spec, OldData: bad.Data, Source: latest}, {Hash: "bad", Data: bad.Data, OldData: spec, Source: bad}, {Hash: "good-old", Data: spec, Source: old}} + for _, commit := range commits { + commit.Window = new(model.HistoryWindow) + } + text, _, changed, err := renderSummary(commits, nil, false, true, false, summaryStyles{}) + require.NoError(t, err) + require.False(t, changed) + require.NotContains(t, text, "between good-new and bad") + require.Equal(t, "good-old", commits[0].OriginalRevision) + _, err = generateMarkdownReport(commits, nil, false) + require.NoError(t, err) + _, err = buildHTMLReportItems(commits, nil) + require.NoError(t, err) + history, err := changerateAndFlattenHistory(commits, nil) + require.NoError(t, err) + require.Equal(t, 1, history.SuccessfulComparisons) + require.Equal(t, []string{"bad"}, history.SkippedCommits) +} diff --git a/cmd/bilingual_benchmark_test.go b/cmd/bilingual_benchmark_test.go new file mode 100644 index 0000000..e3d30e5 --- /dev/null +++ b/cmd/bilingual_benchmark_test.go @@ -0,0 +1,18 @@ +package cmd + +import "testing" + +// BenchmarkOpenAPIReport includes loading, model construction, comparison and +// JSON flattening. Run unchanged against the base branch for regression checks. +func BenchmarkOpenAPIReport(b *testing.B) { + b.ReportAllocs() + for b.Loop() { + report, err := runLeftRightReport("../sample-specs/petstorev3-original.json", "../sample-specs/petstorev3.json", summaryOpts{}, nil) + if err != nil { + b.Fatal(err) + } + if report == nil || len(report.Changes) == 0 { + b.Fatal("expected petstore changes") + } + } +} diff --git a/cmd/common.go b/cmd/common.go index 6db5c09..bd69b48 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -24,6 +24,7 @@ const ( // summaryOpts holds the flags shared by the current doctor-based command family. type summaryOpts struct { + rules *model.ComparisonRules noColor bool tektronix bool markdown bool @@ -201,11 +202,13 @@ func prepareCommandRun( return nil, fmt.Errorf("too many arguments provided, expecting at most two (2)") } - breakingConfig, err := LoadBreakingRulesConfig(configFlag) + rules, err := loadComparisonRules(configFlag) if err != nil { PrintConfigError(err, opts.palette) return nil, err } + opts.rules = rules + breakingConfig := rules.OpenAPI commits, err := loadCommitsFromArgs(args, opts, breakingConfig) if err != nil { diff --git a/cmd/compact_report.go b/cmd/compact_report.go index 1da58ed..24c521e 100644 --- a/cmd/compact_report.go +++ b/cmd/compact_report.go @@ -20,16 +20,18 @@ import ( // compactOutcome is written only after a complete direct comparison. // Counts use the same semantic identity as the human summary. type compactOutcome struct { + async bool Total int `json:"total"` Breaking int `json:"breaking"` } func generateCompactMarkdown(commits []*model.Commit, config *whatChangedModel.BreakingRulesConfig) ([]byte, compactOutcome, error) { var outcome compactOutcome - if len(commits) != 1 || commits[0] == nil || !commits[0].Synthetic || commits[0].Document == nil || commits[0].OldDocument == nil { + if len(commits) != 1 || commits[0] == nil || !commits[0].Synthetic || !commits[0].Comparable() { return nil, outcome, errors.New("compact report requires one complete direct comparison") } result, err := runChangerator(commits[0], config) + outcome.async = commits[0].APILabel() == "AsyncAPI" if err != nil { return nil, outcome, err } @@ -48,7 +50,7 @@ func generateCompactMarkdown(commits []*model.Commit, config *whatChangedModel.B } } if root == nil { - root = result.RightDrDoc.V3Document.Node + root = result.root() } result.Changerator.BuildNodeChangeTree(root) highlights = renderer.NewSemanticTreeRenderer(root, changes, &renderer.TreeConfig{ @@ -72,7 +74,11 @@ func generateCompactMarkdown(commits []*model.Commit, config *whatChangedModel.B func renderCompactMarkdown(outcome compactOutcome, highlights []string) []byte { var sb strings.Builder - sb.WriteString("## OpenAPI changes\n\n") + label := "OpenAPI" + if outcome.async { + label = "AsyncAPI" + } + sb.WriteString("## " + label + " changes\n\n") switch { case outcome.Total == 0: sb.WriteString("No changes found.\n\n") diff --git a/cmd/comparison_rules.go b/cmd/comparison_rules.go new file mode 100644 index 0000000..7fd44fb --- /dev/null +++ b/cmd/comparison_rules.go @@ -0,0 +1,77 @@ +package cmd + +import ( + "fmt" + "github.com/pb33f/go-yaml" + async "github.com/pb33f/libasyncapi/what-changed/model" + openapi "github.com/pb33f/libopenapi/what-changed/model" + "github.com/pb33f/openapi-changes/model" + "os" +) + +func loadComparisonRules(path string) (*model.ComparisonRules, error) { + paths := []string{path} + if path == "" { + paths = getDefaultConfigPaths() + } + for _, candidate := range paths { + expanded, err := expandUserPath(candidate) + if err != nil { + return nil, err + } + data, err := os.ReadFile(expanded) + if os.IsNotExist(err) && path == "" { + continue + } + if err != nil { + return nil, err + } + var root yaml.Node + if err = yaml.Unmarshal(data, &root); err != nil { + return nil, &ConfigParseError{FilePath: expanded, Err: err} + } + if len(root.Content) == 0 { + return &model.ComparisonRules{}, nil + } + node := root.Content[0] + envelope := false + for i := 0; i+1 < len(node.Content); i += 2 { + switch node.Content[i].Value { + case "openapiRules", "asyncapiRules", "schemaRules": + envelope = true + } + } + if !envelope { + legacy, err := loadConfigFromPath(expanded, true) + return &model.ComparisonRules{OpenAPI: legacy, Legacy: true}, err + } + if node.Kind != yaml.MappingNode { + return nil, fmt.Errorf("rules must be a mapping") + } + for i := 0; i+1 < len(node.Content); i += 2 { + key, value := node.Content[i].Value, node.Content[i+1] + encoded, err := yaml.Marshal(value) + if err != nil { + return nil, err + } + switch key { + case "openapiRules", "schemaRules": + if invalid := openapi.ValidateBreakingRulesConfigYAML(encoded); invalid != nil { + return nil, &ConfigValidationError{FilePath: expanded, Result: invalid} + } + case "asyncapiRules": + if invalid := async.ValidateBreakingRulesConfigYAML(encoded); invalid != nil { + return nil, fmt.Errorf("invalid asyncapiRules in %s: %v", expanded, invalid) + } + default: + return nil, fmt.Errorf("unknown rules section %q", key) + } + } + var rules model.ComparisonRules + if err = node.Decode(&rules); err != nil { + return nil, err + } + return &rules, nil + } + return &model.ComparisonRules{}, nil +} diff --git a/cmd/console.go b/cmd/console.go index 52cbc04..f57b4e5 100644 --- a/cmd/console.go +++ b/cmd/console.go @@ -19,28 +19,35 @@ import ( func printConsoleUsage(palette terminal.Palette) { printCommandUsage("console", - "The console command renders an interactive terminal user interface.\nExplore OpenAPI contract changes right in your terminal with a modern TUI.", + "The console command renders an interactive terminal user interface.\nExplore OpenAPI and AsyncAPI contract changes in your terminal.", palette) } // bridgeRunChangerator adapts cmd.runChangerator to the v2tui.RunChangeratorFn signature // to avoid import cycles between cmd and tui/v2 packages. func bridgeRunChangerator(commit *model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig) (*changerator.Changerator, *v3.Node, func(), error) { - result, err := runChangerator(commit, breakingConfig) + comparison := commit + if commit.Source != nil { + copy := *commit + copy.Window = &model.HistoryWindow{DiscardIdle: true} + comparison = © + } + result, err := runChangerator(comparison, breakingConfig) + commit.OldData = comparison.OldData if err != nil { return nil, nil, nil, err } if result == nil { return nil, nil, nil, nil } - root := result.RightDrDoc.V3Document.Node + root := result.root() releaseFn := func() { result.Release() } return result.Changerator, root, releaseFn, nil } func hasRenderableDocuments(commits []*model.Commit) bool { for _, commit := range commits { - if commit.Document != nil && commit.OldDocument != nil { + if commit.Comparable() { return true } } @@ -69,6 +76,7 @@ func GetConsoleCommand() *cobra.Command { if input == nil { return nil } + defer releaseHistoryWindows(input.Commits) if len(input.Commits) == 0 { firstArgInfo, statErr := os.Stat(args[0]) diff --git a/cmd/engine.go b/cmd/engine.go index 119d276..6e44530 100644 --- a/cmd/engine.go +++ b/cmd/engine.go @@ -13,6 +13,8 @@ import ( drModel "github.com/pb33f/doctor/model" v3 "github.com/pb33f/doctor/model/high/v3" "github.com/pb33f/go-yaml" + asyncRules "github.com/pb33f/libasyncapi/what-changed/model" + whatChanged "github.com/pb33f/libopenapi/what-changed" whatChangedModel "github.com/pb33f/libopenapi/what-changed/model" "github.com/pb33f/openapi-changes/internal/breakingrules" "github.com/pb33f/openapi-changes/model" @@ -23,13 +25,29 @@ import ( // Callers must call Release() exactly once when they are done reading Changerator, // DocChanges, and the doctor document tree. type changeratorResult struct { - Changerator *changerator.Changerator - DocChanges *whatChangedModel.DocumentChanges - RightDrDoc *drModel.DrDocument - LeftDrDoc *drModel.DrDocument + releaseSources func() + Changerator *changerator.Changerator + DocChanges whatChanged.Changed + AsyncResult *changerator.AsyncAPIResult + RightDrDoc *drModel.DrDocument + LeftDrDoc *drModel.DrDocument +} + +func (r *changeratorResult) root() *v3.Node { + if r.AsyncResult != nil { + return r.AsyncResult.Right.Root + } + return r.RightDrDoc.V3Document.Node } func (r *changeratorResult) Release() { + if r.releaseSources != nil { + defer r.releaseSources() + r.releaseSources = nil + } + if r.AsyncResult != nil { + r.AsyncResult.Release() + } if r.RightDrDoc != nil { r.RightDrDoc.Release() } @@ -42,6 +60,47 @@ func (r *changeratorResult) Release() { // resulting comparison bundle. It returns nil, nil when the commit has no // comparable documents or the comparison produces no changes. func runChangerator(commit *model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig) (*changeratorResult, error) { + if commit.Source != nil { + prepared, release, err := commit.PrepareHistory() + if err != nil { + return nil, err + } + commit.OldData = prepared.OldData + commit.OriginalRevision = prepared.OriginalRevision + prepared.SetSpecification() + commit.Specification = prepared.Specification + result, err := runChangerator(prepared, breakingConfig) + if result == nil { + release() + } else { + result.releaseSources = release + } + return result, err + } + if commit.AsyncDocument != nil && commit.OldAsyncDocument != nil { + if commit.Rules != nil && commit.Rules.Legacy { + return nil, fmt.Errorf("legacy OpenAPI rules cannot configure AsyncAPI; use asyncapiRules and schemaRules sections") + } + var schema *whatChangedModel.BreakingRulesConfig + var config *asyncRules.BreakingRulesConfig + if commit.Rules != nil { + schema = commit.Rules.Schema + config = commit.Rules.AsyncAPI + } + if config != nil { + defaults := asyncRules.NewDefaultBreakingRulesConfig() + defaults.Merge(config) + config = defaults + } + release := breakingrules.Acquire(schema) + defer release() + result, err := changerator.CompareAsyncAPI(commit.OldAsyncDocument, commit.AsyncDocument, config) + if err != nil || result == nil { + return nil, err + } + rewriteOutputLocations(result.Changerator, result.Changes, commit.DocumentRewriters) + return &changeratorResult{Changerator: result.Changerator, DocChanges: result.Changes, AsyncResult: result}, nil + } if commit.Document == nil || commit.OldDocument == nil { return nil, nil } @@ -70,10 +129,8 @@ func runChangerator(commit *model.Commit, breakingConfig *whatChangedModel.Break return nil, fmt.Errorf("failed to create DrDocument models") } - if breakingConfig != nil { - breakingrules.Apply(breakingConfig) - defer breakingrules.Reset() - } + releaseRules := breakingrules.Acquire(breakingConfig) + defer releaseRules() ctr := changerator.NewChangerator(&changerator.ChangeratorConfig{ LeftDrDoc: leftDrDoc.V3Document, @@ -146,7 +203,7 @@ func nodeContainsExternalRef(node *yaml.Node) bool { return false } -func rewriteOutputLocations(ctr *changerator.Changerator, docChanges *whatChangedModel.DocumentChanges, rewriters []model.DocumentPathRewriter) { +func rewriteOutputLocations(ctr *changerator.Changerator, docChanges whatChanged.Changed, rewriters []model.DocumentPathRewriter) { if len(rewriters) == 0 { return } @@ -156,7 +213,7 @@ func rewriteOutputLocations(ctr *changerator.Changerator, docChanges *whatChange } } -func rewriteDocumentChangeLocations(docChanges *whatChangedModel.DocumentChanges, rewriters []model.DocumentPathRewriter) { +func rewriteDocumentChangeLocations(docChanges whatChanged.Changed, rewriters []model.DocumentPathRewriter) { if docChanges == nil { return } diff --git a/cmd/engine_test.go b/cmd/engine_test.go index 92096cb..7936cbc 100644 --- a/cmd/engine_test.go +++ b/cmd/engine_test.go @@ -45,7 +45,7 @@ func TestRunChangerator_RewritesChangedNodeOriginsToRepoRelativePaths(t *testing func firstComparableCommit(commits []*model.Commit) *model.Commit { for _, commit := range commits { - if commit != nil && commit.Document != nil && commit.OldDocument != nil { + if commit.Comparable() { return commit } } diff --git a/cmd/flatten_report.go b/cmd/flatten_report.go index 5bb2c66..a2f647c 100644 --- a/cmd/flatten_report.go +++ b/cmd/flatten_report.go @@ -27,16 +27,19 @@ func FlattenReportWithParameterNames(report *model.Report, parameterNames map[st func flattenReport(report *model.Report, parameterNames map[string]string) *model.FlatReport { flatReport := &model.FlatReport{} + flatReport.Specification = report.Commit.Specification flatReport.Summary = report.Summary flatReport.DateGenerated = time.Now().Format(time.RFC3339) var changes []*model.HashedChange - rpt := report.Commit.Changes + rpt := report.Commit.AllChanges() for _, change := range rpt.GetAllChanges() { rawPath := change.Path flattenedChange := cloneChange(change) if len(parameterNames) > 0 { flattenedChange.Path, rawPath = normalizeParameterPath(flattenedChange, parameterNames) } + flattenedChange.OriginalObject = nil + flattenedChange.NewObject = nil hashedChange := model.HashedChange{ Change: flattenedChange, RawPath: rawPathIfChanged(rawPath, flattenedChange.Path), @@ -50,9 +53,8 @@ func flattenReport(report *model.Report, parameterNames map[string]string) *mode flatReport.Changes = changes // Copy the Commit information from the report to the flatReport and then delete the changes - flatReport.Commit = &model.Commit{} - *flatReport.Commit = *report.Commit - flatReport.Commit.Changes = nil + c := report.Commit + flatReport.Commit = &model.Commit{Hash: c.Hash, Message: c.Message, Author: c.Author, AuthorEmail: c.AuthorEmail, CommitDate: c.CommitDate, Synthetic: c.Synthetic} return flatReport } diff --git a/cmd/history_cleanup.go b/cmd/history_cleanup.go new file mode 100644 index 0000000..1ea2e08 --- /dev/null +++ b/cmd/history_cleanup.go @@ -0,0 +1,13 @@ +package cmd + +import "github.com/pb33f/openapi-changes/model" + +func releaseHistoryWindows(commits []*model.Commit) { + var previous *model.HistoryWindow + for _, commit := range commits { + if commit != nil && commit.Window != nil && commit.Window != previous { + commit.Window.Close() + previous = commit.Window + } + } +} diff --git a/cmd/html_report.go b/cmd/html_report.go index 58fa5f4..993137a 100644 --- a/cmd/html_report.go +++ b/cmd/html_report.go @@ -31,8 +31,10 @@ func printHTMLReportUsage(palette terminal.Palette) { // commits are logged and skipped; an error is returned only when every // candidate commit fails. func buildHTMLReportItems(commits []*model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig) ([]*htmlReport.ReportItem, error) { + defer releaseHistoryWindows(commits) items := make([]*htmlReport.ReportItem, 0, len(commits)) var buildErrors []error + comparedCount := 0 for i, commit := range commits { result, err := runChangerator(commit, breakingConfig) @@ -42,6 +44,9 @@ func buildHTMLReportItems(commits []*model.Commit, breakingConfig *whatChangedMo continue } if result == nil { + if commit.Comparable() { + comparedCount++ + } continue } @@ -63,10 +68,11 @@ func buildHTMLReportItems(commits []*model.Commit, breakingConfig *whatChangedMo } items = append(items, item) + comparedCount++ } if len(buildErrors) > 0 { - if len(items) == 0 { + if comparedCount == 0 { return nil, fmt.Errorf("all %d commits failed to build report items: %w", len(buildErrors), errors.Join(buildErrors...)) } fmt.Fprintf(os.Stderr, "warning: %d commits failed to build report items\n", len(buildErrors)) diff --git a/cmd/left_right_sources.go b/cmd/left_right_sources.go index 617525d..81df2e4 100644 --- a/cmd/left_right_sources.go +++ b/cmd/left_right_sources.go @@ -16,7 +16,6 @@ import ( "github.com/google/uuid" "github.com/pb33f/doctor/terminal" - "github.com/pb33f/libopenapi" "github.com/pb33f/libopenapi/datamodel" "github.com/pb33f/libopenapi/index" "github.com/pb33f/openapi-changes/git" @@ -253,17 +252,22 @@ func attachLazyLocalFS(docConfig *datamodel.DocumentConfiguration) error { } func buildLeftRightCommit(left, right comparisonSource) (*model.Commit, error) { - leftDoc, err := libopenapi.NewDocumentWithConfiguration(left.RootBytes, left.DocConfig) + leftDoc, leftAsync, err := model.ParseSpecification(left.RootBytes, left.DocConfig) if err != nil { return nil, fmt.Errorf("unable to parse original document '%s': %w", left.Display, err) } - rightDoc, err := libopenapi.NewDocumentWithConfiguration(right.RootBytes, right.DocConfig) + rightDoc, rightAsync, err := model.ParseSpecification(right.RootBytes, right.DocConfig) if err != nil { - leftDoc.Release() + if leftDoc != nil { + leftDoc.Release() + } return nil, fmt.Errorf("unable to parse modified document '%s': %w", right.Display, err) } var rewriters []model.DocumentPathRewriter + if (leftAsync == nil) != (rightAsync == nil) { + return nil, fmt.Errorf("cannot compare OpenAPI and AsyncAPI documents") + } if left.RewriteDocumentPath != nil { rewriters = append(rewriters, left.RewriteDocumentPath) } @@ -279,6 +283,8 @@ func buildLeftRightCommit(left, right comparisonSource) (*model.Commit, error) { Data: right.RootBytes, OldDocument: leftDoc, Document: rightDoc, + OldAsyncDocument: leftAsync, + AsyncDocument: rightAsync, OriginalSource: left.Display, ModifiedSource: right.Display, Synthetic: true, @@ -303,5 +309,7 @@ func buildLeftRightCommitAndSources(left, right string, opts summaryOpts) (*mode if err != nil { return nil, err } + commit.Rules = opts.rules + commit.SetSpecification() return commit, nil } diff --git a/cmd/loaders.go b/cmd/loaders.go index 1d0d520..68715f5 100644 --- a/cmd/loaders.go +++ b/cmd/loaders.go @@ -136,6 +136,7 @@ func loadGitHubCommitsDetailed(rawURL string, opts summaryOpts, breakingConfig * d := makeProgressDrainer() result, errs := processGithubRepoDetailed(user, repo, filePath, d.ProgressChan, d.ErrorChan, git.HistoryOptions{ + Lazy: true, BaseCommit: opts.baseCommit, Limit: opts.limit, LimitTime: opts.limitTime, @@ -152,6 +153,9 @@ func loadGitHubCommitsDetailed(rawURL string, opts summaryOpts, breakingConfig * return nil, nil } commits := result.Commits + for _, commit := range commits { + commit.Rules = opts.rules + } if opts.latest && len(commits) > 1 { commits = commits[:1] } @@ -207,6 +211,7 @@ func loadGitHistoryCommitsDetailed(gitPath, filePath string, opts summaryOpts, b Remote: opts.remote, ExtRefs: opts.extRefs, KeepComparable: true, + Lazy: true, }, breakingConfig) if err := populateDrainer.collectErrors(errs); err != nil { return nil, err @@ -216,6 +221,9 @@ func loadGitHistoryCommitsDetailed(gitPath, filePath string, opts summaryOpts, b return nil, nil } commits = result.Commits + for _, commit := range commits { + commit.Rules = opts.rules + } if len(commits) == 0 { return &loadedHistoryResult{SkippedCommits: result.SkippedCommits}, nil } diff --git a/cmd/markdown_report.go b/cmd/markdown_report.go index 0ee1fe1..1093482 100644 --- a/cmd/markdown_report.go +++ b/cmd/markdown_report.go @@ -41,7 +41,7 @@ func renderCommitMarkdown(commit *model.Commit, breakingConfig *whatChangedModel deduplicatedChanges := changecounts.Deduplicate(result.DocChanges.GetAllChanges()) markdown, err := renderer.NewHTMLRenderer(renderer.DefaultRenderConfig()).RenderMarkdown(&renderer.RenderInput{ - DocumentChanges: result.DocChanges, + ChangeReport: result.DocChanges, Doctor: result.RightDrDoc, RightDocContent: commit.Data, DeduplicatedChanges: deduplicatedChanges, @@ -83,8 +83,10 @@ func isSyntheticLeftRightCommit(commit *model.Commit) bool { // Returns (bytes, nil) when at least one commit renders successfully; failed // commits are logged to stderr and skipped. func generateMarkdownReport(commits []*model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig, includeDiff bool) ([]byte, error) { + defer releaseHistoryWindows(commits) var sb strings.Builder successCount := 0 + comparedCount := 0 var renderErrors []error headerWritten := false includeCommitMetadata := true @@ -96,13 +98,16 @@ func generateMarkdownReport(commits []*model.Commit, breakingConfig *whatChanged renderErrors = append(renderErrors, wrapCommitError(commit, err)) continue } + if commit.Comparable() { + comparedCount++ + } if markdown == "" { continue } // Write header on first success if !headerWritten { - sb.WriteString("# OpenAPI Changes Report\n\n") + sb.WriteString("# " + commit.APILabel() + " Changes Report\n\n") sb.WriteString(fmt.Sprintf("*Generated: %s*\n\n", time.Now().Format(time.RFC3339))) headerWritten = true } @@ -142,13 +147,13 @@ func generateMarkdownReport(commits []*model.Commit, breakingConfig *whatChanged sb.WriteString("---\n\n") } - if successCount == 0 && len(renderErrors) > 0 { + if comparedCount == 0 && len(renderErrors) > 0 { return nil, fmt.Errorf("all %d commits failed to render: %w", len(renderErrors), errors.Join(renderErrors...)) } if len(renderErrors) > 0 { fmt.Fprintf(os.Stderr, "warning: %d commits failed to render\n", len(renderErrors)) } - if successCount == 0 && len(renderErrors) == 0 { + if successCount == 0 { return nil, nil } return []byte(sb.String()), nil diff --git a/cmd/report.go b/cmd/report.go index dabb914..61fcdb8 100644 --- a/cmd/report.go +++ b/cmd/report.go @@ -27,7 +27,8 @@ func changerateCommit(commit *model.Commit, breakingConfig *whatChangedModel.Bre if result == nil { return nil, nil } - commit.Changes = result.DocChanges + commit.ChangeReport = result.DocChanges + commit.Changes, _ = result.DocChanges.(*whatChangedModel.DocumentChanges) return result, nil } @@ -38,6 +39,7 @@ type historicalFlattenResult struct { } func changerateAndFlattenHistory(commits []*model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig) (*historicalFlattenResult, error) { + defer releaseHistoryWindows(commits) reports := make([]*model.FlatReport, 0, len(commits)) var renderErrors []error var skippedCommits []string @@ -48,7 +50,6 @@ func changerateAndFlattenHistory(commits []*model.Commit, breakingConfig *whatCh if commit == nil { continue } - comparable := commit.Document != nil && commit.OldDocument != nil result, err := runChangerator(commit, breakingConfig) if err != nil { emitCommitWarning(commit, err) @@ -56,14 +57,15 @@ func changerateAndFlattenHistory(commits []*model.Commit, breakingConfig *whatCh addSkippedCommitHash(&skippedCommits, skippedSeen, commit.Hash) continue } - if comparable { + if commit.Comparable() { processedComparables++ } if result == nil { continue } - commit.Changes = result.DocChanges + commit.ChangeReport = result.DocChanges reports = append(reports, FlattenReportWithParameterNames(createReport(commit), result.Changerator.ParameterNames)) + commit.ChangeReport = nil result.Release() } if len(renderErrors) > 0 { @@ -219,11 +221,13 @@ func GetReportCommand() *cobra.Command { return fmt.Errorf("too many arguments provided, expecting at most two (2)") } - breakingConfig, err := LoadBreakingRulesConfig(configFlag) + rules, err := loadComparisonRules(configFlag) if err != nil { PrintConfigError(err, opts.palette) return err } + opts.rules = rules + breakingConfig := rules.OpenAPI if len(args) == 1 { if err := validateGitHubURL(args[0]); err != nil { diff --git a/cmd/report_common.go b/cmd/report_common.go index 305cafe..951457f 100644 --- a/cmd/report_common.go +++ b/cmd/report_common.go @@ -5,15 +5,34 @@ package cmd import ( "fmt" + wc "github.com/pb33f/libopenapi/what-changed/model" "os" + "strings" "github.com/pb33f/libopenapi/what-changed/reports" "github.com/pb33f/openapi-changes/model" ) func createReport(commit *model.Commit) *model.Report { - report := reports.CreateOverallReport(commit.Changes) - return &model.Report{Summary: report.ChangeReport, Commit: commit} + if native, ok := commit.AllChanges().(*wc.DocumentChanges); ok { + report := reports.CreateOverallReport(native) + return &model.Report{Summary: report.ChangeReport, Commit: commit} + } + summary := make(map[string]*reports.Changed) + for _, change := range commit.AllChanges().GetAllChanges() { + name := strings.TrimPrefix(change.Path, "$.") + if i := strings.IndexAny(name, ".["); i >= 0 { + name = name[:i] + } + if summary[name] == nil { + summary[name] = &reports.Changed{} + } + summary[name].Total++ + if change.Breaking { + summary[name].Breaking++ + } + } + return &model.Report{Summary: summary, Commit: commit} } func writeReportFile(reportFile string, report []byte, styles commandStyles) error { diff --git a/cmd/root.go b/cmd/root.go index f8efa51..158aeba 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -19,8 +19,8 @@ var ( rootCmd = &cobra.Command{ SilenceUsage: true, Use: "openapi-changes", - Short: "Detect and explore changes between OpenAPI / Swagger specifications.", - Long: `openapi-changes can detect every change found in an OpenAPI specification. + Short: "Detect and explore changes between OpenAPI and AsyncAPI specifications.", + Long: `openapi-changes detects changes within OpenAPI or AsyncAPI 3.x specifications. it can compare between two files, or a single file, over time. The comparison and reporting commands use the current doctor-based engine.`, diff --git a/cmd/summary.go b/cmd/summary.go index 05f555b..36ca313 100644 --- a/cmd/summary.go +++ b/cmd/summary.go @@ -279,6 +279,7 @@ func renderSummaryWithTheme( withLines bool, styles summaryStyles, ) (string, bool, bool, error) { + defer releaseHistoryWindows(commits) if len(commits) == 0 { return noChangesFoundMessage + "\n", false, false, nil } @@ -291,11 +292,7 @@ func renderSummaryWithTheme( var renderErrors []error for c, commit := range commits { - if commit.Document == nil || commit.OldDocument == nil { - if !isDirectFileComparison(commits) && totalChanges == 0 && totalBreaking == 0 && c+1 < len(commits) { - sb.WriteString(fmt.Sprintf("No changes detected between %s and %s\n", - commit.Hash, commits[c+1].Hash)) - } + if !commit.Comparable() { continue } @@ -306,9 +303,16 @@ func renderSummaryWithTheme( continue } if result == nil { - if !isDirectFileComparison(commits) && totalChanges == 0 && c+1 < len(commits) { + if commit.Comparable() { + renderedCommits++ + } + if commit.Comparable() && !isDirectFileComparison(commits) && totalChanges == 0 && c+1 < len(commits) { + baseline := commit.OriginalRevision + if baseline == "" { + baseline = commits[c+1].Hash + } sb.WriteString(fmt.Sprintf("No changes detected between %s and %s\n", - commit.Hash, commits[c+1].Hash)) + commit.Hash, baseline)) } continue } @@ -329,7 +333,7 @@ func renderSummaryWithTheme( } } if changeRoot == nil { - changeRoot = result.RightDrDoc.V3Document.Node + changeRoot = result.root() } var colorScheme terminal.ColorScheme @@ -373,7 +377,9 @@ func renderSummaryWithTheme( sb.WriteString("\n") dateStr := commit.CommitDate.Format("01/02/06") - if markdown { + if commit.Synthetic { + sb.WriteString(commit.Message + "\n") + } else if markdown { sb.WriteString(fmt.Sprintf("**Date**: %s | **Commit**: %s\n", dateStr, commit.Message)) } else { sb.WriteString(styles.title.Render(fmt.Sprintf("Date: %s | Commit: %s", dateStr, commit.Message))) diff --git a/cmd/summary_test.go b/cmd/summary_test.go index 6c3f247..49e7ee9 100644 --- a/cmd/summary_test.go +++ b/cmd/summary_test.go @@ -420,7 +420,7 @@ paths: {} ) require.NoError(t, err) - assert.Contains(t, output, "No changes detected between empty123 and good123") + assert.NotContains(t, output, "No changes detected between empty123 and good123", "missing documents are not a successful comparison") assert.Contains(t, output, "info") assert.Contains(t, output, "Document Element") assert.False(t, hasBreaking) diff --git a/git/github.go b/git/github.go index 1955e85..0269e7b 100644 --- a/git/github.go +++ b/git/github.go @@ -5,9 +5,11 @@ package git import ( "context" + "encoding/base64" "errors" "fmt" "os" + "strings" "time" doctorgithub "github.com/pb33f/doctor/github" @@ -155,6 +157,26 @@ func ProcessGithubRepoDetailed(username, repo, filePath string, model.SendProgressUpdate("git", fmt.Sprintf("fetched %d github revisions", len(revisions)), true, progressChan) + opts.ReadRevision = func(_, revision, path string) ([]byte, error) { + service := newGitHubService() + files, ok := service.(doctorgithub.FileService) + if !ok { + return nil, fmt.Errorf("GitHub service cannot read revision references") + } + session := service.CreateSessionWithOptionalToken(os.Getenv(GithubToken), config) + if session == nil { + return nil, fmt.Errorf("failed to create GitHub reference session") + } + defer session.Close() + file, err := files.GetFileContent(context.Background(), session, username, repo, path, revision) + if err != nil { + return nil, err + } + if file.Encoding == "base64" { + return base64.StdEncoding.DecodeString(strings.ReplaceAll(file.Content, "\n", "")) + } + return []byte(file.Content), nil + } commitHistory, errs := convertGitHubRevisionsIntoModelDetailed(revisions, filePath, progressChan, errorChan, opts, breakingConfig) if errs != nil { for _, err := range errs { diff --git a/git/history_sources.go b/git/history_sources.go new file mode 100644 index 0000000..2b5840e --- /dev/null +++ b/git/history_sources.go @@ -0,0 +1,96 @@ +package git + +import ( + "github.com/pb33f/libopenapi/datamodel" + "github.com/pb33f/openapi-changes/model" + "os" + "path/filepath" +) + +// buildHistorySources defers model construction to the consumer's two-document +// window. Source bytes and revision-scoped configurations remain available for +// interactive navigation without retaining every document graph. +func buildHistorySources(commits []*model.Commit, opts HistoryOptions) (*HistoryBuildResult, []error) { + if len(commits) == 0 { + return &HistoryBuildResult{}, nil + } + basePath, baseURL, err := ResolveBaseOverride(opts.Base) + if err != nil { + return nil, []error{err} + } + var context *RevisionDocumentContext + if commits[0].RepoDirectory != "" { + context, err = BuildRevisionDocumentContext(commits[0].RepoDirectory, commits[0].FilePath, basePath, baseURL) + if err != nil { + return nil, []error{err} + } + } + base := datamodel.NewDocumentConfiguration() + base.AllowRemoteReferences = opts.Remote || baseURL != nil + base.BaseURL = baseURL + base.ExcludeExtensionRefs = !opts.ExtRefs + base.IgnoreArrayCircularReferences = true + base.IgnorePolymorphicCircularReferences = true + window := new(model.HistoryWindow) + makeSource := func(data []byte, revision string) *model.HistorySource { + return &model.HistorySource{Data: data, Revision: revision, Config: func() (*datamodel.DocumentConfiguration, error) { + if context != nil { + return BuildRevisionDocumentConfiguration(context, revision, base) + } + config := cloneDocumentConfiguration(base) + config.SpecFilePath = commits[0].FilePath + if opts.ReadRevision != nil { + root := filepath.Join(os.TempDir(), "openapi-changes-history") + config.BasePath = root + config.SpecFilePath = filepath.Join(root, commits[0].FilePath) + config.AllowFileReferences = true + fs, err := NewGitRevisionFS(root, root, revision, config) + if err != nil { + return nil, err + } + fs.readRevision = opts.ReadRevision + config.LocalFS = fs + } + return config, nil + }} + } + var previous *model.HistorySource + // Fetch the preceding file version once; older malformed baselines are handled + // by the ordinary history chain when they are part of the requested history. + oldest := commits[len(commits)-1] + if context != nil { + for revision := oldest.Hash + "~1"; ; revision += "~1" { + bits, err := readFile(oldest.RepoDirectory, revision, oldest.FilePath) + if err != nil { + break + } + candidate := makeSource(bits, revision) + _, _, release, err := window.Acquire(candidate) + if err != nil { + continue + } + release() + previous = candidate + break + } + } + for i := len(commits) - 1; i >= 0; i-- { + commit := commits[i] + source := makeSource(commit.Data, commit.Hash) + source.Previous = previous + commit.Source = source + commit.Window = window + if previous != nil { + commit.OldData = previous.Data + } + if context != nil { + commit.DocumentRewriters = []model.DocumentPathRewriter{context.DocumentRewriter} + } + if context == nil && opts.ReadRevision != nil { + root := filepath.Join(os.TempDir(), "openapi-changes-history") + commit.DocumentRewriters = []model.DocumentPathRewriter{NewRepoRelativeDocumentPathRewriter(root, root)} + } + previous = source + } + return &HistoryBuildResult{Commits: commits}, nil +} diff --git a/git/options.go b/git/options.go index 28ce1b4..7ff4c1e 100644 --- a/git/options.go +++ b/git/options.go @@ -9,6 +9,8 @@ import "github.com/pb33f/openapi-changes/model" // BreakingConfig is intentionally kept as a separate parameter in function // signatures — it controls comparison semantics, not history traversal. type HistoryOptions struct { + ReadRevision func(repo, revision, path string) ([]byte, error) // optional hosted revision reader + Lazy bool // prepare sources now and retain only the active model window Base string Remote bool ExtRefs bool diff --git a/git/read_local.go b/git/read_local.go index 601da2e..fe96722 100644 --- a/git/read_local.go +++ b/git/read_local.go @@ -201,6 +201,9 @@ func buildCommitChangelogDetailed(commitHistory []*model.Commit, progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, opts HistoryOptions, breakingConfig *whatChangedModel.BreakingRulesConfig, ) (*HistoryBuildResult, []error) { + if opts.Lazy { + return buildHistorySources(commitHistory, opts) + } var changeErrors []error var cleaned []*model.Commit var skippedCommits []string @@ -208,10 +211,8 @@ func buildCommitChangelogDetailed(commitHistory []*model.Commit, comparableCount := 0 // apply breaking rules configuration before comparisons - if breakingConfig != nil { - breakingrules.Apply(breakingConfig) - defer breakingrules.Reset() - } + releaseRules := breakingrules.Acquire(breakingConfig) + defer releaseRules() // create a new document config and set to default closed state, // enable it if the user has specified a base url or a path. diff --git a/git/revision_fs.go b/git/revision_fs.go index 125f7aa..d37c928 100644 --- a/git/revision_fs.go +++ b/git/revision_fs.go @@ -24,12 +24,13 @@ import ( var revisionFSReadFileAtRevision = ReadFileAtRevision type GitRevisionFS struct { - repoRoot string - baseDir string - revision string - indexConfig *index.SpecIndexConfig - logger *slog.Logger - rolodex *index.Rolodex + readRevision func(repo, revision, path string) ([]byte, error) + repoRoot string + baseDir string + revision string + indexConfig *index.SpecIndexConfig + logger *slog.Logger + rolodex *index.Rolodex files sync.Map processing sync.Map @@ -170,7 +171,11 @@ func (g *GitRevisionFS) Open(name string) (fs.File, error) { return nil, wait.err } - data, err := revisionFSReadFileAtRevision(g.repoRoot, g.revision, relPath) + read := g.readRevision + if read == nil { + read = revisionFSReadFileAtRevision + } + data, err := read(g.repoRoot, g.revision, relPath) if err != nil { wait.err = err return nil, err diff --git a/go.mod b/go.mod index dcfc506..353e648 100644 --- a/go.mod +++ b/go.mod @@ -13,9 +13,10 @@ require ( github.com/charmbracelet/x/term v0.2.2 github.com/google/uuid v1.6.0 github.com/mattn/go-runewidth v0.0.31 - github.com/pb33f/doctor v0.0.83 + github.com/pb33f/doctor v0.0.86-0.20261029162714-d87e5289ef6b github.com/pb33f/go-yaml v0.1.1 - github.com/pb33f/libopenapi v0.41.6 + github.com/pb33f/libasyncapi v0.0.6-0.20261029161437-e98dec724c6b + github.com/pb33f/libopenapi v0.41.9-0.20261029160729-ce227ab7d3c9 github.com/pb33f/testify v0.1.1 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 github.com/spf13/cobra v1.10.2 @@ -39,6 +40,7 @@ require ( github.com/clipperhouse/uax29/v2 v2.7.0 // indirect github.com/dlclark/regexp2/v2 v2.8.4 // indirect github.com/dustin/go-humanize v1.1.0 // indirect + github.com/go-viper/mapstructure/v2 v2.5.0 // indirect github.com/google/go-github/v72 v72.0.0 // indirect github.com/google/go-querystring v1.2.0 // indirect github.com/gorilla/css v1.0.1 // indirect @@ -47,12 +49,10 @@ require ( github.com/lucasjones/reggen v0.0.0-20200904144131-37ba4fa293bb // indirect github.com/mattn/go-isatty v0.0.24 // indirect github.com/microcosm-cc/bluemonday v1.0.27 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/muesli/cancelreader v0.2.2 // indirect github.com/ncruces/go-strftime v1.1.0 // indirect github.com/pb33f/jsonpath v0.8.4 // indirect github.com/pb33f/jsonschema/v6 v6.0.3 // indirect - github.com/pb33f/libasyncapi v0.0.3-0.20261006133119-e34489c04636 // indirect github.com/pb33f/ordered-map/v2 v2.3.2 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/rivo/uniseg v0.4.7 // indirect diff --git a/go.sum b/go.sum index cb1ea02..7fd933a 100644 --- a/go.sum +++ b/go.sum @@ -63,6 +63,8 @@ github.com/dlclark/regexp2/v2 v2.8.4 h1:yfDDXTn4oxyLDC10/ieOBNDCCdIVWS9WbT6ddVXs github.com/dlclark/regexp2/v2 v2.8.4/go.mod h1:avUrQvPaLz2DrFNHJF0taWAFFX2C1GMSSoeiqFjcBmU= github.com/dustin/go-humanize v1.1.0 h1:dbKTrvD0klcbBV/h4AWJdMuZogJACoMlvWIWZ5b2xWg= github.com/dustin/go-humanize v1.1.0/go.mod h1:hc1CvRkJMsgxqjmjMQF3QNRAZBwY8AXBAzKYoSX9sFI= +github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro= +github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= @@ -93,24 +95,22 @@ github.com/mattn/go-runewidth v0.0.31 h1:1oCV4ReTlosDBc6rYRw5cL8S/4y8iv5oRl4SJ5I github.com/mattn/go-runewidth v0.0.31/go.mod h1:3qAiGCV4Koz/yuveO58qUefmUTRm8r0IGEXZ9jeHp/8= github.com/microcosm-cc/bluemonday v1.0.27 h1:MpEUotklkwCSLeH+Qdx1VJgNqLlpY2KXwXFM08ygZfk= github.com/microcosm-cc/bluemonday v1.0.27/go.mod h1:jFi9vgW+H7c3V0lb6nR74Ib/DIB5OBs92Dimizgw2cA= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= github.com/ncruces/go-strftime v1.1.0 h1:vtPmPWMkb539RGV9WpWT9EwJGvrOCKvMNI4obWL47Hk= github.com/ncruces/go-strftime v1.1.0/go.mod h1:yVaq7iwCN09vHRrKBrrflXT0M9tTMG2KmZ9Fj7xeG/g= -github.com/pb33f/doctor v0.0.83 h1:YhGt/cHQzClSgL9VyPibsuQdxwr9F8WMzxPfKHnj6Wg= -github.com/pb33f/doctor v0.0.83/go.mod h1:J+Ox7dWjOtVv45A/Ruj38CV9e51HFi5SuGWySu90DKs= +github.com/pb33f/doctor v0.0.86-0.20261029162714-d87e5289ef6b h1:iCVMcGZZVA3SGA2XX9PamuKEtyGOLYFzC50bsURZ+ew= +github.com/pb33f/doctor v0.0.86-0.20261029162714-d87e5289ef6b/go.mod h1:xxmxpVsz5SzfFORO0MvGf5JTZcy210dR2wMkSnHjvhA= github.com/pb33f/go-yaml v0.1.1 h1:yWGmhVdwzionRnSc/hEJwcfq6PaZL2QdYzyReXBbX7Q= github.com/pb33f/go-yaml v0.1.1/go.mod h1:QvWdkHP5VjFYAeHMQUkaPQqREaQnBNOXmWzAjNrnSdo= github.com/pb33f/jsonpath v0.8.4 h1:Yx7fxsKl8scgERL22WhKDs2c6gYNNUonPSWEG8Y194s= github.com/pb33f/jsonpath v0.8.4/go.mod h1:eO6mgdhw5RgzCxm/bXTi75VUs0/cCYJzdGjMCCUEI6M= github.com/pb33f/jsonschema/v6 v6.0.3 h1:TMIkE1xCmnF8Cy+anIBs+r4ASfGtwzfFxYsrrIn0wSU= github.com/pb33f/jsonschema/v6 v6.0.3/go.mod h1:cYPShw+w1Jrs0YgpE2rk1FLdIAsKfWcotv/54G6ddFo= -github.com/pb33f/libasyncapi v0.0.3-0.20261006133119-e34489c04636 h1:uUhTvFiCwssojeWYPQzmeVWl4lCooX5koCf/yS2umhA= -github.com/pb33f/libasyncapi v0.0.3-0.20261006133119-e34489c04636/go.mod h1:FWWmU6wdny1AJbjYlaavxoeqy4iVXnWRwX7ybYwFdbM= -github.com/pb33f/libopenapi v0.41.6 h1:W1X/5rOaAk3/Mjwrt+DHaiJO6buhruKWrbQ+pumONkA= -github.com/pb33f/libopenapi v0.41.6/go.mod h1:mUldESjO6ownR1TCcywvoYp7e4v/bCdQyiiIqsgWne0= +github.com/pb33f/libasyncapi v0.0.6-0.20261029161437-e98dec724c6b h1:ET0kWR3D1akoPSeQG6K1AC2JMKFu8C09LtcfxXAuXRE= +github.com/pb33f/libasyncapi v0.0.6-0.20261029161437-e98dec724c6b/go.mod h1:w+Mo4Pn/B86OhZlNSMz6ui4L3CmcQ7AaSbktpFR8a4M= +github.com/pb33f/libopenapi v0.41.9-0.20261029160729-ce227ab7d3c9 h1:aybCpLmgRYu/p9DDES4pkQG+79wjJ1HvavsLttJgAMA= +github.com/pb33f/libopenapi v0.41.9-0.20261029160729-ce227ab7d3c9/go.mod h1:IlfeXtmcY38KEnGJ4OMWFA8I62BCNamuQa8omLnk6R0= github.com/pb33f/ordered-map/v2 v2.3.2 h1:wDyaZ2Pv9QLh64X4utCeD5Zoi9nIv2aW3lwv172O5PQ= github.com/pb33f/ordered-map/v2 v2.3.2/go.mod h1:1OhFrXu3OYw3kM+FXF+Ug3ugmmZ9LE8z0JfQMLvtV0w= github.com/pb33f/testify v0.1.1 h1:mnHe7uxKt8dyNYEGUspow72VjD264DB5rOJq4bz5tJw= diff --git a/html-report/generator.go b/html-report/generator.go index 08d655b..53c4663 100644 --- a/html-report/generator.go +++ b/html-report/generator.go @@ -85,16 +85,17 @@ type ReportPayload struct { // ReportItem represents a single commit/comparison in the report. type ReportItem struct { - ChangeId string `json:"changeId"` - Graph *GraphData `json:"graph"` - ExplorerGraph *GraphData `json:"explorerGraph,omitempty"` - Summary *SummaryData `json:"summary"` - HtmlReport string `json:"htmlReport"` - OriginalSpec string `json:"originalSpec"` - ModifiedSpec string `json:"modifiedSpec"` - OriginalHighlighted map[int]string `json:"originalHighlighted,omitempty"` - ModifiedHighlighted map[int]string `json:"modifiedHighlighted,omitempty"` - Commit *CommitInfo `json:"commit"` + Specification *model.ComparisonSpecification `json:"specification,omitempty"` + ChangeId string `json:"changeId"` + Graph *GraphData `json:"graph"` + ExplorerGraph *GraphData `json:"explorerGraph,omitempty"` + Summary *SummaryData `json:"summary"` + HtmlReport string `json:"htmlReport"` + OriginalSpec string `json:"originalSpec"` + ModifiedSpec string `json:"modifiedSpec"` + OriginalHighlighted map[int]string `json:"originalHighlighted,omitempty"` + ModifiedHighlighted map[int]string `json:"modifiedHighlighted,omitempty"` + Commit *CommitInfo `json:"commit"` } // highlightSpecLines uses Chroma to syntax-highlight each line of a spec, @@ -225,7 +226,7 @@ const ( func BuildReportItem( commit *model.Commit, result *changerator.Changerator, - docChanges *whatChangedModel.DocumentChanges, + docChanges what_changed.Changed, rightDrDoc *drModel.DrDocument, changeId string, ) (*ReportItem, error) { @@ -254,7 +255,7 @@ func BuildReportItem( htmlConfig.HTML.EnableNestedListFix = true htmlRenderer := renderer.NewHTMLRenderer(htmlConfig) htmlReport, err := htmlRenderer.RenderHTML(&renderer.RenderInput{ - DocumentChanges: docChanges, + ChangeReport: docChanges, Doctor: rightDrDoc, RightDocContent: commit.Data, Config: htmlConfig, @@ -266,7 +267,16 @@ func BuildReportItem( result.ClearContextCache() drModel.SanitizeGraph(result.ChangedNodes, nil) - graphMap := rightDrDoc.BuildGraphMap() + graphMap := make(map[int]string) + if rightDrDoc != nil { + graphMap = rightDrDoc.BuildGraphMap() + } else { + for _, node := range result.ChangedNodes { + if node.ValueLine > 0 { + graphMap[node.ValueLine] = node.Id + } + } + } standardGraph, err := buildGraphData( graphModeStandard, @@ -299,6 +309,7 @@ func BuildReportItem( } item := &ReportItem{ + Specification: commit.Specification, ChangeId: changeId, Graph: standardGraph, ExplorerGraph: explorerGraph, diff --git a/internal/breakingrules/config.go b/internal/breakingrules/config.go index 01cdf65..3f373cc 100644 --- a/internal/breakingrules/config.go +++ b/internal/breakingrules/config.go @@ -15,17 +15,30 @@ import ( var mu sync.Mutex +// Acquire holds the policy lock through an entire comparison. The returned +// function restores defaults and releases it, including for default-policy runs. +func Acquire(config *wcModel.BreakingRulesConfig) func() { + mu.Lock() + apply(config) + return func() { wcModel.ResetActiveBreakingRulesConfig(); mu.Unlock() } +} + // Apply merges the given config on top of libopenapi defaults and sets it as // the active breaking rules configuration. If config is nil, resets to defaults. // Thread-safe — acquires the package-level mutex. func Apply(config *wcModel.BreakingRulesConfig) { mu.Lock() defer mu.Unlock() + apply(config) +} + +func apply(config *wcModel.BreakingRulesConfig) { if config == nil { wcModel.ResetActiveBreakingRulesConfig() return } - defaults := wcModel.GenerateDefaultBreakingRules() + defaults := new(wcModel.BreakingRulesConfig) + defaults.Merge(wcModel.GenerateDefaultBreakingRules()) defaults.Merge(config) wcModel.SetActiveBreakingRulesConfig(defaults) } diff --git a/model/commit.go b/model/commit.go index d6a52f9..9e5dc9f 100644 --- a/model/commit.go +++ b/model/commit.go @@ -4,32 +4,54 @@ package model import ( + "github.com/pb33f/libasyncapi" "github.com/pb33f/libopenapi" - "github.com/pb33f/libopenapi/what-changed/model" + whatChanged "github.com/pb33f/libopenapi/what-changed" + wc "github.com/pb33f/libopenapi/what-changed/model" "time" ) type DocumentPathRewriter func(string) string type Commit struct { - CreatedAt time.Time `json:"-"` - UpdatedAt time.Time `json:"-"` - ID uint `gorm:"primaryKey" json:"-"` - Hash string `json:"commitHash"` - Message string `json:"message"` - Author string `json:"author"` - AuthorEmail string `gorm:"index" json:"authorEmail"` - CommitDate time.Time `json:"committed"` - Changes *model.DocumentChanges `gorm:"-" json:"changeReport,omitempty"` - SerializedChanges []byte `gorm:"-" json:"-"` - Data []byte `gorm:"-" json:"-"` - OldData []byte `gorm:"-" json:"-"` - Document libopenapi.Document `gorm:"-" json:"-"` - OldDocument libopenapi.Document `gorm:"-" json:"-"` - RepoDirectory string `gorm:"-" json:"-"` - FilePath string `gorm:"-" json:"-"` - OriginalSource string `gorm:"-" json:"-"` - ModifiedSource string `gorm:"-" json:"-"` - Synthetic bool `gorm:"-" json:"-"` - DocumentRewriters []DocumentPathRewriter `gorm:"-" json:"-"` + Specification *ComparisonSpecification `json:"-"` + OriginalRevision string `json:"-"` + ChangeReport whatChanged.Changed `json:"-"` + Source *HistorySource `json:"-"` + Window *HistoryWindow `json:"-"` + Rules *ComparisonRules `json:"-"` + CreatedAt time.Time `json:"-"` + UpdatedAt time.Time `json:"-"` + ID uint `gorm:"primaryKey" json:"-"` + Hash string `json:"commitHash"` + Message string `json:"message"` + Author string `json:"author"` + AuthorEmail string `gorm:"index" json:"authorEmail"` + CommitDate time.Time `json:"committed"` + Changes *wc.DocumentChanges `gorm:"-" json:"changeReport,omitempty"` + AsyncDocument libasyncapi.Document `json:"-"` + OldAsyncDocument libasyncapi.Document `json:"-"` + SerializedChanges []byte `gorm:"-" json:"-"` + Data []byte `gorm:"-" json:"-"` + OldData []byte `gorm:"-" json:"-"` + Document libopenapi.Document `gorm:"-" json:"-"` + OldDocument libopenapi.Document `gorm:"-" json:"-"` + RepoDirectory string `gorm:"-" json:"-"` + FilePath string `gorm:"-" json:"-"` + OriginalSource string `gorm:"-" json:"-"` + ModifiedSource string `gorm:"-" json:"-"` + Synthetic bool `gorm:"-" json:"-"` + DocumentRewriters []DocumentPathRewriter `gorm:"-" json:"-"` +} + +// AllChanges returns the active engine report while preserving Changes for +// callers that consume the existing concrete OpenAPI history API. +func (c *Commit) AllChanges() whatChanged.Changed { + if c.ChangeReport != nil { + return c.ChangeReport + } + if c.Changes != nil { + return c.Changes + } + return nil } diff --git a/model/comparison_rules.go b/model/comparison_rules.go new file mode 100644 index 0000000..e6e9cc5 --- /dev/null +++ b/model/comparison_rules.go @@ -0,0 +1,15 @@ +package model + +import ( + async "github.com/pb33f/libasyncapi/what-changed/model" + openapi "github.com/pb33f/libopenapi/what-changed/model" +) + +// ComparisonRules keeps independent policies for each engine. SchemaRules +// applies to JSON Schemas embedded in AsyncAPI documents only. +type ComparisonRules struct { + Legacy bool `yaml:"-"` // an unscoped OpenAPI policy must not silently apply to AsyncAPI + OpenAPI *openapi.BreakingRulesConfig `yaml:"openapiRules"` + AsyncAPI *async.BreakingRulesConfig `yaml:"asyncapiRules"` + Schema *openapi.BreakingRulesConfig `yaml:"schemaRules"` +} diff --git a/model/history_source.go b/model/history_source.go new file mode 100644 index 0000000..c14412f --- /dev/null +++ b/model/history_source.go @@ -0,0 +1,151 @@ +package model + +import ( + "fmt" + "github.com/pb33f/libasyncapi" + "github.com/pb33f/libopenapi" + "github.com/pb33f/libopenapi/datamodel" + "sync" +) + +// HistorySource is an immutable revision input. It holds no parsed model. +type HistorySource struct { + Revision string + Data []byte + Previous *HistorySource + Config func() (*datamodel.DocumentConfiguration, error) +} + +type parsedHistorySource struct { + native libopenapi.Document + async libasyncapi.Document + pins int + used uint64 +} + +// HistoryWindow retains at most two idle parsed revisions. Active comparisons +// pin their inputs until Release; callers can safely render before releasing. +type HistoryWindow struct { + DiscardIdle bool // console cache entries own their pairs; retain no second idle cache + mu sync.Mutex + entries map[*HistorySource]*parsedHistorySource + clock uint64 +} + +// Acquire parses or reuses one revision and pins it until the returned release. +func (w *HistoryWindow) Acquire(source *HistorySource) (libopenapi.Document, libasyncapi.Document, func(), error) { + if source == nil || source.Config == nil { + return nil, nil, nil, fmt.Errorf("history source configuration is required") + } + w.mu.Lock() + defer w.mu.Unlock() + if w.entries == nil { + w.entries = make(map[*HistorySource]*parsedHistorySource) + } + entry := w.entries[source] + if entry == nil { + config, err := source.Config() + if err != nil { + return nil, nil, nil, err + } + native, async, err := ParseSpecification(source.Data, config) + if err != nil { + return nil, nil, nil, err + } + if native != nil { + if _, err = native.BuildV3Model(); err != nil { + releaseParsed(native, nil) + return nil, nil, nil, err + } + } + entry = &parsedHistorySource{native: native, async: async} + w.entries[source] = entry + } + w.clock++ + entry.used = w.clock + entry.pins++ + w.trim() + var once sync.Once + return entry.native, entry.async, func() { once.Do(func() { w.mu.Lock(); defer w.mu.Unlock(); entry.pins--; w.trim() }) }, nil +} + +func (w *HistoryWindow) trim() { + limit := 2 + if w.DiscardIdle { + limit = 0 + } + for len(w.entries) > limit { + var oldest *HistorySource + var age uint64 + for source, entry := range w.entries { + if entry.pins == 0 && (oldest == nil || entry.used < age) { + oldest, age = source, entry.used + } + } + if oldest == nil { + return + } + entry := w.entries[oldest] + delete(w.entries, oldest) + releaseParsed(entry.native, entry.async) + } +} + +// Close releases idle models and releases pinned models when their owners finish. +func (w *HistoryWindow) Close() { + if w == nil { + return + } + w.mu.Lock() + defer w.mu.Unlock() + w.DiscardIdle = true + w.trim() +} + +func releaseParsed(native libopenapi.Document, async libasyncapi.Document) { + if native != nil { + if r := native.GetRolodex(); r != nil { + r.Release() + } + native.Release() + } + if async != nil { + if r := async.Rolodex(); r != nil { + r.Release() + } + } +} + +// PrepareHistory returns a comparison copy. Malformed predecessor revisions are +// bypassed so a valid revision can still compare against the last valid source. +func (c *Commit) PrepareHistory() (*Commit, func(), error) { + if c.Source == nil { + return c, func() {}, nil + } + current, async, release, err := c.Window.Acquire(c.Source) + if err != nil { + return nil, nil, err + } + copy := *c + copy.Source = nil + copy.Document = current + copy.AsyncDocument = async + copy.OldData = nil + for prior := c.Source.Previous; prior != nil; prior = prior.Previous { + old, oldAsync, releaseOld, err := c.Window.Acquire(prior) + if err != nil { + continue + } + if (async == nil) != (oldAsync == nil) { + releaseOld() + release() + return nil, nil, fmt.Errorf("cannot compare OpenAPI and AsyncAPI revisions") + } + copy.OldDocument = old + copy.OldAsyncDocument = oldAsync + copy.OldData = prior.Data + copy.OriginalRevision = prior.Revision + return ©, func() { releaseOld(); release() }, nil + } + return ©, release, nil +} diff --git a/model/history_source_test.go b/model/history_source_test.go new file mode 100644 index 0000000..2ef79b3 --- /dev/null +++ b/model/history_source_test.go @@ -0,0 +1,32 @@ +package model + +import ( + "fmt" + "github.com/pb33f/libopenapi/datamodel" + "github.com/pb33f/testify/require" + "testing" +) + +func TestHistoryWindowBoundsModelsAndReusesAdjacentSources(t *testing.T) { + w := new(HistoryWindow) + sources := make([]*HistorySource, 30) + parses := 0 + for i := range sources { + sources[i] = &HistorySource{Data: []byte(fmt.Sprintf("asyncapi: 3.0.0\ninfo: {title: Events, version: '%d'}\n", i)), Config: func() (*datamodel.DocumentConfiguration, error) { + parses++ + return datamodel.NewDocumentConfiguration(), nil + }} + } + for i := len(sources) - 1; i > 0; i-- { + _, _, right, err := w.Acquire(sources[i]) + require.NoError(t, err) + _, _, left, err := w.Acquire(sources[i-1]) + require.NoError(t, err) + left() + right() + require.LessOrEqual(t, len(w.entries), 2) + } + require.Equal(t, len(sources), parses, "each adjacent source should parse once") + w.Close() + require.Empty(t, w.entries) +} diff --git a/model/report.go b/model/report.go index 3cd6bc7..682b36b 100644 --- a/model/report.go +++ b/model/report.go @@ -75,6 +75,7 @@ type Report struct { } type FlatReport struct { + Specification *ComparisonSpecification `json:"specification,omitempty"` Summary map[string]*reports.Changed `json:"reportSummary"` Changes []*HashedChange `json:"changes"` OriginalPath string `json:"originalPath,omitempty"` diff --git a/model/specification.go b/model/specification.go new file mode 100644 index 0000000..f02dd19 --- /dev/null +++ b/model/specification.go @@ -0,0 +1,94 @@ +package model + +import ( + "errors" + "fmt" + "strings" + + "github.com/pb33f/libasyncapi" + "github.com/pb33f/libopenapi" + "github.com/pb33f/libopenapi/datamodel" +) + +// ComparisonSpecification identifies the native format and versions of both inputs. +type ComparisonSpecification struct { + Kind string `json:"kind"` + OriginalVersion string `json:"originalVersion"` + ModifiedVersion string `json:"modifiedVersion"` +} + +// SetSpecification records format metadata without retaining parsed models. +func (c *Commit) SetSpecification() { + if c.AsyncDocument != nil { + c.Specification = &ComparisonSpecification{Kind: "asyncapi", ModifiedVersion: c.AsyncDocument.GetVersion()} + if c.OldAsyncDocument != nil { + c.Specification.OriginalVersion = c.OldAsyncDocument.GetVersion() + } + } else if c.Document != nil { + c.Specification = &ComparisonSpecification{Kind: "openapi", ModifiedVersion: c.Document.GetSpecInfo().Version} + if c.OldDocument != nil { + c.Specification.OriginalVersion = c.OldDocument.GetSpecInfo().Version + } + } +} + +// APILabel returns the human-facing native format name. +func (c *Commit) APILabel() string { + if c != nil && c.Specification != nil && c.Specification.Kind == "asyncapi" { + return "AsyncAPI" + } + return "OpenAPI" +} + +// ParseSpecification parses once and selects the native model by its root version field. +func ParseSpecification(data []byte, config *datamodel.DocumentConfiguration) (libopenapi.Document, libasyncapi.Document, error) { + doc, err := libopenapi.NewDocumentWithConfiguration(data, config) + if err != nil { + return nil, nil, err + } + info := doc.GetSpecInfo() + fields := 0 + if info.RootNode != nil && len(info.RootNode.Content) > 0 { + root := info.RootNode.Content[0] + for i := 0; i+1 < len(root.Content); i += 2 { + switch root.Content[i].Value { + case "openapi", "swagger", "asyncapi": + fields++ + } + } + } + if fields != 1 { + return nil, nil, fmt.Errorf("expected one specification version field") + } + if info.SpecType != "asyncapi" { + return doc, nil, nil + } + if !strings.HasPrefix(info.Version, "3.") { + return nil, nil, fmt.Errorf("AsyncAPI %s is unsupported; expected 3.x", info.Version) + } + ac := libasyncapi.NewDocumentConfiguration() + if config != nil { + ac.SpecFilePath = config.SpecFilePath + ac.BasePath = config.BasePath + ac.BaseURL = config.BaseURL + ac.AllowFileReferences = config.AllowFileReferences + ac.AllowRemoteReferences = config.AllowRemoteReferences + ac.ExcludeExtensionRefs = config.ExcludeExtensionRefs + ac.LocalFS = config.LocalFS + ac.RemoteURLHandler = config.RemoteURLHandler + ac.Logger = config.Logger + } + async, err := libasyncapi.NewDocumentFromNode(info.RootNode, ac) + if err != nil { + return nil, nil, err + } + if async.IsPartial() { + return nil, nil, fmt.Errorf("incomplete AsyncAPI document: %w", errors.Join(async.Errors()...)) + } + return nil, async, nil +} + +// Comparable reports whether both sides of a commit contain the same native format. +func (c *Commit) Comparable() bool { + return c != nil && ((c.Source != nil && len(c.OldData) > 0) || (c.Document != nil && c.OldDocument != nil) || (c.AsyncDocument != nil && c.OldAsyncDocument != nil)) +} diff --git a/sample-specs/asyncapi-original.yaml b/sample-specs/asyncapi-original.yaml new file mode 100644 index 0000000..2717218 --- /dev/null +++ b/sample-specs/asyncapi-original.yaml @@ -0,0 +1,28 @@ +asyncapi: 3.0.0 +info: + title: Synthetic order events + version: 1.0.0 +servers: + production: + host: broker.example.test:9092 + protocol: kafka +channels: + orders: + address: orders.v1 + messages: + created: + contentType: application/json + payload: + $ref: '#/components/schemas/Order' +operations: + receiveOrder: + action: receive + channel: + $ref: '#/channels/orders' +components: + schemas: + Order: + type: object + properties: + id: + type: string diff --git a/sample-specs/asyncapi.yaml b/sample-specs/asyncapi.yaml new file mode 100644 index 0000000..ba38767 --- /dev/null +++ b/sample-specs/asyncapi.yaml @@ -0,0 +1,28 @@ +asyncapi: 3.0.0 +info: + title: Synthetic order events + version: 2.0.0 +servers: + production: + host: events.example.test:9092 + protocol: kafka +channels: + orders: + address: orders.v2 + messages: + created: + contentType: application/json + payload: + $ref: '#/components/schemas/Order' +operations: + receiveOrder: + action: send + channel: + $ref: '#/channels/orders' +components: + schemas: + Order: + type: object + properties: + id: + type: integer From 911da0255b5146133009d072f2107746eaade968 Mon Sep 17 00:00:00 2001 From: quobix Date: Thu, 29 Oct 2026 12:50:17 -0400 Subject: [PATCH 02/19] Preserve lazy history counts and reject malformed first revisions --- .ai-docs/bilingual-comparison.md | 5 +++ cmd/asyncapi_serialization_test.go | 36 +++++++++++++++++ cmd/console.go | 31 ++++++++++++--- cmd/console_test.go | 8 +++- cmd/history_validation_test.go | 63 ++++++++++++++++++++++++++++++ cmd/summary.go | 8 +++- go.mod | 4 +- go.sum | 4 +- tui/v2/model.go | 44 ++++++++++++++++----- tui/v2/model_test.go | 48 +++++++++++++++++++++++ 10 files changed, 230 insertions(+), 21 deletions(-) create mode 100644 cmd/asyncapi_serialization_test.go create mode 100644 cmd/history_validation_test.go diff --git a/.ai-docs/bilingual-comparison.md b/.ai-docs/bilingual-comparison.md index 4ae1957..9735776 100644 --- a/.ai-docs/bilingual-comparison.md +++ b/.ai-docs/bilingual-comparison.md @@ -33,6 +33,11 @@ identity are preserved. Failed candidate revisions still reach the existing warning and JSON `metaData.partial/skippedCommits` handling. A successful unchanged pair counts as success. The console disables idle model retention; its existing bounded result cache owns and releases each comparison pair. +The console stores only scalar total/breaking counts outside that cache. Counts +appear after a revision is visited and survive graph eviction; unvisited and +baseline-only revisions show `-`, while unchanged comparisons show zero. +Summary and console validate lazy first revisions before reporting that no prior +version exists. A malformed first revision fails instead of reporting no changes. The JSON flattening boundary drops model-only object pointers and copies only commit metadata. It preserves semantic paths, rawPath when normalized, and the diff --git a/cmd/asyncapi_serialization_test.go b/cmd/asyncapi_serialization_test.go new file mode 100644 index 0000000..4ce2ef3 --- /dev/null +++ b/cmd/asyncapi_serialization_test.go @@ -0,0 +1,36 @@ +package cmd + +import ( + "fmt" + "os" + "path/filepath" + "strings" + "testing" + + "github.com/pb33f/testify/require" +) + +func TestAsyncAPIHTMLPreservesAliasBounds(t *testing.T) { + var source strings.Builder + source.WriteString("asyncapi: 3.0.0\ninfo: {title: Events, version: 1.0.0}\nx-data:\n a0: &a0 {value: data}\n") + var sizes []int + for _, levels := range []int{0, 8} { + for i := 1; i <= levels; i++ { + aliases := strings.TrimSuffix(strings.Repeat(fmt.Sprintf("*a%d, ", i-1), 8), ", ") + fmt.Fprintf(&source, " a%d: &a%d [%s]\n", i, i, aliases) + } + dir := t.TempDir() + left, right := filepath.Join(dir, "left.yaml"), filepath.Join(dir, "right.yaml") + require.NoError(t, os.WriteFile(left, []byte(source.String()), 0600)) + require.NoError(t, os.WriteFile(right, []byte(strings.Replace(source.String(), "title: Events", "title: Events v2", 1)), 0600)) + commits, err := loadLeftRightCommits(left, right, summaryOpts{}) + require.NoError(t, err) + report, err := generateHTMLReport(commits, nil, false, left, right) + require.NoError(t, err) + sizes = append(sizes, len(report)) + if levels > 0 { + require.Contains(t, string(report), "$yamlAlias") + } + } + require.Less(t, sizes[1]-sizes[0], 100000, "HTML must not expand alias targets in node properties") +} diff --git a/cmd/console.go b/cmd/console.go index f57b4e5..1266bfd 100644 --- a/cmd/console.go +++ b/cmd/console.go @@ -34,6 +34,8 @@ func bridgeRunChangerator(commit *model.Commit, breakingConfig *whatChangedModel } result, err := runChangerator(comparison, breakingConfig) commit.OldData = comparison.OldData + commit.Specification = comparison.Specification + commit.OriginalRevision = comparison.OriginalRevision if err != nil { return nil, nil, nil, err } @@ -45,13 +47,28 @@ func bridgeRunChangerator(commit *model.Commit, breakingConfig *whatChangedModel return result.Changerator, root, releaseFn, nil } -func hasRenderableDocuments(commits []*model.Commit) bool { +func hasRenderableDocuments(commits []*model.Commit) (bool, error) { for _, commit := range commits { if commit.Comparable() { - return true + return true, nil } } - return false + for _, commit := range commits { + // A lazy source with no baseline still needs validation before we can + // report that this is the first version of the specification. + if commit != nil && commit.Source != nil { + prepared, release, err := commit.PrepareHistory() + if err != nil { + return false, wrapCommitError(commit, err) + } + comparable := prepared.Comparable() + release() + if comparable { + return true, nil + } + } + } + return false, nil } func wrapConsoleStartError(err error) error { @@ -88,8 +105,12 @@ func GetConsoleCommand() *cobra.Command { return nil } - if !hasRenderableDocuments(input.Commits) { - printNoChangesText() + renderable, err := hasRenderableDocuments(input.Commits) + if err != nil { + return err + } + if !renderable { + printNoPriorVersionText() return nil } diff --git a/cmd/console_test.go b/cmd/console_test.go index 223645e..ec833a8 100644 --- a/cmd/console_test.go +++ b/cmd/console_test.go @@ -80,8 +80,12 @@ func TestHasRenderableDocuments(t *testing.T) { {Hash: "a"}, {Hash: "b", Document: doc, OldDocument: doc}, } - assert.True(t, hasRenderableDocuments(commits)) - assert.False(t, hasRenderableDocuments([]*model.Commit{{Hash: "c"}})) + renderable, err := hasRenderableDocuments(commits) + require.NoError(t, err) + assert.True(t, renderable) + renderable, err = hasRenderableDocuments([]*model.Commit{{Hash: "c"}}) + require.NoError(t, err) + assert.False(t, renderable) } func TestWrapConsoleStartError(t *testing.T) { diff --git a/cmd/history_validation_test.go b/cmd/history_validation_test.go new file mode 100644 index 0000000..bf545b6 --- /dev/null +++ b/cmd/history_validation_test.go @@ -0,0 +1,63 @@ +package cmd + +import ( + "os" + "path/filepath" + "testing" + + "github.com/pb33f/testify/require" + "github.com/spf13/cobra" +) + +func singleRevisionHistory(t *testing.T, spec string) string { + t.Helper() + dir := t.TempDir() + runGitInDir(t, dir, "init") + runGitInDir(t, dir, "config", "user.name", "Fixture") + runGitInDir(t, dir, "config", "user.email", "fixture@example.test") + require.NoError(t, os.WriteFile(filepath.Join(dir, "api.yaml"), []byte(spec), 0600)) + runGitInDir(t, dir, "add", "api.yaml") + runGitInDir(t, dir, "commit", "-m", "first version") + return dir +} + +func TestHistoryCommandsRejectMalformedFirstRevision(t *testing.T) { + dir := singleRevisionHistory(t, "asyncapi: [\n") + for name, factory := range map[string]func() *cobra.Command{ + "summary": GetSummaryCommand, "console": GetConsoleCommand, + "report": GetReportCommand, "markdown": GetMarkdownReportCommand, "html": GetHTMLReportCommand, + } { + t.Run(name, func(t *testing.T) { + cmd := testRootCmd(factory(), "--no-logo", "--no-color", "--global-revisions", "--limit", "0", "--limit-time", "-1", dir, "api.yaml") + output := captureStdout(t, func() { + err := cmd.Execute() + require.Error(t, err) + require.Contains(t, err.Error(), "unable to parse specification") + }) + require.NotContains(t, output, noChangesFoundMessage) + require.NotContains(t, output, noPriorVersionMessage) + }) + } +} + +func TestHistoryFirstRevisionIsNotUnchanged(t *testing.T) { + for _, spec := range []string{ + "openapi: 3.0.0\ninfo: {title: API, version: 1.0.0}\npaths: {}\n", + "asyncapi: 3.0.0\ninfo: {title: Events, version: 1.0.0}\nchannels: {}\n", + } { + dir := singleRevisionHistory(t, spec) + for _, factory := range []func() *cobra.Command{GetSummaryCommand, GetConsoleCommand} { + cmd := testRootCmd(factory(), "--no-logo", "--no-color", "--global-revisions", "--limit", "0", "--limit-time", "-1", dir, "api.yaml") + output := captureStdout(t, func() { require.NoError(t, cmd.Execute()) }) + require.Contains(t, output, noPriorVersionMessage) + require.NotContains(t, output, noChangesFoundMessage) + } + require.NoError(t, os.WriteFile(filepath.Join(dir, "api.yaml"), []byte(spec+"# unchanged\n"), 0600)) + runGitInDir(t, dir, "add", "api.yaml") + runGitInDir(t, dir, "commit", "-m", "unchanged contract") + cmd := testRootCmd(GetSummaryCommand(), "--no-logo", "--no-color", "--global-revisions", "--limit", "0", "--limit-time", "-1", dir, "api.yaml") + output := captureStdout(t, func() { require.NoError(t, cmd.Execute()) }) + require.Contains(t, output, "No changes detected between") + require.NotContains(t, output, noPriorVersionMessage) + } +} diff --git a/cmd/summary.go b/cmd/summary.go index 36ca313..92d45ac 100644 --- a/cmd/summary.go +++ b/cmd/summary.go @@ -290,9 +290,10 @@ func renderSummaryWithTheme( renderedCommits := 0 treeRendered := false var renderErrors []error + noPriorVersion := false for c, commit := range commits { - if !commit.Comparable() { + if commit == nil { continue } @@ -305,6 +306,8 @@ func renderSummaryWithTheme( if result == nil { if commit.Comparable() { renderedCommits++ + } else if commit.Source != nil { + noPriorVersion = true } if commit.Comparable() && !isDirectFileComparison(commits) && totalChanges == 0 && c+1 < len(commits) { baseline := commit.OriginalRevision @@ -458,6 +461,9 @@ func renderSummaryWithTheme( } if !hasChanges && len(renderErrors) == 0 { if sb.Len() == 0 { + if renderedCommits == 0 && noPriorVersion { + return noPriorVersionMessage + "\n", false, false, nil + } return noChangesFoundMessage + "\n", false, false, nil } return sb.String(), false, false, nil diff --git a/go.mod b/go.mod index 353e648..6dc6c73 100644 --- a/go.mod +++ b/go.mod @@ -10,10 +10,11 @@ require ( github.com/alecthomas/chroma/v2 v2.27.0 github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de github.com/charmbracelet/colorprofile v0.4.3 + github.com/charmbracelet/x/ansi v0.11.9 github.com/charmbracelet/x/term v0.2.2 github.com/google/uuid v1.6.0 github.com/mattn/go-runewidth v0.0.31 - github.com/pb33f/doctor v0.0.86-0.20261029162714-d87e5289ef6b + github.com/pb33f/doctor v0.0.86-0.20261029164818-c219bd930e97 github.com/pb33f/go-yaml v0.1.1 github.com/pb33f/libasyncapi v0.0.6-0.20261029161437-e98dec724c6b github.com/pb33f/libopenapi v0.41.9-0.20261029160729-ce227ab7d3c9 @@ -32,7 +33,6 @@ require ( github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/charmbracelet/harmonica v0.2.0 // indirect github.com/charmbracelet/ultraviolet v0.0.0-20261008173134-6b8d4baf91b4 // indirect - github.com/charmbracelet/x/ansi v0.11.9 // indirect github.com/charmbracelet/x/exp/slice v0.1.0 // indirect github.com/charmbracelet/x/termios v0.1.1 // indirect github.com/charmbracelet/x/windows v0.2.2 // indirect diff --git a/go.sum b/go.sum index 7fd933a..fd1e2fe 100644 --- a/go.sum +++ b/go.sum @@ -99,8 +99,8 @@ github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELU github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= github.com/ncruces/go-strftime v1.1.0 h1:vtPmPWMkb539RGV9WpWT9EwJGvrOCKvMNI4obWL47Hk= github.com/ncruces/go-strftime v1.1.0/go.mod h1:yVaq7iwCN09vHRrKBrrflXT0M9tTMG2KmZ9Fj7xeG/g= -github.com/pb33f/doctor v0.0.86-0.20261029162714-d87e5289ef6b h1:iCVMcGZZVA3SGA2XX9PamuKEtyGOLYFzC50bsURZ+ew= -github.com/pb33f/doctor v0.0.86-0.20261029162714-d87e5289ef6b/go.mod h1:xxmxpVsz5SzfFORO0MvGf5JTZcy210dR2wMkSnHjvhA= +github.com/pb33f/doctor v0.0.86-0.20261029164818-c219bd930e97 h1:oib1GVjZwVOytH4csV0bQ++iA0DZG8aG22ZZX52JuSs= +github.com/pb33f/doctor v0.0.86-0.20261029164818-c219bd930e97/go.mod h1:xxmxpVsz5SzfFORO0MvGf5JTZcy210dR2wMkSnHjvhA= github.com/pb33f/go-yaml v0.1.1 h1:yWGmhVdwzionRnSc/hEJwcfq6PaZL2QdYzyReXBbX7Q= github.com/pb33f/go-yaml v0.1.1/go.mod h1:QvWdkHP5VjFYAeHMQUkaPQqREaQnBNOXmWzAjNrnSdo= github.com/pb33f/jsonpath v0.8.4 h1:Yx7fxsKl8scgERL22WhKDs2c6gYNNUonPSWEG8Y194s= diff --git a/tui/v2/model.go b/tui/v2/model.go index 72dec81..639350c 100644 --- a/tui/v2/model.go +++ b/tui/v2/model.go @@ -51,6 +51,7 @@ type ConsoleModel struct { // Data commits []*model.Commit cache *commitCache + counts map[string]commitCounts breakingCfg *whatChangedModel.BreakingRulesConfig runFn RunChangeratorFn @@ -80,6 +81,9 @@ type ConsoleModel struct { palette terminal.Palette } +// commitCounts survives graph eviction without retaining a comparison report. +type commitCounts struct{ total, breaking int } + // RunChangeratorFn is the function signature for running the changerator. // This is injected from the cmd package to avoid import cycles. type RunChangeratorFn func(commit *model.Commit, breakingConfig *whatChangedModel.BreakingRulesConfig) (*changerator.Changerator, *v3.Node, func(), error) @@ -101,6 +105,7 @@ func NewConsoleModel(commits []*model.Commit, breakingConfig *whatChangedModel.B m := ConsoleModel{ commits: commits, cache: newCommitCache(3), + counts: make(map[string]commitCounts), breakingCfg: breakingConfig, runFn: runFn, styles: styles, @@ -114,7 +119,7 @@ func NewConsoleModel(commits []*model.Commit, breakingConfig *whatChangedModel.B m.focus = FocusTree // Build commit table (default width, resized on first WindowSizeMsg) - m.commitTable = buildCommitTable(commits, 120, 0, styles) + m.commitTable = buildCommitTable(commits, 120, 0, styles, m.counts) // Initialize tree with placeholder height (will be recalculated on WindowSizeMsg) m.tree = newTreeModel(nil, 20) @@ -287,7 +292,7 @@ func (m *ConsoleModel) recalculateLayout() { if !m.singleCommit { tableContent := m.tableHeight() - 2 m.commitTable.SetHeight(tableContent - 1) // -1 more for header row - resizeCommitTable(&m.commitTable, m.commits, m.highlightedIdx, m.width, m.styles) + resizeCommitTable(&m.commitTable, m.commits, m.highlightedIdx, m.width, m.styles, m.counts) } bottomH := m.bottomHeight() @@ -415,12 +420,26 @@ func (m *ConsoleModel) loadActiveCommit() { } if ctr == nil { m.emptyState = "No changes detected in this commit" + if commit.Comparable() { + m.counts[commit.Hash] = commitCounts{} + m.refreshCommitRows() + } else { + m.emptyState = "No prior version to compare against" + } m.tree = newTreeModel(nil, m.tree.height) m.showDiff = false m.diffSummary = "" m.diffSummaryH = 0 return } + var counts commitCounts + if ctr.ChangeReport != nil { + counts = commitCounts{ctr.ChangeReport.TotalChanges(), ctr.ChangeReport.TotalBreakingChanges()} + } else if ctr.Config != nil && ctr.Config.DocumentChanges != nil { + counts = commitCounts{ctr.Config.DocumentChanges.TotalChanges(), ctr.Config.DocumentChanges.TotalBreakingChanges()} + } + m.counts[commit.Hash] = counts + m.refreshCommitRows() // Build node change tree ctr.BuildNodeChangeTree(root) @@ -447,6 +466,10 @@ func (m *ConsoleModel) loadActiveCommit() { m.applyCache(entry) } +func (m *ConsoleModel) refreshCommitRows() { + m.commitTable.SetRows(buildCommitRows(m.commits, m.highlightedIdx, m.styles, m.counts)) +} + func (m *ConsoleModel) applyCache(entry *cacheEntry) { m.emptyState = "" m.tree = newTreeModel(entry.treeRoot, m.tree.height) @@ -475,7 +498,7 @@ func (m *ConsoleModel) selectHighlightedCommit() { return } m.highlightedIdx = row - m.commitTable.SetRows(buildCommitRows(m.commits, m.highlightedIdx, m.styles)) + m.refreshCommitRows() if row == m.activeIdx { return // already loaded } @@ -670,10 +693,10 @@ func innerWidth(termWidth int) int { // buildCommitTable creates a bubbles table from the commit list. // Message column fills all remaining width inside the border panel. -func buildCommitTable(commits []*model.Commit, termWidth int, highlightedIdx int, styles consoleStyles) table.Model { +func buildCommitTable(commits []*model.Commit, termWidth int, highlightedIdx int, styles consoleStyles, counts map[string]commitCounts) table.Model { iw := innerWidth(termWidth) cols := commitColumns(iw) - rows := buildCommitRows(commits, highlightedIdx, styles) + rows := buildCommitRows(commits, highlightedIdx, styles, counts) t := table.New( table.WithColumns(cols), @@ -688,10 +711,10 @@ func buildCommitTable(commits []*model.Commit, termWidth int, highlightedIdx int } // resizeCommitTable updates column widths and styles to fill the new terminal width. -func resizeCommitTable(t *table.Model, commits []*model.Commit, highlightedIdx int, termWidth int, styles consoleStyles) { +func resizeCommitTable(t *table.Model, commits []*model.Commit, highlightedIdx int, termWidth int, styles consoleStyles, counts map[string]commitCounts) { iw := innerWidth(termWidth) t.SetColumns(commitColumns(iw)) - t.SetRows(buildCommitRows(commits, highlightedIdx, styles)) + t.SetRows(buildCommitRows(commits, highlightedIdx, styles, counts)) t.SetWidth(iw) t.SetStyles(commitTableStyles(iw, styles)) } @@ -710,7 +733,7 @@ func commitColumns(iw int) []table.Column { } } -func buildCommitRows(commits []*model.Commit, highlightedIdx int, styles consoleStyles) []table.Row { +func buildCommitRows(commits []*model.Commit, highlightedIdx int, styles consoleStyles, counts map[string]commitCounts) []table.Row { rows := make([]table.Row, 0, len(commits)) for i, c := range commits { date := c.CommitDate.Format("01/02/06") @@ -721,7 +744,10 @@ func buildCommitRows(commits []*model.Commit, highlightedIdx int, styles console } changes := "-" breaking := "-" - if c.Changes != nil { + if count, ok := counts[c.Hash]; ok { + changes = fmt.Sprint(count.total) + breaking = fmt.Sprint(count.breaking) + } else if c.Changes != nil { changes = fmt.Sprint(c.Changes.TotalChanges()) breaking = fmt.Sprint(c.Changes.TotalBreakingChanges()) } diff --git a/tui/v2/model_test.go b/tui/v2/model_test.go index 7b2f993..d89d17f 100644 --- a/tui/v2/model_test.go +++ b/tui/v2/model_test.go @@ -4,10 +4,12 @@ package v2 import ( + "strings" "testing" "time" tea "charm.land/bubbletea/v2" + "github.com/charmbracelet/x/ansi" "github.com/pb33f/doctor/changerator" v3 "github.com/pb33f/doctor/model/high/v3" whatChangedModel "github.com/pb33f/libopenapi/what-changed/model" @@ -373,11 +375,57 @@ func TestCacheHit_ReusesResult(t *testing.T) { func TestEmptyChangerator_ShowsMessage(t *testing.T) { commits := makeTestCommits() + commits[0].Source = &model.HistorySource{} + commits[0].OldData = commits[1].Data runFn := func(_ *model.Commit, _ *whatChangedModel.BreakingRulesConfig) (*changerator.Changerator, *v3.Node, func(), error) { return nil, nil, nil, nil } m := NewConsoleModel(commits, nil, true, "test", runFn) assert.Equal(t, "No changes detected in this commit", m.emptyState) + assert.Equal(t, "0", strings.TrimSpace(ansi.Strip(m.commitTable.Rows()[0][3]))) + assert.Equal(t, "0", strings.TrimSpace(ansi.Strip(m.commitTable.Rows()[0][4]))) +} + +func TestConsoleCountsSurviveGraphEviction(t *testing.T) { + commits := makeTestCommits() + calls, released := 0, 0 + runFn := func(_ *model.Commit, _ *whatChangedModel.BreakingRulesConfig) (*changerator.Changerator, *v3.Node, func(), error) { + calls++ + ctr := changerator.NewChangerator(&changerator.ChangeratorConfig{}) + ctr.ChangeReport = changerator.ChangeList{ + {ChangeType: whatChangedModel.Modified, Property: "title"}, + {ChangeType: whatChangedModel.PropertyRemoved, Property: "address", Breaking: true}, + } + return ctr, nil, func() { released++ }, nil + } + m := NewConsoleModel(commits, nil, true, "test", runFn) + defer m.cache.releaseAll() + require.Equal(t, 1, calls, "only the selected revision is compared") + rows := m.commitTable.Rows() + assert.Equal(t, "2", strings.TrimSpace(ansi.Strip(rows[0][3]))) + assert.Equal(t, "1", strings.TrimSpace(ansi.Strip(rows[0][4]))) + assert.Equal(t, "-", strings.TrimSpace(ansi.Strip(rows[1][3]))) + m.cache.maxSize = 1 + m.activeIdx = 1 + m.loadActiveCommit() + require.Equal(t, 1, released, "the first comparison graph must be released") + m.width = 140 + m.recalculateLayout() + assert.Equal(t, "2", strings.TrimSpace(ansi.Strip(m.commitTable.Rows()[0][3]))) + assert.Equal(t, "1", strings.TrimSpace(ansi.Strip(m.commitTable.Rows()[0][4]))) + m.loadActiveCommit() + assert.Equal(t, 2, calls, "a cache hit or resize must not compare again") + assert.Nil(t, commits[0].Changes) + assert.Nil(t, commits[0].ChangeReport) +} + +func TestConsoleFirstRevisionIsNotUnchanged(t *testing.T) { + runFn := func(_ *model.Commit, _ *whatChangedModel.BreakingRulesConfig) (*changerator.Changerator, *v3.Node, func(), error) { + return nil, nil, nil, nil + } + m := NewConsoleModel(makeTestCommits(), nil, true, "test", runFn) + assert.Equal(t, "No prior version to compare against", m.emptyState) + assert.Equal(t, "-", strings.TrimSpace(ansi.Strip(m.commitTable.Rows()[0][3]))) } func TestCodeModal_ModifiedChange_ShowsNewSpec(t *testing.T) { From a1631beabd0aaac0ed40404225188ac72f13f10d Mon Sep 17 00:00:00 2001 From: quobix Date: Thu, 29 Oct 2026 12:52:11 -0400 Subject: [PATCH 03/19] Benchmark AsyncAPI shared-schema report scaling --- cmd/bilingual_benchmark_test.go | 40 ++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/cmd/bilingual_benchmark_test.go b/cmd/bilingual_benchmark_test.go index e3d30e5..573b606 100644 --- a/cmd/bilingual_benchmark_test.go +++ b/cmd/bilingual_benchmark_test.go @@ -1,6 +1,12 @@ package cmd -import "testing" +import ( + "fmt" + "os" + "path/filepath" + "strings" + "testing" +) // BenchmarkOpenAPIReport includes loading, model construction, comparison and // JSON flattening. Run unchanged against the base branch for regression checks. @@ -16,3 +22,35 @@ func BenchmarkOpenAPIReport(b *testing.B) { } } } + +// BenchmarkAsyncAPIReport measures the complete pipeline when many channels +// share one message schema. Fixture generation is outside the measured work. +func BenchmarkAsyncAPIReport(b *testing.B) { + for _, channels := range []int{10, 100, 1000} { + b.Run(fmt.Sprint(channels), func(b *testing.B) { + var spec strings.Builder + spec.WriteString("asyncapi: 3.0.0\ninfo: {title: Synthetic events, version: 1.0.0}\nchannels:\n") + for i := 0; i < channels; i++ { + fmt.Fprintf(&spec, " event%d:\n address: event%d\n messages:\n event: {$ref: '#/components/messages/event'}\n", i, i) + } + spec.WriteString("components:\n messages:\n event:\n payload: {type: string}\n") + dir := b.TempDir() + left, right := filepath.Join(dir, "left.yaml"), filepath.Join(dir, "right.yaml") + for path, data := range map[string]string{left: spec.String(), right: strings.Replace(spec.String(), "type: string", "type: integer", 1)} { + if err := os.WriteFile(path, []byte(data), 0600); err != nil { + b.Fatal(err) + } + } + b.ReportAllocs() + for b.Loop() { + report, err := runLeftRightReport(left, right, summaryOpts{}, nil) + if err != nil { + b.Fatal(err) + } + if report == nil || len(report.Changes) == 0 { + b.Fatal("expected shared schema changes") + } + } + }) + } +} From 00089a959d4aceab222848a692e76310e4bf5f1e Mon Sep 17 00:00:00 2001 From: quobix Date: Thu, 29 Oct 2026 13:23:49 -0400 Subject: [PATCH 04/19] Render native AsyncAPI labels and channel icons in HTML reports --- .ai-docs/bilingual-comparison.md | 5 + html-report/ui/build/static/bundle-lite.js | 281 +++++------ html-report/ui/build/static/bundle.js | 517 +++++++++++---------- html-report/ui/package-lock.json | 8 +- html-report/ui/package.json | 2 +- html-report/ui/src/icon-registry.ts | 1 + 6 files changed, 413 insertions(+), 401 deletions(-) diff --git a/.ai-docs/bilingual-comparison.md b/.ai-docs/bilingual-comparison.md index 9735776..91f8942 100644 --- a/.ai-docs/bilingual-comparison.md +++ b/.ai-docs/bilingual-comparison.md @@ -46,6 +46,11 @@ with `kind`, `originalVersion`, and `modifiedVersion`; direct reports continue to omit synthetic git metadata. HTML items have the same additive metadata and retain the unpruned graph for the document and explorer views. +The shared UI renders native AsyncAPI document labels and send/receive actions. +Channels use hash icons in the document tree and explorer. Icons are embedded +in the offline report bundle; the UI dependency is pinned to a reviewed Git +commit until the corresponding package release. + ## Verification Keep the canonical petstore totals unchanged: summary 42 changes / 18 breaking; diff --git a/html-report/ui/build/static/bundle-lite.js b/html-report/ui/build/static/bundle-lite.js index 4324397..e245894 100644 --- a/html-report/ui/build/static/bundle-lite.js +++ b/html-report/ui/build/static/bundle-lite.js @@ -90,7 +90,7 @@ - `},m=[f,{name:`system`,resolver:e=>e in p?`data:image/svg+xml,${encodeURIComponent(p[e])}`:``}],h=[];function g(e){h.push(e)}function _(e){h=h.filter(t=>t!==e)}function v(e){return m.find(t=>t.name===e)}function y(e,t){b(e),m.push({name:e,resolver:t.resolver,mutator:t.mutator,spriteSheet:t.spriteSheet}),h.forEach(t=>{t.library===e&&t.setIcon()})}function b(e){m=m.filter(t=>t.name!==e)}var x=Object.defineProperty,S=Object.defineProperties,C=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=e=>{throw TypeError(e)},ne=(e,t,n)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t)=>{for(var n in t||={})E.call(t,n)&&ne(e,n,t[n]);if(T)for(var n of T(t))ee.call(t,n)&&ne(e,n,t[n]);return e},ie=(e,t)=>S(e,w(t)),D=(e,t,n,r)=>{for(var i=r>1?void 0:r?C(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&x(t,n,i),i},ae=(e,t,n)=>t.has(e)||te(`Cannot `+n),oe=(e,t,n)=>(ae(e,t,`read from private field`),n?n.call(e):t.get(e)),se=(e,t,n)=>t.has(e)?te(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(ae(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),le={"heartbreak-fill":``,pencil:``,"plus-lg":``,"x-lg":``,x:``,"x-diamond":``,stack:``,"chevron-left":``,"chevron-right":``,"chevron-down":``,"arrow-right":``,"arrow-left":``,"arrow-up":``,"arrow-down":``,"arrow-clockwise":``,"arrow-return-right":``,"grip-vertical":``,"grip-horizontal":``,asterisk:``,capsule:``,"circle-half":``,download:``,search:``,sliders:``,"zoom-in":``,"zoom-out":``,binoculars:``,"broadcast-pin":``,"caret-right-fill":``,"clock-history":``,clock:``,"exclamation-triangle":``,"eye-slash":``,key:``,"node-plus":``,"plus-circle":``,"plus-slash-minus":``,"info-square":``,fullscreen:``,box:``,boxes:``,"box-seam":``,"box-arrow-in-right":``,"box-arrow-left":``,"braces-asterisk":``,"chat-left-quote":``,"code-slash":``,compass:``,cookie:``,"diagram-3":``,envelope:``,"exclamation-circle":``,folder:``,"gear-wide-connected":``,geo:``,path:``,"hdd-network":``,"journal-code":``,link:``,plug:``,"plus-square":``,"question-lg":``,"shield-lock":``,tag:``,tags:``,"telephone-outbound":``,upload:``,"x-square":``,award:``,"person-circle":``,"patch-check":``,stars:``,"dash-square":``,journals:``,"filetype-js":``,"filetype-php":``,"filetype-py":``,"filetype-html":``,markdown:``,"filetype-java":``,"filetype-rb":``,sun:``,moon:``,display:``},ue=``;function de(){y(`default`,{resolver:e=>{let t=le[e]||ue;return!le[e]&&typeof console<`u`&&console.warn(`[openapi-changes] Unknown icon: "${e}" — using fallback`),`data:image/svg+xml,${encodeURIComponent(t)}`}})}var O=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},fe=globalThis,pe=fe.ShadowRoot&&(fe.ShadyCSS===void 0||fe.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,me=Symbol(),he=new WeakMap,ge=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==me)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(pe&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=he.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&he.set(t,e))}return e}toString(){return this.cssText}},_e=e=>new ge(typeof e==`string`?e:e+``,void 0,me),k=(e,...t)=>new ge(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,me),ve=(e,t)=>{if(pe)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=fe.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},ye=pe?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return _e(t)})(e):e,{is:be,defineProperty:xe,getOwnPropertyDescriptor:Se,getOwnPropertyNames:Ce,getOwnPropertySymbols:we,getPrototypeOf:Te}=Object,Ee=globalThis,De=Ee.trustedTypes,Oe=De?De.emptyScript:``,ke=Ee.reactiveElementPolyfillSupport,Ae=(e,t)=>e,je={toAttribute(e,t){switch(t){case Boolean:e=e?Oe:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Me=(e,t)=>!be(e,t),Ne={attribute:!0,type:String,converter:je,reflect:!1,useDefault:!1,hasChanged:Me};Symbol.metadata??=Symbol(`metadata`),Ee.litPropertyMetadata??=new WeakMap;var Pe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ne){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&xe(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=Se(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ne}static _$Ei(){if(this.hasOwnProperty(Ae(`elementProperties`)))return;let e=Te(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ae(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ae(`properties`))){let e=this.properties,t=[...Ce(e),...we(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(ye(e))}else e!==void 0&&t.push(ye(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ve(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?je:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?je:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??Me)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};Pe.elementStyles=[],Pe.shadowRootOptions={mode:`open`},Pe[Ae(`elementProperties`)]=new Map,Pe[Ae(`finalized`)]=new Map,ke?.({ReactiveElement:Pe}),(Ee.reactiveElementVersions??=[]).push(`2.1.2`);var Fe={attribute:!0,type:String,converter:je,reflect:!1,hasChanged:Me},Ie=(e=Fe,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function A(e){return(t,n)=>typeof n==`object`?Ie(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function j(e){return A({...e,state:!0,attribute:!1})}function Le(e){return(t,n)=>{let r=typeof t==`function`?t:t[n];Object.assign(r,e)}}var Re=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function M(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Re(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return Re(n,r,{get(){return a(this)}})}}var ze;function Be(e){return(t,n)=>Re(t,n,{get(){return(this.renderRoot??(ze??=document.createDocumentFragment())).querySelectorAll(e)}})}var Ve=globalThis,He=e=>e,Ue=Ve.trustedTypes,We=Ue?Ue.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Ge=`$lit$`,Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,qe=`?`+Ke,Je=`<${qe}>`,Ye=document,Xe=()=>Ye.createComment(``),Ze=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Qe=Array.isArray,$e=e=>Qe(e)||typeof e?.[Symbol.iterator]==`function`,et=`[ + `},m=[f,{name:`system`,resolver:e=>e in p?`data:image/svg+xml,${encodeURIComponent(p[e])}`:``}],h=[];function g(e){h.push(e)}function _(e){h=h.filter(t=>t!==e)}function v(e){return m.find(t=>t.name===e)}function y(e,t){b(e),m.push({name:e,resolver:t.resolver,mutator:t.mutator,spriteSheet:t.spriteSheet}),h.forEach(t=>{t.library===e&&t.setIcon()})}function b(e){m=m.filter(t=>t.name!==e)}var x=Object.defineProperty,S=Object.defineProperties,C=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=e=>{throw TypeError(e)},ne=(e,t,n)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t)=>{for(var n in t||={})E.call(t,n)&&ne(e,n,t[n]);if(T)for(var n of T(t))ee.call(t,n)&&ne(e,n,t[n]);return e},ie=(e,t)=>S(e,w(t)),D=(e,t,n,r)=>{for(var i=r>1?void 0:r?C(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&x(t,n,i),i},ae=(e,t,n)=>t.has(e)||te(`Cannot `+n),oe=(e,t,n)=>(ae(e,t,`read from private field`),n?n.call(e):t.get(e)),se=(e,t,n)=>t.has(e)?te(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(ae(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),le={hash:``,"heartbreak-fill":``,pencil:``,"plus-lg":``,"x-lg":``,x:``,"x-diamond":``,stack:``,"chevron-left":``,"chevron-right":``,"chevron-down":``,"arrow-right":``,"arrow-left":``,"arrow-up":``,"arrow-down":``,"arrow-clockwise":``,"arrow-return-right":``,"grip-vertical":``,"grip-horizontal":``,asterisk:``,capsule:``,"circle-half":``,download:``,search:``,sliders:``,"zoom-in":``,"zoom-out":``,binoculars:``,"broadcast-pin":``,"caret-right-fill":``,"clock-history":``,clock:``,"exclamation-triangle":``,"eye-slash":``,key:``,"node-plus":``,"plus-circle":``,"plus-slash-minus":``,"info-square":``,fullscreen:``,box:``,boxes:``,"box-seam":``,"box-arrow-in-right":``,"box-arrow-left":``,"braces-asterisk":``,"chat-left-quote":``,"code-slash":``,compass:``,cookie:``,"diagram-3":``,envelope:``,"exclamation-circle":``,folder:``,"gear-wide-connected":``,geo:``,path:``,"hdd-network":``,"journal-code":``,link:``,plug:``,"plus-square":``,"question-lg":``,"shield-lock":``,tag:``,tags:``,"telephone-outbound":``,upload:``,"x-square":``,award:``,"person-circle":``,"patch-check":``,stars:``,"dash-square":``,journals:``,"filetype-js":``,"filetype-php":``,"filetype-py":``,"filetype-html":``,markdown:``,"filetype-java":``,"filetype-rb":``,sun:``,moon:``,display:``},ue=``;function de(){y(`default`,{resolver:e=>{let t=le[e]||ue;return!le[e]&&typeof console<`u`&&console.warn(`[openapi-changes] Unknown icon: "${e}" — using fallback`),`data:image/svg+xml,${encodeURIComponent(t)}`}})}var O=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},fe=globalThis,pe=fe.ShadowRoot&&(fe.ShadyCSS===void 0||fe.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,me=Symbol(),he=new WeakMap,ge=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==me)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(pe&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=he.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&he.set(t,e))}return e}toString(){return this.cssText}},_e=e=>new ge(typeof e==`string`?e:e+``,void 0,me),k=(e,...t)=>new ge(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,me),ve=(e,t)=>{if(pe)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=fe.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},ye=pe?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return _e(t)})(e):e,{is:be,defineProperty:xe,getOwnPropertyDescriptor:Se,getOwnPropertyNames:Ce,getOwnPropertySymbols:we,getPrototypeOf:Te}=Object,Ee=globalThis,De=Ee.trustedTypes,Oe=De?De.emptyScript:``,ke=Ee.reactiveElementPolyfillSupport,Ae=(e,t)=>e,je={toAttribute(e,t){switch(t){case Boolean:e=e?Oe:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Me=(e,t)=>!be(e,t),Ne={attribute:!0,type:String,converter:je,reflect:!1,useDefault:!1,hasChanged:Me};Symbol.metadata??=Symbol(`metadata`),Ee.litPropertyMetadata??=new WeakMap;var Pe=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ne){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&xe(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=Se(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ne}static _$Ei(){if(this.hasOwnProperty(Ae(`elementProperties`)))return;let e=Te(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ae(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ae(`properties`))){let e=this.properties,t=[...Ce(e),...we(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(ye(e))}else e!==void 0&&t.push(ye(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ve(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?je:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?je:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??Me)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};Pe.elementStyles=[],Pe.shadowRootOptions={mode:`open`},Pe[Ae(`elementProperties`)]=new Map,Pe[Ae(`finalized`)]=new Map,ke?.({ReactiveElement:Pe}),(Ee.reactiveElementVersions??=[]).push(`2.1.2`);var Fe={attribute:!0,type:String,converter:je,reflect:!1,hasChanged:Me},Ie=(e=Fe,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function A(e){return(t,n)=>typeof n==`object`?Ie(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function j(e){return A({...e,state:!0,attribute:!1})}function Le(e){return(t,n)=>{let r=typeof t==`function`?t:t[n];Object.assign(r,e)}}var Re=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function M(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return Re(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return Re(n,r,{get(){return a(this)}})}}var ze;function Be(e){return(t,n)=>Re(t,n,{get(){return(this.renderRoot??(ze??=document.createDocumentFragment())).querySelectorAll(e)}})}var Ve=globalThis,He=e=>e,Ue=Ve.trustedTypes,We=Ue?Ue.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Ge=`$lit$`,Ke=`lit$${Math.random().toFixed(9).slice(2)}$`,qe=`?`+Ke,Je=`<${qe}>`,Ye=document,Xe=()=>Ye.createComment(``),Ze=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Qe=Array.isArray,$e=e=>Qe(e)||typeof e?.[Symbol.iterator]==`function`,et=`[ \f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nt=/-->/g,rt=/>/g,it=RegExp(`>|${et}(?:([^\\s"'>=/]+)(${et}*=${et}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),at=/'/g,ot=/"/g,st=/^(?:script|style|textarea|title)$/i,ct=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),N=ct(1),lt=ct(2),ut=Symbol.for(`lit-noChange`),P=Symbol.for(`lit-nothing`),dt=new WeakMap,ft=Ye.createTreeWalker(Ye,129);function pt(e,t){if(!Qe(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return We===void 0?t:We.createHTML(t)}var mt=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?``:t===3?``:``,o=tt;for(let t=0;t`?(o=i??tt,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?it:c[3]===`"`?ot:at):o===ot||o===at?o=it:o===nt||o===rt?o=tt:(o=it,i=void 0);let d=o===it&&e[t+1].startsWith(`/>`)?` `:``;a+=o===tt?n+Je:l>=0?(r.push(s),n.slice(0,l)+Ge+n.slice(l)+Ke+d):n+Ke+(l===-2?t:d)}return[pt(e,a+(e[n]||``)+(t===2?``:t===3?``:``)),r]},ht=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=mt(t,n);if(this.el=e.createElement(l,r),ft.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=ft.nextNode())!==null&&c.length0){i.textContent=Ue?Ue.emptyScript:``;for(let n=0;n2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=P}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=gt(this,e,t,0),a=!Ze(e)||e!==this._$AH&&e!==ut,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new vt(t.insertBefore(Xe(),e),e,void 0,n??{})}return i._$AI(e),i},Dt=globalThis,F=class extends Pe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Et(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ut}};F._$litElement$=!0,F.finalized=!0,Dt.litElementHydrateSupport?.({LitElement:F});var Ot=Dt.litElementPolyfillSupport;Ot?.({LitElement:F}),(Dt.litElementVersions??=[]).push(`4.2.2`);var kt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},At=e=>(...t)=>({_$litDirective$:e,values:t}),jt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Mt=class extends jt{constructor(e){if(super(e),this.it=P,e.type!==kt.CHILD)throw Error(this.constructor.directiveName+`() can only be used in child bindings`)}render(e){if(e===P||e==null)return this._t=void 0,this.it=e;if(e===ut)return e;if(typeof e!=`string`)throw Error(this.constructor.directiveName+`() called with a non-string value`);if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Mt.directiveName=`unsafeHTML`,Mt.resultType=1;var Nt=At(Mt),{I:Pt}=wt,Ft=e=>e,It=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,Lt=e=>e.strings===void 0,Rt=()=>document.createComment(``),zt=(e,t,n)=>{let r=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(n===void 0)n=new Pt(r.insertBefore(Rt(),i),r.insertBefore(Rt(),i),e,e.options);else{let t=n._$AB.nextSibling,a=n._$AM,o=a!==e;if(o){let t;n._$AQ?.(e),n._$AM=e,n._$AP!==void 0&&(t=e._$AU)!==a._$AU&&n._$AP(t)}if(t!==i||o){let e=n._$AA;for(;e!==t;){let t=Ft(e).nextSibling;Ft(r).insertBefore(e,i),e=t}}}return n},Bt=(e,t,n=e)=>(e._$AI(t,n),e),Vt={},Ht=(e,t=Vt)=>e._$AH=t,Ut=e=>e._$AH,Wt=e=>{e._$AR(),e._$AA.remove()},Gt=(e,t,n)=>{let r=new Map;for(let i=t;i<=n;i++)r.set(e[i],i);return r},Kt=At(class extends jt{constructor(e){if(super(e),e.type!==kt.CHILD)throw Error(`repeat() can only be used in text expressions`)}dt(e,t,n){let r;n===void 0?n=t:t!==void 0&&(r=t);let i=[],a=[],o=0;for(let t of e)i[o]=r?r(t,o):o,a[o]=n(t,o),o++;return{values:a,keys:i}}render(e,t,n){return this.dt(e,t,n).values}update(e,[t,n,r]){let i=Ut(e),{values:a,keys:o}=this.dt(t,n,r);if(!Array.isArray(i))return this.ut=o,a;let s=this.ut??=[],c=[],l,u,d=0,f=i.length-1,p=0,m=a.length-1;for(;d<=f&&p<=m;)if(i[d]===null)d++;else if(i[f]===null)f--;else if(s[d]===o[p])c[p]=Bt(i[d],a[p]),d++,p++;else if(s[f]===o[m])c[m]=Bt(i[f],a[m]),f--,m--;else if(s[d]===o[m])c[m]=Bt(i[d],a[m]),zt(e,c[m+1],i[d]),d++,m--;else if(s[f]===o[p])c[p]=Bt(i[f],a[p]),zt(e,i[d],i[f]),f--,p++;else if(l===void 0&&(l=Gt(o,p,m),u=Gt(s,d,f)),l.has(s[d])){if(l.has(s[f])){let t=u.get(o[p]),n=t===void 0?null:i[t];if(n===null){let t=zt(e,i[d]);Bt(t,a[p]),c[p]=t}else c[p]=Bt(n,a[p]),zt(e,i[d],n),i[t]=null;p++}else Wt(i[f]),f--}else Wt(i[d]),d++;for(;p<=m;){let t=zt(e,c[m+1]);Bt(t,a[p]),c[p++]=t}for(;d<=f;){let e=i[d++];e!==null&&Wt(e)}return this.ut=o,Ht(e,c),ut}}),qt=k` :host { display: block; @@ -1710,7 +1710,7 @@ } -`,B;(function(e){e.VERSION=`version`,e.SCHEMA=`schema`,e.SCHEMAS=`schemas`,e.SCHEMA_TYPES=`types`,e.MEDIA_TYPE=`mediaType`,e.HEADER=`header`,e.EXAMPLE=`example`,e.EXAMPLES=`examples`,e.ENCODING=`encoding`,e.REQUEST_BODY=`requestBody`,e.REQUEST_BODIES=`requestBodies`,e.PARAMETER=`parameter`,e.PARAMETER_QUERY=`query`,e.COOKIE=`cookie`,e.PARAMETERS=`parameters`,e.LINK=`link`,e.LINKS=`links`,e.RESPONSE=`response`,e.RESPONSES=`responses`,e.OPERATION=`operation`,e.OPERATIONS=`operations`,e.SECURITY_SCHEME=`securityScheme`,e.SECURITY_SCHEMES=`securitySchemes`,e.EXTERNAL_DOCS=`externalDocs`,e.SECURITY=`security`,e.CALLBACK=`callback`,e.CALLBACKS=`callbacks`,e.PATH_ITEM=`pathItem`,e.PATH_ITEMS=`pathItems`,e.XML=`xml`,e.HEADERS=`headers`,e.SERVER=`server`,e.SERVERS=`servers`,e.SERVER_VARIABLE=`serverVariable`,e.PATHS=`paths`,e.COMPONENTS=`components`,e.CONTACT=`contact`,e.LICENSE=`license`,e.INFO=`info`,e.TAG=`tag`,e.TAGS=`tags`,e.DOCUMENT=`document`,e.WEBHOOK=`webhook`,e.WEBHOOKS=`webhooks`,e.EXTENSIONS=`extensions`,e.EXTENSION=`extension`,e.NO_EXAMPLE=`noExample`,e.POLYMORPHIC=`polymorphic`,e.ERROR=`error`,e.WARNING=`warning`,e.ROLODEX_FILE=`rolodex-file`,e.ROLODEX_FOLDER=`rolodex-dir`,e.OPENAPI=`openapi`,e.UPLOAD=`upload`,e.ADD=`add`,e.UNKNOWN=`unknown`,e.EXPAND_NODE=`expand-node`,e.POV_MODE=`pov-mode`,e.JS=`js`,e.GO=`go`,e.TS=`ts`,e.CS=`cs`,e.C=`c`,e.CPP=`cpp`,e.PHP=`php`,e.PY=`py`,e.HTML=`html`,e.MD=`md`,e.JAVA=`java`,e.RS=`rs`,e.ZIG=`zig`,e.RB=`rb`,e.YAML=`yaml`,e.JSON=`json`})(B||={});var Zi=`pb33f-theme-change`,Qi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$i,V;(function(e){e.tiny=`tiny`,e.small=`small`,e.smaller=`smaller`,e.medium=`medium`,e.large=`large`,e.huge=`huge`})(V||={});var H;(function(e){e.primary=`primary`,e.secondary=`secondary`,e.inverse=`inverse`,e.font=`font`,e.warning=`warning`,e.polymorphic=`polymorphic`,e.error=`error`,e.filtered=`filtered`})(H||={});var ea=$i=class extends F{getSize(){switch(this.size){case V.tiny:return`0.8rem`;case V.smaller:return`1.2rem`;case V.medium:return`1.4rem`;case V.large:return`1.8rem`;case V.huge:return`2rem`;default:return`1rem`}}getIconColor(){switch(this.color){case H.primary:return`var(--primary-color)`;case H.secondary:return`var(--secondary-color)`;case H.warning:return`var(--warn-color)`;case H.polymorphic:return`var(--warn-color)`;case H.error:return`var(--error-color)`;case H.inverse:return`var(--background-color)`;case H.filtered:return`var(--font-color-sub2)`;case H.font:default:return`var(--font-color)`}}constructor(){super(),this._themeHandler=()=>this.requestUpdate(),this.size=V.medium,this.color=H.primary}connectedCallback(){super.connectedCallback(),window.addEventListener(Zi,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(Zi,this._themeHandler)}isLightMode(){return document.documentElement.getAttribute(`theme`)===`light`}getNodeTypeFromIcon(e){return Object.values(B).includes(e)?e:B.SCHEMA}static getIconForType(e){switch(e){case B.DOCUMENT:return`stars`;case B.SCHEMA:return`box`;case B.SCHEMA_TYPES:return`diagram-3`;case B.MEDIA_TYPE:case B.XML:return`code-slash`;case B.HEADER:case B.HEADERS:return`envelope`;case B.EXAMPLE:case B.EXAMPLES:return`chat-left-quote`;case B.ENCODING:return`box-seam`;case B.REQUEST_BODY:case B.REQUEST_BODIES:return`box-arrow-in-right`;case B.PARAMETER:case B.PARAMETERS:case B.SERVER_VARIABLE:return`braces-asterisk`;case B.PARAMETER_QUERY:return`question-lg`;case B.COOKIE:return`cookie`;case B.LINK:case B.LINKS:return`link`;case B.RESPONSE:case B.RESPONSES:return`box-arrow-left`;case B.OPERATION:case B.OPERATIONS:return`gear-wide-connected`;case B.SECURITY_SCHEME:case B.SECURITY_SCHEMES:case B.SECURITY:return`shield-lock`;case B.CALLBACK:case B.CALLBACKS:return`telephone-outbound`;case B.PATH_ITEM:case B.PATH_ITEMS:return`geo`;case B.SERVER:case B.SERVERS:return`hdd-network`;case B.PATHS:return`compass`;case B.COMPONENTS:return`boxes`;case B.CONTACT:return`person-circle`;case B.LICENSE:return`patch-check`;case B.UPLOAD:return`upload`;case B.INFO:return`info-square`;case B.TAG:return`tag`;case B.TAGS:return`tags`;case B.VERSION:return`award`;case B.EXTENSIONS:case B.EXTENSION:return`plug`;case B.WEBHOOK:case B.WEBHOOKS:return`arrow-clockwise`;case B.NO_EXAMPLE:return`exclamation-circle`;case B.POLYMORPHIC:return`diagram-3`;case B.ERROR:return`x-square`;case B.WARNING:return`exclamation-triangle`;case B.ROLODEX_FOLDER:return`folder`;case B.ROLODEX_FILE:return`journal-code`;case B.JS:return`filetype-js`;case B.PHP:return`filetype-php`;case B.PY:return`filetype-py`;case B.HTML:return`filetype-html`;case B.MD:return`markdown`;case B.JAVA:return`filetype-java`;case B.EXTERNAL_DOCS:return`journals`;case B.RB:return`filetype-rb`;case B.EXPAND_NODE:return`node-plus`;case B.POV_MODE:return`binoculars`;default:return`box`}}openapiIcon(){return this.isLightMode()?`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogIzAwMDsiLz4KPC9zdmc+`:`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogI2ZmZjsiLz4KPC9zdmc+`}goIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMzIgMzIuMDAwMDAxIj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0xMDIwLjM2MjIpIj4KICAgIDxlbGxpcHNlIGN4PSItOTA3LjM1NjU3IiBjeT0iNDc5LjkwMDA5IiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0ic2NhbGUoLTEgMSkgcm90YXRlKC02MC41NDgpIi8+CiAgICA8ZWxsaXBzZSBjeD0iLTg5MS41NzY1NCIgY3k9IjUwNy44NDYxIiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0icm90YXRlKC02MC41NDgpIi8+CiAgICA8cGF0aCBmaWxsPSIjMzg0ZTU0IiBkPSJNMTYuMDkxNjkzIDEwMjEuMzY0MmMtMS4xMDU3NDkuMDEtMi4yMTAzNDEuMDQ5LTMuMzE2MDkuMDlDNi44NDIyNTU4IDEwMjEuNjczOCAyIDEwMjYuMzk0MiAyIDEwMzIuMzYyMnYyMGgyOHYtMjBjMC01Ljk2ODMtNC42NjczNDUtMTAuNDkxMi0xMC41OTAyMy0xMC45MDgtMS4xMDU3NS0uMDc4LTIuMjEyMzI4LS4wOTktMy4zMTgwNzctLjA5eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNNC42MDc4ODY3IDEwMjUuMDQ2MmMuNDU5NTY0LjI1OTUgMS44MTgyNjIgMS4yMDEzIDEuOTgwOTgzIDEuNjQ4LjE4MzQwMS41MDM1LjE1OTM4NSAxLjA2NTctLjExNDYxNCAxLjU1MS0uMzQ2NjI3LjYxMzgtMS4wMDUzNDEuOTQ4Ny0xLjY5NjQyMS45MzY1LS4zMzk4ODYtLjAxLTEuNzIwMjgzLS42MzcyLTIuMDQyNTYxLS44MTkyLS45Nzc1NC0uNTUxOS0xLjM1MDc5NS0xLjc0MTgtLjgzMzY4Ni0yLjY1NzYuNTE3MTA5LS45MTU4IDEuNzI4NzQ5LTEuMjEwNyAyLjcwNjI5OS0uNjU4N3oiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuMDg2NjY1OSIgaGVpZ2h0PSIzLjUzMTM2NjMiIHg9IjE0LjQwNjIxMyIgeT0iMTAzNS42ODQyIiBmaWxsLW9wYWNpdHk9Ii4zMjg1MDI0NiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiByeT0iLjYyNDI2MzI5IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMTYgMTAyMy4zNjIyYy05IDAtMTIgMy43MTUzLTEyIDl2MjBoMjRjLS4wNDg4OS03LjM1NjIgMC0xOCAwLTIwIDAtNS4yODQ4LTMtOS0xMi05eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMjcuMDc0MDczIDEwMjUuMDQ2MmMtLjQ1OTU3LjI1OTUtMS44MTgyNTcgMS4yMDEzLTEuOTgwOTc5IDEuNjQ4LS4xODM0MDEuNTAzNS0uMTU5Mzg0IDEuMDY1Ny4xMTQ2MTQgMS41NTEuMzQ2NjI3LjYxMzggMS4wMDUzMzUuOTQ4NyAxLjY5NjQxNS45MzY1LjMzOTg4LS4wMSAxLjcyMDI5LS42MzcyIDIuMDQyNTYtLjgxOTIuOTc3NTQtLjU1MTkgMS4zNTA3OS0xLjc0MTguODMzNjktMi42NTc2LS41MTcxMS0uOTE1OC0xLjcyODc2LTEuMjEwNy0yLjcwNjMtLjY1ODd6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjIxLjE3NTczNCIgY3k9IjEwMzAuMzU0MiIgcj0iNC42NTM3NTQyIiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjEwLjMzOTQ4NiIgY3k9IjEwMzAuMzU0MiIgcj0iNC44MzE2MzQ1IiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxyZWN0IHdpZHRoPSIzLjY2NzM2ODciIGhlaWdodD0iNC4xMDYzNDA5IiB4PSIxNC4xMTU4NjMiIHk9IjEwMzUuOTE3NCIgZmlsbC1vcGFjaXR5PSIuMzI5NDExNzYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcnk9Ii43MjU5MDUzNiIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuNjY3MzY4NyIgaGVpZ2h0PSI0LjEwNjM0MDkiIHg9IjE0LjExNTg2MyIgeT0iMTAzNS4yMjUzIiBmaWxsPSIjZmZmY2ZiIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ5PSIuNzI1OTA1MzYiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxwYXRoIGZpbGwtb3BhY2l0eT0iLjMyOTQxMTc2IiBkPSJNMTkuOTk5NzM1IDEwMzYuNTI4OWMwIC44MzgtLjg3MTIyOCAxLjI2ODItMi4xNDQ3NjYgMS4xNjU5LS4wMjM2NiAwLS4wNDc5NS0uNjAwNC0uMjU0MTQ3LS41ODMyLS41MDM2NjkuMDQyLTEuMDk1OTAyLS4wMi0xLjY4NTk2NC0uMDItLjYxMjkzOSAwLTEuMjA2MzQyLjE4MjYtMS42ODU0OS4wMTctLjExMDIzMy0uMDM4LS4xNzgyOTguNTgzOC0uMjYxNTMyLjU4MTYtMS4yNDM2ODUtLjAzMy0yLjA3ODgwMy0uMzM4My0yLjA3ODgwMy0xLjE2MTggMC0xLjIxMTggMS44MTU2MzUtMi4xOTQxIDQuMDU1MzUxLTIuMTk0MSAyLjIzOTcwNCAwIDQuMDU1MzUxLjk4MjMgNC4wNTUzNTEgMi4xOTQxeiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjYzM4Yzc0IiBkPSJNMTkuOTc3NDE0IDEwMzUuNzAwNGMwIC41Njg1LS40MzM2NTkuODU1NC0xLjEzODA5MSAxLjAwMDEtLjI5MTkzMy4wNi0uNjMwMzcxLjA5Ni0xLjAwMzcxOS4xMTY2LS41NjQwNS4wMzItMS4yMDc3ODIuMDMxLTEuODkxMjIuMDMxLS42NzI4MzQgMC0xLjMwNzE4MiAwLTEuODY0OTA0LS4wMjktLjMwNjI2OC0uMDE3LS41ODk0MjktLjA0My0uODQzMTY0LS4wODQtLjgxMzgzMy0uMTMxOC0xLjMyNDk2Mi0uNDE3LTEuMzI0OTYyLTEuMDM0NCAwLTEuMTYwMSAxLjgwNTY0Mi0yLjEwMDYgNC4wMzMwMy0yLjEwMDYgMi4yMjczNzcgMCA0LjAzMzAzLjk0MDUgNC4wMzMwMyAyLjEwMDZ6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxlbGxpcHNlIGN4PSIxNS45NDQzODIiIGN5PSIxMDMzLjg1MDEiIGZpbGw9IiMyMzIwMWYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcng9IjIuMDgwMTczMyIgcnk9IjEuMzQzNzQ3IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIxMi40MTQyMDEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIyMy4xMTAxMjEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzODRlNTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIuMzk3MzA4NzQiIGQ9Ik01LjAwNTUzNzcgMTAyNy4yNzI3Yy0xLjE3MDQzNS0xLjA4MzUtMi4wMjY5NzMtLjc3MjEtMi4wNDQxNzItLjc0NjMiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM4NGU1NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9Ii4zOTczMDg3NCIgZD0iTTQuMzg1MjQ1NyAxMDI2LjkxNTJjLTEuMTU4NTU3LjAzNi0xLjM0NjcwNC42MzAzLTEuMzM4ODEuNjUyM20yMy41ODQwOTczLS4zOTUxYzEuMTcwNDMtMS4wODM1IDIuMDI2OTctLjc3MjEgMi4wNDQxNy0uNzQ2MyIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzg0ZTU0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS13aWR0aD0iLjM5NzMwODc0IiBkPSJNMjcuMzIxNzczIDEwMjYuNjczYzEuMTU4NTYuMDM2IDEuMzQ2Ny42MzAyIDEuMzM4OC42NTIyIi8+CiAgPC9nPgo8L3N2Zz4=`}typescriptIcon(){return`CjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiB3aWR0aD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiMzMTc4YzYiIGhlaWdodD0iNTEyIiByeD0iNTAiIHdpZHRoPSI1MTIiLz48cmVjdCBmaWxsPSIjMzE3OGM2IiBoZWlnaHQ9IjUxMiIgcng9IjUwIiB3aWR0aD0iNTEyIi8+PHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzE2LjkzOSA0MDcuNDI0djUwLjA2MWM4LjEzOCA0LjE3MiAxNy43NjMgNy4zIDI4Ljg3NSA5LjM4NnMyMi44MjMgMy4xMjkgMzUuMTM1IDMuMTI5YzExLjk5OSAwIDIzLjM5Ny0xLjE0NyAzNC4xOTYtMy40NDIgMTAuNzk5LTIuMjk0IDIwLjI2OC02LjA3NSAyOC40MDYtMTEuMzQyIDguMTM4LTUuMjY2IDE0LjU4MS0xMi4xNSAxOS4zMjgtMjAuNjVzNy4xMjEtMTkuMDA3IDcuMTIxLTMxLjUyMmMwLTkuMDc0LTEuMzU2LTE3LjAyNi00LjA2OS0yMy44NTdzLTYuNjI1LTEyLjkwNi0xMS43MzgtMTguMjI1Yy01LjExMi01LjMxOS0xMS4yNDItMTAuMDkxLTE4LjM4OS0xNC4zMTVzLTE1LjIwNy04LjIxMy0yNC4xOC0xMS45NjdjLTYuNTczLTIuNzEyLTEyLjQ2OC01LjM0NS0xNy42ODUtNy45LTUuMjE3LTIuNTU2LTkuNjUxLTUuMTYzLTEzLjMwMy03LjgyMi0zLjY1Mi0yLjY2LTYuNDY5LTUuNDc2LTguNDUxLTguNDQ4LTEuOTgyLTIuOTczLTIuOTc0LTYuMzM2LTIuOTc0LTEwLjA5MSAwLTMuNDQxLjg4Ny02LjU0NCAyLjY2MS05LjMwOHM0LjI3OC01LjEzNiA3LjUxMi03LjExOGMzLjIzNS0xLjk4MSA3LjE5OS0zLjUyIDExLjg5NC00LjYxNSA0LjY5Ni0xLjA5NSA5LjkxMi0xLjY0MiAxNS42NTEtMS42NDIgNC4xNzMgMCA4LjU4MS4zMTMgMTMuMjI0LjkzOCA0LjY0My42MjYgOS4zMTIgMS41OTEgMTQuMDA4IDIuODk0IDQuNjk1IDEuMzA0IDkuMjU5IDIuOTQ3IDEzLjY5NCA0LjkyOCA0LjQzNCAxLjk4MiA4LjUyOSA0LjI3NiAxMi4yODUgNi44ODR2LTQ2Ljc3NmMtNy42MTYtMi45Mi0xNS45MzctNS4wODQtMjQuOTYyLTYuNDkycy0xOS4zODEtMi4xMTItMzEuMDY2LTIuMTEyYy0xMS44OTUgMC0yMy4xNjMgMS4yNzgtMzMuODA1IDMuODMzcy0yMC4wMDYgNi41NDQtMjguMDkzIDExLjk2N2MtOC4wODYgNS40MjQtMTQuNDc2IDEyLjMzMy0xOS4xNzEgMjAuNzI5LTQuNjk1IDguMzk1LTcuMDQzIDE4LjQzMy03LjA0MyAzMC4xMTQgMCAxNC45MTQgNC4zMDQgMjcuNjM4IDEyLjkxMiAzOC4xNzIgOC42MDcgMTAuNTMzIDIxLjY3NSAxOS40NSAzOS4yMDQgMjYuNzUxIDYuODg2IDIuODE2IDEzLjMwMyA1LjU3OSAxOS4yNSA4LjI5MXMxMS4wODYgNS41MjggMTUuNDE1IDguNDQ4YzQuMzMgMi45MiA3Ljc0NyA2LjEwMSAxMC4yNTIgOS41NDMgMi41MDQgMy40NDEgMy43NTYgNy4zNTIgMy43NTYgMTEuNzMzIDAgMy4yMzMtLjc4MyA2LjIzMS0yLjM0OCA4Ljk5NXMtMy45MzkgNS4xNjItNy4xMjEgNy4xOTYtNy4xNDcgMy42MjQtMTEuODk0IDQuNzcxYy00Ljc0OCAxLjE0OC0xMC4zMDMgMS43MjEtMTYuNjY4IDEuNzIxLTEwLjg1MSAwLTIxLjU5Ny0xLjkwMy0zMi4yNC01LjcxLTEwLjY0Mi0zLjgwNi0yMC41MDItOS41MTYtMjkuNTc5LTE3LjEzem0tODQuMTU5LTEyMy4zNDJoNjQuMjJ2LTQxLjA4MmgtMTc5djQxLjA4Mmg2My45MDZ2MTgyLjkxOGg1MC44NzR6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=`}csIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHdpZHRoPSIyMDQuOCIKICAgaGVpZ2h0PSIyMDQuOCIKICAgdmlld0JveD0iMCAwIDU0LjE4NjY2NiA1NC4xODY2NjciCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzEiCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczEyIj4KICAgIDxsaW5lYXJHcmFkaWVudAogICAgICAgaWQ9ImEiCiAgICAgICB4MT0iNDYuNzczIgogICAgICAgeDI9IjY5LjkwNyIKICAgICAgIHkxPSI4Ni40NjIiCiAgICAgICB5Mj0iMTI2LjczMiIKICAgICAgIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzMy45ODMgLTUxOC45NzQpIHNjYWxlKDguNzg5OTYpIgogICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcAogICAgICAgICBzdG9wLWNvbG9yPSIjOTI3QkU1IgogICAgICAgICBpZD0ic3RvcDEiIC8+CiAgICAgIDxzdG9wCiAgICAgICAgIG9mZnNldD0iMSIKICAgICAgICAgc3RvcC1jb2xvcj0iIzUxMkJENCIKICAgICAgICAgaWQ9InN0b3AyIiAvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxmaWx0ZXIKICAgICAgIGlkPSJiIgogICAgICAgd2lkdGg9IjQyLjg0NSIKICAgICAgIGhlaWdodD0iMzkuMTM2IgogICAgICAgeD0iNDQuNjI5IgogICAgICAgeT0iOTEuODkiCiAgICAgICBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiCiAgICAgICBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8ZmVGbG9vZAogICAgICAgICBmbG9vZC1vcGFjaXR5PSIwIgogICAgICAgICByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgaWQ9ImZlRmxvb2QyIiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MiIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGlkPSJmZU9mZnNldDIiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgzIiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIGlkPSJmZUJsZW5kMyIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgaW49IlNvdXJjZUFscGhhIgogICAgICAgICByZXN1bHQ9ImhhcmRBbHBoYSIKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIgogICAgICAgICBpZD0iZmVDb2xvck1hdHJpeDQiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMSIKICAgICAgICAgaWQ9ImZlT2Zmc2V0NCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyCiAgICAgICAgIHN0ZERldmlhdGlvbj0iMi40OTkiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjQiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg1IiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIG1vZGU9Im5vcm1hbCIKICAgICAgICAgcmVzdWx0PSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBpZD0iZmVCbGVuZDUiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIGluPSJTb3VyY2VBbHBoYSIKICAgICAgICAgcmVzdWx0PSJoYXJkQWxwaGEiCiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg2IiAvPgogICAgICA8ZmVPZmZzZXQKICAgICAgICAgZHk9IjQiCiAgICAgICAgIGlkPSJmZU9mZnNldDYiIC8+CiAgICAgIDxmZUdhdXNzaWFuQmx1cgogICAgICAgICBzdGREZXZpYXRpb249IjIiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjYiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA5IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4NyIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0M19kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ3IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OCIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGR5PSI5IgogICAgICAgICBpZD0iZmVPZmZzZXQ4IiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIyLjUiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjgiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA1IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QzX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NF9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ5IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MTAiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMTUiCiAgICAgICAgIGlkPSJmZU9mZnNldDEwIiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIzIgogICAgICAgICBpZD0iZmVHYXVzc2lhbkJsdXIxMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3Q0X2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW49IlNvdXJjZUdyYXBoaWMiCiAgICAgICAgIGluMj0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9InNoYXBlIgogICAgICAgICBpZD0iZmVCbGVuZDEyIiAvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxwYXRoCiAgICAgZD0iTTEzNS43MzEgMjg1Ljg1djE3My45M2MwIDIxLjUxNyAxMS40NzggNDEuNDE4IDMwLjEyNSA1Mi4xNjhsMTUwLjYyNCA4Ni45NzZhNjAuMjIzIDYwLjIyMyAwIDAgMCA2MC4yNSAwbDE1MC42MjMtODYuOTc2YTYwLjIzNyA2MC4yMzcgMCAwIDAgMzAuMTI0LTUyLjE2OVYyODUuODUxYzAtMjEuNTI1LTExLjQ3Ny00MS40MjMtMzAuMTI0LTUyLjE3N0wzNzYuNzI5IDE0Ni43MmE2MC4yMSA2MC4yMSAwIDAgMC02MC4yNDkgMGwtMTUwLjYyNCA4Ni45NTRhNjAuMjQ1IDYwLjI0NSAwIDAgMC0zMC4xMjUgNTIuMTc3eiIKICAgICBmaWxsPSJ1cmwoI2EpIgogICAgIHRyYW5zZm9ybT0ibWF0cml4KC4xIDAgMCAuMSAtNy41NjcgLTEwLjE4OSkiCiAgICAgaWQ9InBhdGgxMiIgLz4KICA8cGF0aAogICAgIGQ9Ik01NC4wNTYgOTguMDN2Ni44NTVhMS43MTEgMS43MTEgMCAwIDAgMS43MTQgMS43MTQgMS43MTMgMS43MTMgMCAwIDAgMS43MTQtMS43MTQgMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMCA1LjE0IDUuMTQgMCAxIDEtMTAuMjgyIDB2LTYuODU0YTUuMTQgNS4xNCAwIDEgMSAxMC4yODIgMCAxLjcxMiAxLjcxMiAwIDEgMS0zLjQyNyAwIDEuNzEyIDEuNzEyIDAgMSAwLTMuNDI3IDB6bTI3LjQxOCA2Ljg1NWExLjcxMiAxLjcxMiAwIDAgMS0xLjcxNCAxLjcxNGgtMS43MTR2MS43MTNjMCAuNDU1LS4xOC44OTEtLjUwMiAxLjIxMmExLjcxIDEuNzEgMCAwIDEtMi40MjMgMCAxLjcxOSAxLjcxOSAwIDAgMS0uNTAyLTEuMjEydi0xLjcxM2gtMy40Mjd2MS43MTNhMS43MSAxLjcxIDAgMCAxLTEuNzE0IDEuNzE0IDEuNzEgMS43MSAwIDAgMS0xLjcxMy0xLjcxNHYtMS43MTNINjYuMDVhMS43MTMgMS43MTMgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMy40MjdINjYuMDVhMS43MTIgMS43MTIgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMS43MTRhMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMHYxLjcxM2gzLjQyN3YtMS43MTNhMS43MTIgMS43MTIgMCAxIDEgMy40MjcgMHYxLjcxM2gxLjcxNGMuNDU0IDAgLjg5LjE4IDEuMjExLjUwMmExLjcxIDEuNzEgMCAwIDEgMCAyLjQyMyAxLjcxMiAxLjcxMiAwIDAgMS0xLjIxMS41MDNoLTEuNzE0djMuNDI3aDEuNzE0YTEuNzE4IDEuNzE4IDAgMCAxIDEuNzE0IDEuNzEzem0tNi44NTUtNS4xNGgtMy40Mjd2My40MjdoMy40Mjd6IgogICAgIGZpbGw9IiNmZmYiCiAgICAgZmlsdGVyPSJ1cmwoI2IpIgogICAgIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpzY3JlZW4iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoLjg3OSAwIDAgLjg3OSAtMzAuOTY1IC02Mi4wODYpIgogICAgIGlkPSJwYXRoMTMiIC8+Cjwvc3ZnPgo=`}cIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHZpZXdCb3g9IjAgMCAzOC4wMDAwODkgNDIuMDAwMDMxIgogICB3aWR0aD0iMzgwLjAwMDg5IgogICBoZWlnaHQ9IjQyMC4wMDAzMSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMTAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25zOC1jLXByb2dyYW1taW5nLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4wLjEgKDNiYzJlODEzZjUsIDIwMjAtMDktMDcpIj4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGExNiI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgICA8ZGM6dGl0bGU+PC9kYzp0aXRsZT4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGRlZnMKICAgICBpZD0iZGVmczE0IiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTkyMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDU2IgogICAgIGlkPSJuYW1lZHZpZXcxMiIKICAgICBzaG93Z3JpZD0iZmFsc2UiCiAgICAgZml0LW1hcmdpbi10b3A9IjAiCiAgICAgZml0LW1hcmdpbi1sZWZ0PSIwIgogICAgIGZpdC1tYXJnaW4tcmlnaHQ9IjAiCiAgICAgZml0LW1hcmdpbi1ib3R0b209IjAiCiAgICAgaW5rc2NhcGU6em9vbT0iMS40ODk1ODMzIgogICAgIGlua3NjYXBlOmN4PSIxOTAiCiAgICAgaW5rc2NhcGU6Y3k9IjIxMC4wMDI4MiIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzEwIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzI4MzU5MyIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAxNy45MDMsMC4yODYyODE2NiBjIDAuNjc5LC0wLjM4MSAxLjUxNSwtMC4zODEgMi4xOTMsMCBDIDIzLjQ1MSwyLjE2OTI4MTcgMzMuNTQ3LDcuODM3MjgxNyAzNi45MDMsOS43MjAyODE3IDM3LjU4MiwxMC4xMDAyODIgMzgsMTAuODA0MjgyIDM4LDExLjU2NjI4MiBjIDAsMy43NjYgMCwxNS4xMDEgMCwxOC44NjcgMCwwLjc2MiAtMC40MTgsMS40NjYgLTEuMDk3LDEuODQ3IC0zLjM1NSwxLjg4MyAtMTMuNDUxLDcuNTUxIC0xNi44MDcsOS40MzQgLTAuNjc5LDAuMzgxIC0xLjUxNSwwLjM4MSAtMi4xOTMsMCAtMy4zNTUsLTEuODgzIC0xMy40NTEsLTcuNTUxIC0xNi44MDcsLTkuNDM0IC0wLjY3OCwtMC4zODEgLTEuMDk2LC0xLjA4NCAtMS4wOTYsLTEuODQ2IDAsLTMuNzY2IDAsLTE1LjEwMSAwLC0xOC44NjcgMCwtMC43NjIgMC40MTgsLTEuNDY2IDEuMDk3LC0xLjg0NzAwMDMgMy4zNTQsLTEuODgzIDEzLjQ1MiwtNy41NTEgMTYuODA2LC05LjQzNDAwMDA0IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoMiIKICAgICBzdHlsZT0iZmlsbDojMDA0NDgyO2ZpbGwtb3BhY2l0eToxIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzVjNmJjMCIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAwLjMwNCwzMS40MDQyODIgYyAtMC4yNjYsLTAuMzU2IC0wLjMwNCwtMC42OTQgLTAuMzA0LC0xLjE0OSAwLC0zLjc0NCAwLC0xNS4wMTQgMCwtMTguNzU5IDAsLTAuNzU4IDAuNDE3LC0xLjQ1OCAxLjA5NCwtMS44MzYwMDAzIDMuMzQzLC0xLjg3MiAxMy40MDUsLTcuNTA3IDE2Ljc0OCwtOS4zODAwMDAwNCAwLjY3NywtMC4zNzkgMS41OTQsLTAuMzcxIDIuMjcxLDAuMDA4IDMuMzQzLDEuODcyMDAwMDQgMTMuMzcxLDcuNDU5MDAwMDQgMTYuNzE0LDkuMzMxMDAwMDQgMC4yNywwLjE1MiAwLjQ3NiwwLjMzNSAwLjY2LDAuNTc2MDAwMyB6IgogICAgIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICBpZD0icGF0aDQiCiAgICAgc3R5bGU9ImZpbGw6IzY1OWFkMjtmaWxsLW9wYWNpdHk6MSIgLz4KICA8cGF0aAogICAgIGZpbGw9IiNmZmZmZmYiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMTksNy4wMDAyODE3IGMgNy43MjcsMCAxNCw2LjI3MzAwMDMgMTQsMTQuMDAwMDAwMyAwLDcuNzI3IC02LjI3MywxNCAtMTQsMTQgLTcuNzI3LDAgLTE0LC02LjI3MyAtMTQsLTE0IDAsLTcuNzI3IDYuMjczLC0xNC4wMDAwMDAzIDE0LC0xNC4wMDAwMDAzIHogbSAwLDcuMDAwMDAwMyBjIDMuODYzLDAgNywzLjEzNiA3LDcgMCwzLjg2MyAtMy4xMzcsNyAtNyw3IC0zLjg2MywwIC03LC0zLjEzNyAtNywtNyAwLC0zLjg2NCAzLjEzNiwtNyA3LC03IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoNiIgLz4KICA8cGF0aAogICAgIGZpbGw9IiMzOTQ5YWIiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMzcuNDg1LDEwLjIwNTI4MiBjIDAuNTE2LDAuNDgzIDAuNTA2LDEuMjExIDAuNTA2LDEuNzg0IDAsMy43OTUgLTAuMDMyLDE0LjU4OSAwLjAwOSwxOC4zODQgMC4wMDQsMC4zOTYgLTAuMTI3LDAuODEzIC0wLjMyMywxLjEyNyBsIC0xOS4wODQsLTEwLjUgeiIKICAgICBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgaWQ9InBhdGg4IgogICAgIHN0eWxlPSJmaWxsOiMwMDU5OWM7ZmlsbC1vcGFjaXR5OjEiIC8+Cjwvc3ZnPgo=`}cppIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8+CjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjQsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0aD0iMzA2cHgiIGhlaWdodD0iMzQ0LjM1cHgiIHZpZXdCb3g9IjAgMCAzMDYgMzQ0LjM1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAzMDYgMzQ0LjM1IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzAwNTk5QyIgZD0iTTMwMi4xMDcsMjU4LjI2MmMyLjQwMS00LjE1OSwzLjg5My04Ljg0NSwzLjg5My0xMy4wNTNWOTkuMTRjMC00LjIwOC0xLjQ5LTguODkzLTMuODkyLTEzLjA1MkwxNTMsMTcyLjE3NQoJTDMwMi4xMDcsMjU4LjI2MnoiLz4KPHBhdGggZmlsbD0iIzAwNDQ4MiIgZD0iTTE2Ni4yNSwzNDEuMTkzbDEyNi41LTczLjAzNGMzLjY0NC0yLjEwNCw2Ljk1Ni01LjczNyw5LjM1Ny05Ljg5N0wxNTMsMTcyLjE3NUwzLjg5MywyNTguMjYzCgljMi40MDEsNC4xNTksNS43MTQsNy43OTMsOS4zNTcsOS44OTZsMTI2LjUsNzMuMDM0QzE0Ny4wMzcsMzQ1LjQwMSwxNTguOTYzLDM0NS40MDEsMTY2LjI1LDM0MS4xOTN6Ii8+CjxwYXRoIGZpbGw9IiM2NTlBRDIiIGQ9Ik0zMDIuMTA4LDg2LjA4N2MtMi40MDItNC4xNi01LjcxNS03Ljc5My05LjM1OC05Ljg5N0wxNjYuMjUsMy4xNTZjLTcuMjg3LTQuMjA4LTE5LjIxMy00LjIwOC0yNi41LDAKCUwxMy4yNSw3Ni4xOUM1Ljk2Miw4MC4zOTcsMCw5MC43MjUsMCw5OS4xNHYxNDYuMDY5YzAsNC4yMDgsMS40OTEsOC44OTQsMy44OTMsMTMuMDUzTDE1MywxNzIuMTc1TDMwMi4xMDgsODYuMDg3eiIvPgo8Zz4KCTxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xNTMsMjc0LjE3NWMtNTYuMjQzLDAtMTAyLTQ1Ljc1Ny0xMDItMTAyczQ1Ljc1Ny0xMDIsMTAyLTEwMmMzNi4yOTIsMCw3MC4xMzksMTkuNTMsODguMzMxLDUwLjk2OAoJCWwtNDQuMTQzLDI1LjU0NGMtOS4xMDUtMTUuNzM2LTI2LjAzOC0yNS41MTItNDQuMTg4LTI1LjUxMmMtMjguMTIyLDAtNTEsMjIuODc4LTUxLDUxYzAsMjguMTIxLDIyLjg3OCw1MSw1MSw1MQoJCWMxOC4xNTIsMCwzNS4wODUtOS43NzYsNDQuMTkxLTI1LjUxNWw0NC4xNDMsMjUuNTQzQzIyMy4xNDIsMjU0LjY0NCwxODkuMjk0LDI3NC4xNzUsMTUzLDI3NC4xNzV6Ii8+CjwvZz4KPGc+Cgk8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjI1NSwxNjYuNTA4IDI0My42NjYsMTY2LjUwOCAyNDMuNjY2LDE1NS4xNzUgMjMyLjMzNCwxNTUuMTc1IDIzMi4zMzQsMTY2LjUwOCAyMjEsMTY2LjUwOCAKCQkyMjEsMTc3Ljg0MSAyMzIuMzM0LDE3Ny44NDEgMjMyLjMzNCwxODkuMTc1IDI0My42NjYsMTg5LjE3NSAyNDMuNjY2LDE3Ny44NDEgMjU1LDE3Ny44NDEgCSIvPgo8L2c+CjxnPgoJPHBvbHlnb24gZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSIyOTcuNSwxNjYuNTA4IDI4Ni4xNjYsMTY2LjUwOCAyODYuMTY2LDE1NS4xNzUgMjc0LjgzNCwxNTUuMTc1IDI3NC44MzQsMTY2LjUwOCAyNjMuNSwxNjYuNTA4IAoJCTI2My41LDE3Ny44NDEgMjc0LjgzNCwxNzcuODQxIDI3NC44MzQsMTg5LjE3NSAyODYuMTY2LDE4OS4xNzUgMjg2LjE2NiwxNzcuODQxIDI5Ny41LDE3Ny44NDEgCSIvPgo8L2c+Cjwvc3ZnPgo=`}zigLogo(){return`CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTUzIDE0MCI+CjxnIGZpbGw9IiNmN2E0MWQiPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI0NiwyMiAyOCw0NCAxOSwzMCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNDYsMjIgMzMsMzMgMjgsNDQgMjIsNDQgMjIsOTUgMzEsOTUgMjAsMTAwIDEyLDExNyAwLDExNyAwLDIyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiLz4KCQk8cG9seWdvbiBwb2ludHM9IjMxLDk1IDEyLDExNyA0LDEwNiIvPgoJPC9nPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI1NiwyMiA2MiwzNiAzNyw0NCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNTYsMjIgMTExLDIyIDExMSw0NCAzNyw0NCA1NiwzMiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxMTYsOTUgOTcsMTE3IDkwLDEwNCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTE2LDk1IDEwMCwxMDQgOTcsMTE3IDQyLDExNyA0Miw5NSIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTAsMCA1MiwxMTcgMywxNDAgMTAxLDIyIi8+Cgk8L2c+Cgk8Zz4KCQk8cG9seWdvbiBwb2ludHM9IjE0MSwyMiAxNDAsNDAgMTIyLDQ1Ii8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTMsMjIgMTUzLDExNyAxMDYsMTE3IDEyMCwxMDUgMTI1LDk1IDEzMSw5NSAxMzEsNDUgMTIyLDQ1IDEzMiwzNiAxNDEsMjIiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTI1LDk1IDEzMCwxMTAgMTA2LDExNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=`}render(){let e=$i.getIconForType(this.getNodeTypeFromIcon(this.icon));switch(this.icon){case B.OPENAPI:return N``;case B.GO:return N``;case B.TS:return N``;case B.CS:return N``;case B.C:return N``;case B.CPP:return N``;case B.ZIG:return N``}return N` +`,B;(function(e){e.VERSION=`version`,e.SCHEMA=`schema`,e.SCHEMAS=`schemas`,e.SCHEMA_TYPES=`types`,e.MEDIA_TYPE=`mediaType`,e.HEADER=`header`,e.EXAMPLE=`example`,e.EXAMPLES=`examples`,e.ENCODING=`encoding`,e.REQUEST_BODY=`requestBody`,e.REQUEST_BODIES=`requestBodies`,e.PARAMETER=`parameter`,e.PARAMETER_QUERY=`query`,e.COOKIE=`cookie`,e.PARAMETERS=`parameters`,e.LINK=`link`,e.LINKS=`links`,e.RESPONSE=`response`,e.RESPONSES=`responses`,e.OPERATION=`operation`,e.OPERATIONS=`operations`,e.CHANNEL=`channel`,e.CHANNELS=`channels`,e.SECURITY_SCHEME=`securityScheme`,e.SECURITY_SCHEMES=`securitySchemes`,e.EXTERNAL_DOCS=`externalDocs`,e.SECURITY=`security`,e.CALLBACK=`callback`,e.CALLBACKS=`callbacks`,e.PATH_ITEM=`pathItem`,e.PATH_ITEMS=`pathItems`,e.XML=`xml`,e.HEADERS=`headers`,e.SERVER=`server`,e.SERVERS=`servers`,e.SERVER_VARIABLE=`serverVariable`,e.PATHS=`paths`,e.COMPONENTS=`components`,e.CONTACT=`contact`,e.LICENSE=`license`,e.INFO=`info`,e.TAG=`tag`,e.TAGS=`tags`,e.DOCUMENT=`document`,e.WEBHOOK=`webhook`,e.WEBHOOKS=`webhooks`,e.EXTENSIONS=`extensions`,e.EXTENSION=`extension`,e.NO_EXAMPLE=`noExample`,e.POLYMORPHIC=`polymorphic`,e.ERROR=`error`,e.WARNING=`warning`,e.ROLODEX_FILE=`rolodex-file`,e.ROLODEX_FOLDER=`rolodex-dir`,e.OPENAPI=`openapi`,e.UPLOAD=`upload`,e.ADD=`add`,e.UNKNOWN=`unknown`,e.EXPAND_NODE=`expand-node`,e.POV_MODE=`pov-mode`,e.JS=`js`,e.GO=`go`,e.TS=`ts`,e.CS=`cs`,e.C=`c`,e.CPP=`cpp`,e.PHP=`php`,e.PY=`py`,e.HTML=`html`,e.MD=`md`,e.JAVA=`java`,e.RS=`rs`,e.ZIG=`zig`,e.RB=`rb`,e.YAML=`yaml`,e.JSON=`json`})(B||={});var Zi=`pb33f-theme-change`,Qi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$i,V;(function(e){e.tiny=`tiny`,e.small=`small`,e.smaller=`smaller`,e.medium=`medium`,e.large=`large`,e.huge=`huge`})(V||={});var H;(function(e){e.primary=`primary`,e.secondary=`secondary`,e.inverse=`inverse`,e.font=`font`,e.warning=`warning`,e.polymorphic=`polymorphic`,e.error=`error`,e.filtered=`filtered`})(H||={});var ea=$i=class extends F{getSize(){switch(this.size){case V.tiny:return`0.8rem`;case V.smaller:return`1.2rem`;case V.medium:return`1.4rem`;case V.large:return`1.8rem`;case V.huge:return`2rem`;default:return`1rem`}}getIconColor(){switch(this.color){case H.primary:return`var(--primary-color)`;case H.secondary:return`var(--secondary-color)`;case H.warning:return`var(--warn-color)`;case H.polymorphic:return`var(--warn-color)`;case H.error:return`var(--error-color)`;case H.inverse:return`var(--background-color)`;case H.filtered:return`var(--font-color-sub2)`;case H.font:default:return`var(--font-color)`}}constructor(){super(),this._themeHandler=()=>this.requestUpdate(),this.size=V.medium,this.color=H.primary}connectedCallback(){super.connectedCallback(),window.addEventListener(Zi,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(Zi,this._themeHandler)}isLightMode(){return document.documentElement.getAttribute(`theme`)===`light`}getNodeTypeFromIcon(e){return Object.values(B).includes(e)?e:B.SCHEMA}static getIconForType(e){switch(e){case B.DOCUMENT:return`stars`;case B.SCHEMA:return`box`;case B.CHANNEL:case B.CHANNELS:return`hash`;case B.SCHEMA_TYPES:return`diagram-3`;case B.MEDIA_TYPE:case B.XML:return`code-slash`;case B.HEADER:case B.HEADERS:return`envelope`;case B.EXAMPLE:case B.EXAMPLES:return`chat-left-quote`;case B.ENCODING:return`box-seam`;case B.REQUEST_BODY:case B.REQUEST_BODIES:return`box-arrow-in-right`;case B.PARAMETER:case B.PARAMETERS:case B.SERVER_VARIABLE:return`braces-asterisk`;case B.PARAMETER_QUERY:return`question-lg`;case B.COOKIE:return`cookie`;case B.LINK:case B.LINKS:return`link`;case B.RESPONSE:case B.RESPONSES:return`box-arrow-left`;case B.OPERATION:case B.OPERATIONS:return`gear-wide-connected`;case B.SECURITY_SCHEME:case B.SECURITY_SCHEMES:case B.SECURITY:return`shield-lock`;case B.CALLBACK:case B.CALLBACKS:return`telephone-outbound`;case B.PATH_ITEM:case B.PATH_ITEMS:return`geo`;case B.SERVER:case B.SERVERS:return`hdd-network`;case B.PATHS:return`compass`;case B.COMPONENTS:return`boxes`;case B.CONTACT:return`person-circle`;case B.LICENSE:return`patch-check`;case B.UPLOAD:return`upload`;case B.INFO:return`info-square`;case B.TAG:return`tag`;case B.TAGS:return`tags`;case B.VERSION:return`award`;case B.EXTENSIONS:case B.EXTENSION:return`plug`;case B.WEBHOOK:case B.WEBHOOKS:return`arrow-clockwise`;case B.NO_EXAMPLE:return`exclamation-circle`;case B.POLYMORPHIC:return`diagram-3`;case B.ERROR:return`x-square`;case B.WARNING:return`exclamation-triangle`;case B.ROLODEX_FOLDER:return`folder`;case B.ROLODEX_FILE:return`journal-code`;case B.JS:return`filetype-js`;case B.PHP:return`filetype-php`;case B.PY:return`filetype-py`;case B.HTML:return`filetype-html`;case B.MD:return`markdown`;case B.JAVA:return`filetype-java`;case B.EXTERNAL_DOCS:return`journals`;case B.RB:return`filetype-rb`;case B.EXPAND_NODE:return`node-plus`;case B.POV_MODE:return`binoculars`;default:return`box`}}openapiIcon(){return this.isLightMode()?`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogIzAwMDsiLz4KPC9zdmc+`:`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogI2ZmZjsiLz4KPC9zdmc+`}goIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMzIgMzIuMDAwMDAxIj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0xMDIwLjM2MjIpIj4KICAgIDxlbGxpcHNlIGN4PSItOTA3LjM1NjU3IiBjeT0iNDc5LjkwMDA5IiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0ic2NhbGUoLTEgMSkgcm90YXRlKC02MC41NDgpIi8+CiAgICA8ZWxsaXBzZSBjeD0iLTg5MS41NzY1NCIgY3k9IjUwNy44NDYxIiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0icm90YXRlKC02MC41NDgpIi8+CiAgICA8cGF0aCBmaWxsPSIjMzg0ZTU0IiBkPSJNMTYuMDkxNjkzIDEwMjEuMzY0MmMtMS4xMDU3NDkuMDEtMi4yMTAzNDEuMDQ5LTMuMzE2MDkuMDlDNi44NDIyNTU4IDEwMjEuNjczOCAyIDEwMjYuMzk0MiAyIDEwMzIuMzYyMnYyMGgyOHYtMjBjMC01Ljk2ODMtNC42NjczNDUtMTAuNDkxMi0xMC41OTAyMy0xMC45MDgtMS4xMDU3NS0uMDc4LTIuMjEyMzI4LS4wOTktMy4zMTgwNzctLjA5eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNNC42MDc4ODY3IDEwMjUuMDQ2MmMuNDU5NTY0LjI1OTUgMS44MTgyNjIgMS4yMDEzIDEuOTgwOTgzIDEuNjQ4LjE4MzQwMS41MDM1LjE1OTM4NSAxLjA2NTctLjExNDYxNCAxLjU1MS0uMzQ2NjI3LjYxMzgtMS4wMDUzNDEuOTQ4Ny0xLjY5NjQyMS45MzY1LS4zMzk4ODYtLjAxLTEuNzIwMjgzLS42MzcyLTIuMDQyNTYxLS44MTkyLS45Nzc1NC0uNTUxOS0xLjM1MDc5NS0xLjc0MTgtLjgzMzY4Ni0yLjY1NzYuNTE3MTA5LS45MTU4IDEuNzI4NzQ5LTEuMjEwNyAyLjcwNjI5OS0uNjU4N3oiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuMDg2NjY1OSIgaGVpZ2h0PSIzLjUzMTM2NjMiIHg9IjE0LjQwNjIxMyIgeT0iMTAzNS42ODQyIiBmaWxsLW9wYWNpdHk9Ii4zMjg1MDI0NiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiByeT0iLjYyNDI2MzI5IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMTYgMTAyMy4zNjIyYy05IDAtMTIgMy43MTUzLTEyIDl2MjBoMjRjLS4wNDg4OS03LjM1NjIgMC0xOCAwLTIwIDAtNS4yODQ4LTMtOS0xMi05eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMjcuMDc0MDczIDEwMjUuMDQ2MmMtLjQ1OTU3LjI1OTUtMS44MTgyNTcgMS4yMDEzLTEuOTgwOTc5IDEuNjQ4LS4xODM0MDEuNTAzNS0uMTU5Mzg0IDEuMDY1Ny4xMTQ2MTQgMS41NTEuMzQ2NjI3LjYxMzggMS4wMDUzMzUuOTQ4NyAxLjY5NjQxNS45MzY1LjMzOTg4LS4wMSAxLjcyMDI5LS42MzcyIDIuMDQyNTYtLjgxOTIuOTc3NTQtLjU1MTkgMS4zNTA3OS0xLjc0MTguODMzNjktMi42NTc2LS41MTcxMS0uOTE1OC0xLjcyODc2LTEuMjEwNy0yLjcwNjMtLjY1ODd6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjIxLjE3NTczNCIgY3k9IjEwMzAuMzU0MiIgcj0iNC42NTM3NTQyIiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjEwLjMzOTQ4NiIgY3k9IjEwMzAuMzU0MiIgcj0iNC44MzE2MzQ1IiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxyZWN0IHdpZHRoPSIzLjY2NzM2ODciIGhlaWdodD0iNC4xMDYzNDA5IiB4PSIxNC4xMTU4NjMiIHk9IjEwMzUuOTE3NCIgZmlsbC1vcGFjaXR5PSIuMzI5NDExNzYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcnk9Ii43MjU5MDUzNiIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuNjY3MzY4NyIgaGVpZ2h0PSI0LjEwNjM0MDkiIHg9IjE0LjExNTg2MyIgeT0iMTAzNS4yMjUzIiBmaWxsPSIjZmZmY2ZiIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ5PSIuNzI1OTA1MzYiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxwYXRoIGZpbGwtb3BhY2l0eT0iLjMyOTQxMTc2IiBkPSJNMTkuOTk5NzM1IDEwMzYuNTI4OWMwIC44MzgtLjg3MTIyOCAxLjI2ODItMi4xNDQ3NjYgMS4xNjU5LS4wMjM2NiAwLS4wNDc5NS0uNjAwNC0uMjU0MTQ3LS41ODMyLS41MDM2NjkuMDQyLTEuMDk1OTAyLS4wMi0xLjY4NTk2NC0uMDItLjYxMjkzOSAwLTEuMjA2MzQyLjE4MjYtMS42ODU0OS4wMTctLjExMDIzMy0uMDM4LS4xNzgyOTguNTgzOC0uMjYxNTMyLjU4MTYtMS4yNDM2ODUtLjAzMy0yLjA3ODgwMy0uMzM4My0yLjA3ODgwMy0xLjE2MTggMC0xLjIxMTggMS44MTU2MzUtMi4xOTQxIDQuMDU1MzUxLTIuMTk0MSAyLjIzOTcwNCAwIDQuMDU1MzUxLjk4MjMgNC4wNTUzNTEgMi4xOTQxeiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjYzM4Yzc0IiBkPSJNMTkuOTc3NDE0IDEwMzUuNzAwNGMwIC41Njg1LS40MzM2NTkuODU1NC0xLjEzODA5MSAxLjAwMDEtLjI5MTkzMy4wNi0uNjMwMzcxLjA5Ni0xLjAwMzcxOS4xMTY2LS41NjQwNS4wMzItMS4yMDc3ODIuMDMxLTEuODkxMjIuMDMxLS42NzI4MzQgMC0xLjMwNzE4MiAwLTEuODY0OTA0LS4wMjktLjMwNjI2OC0uMDE3LS41ODk0MjktLjA0My0uODQzMTY0LS4wODQtLjgxMzgzMy0uMTMxOC0xLjMyNDk2Mi0uNDE3LTEuMzI0OTYyLTEuMDM0NCAwLTEuMTYwMSAxLjgwNTY0Mi0yLjEwMDYgNC4wMzMwMy0yLjEwMDYgMi4yMjczNzcgMCA0LjAzMzAzLjk0MDUgNC4wMzMwMyAyLjEwMDZ6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxlbGxpcHNlIGN4PSIxNS45NDQzODIiIGN5PSIxMDMzLjg1MDEiIGZpbGw9IiMyMzIwMWYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcng9IjIuMDgwMTczMyIgcnk9IjEuMzQzNzQ3IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIxMi40MTQyMDEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIyMy4xMTAxMjEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzODRlNTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIuMzk3MzA4NzQiIGQ9Ik01LjAwNTUzNzcgMTAyNy4yNzI3Yy0xLjE3MDQzNS0xLjA4MzUtMi4wMjY5NzMtLjc3MjEtMi4wNDQxNzItLjc0NjMiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM4NGU1NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9Ii4zOTczMDg3NCIgZD0iTTQuMzg1MjQ1NyAxMDI2LjkxNTJjLTEuMTU4NTU3LjAzNi0xLjM0NjcwNC42MzAzLTEuMzM4ODEuNjUyM20yMy41ODQwOTczLS4zOTUxYzEuMTcwNDMtMS4wODM1IDIuMDI2OTctLjc3MjEgMi4wNDQxNy0uNzQ2MyIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzg0ZTU0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS13aWR0aD0iLjM5NzMwODc0IiBkPSJNMjcuMzIxNzczIDEwMjYuNjczYzEuMTU4NTYuMDM2IDEuMzQ2Ny42MzAyIDEuMzM4OC42NTIyIi8+CiAgPC9nPgo8L3N2Zz4=`}typescriptIcon(){return`CjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiB3aWR0aD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiMzMTc4YzYiIGhlaWdodD0iNTEyIiByeD0iNTAiIHdpZHRoPSI1MTIiLz48cmVjdCBmaWxsPSIjMzE3OGM2IiBoZWlnaHQ9IjUxMiIgcng9IjUwIiB3aWR0aD0iNTEyIi8+PHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzE2LjkzOSA0MDcuNDI0djUwLjA2MWM4LjEzOCA0LjE3MiAxNy43NjMgNy4zIDI4Ljg3NSA5LjM4NnMyMi44MjMgMy4xMjkgMzUuMTM1IDMuMTI5YzExLjk5OSAwIDIzLjM5Ny0xLjE0NyAzNC4xOTYtMy40NDIgMTAuNzk5LTIuMjk0IDIwLjI2OC02LjA3NSAyOC40MDYtMTEuMzQyIDguMTM4LTUuMjY2IDE0LjU4MS0xMi4xNSAxOS4zMjgtMjAuNjVzNy4xMjEtMTkuMDA3IDcuMTIxLTMxLjUyMmMwLTkuMDc0LTEuMzU2LTE3LjAyNi00LjA2OS0yMy44NTdzLTYuNjI1LTEyLjkwNi0xMS43MzgtMTguMjI1Yy01LjExMi01LjMxOS0xMS4yNDItMTAuMDkxLTE4LjM4OS0xNC4zMTVzLTE1LjIwNy04LjIxMy0yNC4xOC0xMS45NjdjLTYuNTczLTIuNzEyLTEyLjQ2OC01LjM0NS0xNy42ODUtNy45LTUuMjE3LTIuNTU2LTkuNjUxLTUuMTYzLTEzLjMwMy03LjgyMi0zLjY1Mi0yLjY2LTYuNDY5LTUuNDc2LTguNDUxLTguNDQ4LTEuOTgyLTIuOTczLTIuOTc0LTYuMzM2LTIuOTc0LTEwLjA5MSAwLTMuNDQxLjg4Ny02LjU0NCAyLjY2MS05LjMwOHM0LjI3OC01LjEzNiA3LjUxMi03LjExOGMzLjIzNS0xLjk4MSA3LjE5OS0zLjUyIDExLjg5NC00LjYxNSA0LjY5Ni0xLjA5NSA5LjkxMi0xLjY0MiAxNS42NTEtMS42NDIgNC4xNzMgMCA4LjU4MS4zMTMgMTMuMjI0LjkzOCA0LjY0My42MjYgOS4zMTIgMS41OTEgMTQuMDA4IDIuODk0IDQuNjk1IDEuMzA0IDkuMjU5IDIuOTQ3IDEzLjY5NCA0LjkyOCA0LjQzNCAxLjk4MiA4LjUyOSA0LjI3NiAxMi4yODUgNi44ODR2LTQ2Ljc3NmMtNy42MTYtMi45Mi0xNS45MzctNS4wODQtMjQuOTYyLTYuNDkycy0xOS4zODEtMi4xMTItMzEuMDY2LTIuMTEyYy0xMS44OTUgMC0yMy4xNjMgMS4yNzgtMzMuODA1IDMuODMzcy0yMC4wMDYgNi41NDQtMjguMDkzIDExLjk2N2MtOC4wODYgNS40MjQtMTQuNDc2IDEyLjMzMy0xOS4xNzEgMjAuNzI5LTQuNjk1IDguMzk1LTcuMDQzIDE4LjQzMy03LjA0MyAzMC4xMTQgMCAxNC45MTQgNC4zMDQgMjcuNjM4IDEyLjkxMiAzOC4xNzIgOC42MDcgMTAuNTMzIDIxLjY3NSAxOS40NSAzOS4yMDQgMjYuNzUxIDYuODg2IDIuODE2IDEzLjMwMyA1LjU3OSAxOS4yNSA4LjI5MXMxMS4wODYgNS41MjggMTUuNDE1IDguNDQ4YzQuMzMgMi45MiA3Ljc0NyA2LjEwMSAxMC4yNTIgOS41NDMgMi41MDQgMy40NDEgMy43NTYgNy4zNTIgMy43NTYgMTEuNzMzIDAgMy4yMzMtLjc4MyA2LjIzMS0yLjM0OCA4Ljk5NXMtMy45MzkgNS4xNjItNy4xMjEgNy4xOTYtNy4xNDcgMy42MjQtMTEuODk0IDQuNzcxYy00Ljc0OCAxLjE0OC0xMC4zMDMgMS43MjEtMTYuNjY4IDEuNzIxLTEwLjg1MSAwLTIxLjU5Ny0xLjkwMy0zMi4yNC01LjcxLTEwLjY0Mi0zLjgwNi0yMC41MDItOS41MTYtMjkuNTc5LTE3LjEzem0tODQuMTU5LTEyMy4zNDJoNjQuMjJ2LTQxLjA4MmgtMTc5djQxLjA4Mmg2My45MDZ2MTgyLjkxOGg1MC44NzR6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=`}csIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHdpZHRoPSIyMDQuOCIKICAgaGVpZ2h0PSIyMDQuOCIKICAgdmlld0JveD0iMCAwIDU0LjE4NjY2NiA1NC4xODY2NjciCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzEiCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczEyIj4KICAgIDxsaW5lYXJHcmFkaWVudAogICAgICAgaWQ9ImEiCiAgICAgICB4MT0iNDYuNzczIgogICAgICAgeDI9IjY5LjkwNyIKICAgICAgIHkxPSI4Ni40NjIiCiAgICAgICB5Mj0iMTI2LjczMiIKICAgICAgIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzMy45ODMgLTUxOC45NzQpIHNjYWxlKDguNzg5OTYpIgogICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcAogICAgICAgICBzdG9wLWNvbG9yPSIjOTI3QkU1IgogICAgICAgICBpZD0ic3RvcDEiIC8+CiAgICAgIDxzdG9wCiAgICAgICAgIG9mZnNldD0iMSIKICAgICAgICAgc3RvcC1jb2xvcj0iIzUxMkJENCIKICAgICAgICAgaWQ9InN0b3AyIiAvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxmaWx0ZXIKICAgICAgIGlkPSJiIgogICAgICAgd2lkdGg9IjQyLjg0NSIKICAgICAgIGhlaWdodD0iMzkuMTM2IgogICAgICAgeD0iNDQuNjI5IgogICAgICAgeT0iOTEuODkiCiAgICAgICBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiCiAgICAgICBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8ZmVGbG9vZAogICAgICAgICBmbG9vZC1vcGFjaXR5PSIwIgogICAgICAgICByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgaWQ9ImZlRmxvb2QyIiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MiIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGlkPSJmZU9mZnNldDIiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgzIiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIGlkPSJmZUJsZW5kMyIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgaW49IlNvdXJjZUFscGhhIgogICAgICAgICByZXN1bHQ9ImhhcmRBbHBoYSIKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIgogICAgICAgICBpZD0iZmVDb2xvck1hdHJpeDQiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMSIKICAgICAgICAgaWQ9ImZlT2Zmc2V0NCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyCiAgICAgICAgIHN0ZERldmlhdGlvbj0iMi40OTkiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjQiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg1IiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIG1vZGU9Im5vcm1hbCIKICAgICAgICAgcmVzdWx0PSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBpZD0iZmVCbGVuZDUiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIGluPSJTb3VyY2VBbHBoYSIKICAgICAgICAgcmVzdWx0PSJoYXJkQWxwaGEiCiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg2IiAvPgogICAgICA8ZmVPZmZzZXQKICAgICAgICAgZHk9IjQiCiAgICAgICAgIGlkPSJmZU9mZnNldDYiIC8+CiAgICAgIDxmZUdhdXNzaWFuQmx1cgogICAgICAgICBzdGREZXZpYXRpb249IjIiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjYiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA5IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4NyIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0M19kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ3IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OCIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGR5PSI5IgogICAgICAgICBpZD0iZmVPZmZzZXQ4IiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIyLjUiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjgiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA1IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QzX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NF9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ5IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MTAiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMTUiCiAgICAgICAgIGlkPSJmZU9mZnNldDEwIiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIzIgogICAgICAgICBpZD0iZmVHYXVzc2lhbkJsdXIxMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3Q0X2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW49IlNvdXJjZUdyYXBoaWMiCiAgICAgICAgIGluMj0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9InNoYXBlIgogICAgICAgICBpZD0iZmVCbGVuZDEyIiAvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxwYXRoCiAgICAgZD0iTTEzNS43MzEgMjg1Ljg1djE3My45M2MwIDIxLjUxNyAxMS40NzggNDEuNDE4IDMwLjEyNSA1Mi4xNjhsMTUwLjYyNCA4Ni45NzZhNjAuMjIzIDYwLjIyMyAwIDAgMCA2MC4yNSAwbDE1MC42MjMtODYuOTc2YTYwLjIzNyA2MC4yMzcgMCAwIDAgMzAuMTI0LTUyLjE2OVYyODUuODUxYzAtMjEuNTI1LTExLjQ3Ny00MS40MjMtMzAuMTI0LTUyLjE3N0wzNzYuNzI5IDE0Ni43MmE2MC4yMSA2MC4yMSAwIDAgMC02MC4yNDkgMGwtMTUwLjYyNCA4Ni45NTRhNjAuMjQ1IDYwLjI0NSAwIDAgMC0zMC4xMjUgNTIuMTc3eiIKICAgICBmaWxsPSJ1cmwoI2EpIgogICAgIHRyYW5zZm9ybT0ibWF0cml4KC4xIDAgMCAuMSAtNy41NjcgLTEwLjE4OSkiCiAgICAgaWQ9InBhdGgxMiIgLz4KICA8cGF0aAogICAgIGQ9Ik01NC4wNTYgOTguMDN2Ni44NTVhMS43MTEgMS43MTEgMCAwIDAgMS43MTQgMS43MTQgMS43MTMgMS43MTMgMCAwIDAgMS43MTQtMS43MTQgMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMCA1LjE0IDUuMTQgMCAxIDEtMTAuMjgyIDB2LTYuODU0YTUuMTQgNS4xNCAwIDEgMSAxMC4yODIgMCAxLjcxMiAxLjcxMiAwIDEgMS0zLjQyNyAwIDEuNzEyIDEuNzEyIDAgMSAwLTMuNDI3IDB6bTI3LjQxOCA2Ljg1NWExLjcxMiAxLjcxMiAwIDAgMS0xLjcxNCAxLjcxNGgtMS43MTR2MS43MTNjMCAuNDU1LS4xOC44OTEtLjUwMiAxLjIxMmExLjcxIDEuNzEgMCAwIDEtMi40MjMgMCAxLjcxOSAxLjcxOSAwIDAgMS0uNTAyLTEuMjEydi0xLjcxM2gtMy40Mjd2MS43MTNhMS43MSAxLjcxIDAgMCAxLTEuNzE0IDEuNzE0IDEuNzEgMS43MSAwIDAgMS0xLjcxMy0xLjcxNHYtMS43MTNINjYuMDVhMS43MTMgMS43MTMgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMy40MjdINjYuMDVhMS43MTIgMS43MTIgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMS43MTRhMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMHYxLjcxM2gzLjQyN3YtMS43MTNhMS43MTIgMS43MTIgMCAxIDEgMy40MjcgMHYxLjcxM2gxLjcxNGMuNDU0IDAgLjg5LjE4IDEuMjExLjUwMmExLjcxIDEuNzEgMCAwIDEgMCAyLjQyMyAxLjcxMiAxLjcxMiAwIDAgMS0xLjIxMS41MDNoLTEuNzE0djMuNDI3aDEuNzE0YTEuNzE4IDEuNzE4IDAgMCAxIDEuNzE0IDEuNzEzem0tNi44NTUtNS4xNGgtMy40Mjd2My40MjdoMy40Mjd6IgogICAgIGZpbGw9IiNmZmYiCiAgICAgZmlsdGVyPSJ1cmwoI2IpIgogICAgIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpzY3JlZW4iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoLjg3OSAwIDAgLjg3OSAtMzAuOTY1IC02Mi4wODYpIgogICAgIGlkPSJwYXRoMTMiIC8+Cjwvc3ZnPgo=`}cIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHZpZXdCb3g9IjAgMCAzOC4wMDAwODkgNDIuMDAwMDMxIgogICB3aWR0aD0iMzgwLjAwMDg5IgogICBoZWlnaHQ9IjQyMC4wMDAzMSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMTAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25zOC1jLXByb2dyYW1taW5nLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4wLjEgKDNiYzJlODEzZjUsIDIwMjAtMDktMDcpIj4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGExNiI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgICA8ZGM6dGl0bGU+PC9kYzp0aXRsZT4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGRlZnMKICAgICBpZD0iZGVmczE0IiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTkyMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDU2IgogICAgIGlkPSJuYW1lZHZpZXcxMiIKICAgICBzaG93Z3JpZD0iZmFsc2UiCiAgICAgZml0LW1hcmdpbi10b3A9IjAiCiAgICAgZml0LW1hcmdpbi1sZWZ0PSIwIgogICAgIGZpdC1tYXJnaW4tcmlnaHQ9IjAiCiAgICAgZml0LW1hcmdpbi1ib3R0b209IjAiCiAgICAgaW5rc2NhcGU6em9vbT0iMS40ODk1ODMzIgogICAgIGlua3NjYXBlOmN4PSIxOTAiCiAgICAgaW5rc2NhcGU6Y3k9IjIxMC4wMDI4MiIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzEwIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzI4MzU5MyIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAxNy45MDMsMC4yODYyODE2NiBjIDAuNjc5LC0wLjM4MSAxLjUxNSwtMC4zODEgMi4xOTMsMCBDIDIzLjQ1MSwyLjE2OTI4MTcgMzMuNTQ3LDcuODM3MjgxNyAzNi45MDMsOS43MjAyODE3IDM3LjU4MiwxMC4xMDAyODIgMzgsMTAuODA0MjgyIDM4LDExLjU2NjI4MiBjIDAsMy43NjYgMCwxNS4xMDEgMCwxOC44NjcgMCwwLjc2MiAtMC40MTgsMS40NjYgLTEuMDk3LDEuODQ3IC0zLjM1NSwxLjg4MyAtMTMuNDUxLDcuNTUxIC0xNi44MDcsOS40MzQgLTAuNjc5LDAuMzgxIC0xLjUxNSwwLjM4MSAtMi4xOTMsMCAtMy4zNTUsLTEuODgzIC0xMy40NTEsLTcuNTUxIC0xNi44MDcsLTkuNDM0IC0wLjY3OCwtMC4zODEgLTEuMDk2LC0xLjA4NCAtMS4wOTYsLTEuODQ2IDAsLTMuNzY2IDAsLTE1LjEwMSAwLC0xOC44NjcgMCwtMC43NjIgMC40MTgsLTEuNDY2IDEuMDk3LC0xLjg0NzAwMDMgMy4zNTQsLTEuODgzIDEzLjQ1MiwtNy41NTEgMTYuODA2LC05LjQzNDAwMDA0IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoMiIKICAgICBzdHlsZT0iZmlsbDojMDA0NDgyO2ZpbGwtb3BhY2l0eToxIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzVjNmJjMCIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAwLjMwNCwzMS40MDQyODIgYyAtMC4yNjYsLTAuMzU2IC0wLjMwNCwtMC42OTQgLTAuMzA0LC0xLjE0OSAwLC0zLjc0NCAwLC0xNS4wMTQgMCwtMTguNzU5IDAsLTAuNzU4IDAuNDE3LC0xLjQ1OCAxLjA5NCwtMS44MzYwMDAzIDMuMzQzLC0xLjg3MiAxMy40MDUsLTcuNTA3IDE2Ljc0OCwtOS4zODAwMDAwNCAwLjY3NywtMC4zNzkgMS41OTQsLTAuMzcxIDIuMjcxLDAuMDA4IDMuMzQzLDEuODcyMDAwMDQgMTMuMzcxLDcuNDU5MDAwMDQgMTYuNzE0LDkuMzMxMDAwMDQgMC4yNywwLjE1MiAwLjQ3NiwwLjMzNSAwLjY2LDAuNTc2MDAwMyB6IgogICAgIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICBpZD0icGF0aDQiCiAgICAgc3R5bGU9ImZpbGw6IzY1OWFkMjtmaWxsLW9wYWNpdHk6MSIgLz4KICA8cGF0aAogICAgIGZpbGw9IiNmZmZmZmYiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMTksNy4wMDAyODE3IGMgNy43MjcsMCAxNCw2LjI3MzAwMDMgMTQsMTQuMDAwMDAwMyAwLDcuNzI3IC02LjI3MywxNCAtMTQsMTQgLTcuNzI3LDAgLTE0LC02LjI3MyAtMTQsLTE0IDAsLTcuNzI3IDYuMjczLC0xNC4wMDAwMDAzIDE0LC0xNC4wMDAwMDAzIHogbSAwLDcuMDAwMDAwMyBjIDMuODYzLDAgNywzLjEzNiA3LDcgMCwzLjg2MyAtMy4xMzcsNyAtNyw3IC0zLjg2MywwIC03LC0zLjEzNyAtNywtNyAwLC0zLjg2NCAzLjEzNiwtNyA3LC03IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoNiIgLz4KICA8cGF0aAogICAgIGZpbGw9IiMzOTQ5YWIiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMzcuNDg1LDEwLjIwNTI4MiBjIDAuNTE2LDAuNDgzIDAuNTA2LDEuMjExIDAuNTA2LDEuNzg0IDAsMy43OTUgLTAuMDMyLDE0LjU4OSAwLjAwOSwxOC4zODQgMC4wMDQsMC4zOTYgLTAuMTI3LDAuODEzIC0wLjMyMywxLjEyNyBsIC0xOS4wODQsLTEwLjUgeiIKICAgICBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgaWQ9InBhdGg4IgogICAgIHN0eWxlPSJmaWxsOiMwMDU5OWM7ZmlsbC1vcGFjaXR5OjEiIC8+Cjwvc3ZnPgo=`}cppIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8+CjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjQsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0aD0iMzA2cHgiIGhlaWdodD0iMzQ0LjM1cHgiIHZpZXdCb3g9IjAgMCAzMDYgMzQ0LjM1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAzMDYgMzQ0LjM1IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzAwNTk5QyIgZD0iTTMwMi4xMDcsMjU4LjI2MmMyLjQwMS00LjE1OSwzLjg5My04Ljg0NSwzLjg5My0xMy4wNTNWOTkuMTRjMC00LjIwOC0xLjQ5LTguODkzLTMuODkyLTEzLjA1MkwxNTMsMTcyLjE3NQoJTDMwMi4xMDcsMjU4LjI2MnoiLz4KPHBhdGggZmlsbD0iIzAwNDQ4MiIgZD0iTTE2Ni4yNSwzNDEuMTkzbDEyNi41LTczLjAzNGMzLjY0NC0yLjEwNCw2Ljk1Ni01LjczNyw5LjM1Ny05Ljg5N0wxNTMsMTcyLjE3NUwzLjg5MywyNTguMjYzCgljMi40MDEsNC4xNTksNS43MTQsNy43OTMsOS4zNTcsOS44OTZsMTI2LjUsNzMuMDM0QzE0Ny4wMzcsMzQ1LjQwMSwxNTguOTYzLDM0NS40MDEsMTY2LjI1LDM0MS4xOTN6Ii8+CjxwYXRoIGZpbGw9IiM2NTlBRDIiIGQ9Ik0zMDIuMTA4LDg2LjA4N2MtMi40MDItNC4xNi01LjcxNS03Ljc5My05LjM1OC05Ljg5N0wxNjYuMjUsMy4xNTZjLTcuMjg3LTQuMjA4LTE5LjIxMy00LjIwOC0yNi41LDAKCUwxMy4yNSw3Ni4xOUM1Ljk2Miw4MC4zOTcsMCw5MC43MjUsMCw5OS4xNHYxNDYuMDY5YzAsNC4yMDgsMS40OTEsOC44OTQsMy44OTMsMTMuMDUzTDE1MywxNzIuMTc1TDMwMi4xMDgsODYuMDg3eiIvPgo8Zz4KCTxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xNTMsMjc0LjE3NWMtNTYuMjQzLDAtMTAyLTQ1Ljc1Ny0xMDItMTAyczQ1Ljc1Ny0xMDIsMTAyLTEwMmMzNi4yOTIsMCw3MC4xMzksMTkuNTMsODguMzMxLDUwLjk2OAoJCWwtNDQuMTQzLDI1LjU0NGMtOS4xMDUtMTUuNzM2LTI2LjAzOC0yNS41MTItNDQuMTg4LTI1LjUxMmMtMjguMTIyLDAtNTEsMjIuODc4LTUxLDUxYzAsMjguMTIxLDIyLjg3OCw1MSw1MSw1MQoJCWMxOC4xNTIsMCwzNS4wODUtOS43NzYsNDQuMTkxLTI1LjUxNWw0NC4xNDMsMjUuNTQzQzIyMy4xNDIsMjU0LjY0NCwxODkuMjk0LDI3NC4xNzUsMTUzLDI3NC4xNzV6Ii8+CjwvZz4KPGc+Cgk8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjI1NSwxNjYuNTA4IDI0My42NjYsMTY2LjUwOCAyNDMuNjY2LDE1NS4xNzUgMjMyLjMzNCwxNTUuMTc1IDIzMi4zMzQsMTY2LjUwOCAyMjEsMTY2LjUwOCAKCQkyMjEsMTc3Ljg0MSAyMzIuMzM0LDE3Ny44NDEgMjMyLjMzNCwxODkuMTc1IDI0My42NjYsMTg5LjE3NSAyNDMuNjY2LDE3Ny44NDEgMjU1LDE3Ny44NDEgCSIvPgo8L2c+CjxnPgoJPHBvbHlnb24gZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSIyOTcuNSwxNjYuNTA4IDI4Ni4xNjYsMTY2LjUwOCAyODYuMTY2LDE1NS4xNzUgMjc0LjgzNCwxNTUuMTc1IDI3NC44MzQsMTY2LjUwOCAyNjMuNSwxNjYuNTA4IAoJCTI2My41LDE3Ny44NDEgMjc0LjgzNCwxNzcuODQxIDI3NC44MzQsMTg5LjE3NSAyODYuMTY2LDE4OS4xNzUgMjg2LjE2NiwxNzcuODQxIDI5Ny41LDE3Ny44NDEgCSIvPgo8L2c+Cjwvc3ZnPgo=`}zigLogo(){return`CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTUzIDE0MCI+CjxnIGZpbGw9IiNmN2E0MWQiPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI0NiwyMiAyOCw0NCAxOSwzMCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNDYsMjIgMzMsMzMgMjgsNDQgMjIsNDQgMjIsOTUgMzEsOTUgMjAsMTAwIDEyLDExNyAwLDExNyAwLDIyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiLz4KCQk8cG9seWdvbiBwb2ludHM9IjMxLDk1IDEyLDExNyA0LDEwNiIvPgoJPC9nPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI1NiwyMiA2MiwzNiAzNyw0NCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNTYsMjIgMTExLDIyIDExMSw0NCAzNyw0NCA1NiwzMiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxMTYsOTUgOTcsMTE3IDkwLDEwNCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTE2LDk1IDEwMCwxMDQgOTcsMTE3IDQyLDExNyA0Miw5NSIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTAsMCA1MiwxMTcgMywxNDAgMTAxLDIyIi8+Cgk8L2c+Cgk8Zz4KCQk8cG9seWdvbiBwb2ludHM9IjE0MSwyMiAxNDAsNDAgMTIyLDQ1Ii8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTMsMjIgMTUzLDExNyAxMDYsMTE3IDEyMCwxMDUgMTI1LDk1IDEzMSw5NSAxMzEsNDUgMTIyLDQ1IDEzMiwzNiAxNDEsMjIiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTI1LDk1IDEzMCwxMTAgMTA2LDExNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=`}render(){let e=$i.getIconForType(this.getNodeTypeFromIcon(this.icon));switch(this.icon){case B.OPENAPI:return N``;case B.GO:return N``;case B.TS:return N``;case B.CS:return N``;case B.C:return N``;case B.CPP:return N``;case B.ZIG:return N``}return N` `}};ea.styles=[Ji,Yi,Xi,Yn],Qi([A()],ea.prototype,`icon`,void 0),Qi([A({type:V})],ea.prototype,`size`,void 0),Qi([A({type:H})],ea.prototype,`color`,void 0),Qi([A()],ea.prototype,`tooltip`,void 0),ea=$i=Qi([O(`pb33f-model-icon`)],ea);var ta=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},na=class extends F{constructor(){super(),this.handleWorkerMessage=e=>{e.data.nodes&&(this.results=e.data.nodes),this.activeNodeId=``,this.activeNodeIndex=-1;for(let e of this.results)this.unlightItem(e.id)},this.searchWorker=new Zn,this.results=[],this.searchWorker.addEventListener(`message`,this.handleWorkerMessage),this.currentSearch=``,this.activeNodeIndex=-1,this.activeNodeId=``}disconnectedCallback(){super.disconnectedCallback(),this.searchWorker&&(this.searchWorker.removeEventListener(`message`,this.handleWorkerMessage),this.searchWorker.terminate())}disableSearchPanel(){this.searchActive=!1,this.searchInput&&(this.searchInput.value=``),this.activeNodeId=``,this.activeNodeIndex=-1;for(let e of this.results)this.unlightItem(e.id)}inputChanged(){this.searchActive=!0,this.currentSearch=this.searchInput.value,this.graphResponse.nodes&&this.searchWorker.postMessage({searchGraph:this.graphResponse,searchKeyword:this.currentSearch})}highlightItem(e){let t=this.shadowRoot?.getElementById(`model_icon_`+e),n=this.shadowRoot?.getElementById(e);t&&(t.color=H.inverse),n&&n.classList.add(`search-result-active`)}unlightItem(e){let t=this.shadowRoot?.getElementById(`model_icon_`+e),n=this.shadowRoot?.getElementById(e);t&&(t.color=H.secondary),n&&n.classList.remove(`search-result-active`)}selectResult(e){e&&e.id?this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:e.id}})):this.activeNodeIndex=-1}keyboardControls(e){switch(e.key){case`ArrowDown`:this.activeNodeIndex>=0?this.results&&this.results.length>this.activeNodeIndex+1&&(this.unlightItem(this.results[this.activeNodeIndex].id),this.activeNodeIndex++,this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)):(this.activeNodeIndex=0,this.results[this.activeNodeIndex]&&(this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)));break;case`ArrowUp`:this.activeNodeIndex>0&&this.results&&this.results.length>this.activeNodeIndex-1&&(this.unlightItem(this.results[this.activeNodeIndex].id),this.activeNodeIndex--,this.activeNodeIndex>=0&&(this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)));break;case`Enter`:let e=this.results[this.activeNodeIndex];this.selectResult(e);break;case`Escape`:this.disableSearchPanel()}}render(){return N` @@ -2658,9 +2658,9 @@ ${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}};U.styles=[sa,ga],_a([A({type:Boolean})],U.prototype,`active`,void 0),_a([A({type:Boolean})],U.prototype,`expanded`,void 0),_a([A({type:Boolean})],U.prototype,`inPovMode`,void 0),_a([A({type:Boolean})],U.prototype,`disablePovMode`,void 0),_a([A({type:Boolean})],U.prototype,`hideExamples`,void 0),_a([A({type:String})],U.prototype,`povNodeId`,void 0),U=_a([O(`pb33f-explorer-graph-node`)],U);var va=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ya=class extends U{constructor(e){super(e)}renderDocument(){let e=[];return e.push(N`
+ `}};U.styles=[sa,ga],_a([A({type:Boolean})],U.prototype,`active`,void 0),_a([A({type:Boolean})],U.prototype,`expanded`,void 0),_a([A({type:Boolean})],U.prototype,`inPovMode`,void 0),_a([A({type:Boolean})],U.prototype,`disablePovMode`,void 0),_a([A({type:Boolean})],U.prototype,`hideExamples`,void 0),_a([A({type:String})],U.prototype,`povNodeId`,void 0),U=_a([O(`pb33f-explorer-graph-node`)],U);function va(e){return e?.label===`AsyncAPI`||typeof e?.instance?.asyncapi==`string`?`AsyncAPI Document`:`OpenAPI Document`}function ya(e,t){let n=ba(t);return n?N`${n}${e}`:N``}function ba(e){let t=e?.action;return t===`send`||t===`receive`?t:void 0}var xa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sa=class extends U{constructor(e){super(e)}renderDocument(){let e=[];e.push(N`
- OpenAPI Document + ${va(this.node)}
`),this.document?.version&&e.push(N`
 > Version @@ -2677,7 +2677,10 @@ -
`),this.document?.tags&&e.push(N`
 > +
`);for(let[t,n,r]of[[`Channels`,this.document?.channels,B.CHANNELS],[`Operations`,this.document?.operations,B.OPERATIONS]])n&&e.push(N`
 > + + ${t}${n} +
`);return this.document?.tags&&e.push(N`
 > Tags ${this.document?.tags} @@ -2689,7 +2692,7 @@ Servers ${this.document?.servers} -
`),e}render(){return this.document=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};ya.styles=[sa],ya=va([O(`pb33f-explorer-document-node`)],ya);var ba=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xa=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
+
`),e}render(){if(va(this.node)===`AsyncAPI Document`){let e=this.nodeInstance,t=e=>e&&typeof e==`object`?Object.keys(e).length:0;this.document={version:e?.asyncapi,channels:t(e?.channels),operations:t(e?.operations),servers:t(e?.servers),components:Object.entries(e?.components??{}).reduce((e,[n,r])=>e+(n.startsWith(`x-`)?0:t(r)),0)}}else this.document=this.nodeInstance;return this.renderNodeWrapper(this.renderDocument())}};Sa.styles=[sa],Sa=xa([O(`pb33f-explorer-document-node`)],Sa);var Ca=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wa=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
Information ${this.renderDependentControl()} @@ -2698,7 +2701,7 @@
`),this.info?.version&&e.push(N`
 > Version ${this.info?.version} -
`),e}render(){return this.info=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};xa.styles=[sa,ga],xa=ba([O(`pb33f-explorer-info-node`)],xa);var Sa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ca=class extends U{constructor(e){super(e)}renderNode(){let e=[];if(e.push(N`
+
`),e}render(){return this.info=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};wa.styles=[sa,ga],wa=Ca([O(`pb33f-explorer-info-node`)],wa);var Ta=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ea=class extends U{constructor(e){super(e)}renderNode(){let e=[];if(e.push(N`
License
`),this.license?.name&&e.push(N`
 > @@ -2707,13 +2710,13 @@ ${this.license?.identifier}
`),e;e.push(N`
 > ${this.license?.url} -
`)}return e}render(){return this.license=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ca.styles=[sa,ga],Ca=Sa([O(`pb33f-explorer-license-node`)],Ca);var wa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ta=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
+
`)}return e}render(){return this.license=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ea.styles=[sa,ga],Ea=Ta([O(`pb33f-explorer-license-node`)],Ea);var Da=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oa=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
Contact
`),this.contact?.name&&e.push(N`
 > ${this.contact?.name} -
`),e}render(){return this.contact=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ta.styles=[sa,ga],Ta=wa([O(`pb33f-explorer-contact-node`)],Ta);var Ea=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Da=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(t=N``),e.push(N` +
`),e}render(){return this.contact=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Oa.styles=[sa,ga],Oa=Da([O(`pb33f-explorer-contact-node`)],Oa);var ka=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Aa=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(t=N``),e.push(N`
Tag ${t}
`),this.label&&e.push(N`
 > ${this.label} -
`),e}render(){return this.renderNodeWrapper(this.renderNode())}};Da.styles=[sa,ga],Da=Ea([O(`pb33f-explorer-tag-node`)],Da);var Oa=k` + `),e}render(){return this.renderNodeWrapper(this.renderNode())}};Aa.styles=[sa,ga],Aa=ka([O(`pb33f-explorer-tag-node`)],Aa);var ja=k` a { color: var(--primary-color); text-decoration: none; @@ -2736,7 +2739,7 @@ a:active { color: var(--primary-color); } -`,ka=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Aa=class extends U{constructor(e){super(e)}renderNode(){let e=N``;this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(e=N``);let t=[];return t.push(N`
+`,Ma=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Na=class extends U{constructor(e){super(e)}renderNode(){let e=N``;this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(e=N``);let t=[];return t.push(N`
Server ${e}
`),this.server?.url&&t.push(N`
 > @@ -2746,7 +2749,7 @@ Variables ${Object.keys(this.server.variables).length} -
`),t}render(){return this.server=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Aa.styles=[sa,Oa,ga],Aa=ka([O(`pb33f-explorer-server-node`)],Aa);var ja=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ma=class extends U{constructor(e){super(e)}renderDocument(){let e=[];return e.push(N` +
`),t}render(){return this.server=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Na.styles=[sa,ja,ga],Na=Ma([O(`pb33f-explorer-server-node`)],Na);var Pa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fa=class extends U{constructor(e){super(e)}renderDocument(){let e=[];return e.push(N`
@@ -2802,7 +2805,7 @@ Path Items ${Object.keys(this.components?.pathItems).length} -
`),e}render(){return this.components=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};Ma.styles=[sa,ga],Ma=ja([O(`pb33f-explorer-components-node`)],Ma);function Na(e){return e&&typeof e==`object`&&e.$ref!==void 0&&typeof e.$ref==`string`}var Pa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fa=class extends U{constructor(e){super(e),this.embedded=!1}countExamples(e){return e?Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:1:0}schemaExampleCount(e){if(!e)return 0;let t=this.countExamples(e.examples);return e.example!==void 0&&t++,t}schemaDoesNotNeedExamples(e){let t=e.enum&&e.enum.length>0,n=e.type===`boolean`||Array.isArray(e.type)&&e.type.length===1&&e.type[0]===`boolean`,r=e.default!==void 0;return!!(t||n||r)}schemasHaveExampleCoverage(e){return e.length!==0&&e.every(e=>{if(Na(e))return!1;let t=e;return this.schemaDoesNotNeedExamples(t)||this.schemaExampleCount(t)>0})}getExampleCoverage(e){if(!e)return{schemaExampleCount:0,allPropertiesHaveExamples:!1,allPolyChildrenHaveExamples:!1};if(this.cachedExampleCoverageSchema===e&&this.cachedExampleCoverage)return this.cachedExampleCoverage;let t=e.properties?Object.values(e.properties):[],n=[...e.anyOf||[],...e.oneOf||[],...e.allOf||[]],r={schemaExampleCount:this.schemaExampleCount(e),allPropertiesHaveExamples:this.schemasHaveExampleCoverage(t),allPolyChildrenHaveExamples:this.schemasHaveExampleCoverage(n)};return this.cachedExampleCoverageSchema=e,this.cachedExampleCoverage=r,r}renderNode(){let e=`Schema`;this.label&&(e=this.label);let t=[],n=N``;if(this.schema?.type&&(n=N`${this.schema.type}`,Array.isArray(this.schema.type)&&(n=N`${this.schema.type.map(e=>N`${e} `)}`)),this.embedded||t.push(N` + `),e}render(){return this.components=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};Fa.styles=[sa,ga],Fa=Pa([O(`pb33f-explorer-components-node`)],Fa);function Ia(e){return e&&typeof e==`object`&&e.$ref!==void 0&&typeof e.$ref==`string`}var La=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ra=class extends U{constructor(e){super(e),this.embedded=!1}countExamples(e){return e?Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:1:0}schemaExampleCount(e){if(!e)return 0;let t=this.countExamples(e.examples);return e.example!==void 0&&t++,t}schemaDoesNotNeedExamples(e){let t=e.enum&&e.enum.length>0,n=e.type===`boolean`||Array.isArray(e.type)&&e.type.length===1&&e.type[0]===`boolean`,r=e.default!==void 0;return!!(t||n||r)}schemasHaveExampleCoverage(e){return e.length!==0&&e.every(e=>{if(Ia(e))return!1;let t=e;return this.schemaDoesNotNeedExamples(t)||this.schemaExampleCount(t)>0})}getExampleCoverage(e){if(!e)return{schemaExampleCount:0,allPropertiesHaveExamples:!1,allPolyChildrenHaveExamples:!1};if(this.cachedExampleCoverageSchema===e&&this.cachedExampleCoverage)return this.cachedExampleCoverage;let t=e.properties?Object.values(e.properties):[],n=[...e.anyOf||[],...e.oneOf||[],...e.allOf||[]],r={schemaExampleCount:this.schemaExampleCount(e),allPropertiesHaveExamples:this.schemasHaveExampleCoverage(t),allPolyChildrenHaveExamples:this.schemasHaveExampleCoverage(n)};return this.cachedExampleCoverageSchema=e,this.cachedExampleCoverage=r,r}renderNode(){let e=`Schema`;this.label&&(e=this.label);let t=[],n=N``;if(this.schema?.type&&(n=N`${this.schema.type}`,Array.isArray(this.schema.type)&&(n=N`${this.schema.type.map(e=>N`${e} `)}`)),this.embedded||t.push(N`
@@ -2842,7 +2845,7 @@
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}return this.renderNodeWrapper(this.renderNode())}};Fa.styles=[sa,ga],Pa([A({type:Boolean})],Fa.prototype,`embedded`,void 0),Fa=Pa([O(`pb33f-explorer-schema-node`)],Fa);var Ia=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},La=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
+ `}return this.renderNodeWrapper(this.renderNode())}};Ra.styles=[sa,ga],La([A({type:Boolean})],Ra.prototype,`embedded`,void 0),Ra=La([O(`pb33f-explorer-schema-node`)],Ra);var za=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ba=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
${this.label} ${this.renderDependentControl()} @@ -2851,7 +2854,7 @@
`),this.scheme?.flows&&e.push(N`
 > Flows ${Object.keys(this.scheme?.flows).length} -
`),e}render(){return this.scheme=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};La.styles=[sa,ga],La=Ia([O(`pb33f-explorer-security-scheme-node`)],La);var Ra=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},za=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``;if(this.parameter?.schema&&!this.parameter.schema.hasOwnProperty(`$ref`)){let e=this.parameter.schema;t=N`${e.type}`,Array.isArray(e.type)&&(t=N`${e.type.map(e=>N`${e} `)}`)}let n=N``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(n=N``),e.push(N`
+
`),e}render(){return this.scheme=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ba.styles=[sa,ga],Ba=za([O(`pb33f-explorer-security-scheme-node`)],Ba);var Va=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ha=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``;if(this.parameter?.schema&&!this.parameter.schema.hasOwnProperty(`$ref`)){let e=this.parameter.schema;t=N`${e.type}`,Array.isArray(e.type)&&(t=N`${e.type.map(e=>N`${e} `)}`)}let n=N``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(n=N``),e.push(N`
${this.label}${n} ${t} ${this.renderDependentControl()} @@ -2870,7 +2873,7 @@ Media Types ${Object.keys(this.parameter?.content).length} -
`),e}render(){return this.parameter=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};za.styles=[sa,ga],za=Ra([O(`pb33f-explorer-parameter-node`)],za);var Ba=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Va=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``;if(this.header?.schema&&!this.header.schema.hasOwnProperty(`$ref`)){let e=this.header.schema;t=N`${e.type}`,Array.isArray(e.type)&&(t=N`${e.type.map(e=>N`${e} `)}`)}return e.push(N`
+
`),e}render(){return this.parameter=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ha.styles=[sa,ga],Ha=Va([O(`pb33f-explorer-parameter-node`)],Ha);var Ua=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wa=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``;if(this.header?.schema&&!this.header.schema.hasOwnProperty(`$ref`)){let e=this.header.schema;t=N`${e.type}`,Array.isArray(e.type)&&(t=N`${e.type.map(e=>N`${e} `)}`)}return e.push(N`
${this.label} ${t} ${this.renderDependentControl()} @@ -2892,7 +2895,7 @@
- `),e}render(){return this.header=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Va.styles=[sa,ga],Va=Ba([O(`pb33f-explorer-header-node`)],Va);var Ha=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ua=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=this.label.replaceAll(`/`,`/`);return e.push(N`
+ `),e}render(){return this.header=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Wa.styles=[sa,ga],Wa=Ua([O(`pb33f-explorer-header-node`)],Wa);var Ga=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ka=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=this.label.replaceAll(`/`,`/`);return e.push(N`
${t} ${this.renderDependentControl()} @@ -2904,7 +2907,7 @@ Media Types ${Object.keys(this.requestBody?.content).length} -
`),e}render(){return this.requestBody=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ua.styles=[sa,ga],Ua=Ha([O(`pb33f-explorer-request-body-node`)],Ua);var Wa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ga=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``,n=this.label.replaceAll(`/`,`/`);if(this.mediaType?.schema&&!this.mediaType.schema.hasOwnProperty(`$ref`)){let e=this.mediaType.schema;t=N`${e.type}`,Array.isArray(e.type)&&(t=N`${e.type.map(e=>N`${e} `)}`)}return e.push(N`
+
`),e}render(){return this.requestBody=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ka.styles=[sa,ga],Ka=Ga([O(`pb33f-explorer-request-body-node`)],Ka);var qa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ja=class extends U{constructor(e){super(e)}renderNode(){let e=[],t=N``,n=this.label.replaceAll(`/`,`/`);if(this.mediaType?.schema&&!this.mediaType.schema.hasOwnProperty(`$ref`)){let e=this.mediaType.schema;t=N`${e.type}`,Array.isArray(e.type)&&(t=N`${e.type.map(e=>N`${e} `)}`)}return e.push(N`
${Nt(n.toString())} ${t} ${this.renderDependentControl()} @@ -2918,9 +2921,9 @@
- `),e}render(){return this.mediaType=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ga.styles=[sa,ga],Ga=Wa([O(`pb33f-explorer-media-type-node`)],Ga);function Ka(e){return e?e>=100&&e<400?`http200`:e>=400&&e<500?`http400`:e>=500?`http500`:`pending`:`pending`}var qa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ja=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
+ `),e}render(){return this.mediaType=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ja.styles=[sa,ga],Ja=qa([O(`pb33f-explorer-media-type-node`)],Ja);function Ya(e){return e?e>=100&&e<400?`http200`:e>=400&&e<500?`http400`:e>=500?`http500`:`pending`:`pending`}var Xa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Za=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
- ${this.label} + ${this.label} ${this.renderDependentControl()}
`),this.response?.content&&e.push(N`
 > @@ -2937,7 +2940,7 @@ Links ${Object.keys(this.response?.links).length} -
`),e}render(){return this.response=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ja.styles=[sa,Yi,ga],Ja=qa([O(`pb33f-explorer-response-node`)],Ja);var Ya=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xa=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N` +
`),e}render(){return this.response=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Za.styles=[sa,Yi,ga],Za=Xa([O(`pb33f-explorer-response-node`)],Za);var Qa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$a=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
Link Parameters ${Object.keys(this.link?.parameters).length} -
`),e}render(){return this.link=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Xa.styles=[sa,Oa,ga],Xa=Ya([O(`pb33f-explorer-link-node`)],Xa);var Za=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qa=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N` +
`),e}render(){return this.link=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};$a.styles=[sa,ja,ga],$a=Qa([O(`pb33f-explorer-link-node`)],$a);var eo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},to=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
Expressions ${Object.keys(this.callback).filter(e=>!e.startsWith(`x-`)).length} -
`),e}render(){return this.callback=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Qa.styles=[sa,ga],Qa=Za([O(`pb33f-explorer-callback-node`)],Qa);var $a=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},eo=class extends U{constructor(e){super(e)}renderStatsForOperation(e){let t=0,n=0,r=0,i=N``,a=N``,o=N``;return e.parameters&&(n=e.parameters.length,i=N` +
`),e}render(){return this.callback=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};to.styles=[sa,ga],to=eo([O(`pb33f-explorer-callback-node`)],to);var no=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ro=class extends U{constructor(e){super(e)}renderStatsForOperation(e){let t=0,n=0,r=0,i=N``,a=N``,o=N``;return e.parameters&&(n=e.parameters.length,i=N` (${n})`),e.responses&&(r=Object.keys(e.responses).length,a=N` @@ -3028,12 +3031,12 @@ Path Servers ${Object.keys(this.pathItem?.servers).length} -
`),e}render(){return this.pathItem=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};eo.styles=[sa,ga],eo=$a([O(`pb33f-explorer-pathitem-node`)],eo);var to=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},no=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N` +
`),e}render(){return this.pathItem=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ro.styles=[sa,ga],ro=no([O(`pb33f-explorer-pathitem-node`)],ro);var io=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ao=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
- + ${ya(this.label,this.nodeInstance)} ${this.renderDependentControl()}
`),this.operation?.operationId&&e.push(N`
 > @@ -3071,7 +3074,7 @@
`),this.operation?.deprecated&&e.push(N`
 > Deprecated -
`),e}render(){return this.operation=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};no.styles=[sa,Oa,ga],no=to([O(`pb33f-explorer-operation-node`)],no);var ro=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},io=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N` + `),e}render(){return this.operation=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ao.styles=[sa,ja,ga],ao=io([O(`pb33f-explorer-operation-node`)],ao);var oo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},so=class extends U{constructor(e){super(e)}renderNode(){let e=[];return e.push(N`
`),this.xml?.name&&e.push(N`
 > Name: ${this.xml.name} -
`),e}render(){return this.xml=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};io.styles=[sa,ga],io=ro([O(`pb33f-explorer-xml-node`)],io);var ao=k` +
`),e}render(){return this.xml=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};so.styles=[sa,ga],so=oo([O(`pb33f-explorer-xml-node`)],so);var co=k` .cv-row { display: flex; align-items: center; @@ -3118,11 +3121,11 @@ .change-icon.added { border-color: rgba(0, 255, 0, 0.3); } -`,oo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},so=class extends U{constructor(e){super(e)}renderHeader(){switch(this.node?.type){case B.OPERATION:return N` +`,lo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uo=class extends U{constructor(e){super(e)}renderHeader(){switch(this.node?.type){case B.OPERATION:return N`
- + ${ya(this.label,this.node?.instance)} ${this.renderDependentControl()}
`;case B.PATH_ITEM:return N`
@@ -3134,7 +3137,7 @@
- OpenAPI Document + ${va(this.node)} ${this.renderDependentControl()}
`;default:return N`
@@ -3145,7 +3148,7 @@
`}}childRowClicked(e,t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(Mn,{bubbles:!0,composed:!0,detail:{nodeId:e}}))}getOwnChanges(e){if(!e.timeline?.length)return[];let t=e.childChanges;if(!t?.length)return e.timeline;let n=new Set;for(let e of t){let t=this.nodeMap?.get(e.nodeId);if(t?.timeline)for(let e of t.timeline)n.add(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`)}return e.timeline.filter(e=>!n.has(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`))}renderChildRows(){let e=this.node?.childChanges;return!e||e.length===0?P:N`${e.map(e=>N`
 > - ${e.type===B.OPERATION?N``:e.type===B.PATH_ITEM?N``:N`${e.label}`} + ${e.type===B.OPERATION?ya(e.label,this.nodeMap?.get(e.nodeId)?.instance):e.type===B.PATH_ITEM?N``:N`${e.label}`}
`)}`}renderChanges(e=this.changeCounts){if(!this.node?.timeline?.length)return N``;if(!this.node.childChanges?.length)return super.renderChanges(e);let t=this.getOwnChanges(this.node);if(!t.length)return N``;let n=Xt(t),r=this.renderBadges(n.breaking,n.modifications,n.additions,n.removals);return r.length===0?N``:N`
${r}
`}render(){let e=this.countResults(),t=this.changeCounts;return N`
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}};so.styles=[sa,ga,ao],so=oo([O(`pb33f-explorer-change-view-node`)],so);var co=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lo=class extends F{constructor(){super(...arguments),this.active=!1,this.visible=!0}configure(e){this.id=e.id,e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.width!==void 0&&(this.width=e.width),e.height!==void 0&&(this.height=e.height),this.body=e.body,e.active!==void 0&&(this.active=e.active),e.visible!==void 0&&(this.visible=e.visible),this.requestUpdate()}render(){if(!this.visible)return lt``;let e=``;return e=this.body?this.body:`Object Node`,this.x==null||this.y==null?lt``:lt` + `}};uo.styles=[sa,ga,co],uo=lo([O(`pb33f-explorer-change-view-node`)],uo);var fo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},po=class extends F{constructor(){super(...arguments),this.active=!1,this.visible=!0}configure(e){this.id=e.id,e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.width!==void 0&&(this.width=e.width),e.height!==void 0&&(this.height=e.height),this.body=e.body,e.active!==void 0&&(this.active=e.active),e.visible!==void 0&&(this.visible=e.visible),this.requestUpdate()}render(){if(!this.visible)return lt``;let e=``;return e=this.body?this.body:`Object Node`,this.x==null||this.y==null?lt``:lt`
${e}
-
`}};lo=co([O(`pb33f-explorer-foreign-object`)],lo);function uo(e){return function(){return e}}var fo=Math.PI,po=2*fo,mo=1e-6,ho=po-mo;function go(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return go;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tmo){if(!(Math.abs(u*s-c*l)>mo)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((fo-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>mo&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>mo||Math.abs(this._y1-l)>mo)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%po+po),d>ho?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>mo&&this._append`A${n},${n},0,${+(d>=fo)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};vo.prototype;function yo(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new vo(t)}Array.prototype.slice;function bo(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xo(e){this._context=e}xo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function So(e){return new xo(e)}function Co(e){return e[0]}function wo(e){return e[1]}function To(e,t){var n=uo(!0),r=null,i=So,a=null,o=yo(s);e=typeof e==`function`?e:e===void 0?Co:uo(e),t=typeof t==`function`?t:t===void 0?wo:uo(t);function s(s){var c,l=(s=bo(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ko=(function e(t){function n(e){return t===1?new Do(e):new Oo(e,t)}return n.beta=function(t){return e(+t)},n})(.85),Ao=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jo=class extends F{constructor(){super(),this.roundCorners=!1,this.edgePathStyle=`d3`,this.visible=!0,this.targetIsLeaf=!1,this.sections=[],this.isDependency=!1,this.dim=!1,this.animated=!0,this.changeCategory=Yt.NONE}configure(e){this.edge=e.edge,e.bendPoints!==void 0&&(this.bendPoints=e.bendPoints),e.bendCurve!==void 0&&(this.bendCurve=e.bendCurve),e.roundCorners!==void 0&&(this.roundCorners=e.roundCorners),e.edgePathStyle!==void 0&&(this.edgePathStyle=e.edgePathStyle),e.visible!==void 0&&(this.visible=e.visible),e.animated!==void 0&&(this.animated=e.animated),e.isDependency!==void 0&&(this.isDependency=e.isDependency),e.dim!==void 0&&(this.dim=e.dim),e.changeCategory!==void 0&&(this.changeCategory=e.changeCategory),this.requestUpdate()}render(){if(!this.visible)return lt``;let e=0;return this.sections.length=0,this.edge.sections?.forEach(t=>{let n=`arrow`;this.edge.ref.length>0&&(n=`arrow-ref`),this.edge.poly&&this.edge.poly!=``&&(n=`arrow-poly`),this.targetIsLeaf&&(n=`leaf`),this.targetIsLeaf&&this.edge.ref.length>0&&(n=`leaf-ref`),this.targetIsLeaf&&this.edge.poly&&this.edge.poly!=``&&(n=`leaf-poly`);let r=this.changeCategory!==Yt.NONE&&this.changeCategory!==Yt.MODIFIED;r&&(n===`arrow`?n=`arrow-${this.changeCategory}`:n===`leaf`&&(n=`leaf-${this.changeCategory}`));let i=No(t,this.bendPoints),a=this.buildPath(i),o=[];this.edge.ref.length>0&&o.push(`ref`),this.targetIsLeaf&&o.push(`target-leaf`),this.edge.poly&&this.edge.poly!=``&&o.push(this.edge.poly),this.edge.dependency&&this.dim&&o.push(`dependency`),this.animated||o.push(`no-animation`),r&&o.push(`change-${this.changeCategory}`);let s=lt` + `}};po=fo([O(`pb33f-explorer-foreign-object`)],po);function mo(e){return function(){return e}}var ho=Math.PI,go=2*ho,_o=1e-6,vo=go-_o;function yo(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return yo;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t_o){if(!(Math.abs(u*s-c*l)>_o)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((ho-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>_o&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>_o||Math.abs(this._y1-l)>_o)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%go+go),d>vo?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>_o&&this._append`A${n},${n},0,${+(d>=ho)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};xo.prototype;function So(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new xo(t)}Array.prototype.slice;function Co(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function wo(e){this._context=e}wo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function To(e){return new wo(e)}function Eo(e){return e[0]}function Do(e){return e[1]}function Oo(e,t){var n=mo(!0),r=null,i=To,a=null,o=So(s);e=typeof e==`function`?e:e===void 0?Eo:mo(e),t=typeof t==`function`?t:t===void 0?Do:mo(t);function s(s){var c,l=(s=Co(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Mo=(function e(t){function n(e){return t===1?new Ao(e):new jo(e,t)}return n.beta=function(t){return e(+t)},n})(.85),No=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Po=class extends F{constructor(){super(),this.roundCorners=!1,this.edgePathStyle=`d3`,this.visible=!0,this.targetIsLeaf=!1,this.sections=[],this.isDependency=!1,this.dim=!1,this.animated=!0,this.changeCategory=Yt.NONE}configure(e){this.edge=e.edge,e.bendPoints!==void 0&&(this.bendPoints=e.bendPoints),e.bendCurve!==void 0&&(this.bendCurve=e.bendCurve),e.roundCorners!==void 0&&(this.roundCorners=e.roundCorners),e.edgePathStyle!==void 0&&(this.edgePathStyle=e.edgePathStyle),e.visible!==void 0&&(this.visible=e.visible),e.animated!==void 0&&(this.animated=e.animated),e.isDependency!==void 0&&(this.isDependency=e.isDependency),e.dim!==void 0&&(this.dim=e.dim),e.changeCategory!==void 0&&(this.changeCategory=e.changeCategory),this.requestUpdate()}render(){if(!this.visible)return lt``;let e=0;return this.sections.length=0,this.edge.sections?.forEach(t=>{let n=`arrow`;this.edge.ref.length>0&&(n=`arrow-ref`),this.edge.poly&&this.edge.poly!=``&&(n=`arrow-poly`),this.targetIsLeaf&&(n=`leaf`),this.targetIsLeaf&&this.edge.ref.length>0&&(n=`leaf-ref`),this.targetIsLeaf&&this.edge.poly&&this.edge.poly!=``&&(n=`leaf-poly`);let r=this.changeCategory!==Yt.NONE&&this.changeCategory!==Yt.MODIFIED;r&&(n===`arrow`?n=`arrow-${this.changeCategory}`:n===`leaf`&&(n=`leaf-${this.changeCategory}`));let i=Io(t,this.bendPoints),a=this.buildPath(i),o=[];this.edge.ref.length>0&&o.push(`ref`),this.targetIsLeaf&&o.push(`target-leaf`),this.edge.poly&&this.edge.poly!=``&&o.push(this.edge.poly),this.edge.dependency&&this.dim&&o.push(`dependency`),this.animated||o.push(`no-animation`),r&&o.push(`change-${this.changeCategory}`);let s=lt` `;this.sections.push(s),e+=1}),lt`${this.sections}`}shouldUseRoundedPath(){return this.roundCorners&&this.edge.ref.length===0&&(!this.edge.poly||this.edge.poly===``)}buildPath(e){return!this.bendCurve||this.edgePathStyle===`polyline`?Fo(e):this.edgePathStyle===`rounded-orthogonal`?this.shouldUseRoundedPath()?Lo(e):Fo(e):Io(e)||Fo(e)}};jo=Ao([O(`pb33f-explorer-edge`)],jo);var Mo=To().x(e=>e.x).y(e=>e.y).curve(ko.beta(1));function No(e,t){if(!e)return[];let n=[e.startPoint];return t&&e.bendPoints&&n.push(...e.bendPoints),n.push(e.endPoint),Po(n)}function Po(e){if(e.length<=2)return[...e];let t=[];for(let n of e){let e=t[t.length-1];(!e||e.x!==n.x||e.y!==n.y)&&t.push(n)}if(t.length<=2)return t;let n=[t[0]];for(let e=1;e0);n+=` L ${m.x} ${m.y}`,n+=` A ${p} ${p} 0 0 ${g} ${h.x} ${h.y}`}let r=e[e.length-1];return n+=` L ${r.x} ${r.y}`,n}var Ro=new Set([B.DOCUMENT,B.INFO,B.COMPONENTS,B.PATHS,B.SCHEMAS,B.PARAMETERS,B.RESPONSES,B.REQUEST_BODY,B.REQUEST_BODIES,B.TAGS,B.SECURITY,B.SECURITY_SCHEMES,B.SERVERS,B.HEADERS,B.LINKS,B.CALLBACKS,B.PATH_ITEMS,B.OPERATIONS,B.EXAMPLES,B.EXTENSIONS,B.WEBHOOKS]),zo=class{constructor(e){this.deps=e}createNodeComponent(e){let t=this.deps.getNodeMap();switch(e){case B.DOCUMENT:return new ya(t);case B.INFO:return new xa(t);case B.LICENSE:return new Ca(t);case B.CONTACT:return new Ta(t);case B.TAG:return new Da(t);case B.SERVER:return new Aa(t);case B.COMPONENTS:return new Ma(t);case B.SCHEMA:return new Fa(t);case B.SECURITY_SCHEME:return new La(t);case B.PARAMETER:return new za(t);case B.HEADER:return new Va(t);case B.REQUEST_BODY:return new Ua(t);case B.MEDIA_TYPE:return new Ga(t);case B.RESPONSE:return new Ja(t);case B.LINK:return new Xa(t);case B.CALLBACK:return new Qa(t);case B.PATH_ITEM:return new eo(t);case B.OPERATION:return new no(t);case B.XML:return new io(t);default:return new U(t)}}buildNodes(e){let t=[],n=[],r=new Map,i=new Map,a=this.deps.getNodeMap(),o=this.deps.getDefinitionCache();return e.graphResponse.nodes?.forEach(e=>{a.set(e.id,e),e.instance&&typeof e.instance==`object`&&!e.instance.$ref&&o.set(e.id,e)}),e.graphResponse.edges?.forEach(e=>{this.deps.getEdgeMap().set(e.id,e)}),e.graph.children?.forEach(s=>{let c=s;c.x&&c.y&&(c.x=Math.round(c.x),c.y=Math.round(c.y));let l=e.graphMode===Jt.change?new so(a):this.createNodeComponent(c.type);l.height=c.height,l.width=c.width-2,l.id=c.id,l.label=c.label,l.isLeaf=!(c.nodes&&c.nodes.length>0),l.expanded=e.expandedNodes.has(c.id),l.moreChildrenCount=e.hasMoreChildren.get(c.id)||0,l.node=c,l.inPovMode=e.povMode,l.povNodeId=e.povNodeId,l.disablePovMode=e.disablePovMode,l.hideExamples=e.hideExamples;let u=a.get(c.id);l.nodeInstance=this.resolveNodeInstance(c,o.get(c.id),u),l.violationMap=e.violationMap,c.violationIds=u?.violationIds;let d=u?.dependency||!1;l.isDependency=d,l.dim=d&&e.povMode;let f=e.activeNode&&e.activeNode.id===c.id;f&&(l.active=!0),r.set(c.id,l);let p=new lo,m={id:c.id,x:c.x,y:c.y,width:c.width,height:c.height,body:l,active:f,visible:!0};p.configure(m),n.push(p),i.set(c.id,p),t.push(c)}),{nodes:t,nodeComponents:n,renderGraphMap:r,nodeComponentMap:i}}buildEdges(e,t){let n=[],r=[],i=new Map,a=this.deps.getEdgeMap(),o=e.nodeLimitExceeded||e.graph.children&&e.graph.children.length>50;return e.graph.edges?.forEach(s=>{let c=s,l=t.get(c.sources[0]);l?.outputs.push(c);let u=t.get(c.targets[0]);u?.inputs.push(c),c.ref.length>0&&l&&(l.isRef=!0);let d=new jo,f=a.get(c.id)?.dependency||!1,p=u?.changeCategory??Yt.NONE,m=!!u?.isLeaf&&!Bo(u?.node?.type)&&c.ref.length===0&&(!c.poly||c.poly===``),h={edge:c,visible:!e.collapsedEdges.has(c.id),animated:!o,bendPoints:e.bendPoints,bendCurve:e.bendEdges,edgePathStyle:e.edgePathStyle,roundCorners:m,isDependency:f,dim:f&&e.povMode,changeCategory:p};d.configure(h),n.push(c),r.push(d),i.set(c.id,d)}),this.applyLeafDetection(t,i),{edges:n,edgeComponents:r,edgeComponentMap:i}}resolveNodeInstance(e,t,n){return e.instance&&typeof e.instance==`object`&&!e.instance.$ref?e.instance:t?.instance||n?.instance}applyLeafDetection(e,t){e.forEach(e=>{e.outputs.length<=0?(e.isLeaf=!0,e.inputs.forEach(e=>{let n=t.get(e.id);n&&(n.targetIsLeaf=!0)})):e.outputs.forEach(n=>{if(n.ref!==``){let r=t.get(n.id);r&&r.targetIsLeaf&&(r.targetIsLeaf=!1,e.isLeaf=!1,e.isRef=!0)}})})}};function Bo(e){return e?Ro.has(e):!1}function Vo(){return lt` + marker-end="url(#${n})"/>`;this.sections.push(s),e+=1}),lt`${this.sections}`}shouldUseRoundedPath(){return this.roundCorners&&this.edge.ref.length===0&&(!this.edge.poly||this.edge.poly===``)}buildPath(e){return!this.bendCurve||this.edgePathStyle===`polyline`?Ro(e):this.edgePathStyle===`rounded-orthogonal`?this.shouldUseRoundedPath()?Bo(e):Ro(e):zo(e)||Ro(e)}};Po=No([O(`pb33f-explorer-edge`)],Po);var Fo=Oo().x(e=>e.x).y(e=>e.y).curve(Mo.beta(1));function Io(e,t){if(!e)return[];let n=[e.startPoint];return t&&e.bendPoints&&n.push(...e.bendPoints),n.push(e.endPoint),Lo(n)}function Lo(e){if(e.length<=2)return[...e];let t=[];for(let n of e){let e=t[t.length-1];(!e||e.x!==n.x||e.y!==n.y)&&t.push(n)}if(t.length<=2)return t;let n=[t[0]];for(let e=1;e0);n+=` L ${m.x} ${m.y}`,n+=` A ${p} ${p} 0 0 ${g} ${h.x} ${h.y}`}let r=e[e.length-1];return n+=` L ${r.x} ${r.y}`,n}var Vo=new Set([B.DOCUMENT,B.INFO,B.COMPONENTS,B.PATHS,B.SCHEMAS,B.PARAMETERS,B.RESPONSES,B.REQUEST_BODY,B.REQUEST_BODIES,B.TAGS,B.SECURITY,B.SECURITY_SCHEMES,B.SERVERS,B.HEADERS,B.LINKS,B.CALLBACKS,B.PATH_ITEMS,B.OPERATIONS,B.EXAMPLES,B.EXTENSIONS,B.WEBHOOKS]),Ho=class{constructor(e){this.deps=e}createNodeComponent(e){let t=this.deps.getNodeMap();switch(e){case B.DOCUMENT:return new Sa(t);case B.INFO:return new wa(t);case B.LICENSE:return new Ea(t);case B.CONTACT:return new Oa(t);case B.TAG:return new Aa(t);case B.SERVER:return new Na(t);case B.COMPONENTS:return new Fa(t);case B.SCHEMA:return new Ra(t);case B.SECURITY_SCHEME:return new Ba(t);case B.PARAMETER:return new Ha(t);case B.HEADER:return new Wa(t);case B.REQUEST_BODY:return new Ka(t);case B.MEDIA_TYPE:return new Ja(t);case B.RESPONSE:return new Za(t);case B.LINK:return new $a(t);case B.CALLBACK:return new to(t);case B.PATH_ITEM:return new ro(t);case B.OPERATION:return new ao(t);case B.XML:return new so(t);default:return new U(t)}}buildNodes(e){let t=[],n=[],r=new Map,i=new Map,a=this.deps.getNodeMap(),o=this.deps.getDefinitionCache();return e.graphResponse.nodes?.forEach(e=>{a.set(e.id,e),e.instance&&typeof e.instance==`object`&&!e.instance.$ref&&o.set(e.id,e)}),e.graphResponse.edges?.forEach(e=>{this.deps.getEdgeMap().set(e.id,e)}),e.graph.children?.forEach(s=>{let c=s;c.x&&c.y&&(c.x=Math.round(c.x),c.y=Math.round(c.y));let l=e.graphMode===Jt.change?new uo(a):this.createNodeComponent(c.type);l.height=c.height,l.width=c.width-2,l.id=c.id,l.label=c.label,l.isLeaf=!(c.nodes&&c.nodes.length>0),l.expanded=e.expandedNodes.has(c.id),l.moreChildrenCount=e.hasMoreChildren.get(c.id)||0,l.node=c,l.inPovMode=e.povMode,l.povNodeId=e.povNodeId,l.disablePovMode=e.disablePovMode,l.hideExamples=e.hideExamples;let u=a.get(c.id);l.nodeInstance=this.resolveNodeInstance(c,o.get(c.id),u),l.violationMap=e.violationMap,c.violationIds=u?.violationIds;let d=u?.dependency||!1;l.isDependency=d,l.dim=d&&e.povMode;let f=e.activeNode&&e.activeNode.id===c.id;f&&(l.active=!0),r.set(c.id,l);let p=new po,m={id:c.id,x:c.x,y:c.y,width:c.width,height:c.height,body:l,active:f,visible:!0};p.configure(m),n.push(p),i.set(c.id,p),t.push(c)}),{nodes:t,nodeComponents:n,renderGraphMap:r,nodeComponentMap:i}}buildEdges(e,t){let n=[],r=[],i=new Map,a=this.deps.getEdgeMap(),o=e.nodeLimitExceeded||e.graph.children&&e.graph.children.length>50;return e.graph.edges?.forEach(s=>{let c=s,l=t.get(c.sources[0]);l?.outputs.push(c);let u=t.get(c.targets[0]);u?.inputs.push(c),c.ref.length>0&&l&&(l.isRef=!0);let d=new Po,f=a.get(c.id)?.dependency||!1,p=u?.changeCategory??Yt.NONE,m=!!u?.isLeaf&&!Uo(u?.node?.type)&&c.ref.length===0&&(!c.poly||c.poly===``),h={edge:c,visible:!e.collapsedEdges.has(c.id),animated:!o,bendPoints:e.bendPoints,bendCurve:e.bendEdges,edgePathStyle:e.edgePathStyle,roundCorners:m,isDependency:f,dim:f&&e.povMode,changeCategory:p};d.configure(h),n.push(c),r.push(d),i.set(c.id,d)}),this.applyLeafDetection(t,i),{edges:n,edgeComponents:r,edgeComponentMap:i}}resolveNodeInstance(e,t,n){return e.instance&&typeof e.instance==`object`&&!e.instance.$ref?e.instance:t?.instance||n?.instance}applyLeafDetection(e,t){e.forEach(e=>{e.outputs.length<=0?(e.isLeaf=!0,e.inputs.forEach(e=>{let n=t.get(e.id);n&&(n.targetIsLeaf=!0)})):e.outputs.forEach(n=>{if(n.ref!==``){let r=t.get(n.id);r&&r.targetIsLeaf&&(r.targetIsLeaf=!1,e.isLeaf=!1,e.isRef=!0)}})})}};function Uo(e){return e?Vo.has(e):!1}function Wo(){return lt` - `}var Ho=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},Uo=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},Wo=class{constructor(e){this.childrenMapCache=null,this.expandedNodes=new Set([`root`]),this.visibleChildrenCount=new Map,this.pathRevealNodes=new Set,this.pathRevealTarget=null,this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null,this.CHILD_BATCH_SIZE=10,this.callbacks=e}toggleNodeExpansion(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.clearPathRevealDescendants(e);this.expandedNodes.has(e)?this.expandedNodes.delete(e):t||this.expandedNodes.add(e),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}loadMoreChildren(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE;this.visibleChildrenCount.set(e,t+this.CHILD_BATCH_SIZE),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}isNodeExpanded(e){return this.expandedNodes.has(e)}isNodeCurrentlyVisible(e){if(e===`root`)return!0;let t=this.callbacks.getNodeMap().get(e);if(!t)return!1;let n=t.parentId||`root`;if(!this.expandedNodes.has(n))return!1;if(!this.childrenMapCache)return!0;let r=this.childrenMapCache.get(n);if(!r)return!0;let i=this.visibleChildrenCount.get(n)||this.CHILD_BATCH_SIZE,a=r.findIndex(t=>t.id===e);return a>=0&&ae.id===t.id);if(r<0){n.push(t);let r=n.length;r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}else r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}}revealPathToNode(e,t){if(t)return;let n=this.callbacks.getNodeMap(),r=[],i=e;for(;i&&i!==`root`;){let e=n.get(i);if(!e||this.isNodeCurrentlyVisible(i)||this.pathRevealNodes.has(i))break;r.push(i),i=e.parentId||`root`}let a=n.get(e);if(r.length===0)a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a),this.callbacks.moveToNode(a));else{r.reverse();for(let e of r)this.pathRevealNodes.add(e);this.pathRevealTarget=e,a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a)),this.callbacks.buildGraph().then(()=>{a&&this.callbacks.moveToNode(a)})}}clearPathReveal(){this.pathRevealNodes.size>0&&(this.pathRevealNodes.clear(),this.pathRevealTarget=null)}clearPathRevealDescendants(e){if(this.pathRevealNodes.size===0)return!1;let t=this.callbacks.getNodeMap(),n=[];for(let r of this.pathRevealNodes){let i=r;for(;i&&i!==`root`;){let a=t.get(i);if(!a)break;if(a.parentId===e){n.push(r);break}i=a.parentId}}for(let e of n)this.pathRevealNodes.delete(e);return this.pathRevealTarget&&n.includes(this.pathRevealTarget)&&(this.pathRevealTarget=null),n.length>0}hasPathReveal(){return this.pathRevealNodes.size>0}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(){if(this.childrenMapCache)return;this.childrenMapCache=new Map;let e=this.callbacks.getGraphResponseNodes()||[];for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}getState(){return{expandedNodes:this.expandedNodes,visibleChildrenCount:this.visibleChildrenCount,pathRevealNodes:this.pathRevealNodes,pathRevealTarget:this.pathRevealTarget}}saveState(){return{expandedNodes:new Set(this.expandedNodes),visibleChildrenCount:new Map(this.visibleChildrenCount)}}restoreState(e){this.expandedNodes.clear();for(let t of e.expandedNodes)this.expandedNodes.add(t);this.visibleChildrenCount.clear();for(let[t,n]of e.visibleChildrenCount)this.visibleChildrenCount.set(t,n)}},Go=class{constructor(e){this.childrenMapCache=null,this.positionCache=new Map,this.callbacks=e}filterGraphByExpansion(e,t,n){let r=new Map,i=new Map,a=this.callbacks.getExpandedNodes(),o=this.callbacks.getVisibleChildrenCount(),s=this.callbacks.getPathRevealNodes(),c=this.callbacks.getChildBatchSize(),l=e.find(e=>e.id===`root`);if(l&&r.set(`root`,l),this.buildChildrenMapCache(e),n)for(let t of e)r.set(t.id,t);else{let e=[`root`],t=0;for(;ta&&i.set(n,t.length-a)}else if(s.size>0){let t=this.childrenMapCache.get(n)||[];for(let n of t)s.has(n.id)&&(r.set(n.id,n),e.push(n.id))}}}let u=t.filter(e=>!(!r.has(e.sources[0])||!r.has(e.targets[0])));return{nodes:Array.from(r.values()),edges:u,hasMoreChildren:i}}preservePositions(e){this.positionCache.clear(),e?.children?.forEach(e=>{e.x!==void 0&&e.y!==void 0&&this.positionCache.set(e.id,{x:e.x,y:e.y})})}applyPositionHints(e){for(let t of e){let e=this.positionCache.get(t.id);e&&(t.x=e.x,t.y=e.y)}}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(e){if(!this.childrenMapCache){this.childrenMapCache=new Map;for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}}clearPositionCache(){this.positionCache.clear()}getPositionCache(){return this.positionCache}},Ko=.22,qo=.5;function Jo(e){switch(e){case`LEFT`:return{x:.78,y:qo};case`UP`:return{x:qo,y:.78};case`DOWN`:return{x:qo,y:Ko};default:return{x:Ko,y:qo}}}function Yo(e,t,n){let r=Jo(e),i=(t.x||0)+(t.width||0)/2,a=(t.y||0)+(t.height||0)/2;return{x:i-n.width*r.x,y:a-n.height*r.y}}function Xo(e,t){let n=(e.x||0)+(e.width||0)/2,r=(e.y||0)+(e.height||0)/2;return{x:n-t.width/2,y:r-t.height/2}}function Zo(e,t,n){return t.id===`root`?Yo(e,t,n):Xo(t,n)}var Qo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$o,es;(function(e){e.UP=`UP`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`})(es||={});var ts=$o=class extends ca{get expandedNodes(){return this.expansionManager.expandedNodes}get visibleChildrenCount(){return this.expansionManager.visibleChildrenCount}get pathRevealNodes(){return this.expansionManager.pathRevealNodes}get pathRevealTarget(){return this.expansionManager.pathRevealTarget}constructor(){super(),this.edgePathStyle=`d3`,this.embeddedMode=!1,this.disablePovMode=!1,this.hideExamples=!1,this.hideControls=!1,this.changeView=!1,this.graphMode=Jt.standard,this.povPreviousViewBox=null,this.povFocusNodeId=null,this.layoutRequestId=0,this.nodeComponents=[],this.edgeComponents=[],this.scale=1,this.isDragging=!1,this.dragThreshold=5,this.dragStartViewBoxX=0,this.dragStartViewBoxY=0,this.previousActiveNodeId=null,this.zoomMax=8e3,this.zoomMin=50,this.collapsedNodes=new Map,this.collapsedEdges=new Map,this.hasMoreChildren=new Map,this.currentAnimationId=0,this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null,this.resizeObserver=null,this.containerWidth=0,this.containerHeight=0,this._resizeRafId=0,this.ready=!1,this.direction=es.RIGHT,this.nodeMap=new Map,this.definitionCache=new Map,this.edgeMap=new Map,this.violationMap=new Map,this.renderGraphMap=new Map,this.edgeComponentMap=new Map,this.nodeComponentMap=new Map,this.collapsedNodes=new Map,this.nodes=[],this.edges=[],this.nodeNodeBetweenLayers=`100`,this.nodeNode=`80`,this.edgeNodeBetweenLayers=`30`,this.edgeNode=`120`,this.bendEdges=!0,this.bendPoints=!0,this.nodeLimitExceeded=!1,this.nodeLimit=-1,this.equalizer=new ha,this.renderEqualizer=!0,this.equalizer.renderEqualizer=this.renderEqualizer,this.equalizer.nodeNodeBetweenLayers=parseInt(this.nodeNodeBetweenLayers),this.equalizer.nodeNode=parseInt(this.nodeNode),this.equalizer.edgeNodeBetweenLayers=parseInt(this.edgeNodeBetweenLayers),this.equalizer.edgeNode=parseInt(this.edgeNode),this.equalizer.bendEdges=this.bendEdges,this.equalizer.bendPoints=this.bendPoints,this.zoomX=null,this.zoomY=null,this.zoomW=null,this.zoomH=null,this.graphDependentWorker=$o.graphDependentWorkerFactory?$o.graphDependentWorkerFactory():new Ho,this.elkLayoutWorker=$o.elkWorkerFactory?$o.elkWorkerFactory():new Uo,this.elkLayoutWorker.onerror=e=>{console.error(`[explorer] ELK layout worker error:`,e)},this.expansionManager=new Wo({getNodeMap:()=>this.nodeMap,getGraphResponseNodes:()=>this.graphResponse?.nodes,buildGraph:()=>this.buildGraph(),moveToNode:e=>this.moveToNode(e),getActiveNode:()=>this.activeNode,setActiveNode:e=>{if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}if(this.activeNode=e,e&&this.renderGraphMap){let t=this.renderGraphMap.get(e.id);t&&(t.active=!0)}this.requestUpdate()},setPreviousActiveNodeId:e=>{this.previousActiveNodeId=e},getNodeScreenOffset:e=>this.getNodeScreenOffset(e),restoreNodeScreenPosition:(e,t)=>this.restoreNodeScreenPosition(e,t),preservePositions:()=>this.layoutFilterManager.preservePositions(this.graph)}),this.layoutFilterManager=new Go({getExpandedNodes:()=>this.expansionManager.expandedNodes,getVisibleChildrenCount:()=>this.expansionManager.visibleChildrenCount,getPathRevealNodes:()=>this.expansionManager.pathRevealNodes,getChildBatchSize:()=>this.expansionManager.CHILD_BATCH_SIZE}),this.explorerComponentFactory=new zo({getNodeMap:()=>this.nodeMap,getDefinitionCache:()=>this.definitionCache,getEdgeMap:()=>this.edgeMap}),this.boundZoomIn=this.zoomIn.bind(this),this.boundZoomOut=this.zoomOut.bind(this),this.boundRotate=this.rotate.bind(this),this.boundReset=this.reset.bind(this),this.boundEqualizerChanged=this.equalizerChanged.bind(this),this.boundEqualizerFiltered=this.equalizerFiltered.bind(this),this.boundDependentNodeClicked=this.dependentNodeClicked.bind(this),this.boundLoadMoreChildren=this.loadMoreChildrenClicked.bind(this),this.boundPovModeExit=this.handlePovModeExit.bind(this),this.boundGraphDependentMessage=e=>{this.toggleNodeVisibility(e.data.filteredNodes,e.data.filteredEdges,e.data.collapse)},this.equalizer.addEventListener(Nn,this.boundZoomIn),this.equalizer.addEventListener(Pn,this.boundZoomOut),this.equalizer.addEventListener(Fn,this.boundRotate),this.equalizer.addEventListener(In,this.boundReset),this.equalizer.addEventListener(Vn,this.boundEqualizerChanged),this.equalizer.addEventListener(Hn,this.boundEqualizerFiltered),this.addEventListener(Un,this.boundDependentNodeClicked),this.addEventListener(Wn,this.boundLoadMoreChildren),this.equalizer.addEventListener(Kn,this.boundPovModeExit),this.graphDependentWorker.onmessage=this.boundGraphDependentMessage}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.elkLayoutWorker?.terminate(),this.graphDependentWorker?.terminate(),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.equalizer.removeEventListener(Nn,this.boundZoomIn),this.equalizer.removeEventListener(Pn,this.boundZoomOut),this.equalizer.removeEventListener(Fn,this.boundRotate),this.equalizer.removeEventListener(In,this.boundReset),this.equalizer.removeEventListener(Vn,this.boundEqualizerChanged),this.equalizer.removeEventListener(Hn,this.boundEqualizerFiltered),this.equalizer.removeEventListener(Kn,this.boundPovModeExit),this.removeEventListener(Un,this.boundDependentNodeClicked),this.removeEventListener(Wn,this.boundLoadMoreChildren)}setupResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._resizeRafId),this._resizeRafId=requestAnimationFrame(()=>{let{width:e,height:t}=this.getBoundingClientRect();e!==0&&t!==0&&(Math.abs(e-this.containerWidth)<2&&Math.abs(t-this.containerHeight)<2||(this.containerWidth=e,this.containerHeight=t))})}),this.resizeObserver.observe(this)}updateViewBoxForContainer(){if(!this.svgItem||this.containerWidth===0||this.containerHeight===0)return;let e=this.svgItem.viewBox.baseVal,t=e.x+e.width/2,n=e.y+e.height/2,r=this.containerWidth/this.containerHeight,i=this.buildBaseViewBox().base+300,a,o;r>1?(o=i,a=i*r):(a=i,o=i/r),e.width=a,e.height=o,e.x=t-a/2,e.y=n-o/2,this.zoomW=a,this.zoomH=o,this.zoomX=e.x,this.zoomY=e.y}toggleNodeVisibility(e,t,n){e.forEach(e=>{if(!e?.id)return;let t=this.nodeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedNodes.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedNodes.delete(e.id)))}),t.forEach(e=>{if(!e?.id)return;let t=this.edgeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedEdges.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedEdges.delete(e.id)))}),this.requestUpdate()}dependentNodeClicked(e){let t=e.detail.node.id;this.toggleNodeExpansion(t)}loadMoreChildrenClicked(e){this.loadMoreChildren(e.detail.parentId)}enterPovMode(e,t){let n=this.expansionManager.saveState();this.savedExpandedNodes=n.expandedNodes,this.savedVisibleChildrenCount=n.visibleChildrenCount,this.povMode=!0,this.povFocusNodeId=e,this.povNode=t,this.povNodeId=e}exitPovMode(e=!0){this.savedExpandedNodes&&this.savedVisibleChildrenCount&&(this.expansionManager.restoreState({expandedNodes:this.savedExpandedNodes,visibleChildrenCount:this.savedVisibleChildrenCount}),this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null),this.graphResponse?.nodes?.forEach(e=>{e.dependency&&=!1}),this.graphResponse?.edges?.forEach(e=>{e.dependency&&=!1}),this.povMode=!1,this.povNode=null,this.equalizer.controls.povNode=null,e&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache())}handlePovModeExit(){this.exitPovMode(!0)}updateGraphResponse(e){this.graphResponse=e,this.graphMode=e.mode||(this.changeView?Jt.change:Jt.standard),this.changeView=this.graphMode===Jt.change,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.equalizer.graphResponse=e,this.equalizer.controls.searchComponent.graphResponse=e,this.violationMap.clear(),e.violations&&Object.entries(e.violations).forEach(([e,t])=>{this.violationMap.set(e,t)}),this.buildGraphAndRender().then(()=>{this.activeNode||this.centerOnRoot()})}rotate(){switch(this.direction){case es.LEFT:this.direction=es.UP;break;case es.DOWN:this.direction=es.LEFT;break;case es.RIGHT:this.direction=es.DOWN;break;case es.UP:this.direction=es.RIGHT}this.resetNodes(),this.buildGraphAndRender().then(()=>{this.activeNode&&this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id}}))})}mouseMove(e){if(this.grabbed){let t=Math.sqrt((e.clientX-this.startX)**2+(e.clientY-this.startY)**2);!this.isDragging&&t>this.dragThreshold&&(this.isDragging=!0),this.isDragging&&requestAnimationFrame(()=>{let t=this.svgItem.viewBox.baseVal,n=(e.clientX-this.startX)*(t.width/this.svgItem.clientWidth),r=(e.clientY-this.startY)*(t.height/this.svgItem.clientHeight);t.x=this.dragStartViewBoxX-n,t.y=this.dragStartViewBoxY-r,this.zoomX=t.x,this.zoomY=t.y,this.zoomW=t.width,this.zoomH=t.height})}}mouseDown(e){this.grabbed=!0;let t=this.svgItem.viewBox.baseVal;this.startX=e.clientX,this.startY=e.clientY,this.dragStartViewBoxX=t.x,this.dragStartViewBoxY=t.y}mouseUp(){this.grabbed=!1,this.isDragging=!1}zoom(e){e=Math.abs(e)<.02?e/Math.abs(e)*.02:e;let[t,n,r,i]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],a=t+r/2,o=n+i/2,[s,c]=[r+r*e,i+i*e],l=a-s/2,u=o-c/2;s>=this.zoomMax||s<=this.zoomMin||(this.svgItem.setAttribute(`viewBox`,`${l} ${u} ${s} ${c}`),this.zoomX=l,this.zoomY=u,this.zoomW=s,this.zoomH=c)}zoomIn(){this.zoom(-.1)}zoomOut(){this.zoom(.1)}onWheel(e){e.preventDefault();let t=e.deltaY/1e3;t=Math.abs(t)<.02?.02*e.deltaY/Math.abs(e.deltaY):t;let n=new DOMPoint(e.clientX,e.clientY);n=n.matrixTransform(this.svgItem.getScreenCTM()?.inverse());let[r,i,a,o]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],[s,c]=[(n.x-r)/a,(n.y-i)/o],[l,u]=[a+a*t,o+o*t],d=n.x-s*l,f=n.y-c*u;l>=this.zoomMax||l<=this.zoomMin||Number.isNaN(d)||Number.isNaN(f)||Number.isNaN(l)||Number.isNaN(u)||requestAnimationFrame(()=>{this.zoomX=d,this.zoomY=f,this.zoomW=l,this.zoomH=u,this.svgItem.setAttribute(`viewBox`,`${d} ${f} ${l} ${u}`)})}equalizerFiltered(e){this.clearPathReveal(),this.graphResponse=e.detail.graph,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.extractEQPreferences(e);let t=e.detail.povMode;this.povNodeId=e.detail.povNodeId||null,t&&(this.povMode=!0),this.buildGraphAndRender().then(()=>{if(t&&this.povFocusNodeId){this.equalizer.controls.povNode=this.povNode;let e=this.graphResponse.nodes?.find(e=>e.id===this.povFocusNodeId);e&&this.moveToNode(e,!1)}else this.activeNode||this.centerOnRoot()})}extractEQPreferences(e){e.detail.spacing&&(e.detail.spacing.nodeNodeBetweenLayers&&(this.nodeNodeBetweenLayers=e.detail.spacing.nodeNodeBetweenLayers.toString()),e.detail.spacing.nodeNode&&(this.nodeNode=e.detail.spacing.nodeNode.toString()),e.detail.spacing.edgeNodeBetweenLayers&&(this.edgeNodeBetweenLayers=e.detail.spacing.edgeNodeBetweenLayers.toString()),e.detail.spacing.edgeNode&&(this.edgeNode=e.detail.spacing.edgeNode.toString()),this.bendEdges=!!e.detail.spacing.bendEdges,this.bendPoints=!!e.detail.spacing.bendPoints)}equalizerChanged(e){this.clearPathReveal(),e.detail.graph.nodes.length>0&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.graphResponse=e.detail.graph),this.extractEQPreferences(e),this.buildGraphAndRender().then(()=>{this.activeNode&&this._visible&&this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id,first:!0}}))})}resetNodes(){this.graph.children?.forEach(e=>{let t=e;delete t.x,delete t.y}),this.graph.edges?.forEach(e=>{delete e.sections})}filterGraphByExpansion(e,t){return this.layoutFilterManager.filterGraphByExpansion(e,t,this.povMode)}preservePositions(){this.layoutFilterManager.preservePositions(this.graph)}applyPositionHints(e){this.layoutFilterManager.applyPositionHints(e)}toggleNodeExpansion(e){this.expansionManager.toggleNodeExpansion(e)}loadMoreChildren(e){this.expansionManager.loadMoreChildren(e)}isNodeExpanded(e){return this.expansionManager.isNodeExpanded(e)}isNodeCurrentlyVisible(e){return this.expansionManager.isNodeCurrentlyVisible(e)}invalidateChildrenCache(){this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache()}addToNodeMap(e){this.nodeMap.has(e.id)||this.nodeMap.set(e.id,e)}ensureNodesVisible(e){this.expansionManager.ensureNodesVisible(e)}revealPathToNode(e){this.expansionManager.revealPathToNode(e,this.povMode)}clearPathReveal(){this.expansionManager.clearPathReveal()}generateOptions(){return{"spacing.nodeNodeBetweenLayers":this.nodeNodeBetweenLayers,"spacing.nodeNode":this.nodeNode,"elk.nodeLabels.placement":`INSIDE V_CENTER H_RIGHT`,"elk.algorithm":`layered`,"elk.direction":this.direction,"org.eclipse.elk.edgeRouting":`ORTHOGONAL`,"elk.layered.unnecessaryBendpoints":`true`,"elk.layered.spacing.edgeNodeBetweenLayers":this.edgeNodeBetweenLayers,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment":`BALANCED`,"org.eclipse.elk.layered.cycleBreaking.strategy":`DEPTH_FIRST`,"nodePlacement.strategy":`BRANDES_KOEPF`,"org.eclipse.elk.spacing.edgeLabel":`0`,"org.eclipse.elk.spacing.edgeNode":this.edgeNode,"org.eclipse.elk.layered.edgeLabels.sideSelection":`ALWAYS_UP`,"org.eclipse.elk.spacing.portPort":`10`,"elk.interactive":`true`,"elk.interactiveLayout":`true`,"elk.layered.interactiveReferencePoint":`CENTER`,"elk.layered.crossingMinimization.semiInteractive":`true`,"elk.layered.considerModelOrder.strategy":`NODES_AND_EDGES`}}buildGraph(){let e=++this.layoutRequestId,t=this.generateOptions(),n=this.filterGraphByExpansion(this.graphResponse.nodes||[],this.graphResponse.edges||[]);this.hasMoreChildren=n.hasMoreChildren,this.applyPositionHints(n.nodes);let r={id:`root`,layoutOptions:t,children:n.nodes,edges:n.edges};return this.nodeMap.clear(),this.equalizer.graphResponse||(this.equalizer.graphResponse=this.graphResponse),new Promise((n,i)=>{let a=()=>{this.elkLayoutWorker.removeEventListener(`message`,o),this.elkLayoutWorker.removeEventListener(`error`,s)},o=t=>{t.data.requestId===e&&(a(),t.data.success?(this.graph=t.data.graph,this.readyGo(),n(this.graph)):i(Error(t.data.error)))},s=e=>{a(),i(Error(`Worker error: ${e.message}`))};this.elkLayoutWorker.addEventListener(`message`,o),this.elkLayoutWorker.addEventListener(`error`,s),this.elkLayoutWorker.postMessage({requestId:e,graph:r,layoutOptions:t})})}async buildGraphAndRender(){await this.buildGraph(),await this.updateComplete,await new Promise(e=>requestAnimationFrame(()=>e()))}buildNodes(){this.nodeMap.clear(),this.definitionCache.clear(),this.edgeMap.clear();let e=this.explorerComponentFactory.buildNodes({graph:this.graph,graphResponse:this.graphResponse,expandedNodes:this.expandedNodes,hasMoreChildren:this.hasMoreChildren,povMode:this.povMode,povNodeId:this.povNodeId,activeNode:this.activeNode,violationMap:this.violationMap,disablePovMode:this.disablePovMode,hideExamples:this.hideExamples,changeView:this.changeView,graphMode:this.graphMode});this.nodes=e.nodes,this.nodeComponents=e.nodeComponents,this.renderGraphMap=e.renderGraphMap,this.nodeComponentMap=e.nodeComponentMap}buildEdges(){let e=this.explorerComponentFactory.buildEdges({graph:this.graph,collapsedEdges:this.collapsedEdges,bendPoints:this.bendPoints,bendEdges:this.bendEdges,edgePathStyle:this.edgePathStyle,nodeLimitExceeded:this.nodeLimitExceeded,povMode:this.povMode},this.renderGraphMap);this.edges=e.edges,this.edgeComponents=e.edgeComponents,this.edgeComponentMap=e.edgeComponentMap}readyGo(){this.buildNodes(),this.buildEdges(),this.ready=!0,this.requestUpdate()}reset(){this.direction=es.RIGHT;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}this.zoomH=n,this.zoomW=t,this.zoomX=-150,this.zoomY=-150,this.svgItem.setAttribute(`viewBox`,`-150 -150 ${t} ${n}`),this.resetNodes(),this.buildGraphAndRender().then(()=>{this.snapToRoot()})}snapToRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=Zo(this.direction,e,t);this.snapViewBox(n.x,n.y)}this.activeNode=e}}resetSelection(){if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}this.activeNode=void 0,this.previousActiveNodeId=null,this.requestUpdate()}centerOnRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=Zo(this.direction,e,t);this.animateViewBox(n.x,n.y,200)}this.activeNode=e}}navigateToRoot(){this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}animateViewBox(e,t,n){let r=++this.currentAnimationId,i=this.svgItem.viewBox.baseVal,a=i.x,o=i.y,s=performance.now(),c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=this;function u(d){if(r!==l.currentAnimationId)return;let f=d-s,p=Math.min(f/n,1),m=c(p);i.x=a+(e-a)*m,i.y=o+(t-o)*m,l.zoomX=i.x,l.zoomY=i.y,p<1&&requestAnimationFrame(u)}requestAnimationFrame(u)}snapViewBox(e,t){this.currentAnimationId++;let n=this.svgItem.viewBox.baseVal;n.x=e,n.y=t,this.zoomX=e,this.zoomY=t,this.zoomW=n.width,this.zoomH=n.height}getNodeScreenOffset(e){let t=this.svgItem?.viewBox?.baseVal;if(!t)return null;let n=this.graph?.children?.find(t=>t.id===e);if(!n||n.x===void 0||n.y===void 0)return null;let r=n.width||0,i=n.height||0,a=n.x+r/2,o=n.y+i/2,s=t.x+t.width/2,c=t.y+t.height/2;return{x:a-s,y:o-c}}restoreNodeScreenPosition(e,t){let n=this.svgItem?.viewBox?.baseVal;if(!n)return;let r=this.graph?.children?.find(t=>t.id===e);if(!r||r.x===void 0||r.y===void 0)return;let i=r.width||0,a=r.height||0,o=r.x+i/2,s=r.y+a/2,c=o-t.x,l=s-t.y,u=c-n.width/2,d=l-n.height/2;this.snapViewBox(u,d)}moveToNode(e,t=!1,n=!1){if(this.svgItem&&this.graph?.children){let t=this.svgItem.viewBox.baseVal,r=this.graph.children.find(t=>t.id===e.id);if(r&&r.x!==void 0&&r.y!==void 0&&!r.filtered){let e=Zo(this.direction,r,t);n?this.snapViewBox(e.x,e.y):this.animateViewBox(e.x,e.y,200)}}}buildBaseViewBox(){let e=600,t=0;return this.graph.children?.forEach(()=>{e+=1,t+=20}),t>900&&(t=900),{base:e,offset:t}}render(){if(!this.ready)return N` + `}var Go=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},Ko=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},qo=class{constructor(e){this.childrenMapCache=null,this.expandedNodes=new Set([`root`]),this.visibleChildrenCount=new Map,this.pathRevealNodes=new Set,this.pathRevealTarget=null,this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null,this.CHILD_BATCH_SIZE=10,this.callbacks=e}toggleNodeExpansion(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.clearPathRevealDescendants(e);this.expandedNodes.has(e)?this.expandedNodes.delete(e):t||this.expandedNodes.add(e),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}loadMoreChildren(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE;this.visibleChildrenCount.set(e,t+this.CHILD_BATCH_SIZE),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}isNodeExpanded(e){return this.expandedNodes.has(e)}isNodeCurrentlyVisible(e){if(e===`root`)return!0;let t=this.callbacks.getNodeMap().get(e);if(!t)return!1;let n=t.parentId||`root`;if(!this.expandedNodes.has(n))return!1;if(!this.childrenMapCache)return!0;let r=this.childrenMapCache.get(n);if(!r)return!0;let i=this.visibleChildrenCount.get(n)||this.CHILD_BATCH_SIZE,a=r.findIndex(t=>t.id===e);return a>=0&&ae.id===t.id);if(r<0){n.push(t);let r=n.length;r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}else r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}}revealPathToNode(e,t){if(t)return;let n=this.callbacks.getNodeMap(),r=[],i=e;for(;i&&i!==`root`;){let e=n.get(i);if(!e||this.isNodeCurrentlyVisible(i)||this.pathRevealNodes.has(i))break;r.push(i),i=e.parentId||`root`}let a=n.get(e);if(r.length===0)a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a),this.callbacks.moveToNode(a));else{r.reverse();for(let e of r)this.pathRevealNodes.add(e);this.pathRevealTarget=e,a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a)),this.callbacks.buildGraph().then(()=>{a&&this.callbacks.moveToNode(a)})}}clearPathReveal(){this.pathRevealNodes.size>0&&(this.pathRevealNodes.clear(),this.pathRevealTarget=null)}clearPathRevealDescendants(e){if(this.pathRevealNodes.size===0)return!1;let t=this.callbacks.getNodeMap(),n=[];for(let r of this.pathRevealNodes){let i=r;for(;i&&i!==`root`;){let a=t.get(i);if(!a)break;if(a.parentId===e){n.push(r);break}i=a.parentId}}for(let e of n)this.pathRevealNodes.delete(e);return this.pathRevealTarget&&n.includes(this.pathRevealTarget)&&(this.pathRevealTarget=null),n.length>0}hasPathReveal(){return this.pathRevealNodes.size>0}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(){if(this.childrenMapCache)return;this.childrenMapCache=new Map;let e=this.callbacks.getGraphResponseNodes()||[];for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}getState(){return{expandedNodes:this.expandedNodes,visibleChildrenCount:this.visibleChildrenCount,pathRevealNodes:this.pathRevealNodes,pathRevealTarget:this.pathRevealTarget}}saveState(){return{expandedNodes:new Set(this.expandedNodes),visibleChildrenCount:new Map(this.visibleChildrenCount)}}restoreState(e){this.expandedNodes.clear();for(let t of e.expandedNodes)this.expandedNodes.add(t);this.visibleChildrenCount.clear();for(let[t,n]of e.visibleChildrenCount)this.visibleChildrenCount.set(t,n)}},Jo=class{constructor(e){this.childrenMapCache=null,this.positionCache=new Map,this.callbacks=e}filterGraphByExpansion(e,t,n){let r=new Map,i=new Map,a=this.callbacks.getExpandedNodes(),o=this.callbacks.getVisibleChildrenCount(),s=this.callbacks.getPathRevealNodes(),c=this.callbacks.getChildBatchSize(),l=e.find(e=>e.id===`root`);if(l&&r.set(`root`,l),this.buildChildrenMapCache(e),n)for(let t of e)r.set(t.id,t);else{let e=[`root`],t=0;for(;ta&&i.set(n,t.length-a)}else if(s.size>0){let t=this.childrenMapCache.get(n)||[];for(let n of t)s.has(n.id)&&(r.set(n.id,n),e.push(n.id))}}}let u=t.filter(e=>!(!r.has(e.sources[0])||!r.has(e.targets[0])));return{nodes:Array.from(r.values()),edges:u,hasMoreChildren:i}}preservePositions(e){this.positionCache.clear(),e?.children?.forEach(e=>{e.x!==void 0&&e.y!==void 0&&this.positionCache.set(e.id,{x:e.x,y:e.y})})}applyPositionHints(e){for(let t of e){let e=this.positionCache.get(t.id);e&&(t.x=e.x,t.y=e.y)}}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(e){if(!this.childrenMapCache){this.childrenMapCache=new Map;for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}}clearPositionCache(){this.positionCache.clear()}getPositionCache(){return this.positionCache}},Yo=.22,Xo=.5;function Zo(e){switch(e){case`LEFT`:return{x:.78,y:Xo};case`UP`:return{x:Xo,y:.78};case`DOWN`:return{x:Xo,y:Yo};default:return{x:Yo,y:Xo}}}function Qo(e,t,n){let r=Zo(e),i=(t.x||0)+(t.width||0)/2,a=(t.y||0)+(t.height||0)/2;return{x:i-n.width*r.x,y:a-n.height*r.y}}function $o(e,t){let n=(e.x||0)+(e.width||0)/2,r=(e.y||0)+(e.height||0)/2;return{x:n-t.width/2,y:r-t.height/2}}function es(e,t,n){return t.id===`root`?Qo(e,t,n):$o(t,n)}var ts=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ns,rs;(function(e){e.UP=`UP`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`})(rs||={});var is=ns=class extends ca{get expandedNodes(){return this.expansionManager.expandedNodes}get visibleChildrenCount(){return this.expansionManager.visibleChildrenCount}get pathRevealNodes(){return this.expansionManager.pathRevealNodes}get pathRevealTarget(){return this.expansionManager.pathRevealTarget}constructor(){super(),this.edgePathStyle=`d3`,this.embeddedMode=!1,this.disablePovMode=!1,this.hideExamples=!1,this.hideControls=!1,this.changeView=!1,this.graphMode=Jt.standard,this.povPreviousViewBox=null,this.povFocusNodeId=null,this.layoutRequestId=0,this.nodeComponents=[],this.edgeComponents=[],this.scale=1,this.isDragging=!1,this.dragThreshold=5,this.dragStartViewBoxX=0,this.dragStartViewBoxY=0,this.previousActiveNodeId=null,this.zoomMax=8e3,this.zoomMin=50,this.collapsedNodes=new Map,this.collapsedEdges=new Map,this.hasMoreChildren=new Map,this.currentAnimationId=0,this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null,this.resizeObserver=null,this.containerWidth=0,this.containerHeight=0,this._resizeRafId=0,this.ready=!1,this.direction=rs.RIGHT,this.nodeMap=new Map,this.definitionCache=new Map,this.edgeMap=new Map,this.violationMap=new Map,this.renderGraphMap=new Map,this.edgeComponentMap=new Map,this.nodeComponentMap=new Map,this.collapsedNodes=new Map,this.nodes=[],this.edges=[],this.nodeNodeBetweenLayers=`100`,this.nodeNode=`80`,this.edgeNodeBetweenLayers=`30`,this.edgeNode=`120`,this.bendEdges=!0,this.bendPoints=!0,this.nodeLimitExceeded=!1,this.nodeLimit=-1,this.equalizer=new ha,this.renderEqualizer=!0,this.equalizer.renderEqualizer=this.renderEqualizer,this.equalizer.nodeNodeBetweenLayers=parseInt(this.nodeNodeBetweenLayers),this.equalizer.nodeNode=parseInt(this.nodeNode),this.equalizer.edgeNodeBetweenLayers=parseInt(this.edgeNodeBetweenLayers),this.equalizer.edgeNode=parseInt(this.edgeNode),this.equalizer.bendEdges=this.bendEdges,this.equalizer.bendPoints=this.bendPoints,this.zoomX=null,this.zoomY=null,this.zoomW=null,this.zoomH=null,this.graphDependentWorker=ns.graphDependentWorkerFactory?ns.graphDependentWorkerFactory():new Go,this.elkLayoutWorker=ns.elkWorkerFactory?ns.elkWorkerFactory():new Ko,this.elkLayoutWorker.onerror=e=>{console.error(`[explorer] ELK layout worker error:`,e)},this.expansionManager=new qo({getNodeMap:()=>this.nodeMap,getGraphResponseNodes:()=>this.graphResponse?.nodes,buildGraph:()=>this.buildGraph(),moveToNode:e=>this.moveToNode(e),getActiveNode:()=>this.activeNode,setActiveNode:e=>{if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}if(this.activeNode=e,e&&this.renderGraphMap){let t=this.renderGraphMap.get(e.id);t&&(t.active=!0)}this.requestUpdate()},setPreviousActiveNodeId:e=>{this.previousActiveNodeId=e},getNodeScreenOffset:e=>this.getNodeScreenOffset(e),restoreNodeScreenPosition:(e,t)=>this.restoreNodeScreenPosition(e,t),preservePositions:()=>this.layoutFilterManager.preservePositions(this.graph)}),this.layoutFilterManager=new Jo({getExpandedNodes:()=>this.expansionManager.expandedNodes,getVisibleChildrenCount:()=>this.expansionManager.visibleChildrenCount,getPathRevealNodes:()=>this.expansionManager.pathRevealNodes,getChildBatchSize:()=>this.expansionManager.CHILD_BATCH_SIZE}),this.explorerComponentFactory=new Ho({getNodeMap:()=>this.nodeMap,getDefinitionCache:()=>this.definitionCache,getEdgeMap:()=>this.edgeMap}),this.boundZoomIn=this.zoomIn.bind(this),this.boundZoomOut=this.zoomOut.bind(this),this.boundRotate=this.rotate.bind(this),this.boundReset=this.reset.bind(this),this.boundEqualizerChanged=this.equalizerChanged.bind(this),this.boundEqualizerFiltered=this.equalizerFiltered.bind(this),this.boundDependentNodeClicked=this.dependentNodeClicked.bind(this),this.boundLoadMoreChildren=this.loadMoreChildrenClicked.bind(this),this.boundPovModeExit=this.handlePovModeExit.bind(this),this.boundGraphDependentMessage=e=>{this.toggleNodeVisibility(e.data.filteredNodes,e.data.filteredEdges,e.data.collapse)},this.equalizer.addEventListener(Nn,this.boundZoomIn),this.equalizer.addEventListener(Pn,this.boundZoomOut),this.equalizer.addEventListener(Fn,this.boundRotate),this.equalizer.addEventListener(In,this.boundReset),this.equalizer.addEventListener(Vn,this.boundEqualizerChanged),this.equalizer.addEventListener(Hn,this.boundEqualizerFiltered),this.addEventListener(Un,this.boundDependentNodeClicked),this.addEventListener(Wn,this.boundLoadMoreChildren),this.equalizer.addEventListener(Kn,this.boundPovModeExit),this.graphDependentWorker.onmessage=this.boundGraphDependentMessage}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.elkLayoutWorker?.terminate(),this.graphDependentWorker?.terminate(),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.equalizer.removeEventListener(Nn,this.boundZoomIn),this.equalizer.removeEventListener(Pn,this.boundZoomOut),this.equalizer.removeEventListener(Fn,this.boundRotate),this.equalizer.removeEventListener(In,this.boundReset),this.equalizer.removeEventListener(Vn,this.boundEqualizerChanged),this.equalizer.removeEventListener(Hn,this.boundEqualizerFiltered),this.equalizer.removeEventListener(Kn,this.boundPovModeExit),this.removeEventListener(Un,this.boundDependentNodeClicked),this.removeEventListener(Wn,this.boundLoadMoreChildren)}setupResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._resizeRafId),this._resizeRafId=requestAnimationFrame(()=>{let{width:e,height:t}=this.getBoundingClientRect();e!==0&&t!==0&&(Math.abs(e-this.containerWidth)<2&&Math.abs(t-this.containerHeight)<2||(this.containerWidth=e,this.containerHeight=t))})}),this.resizeObserver.observe(this)}updateViewBoxForContainer(){if(!this.svgItem||this.containerWidth===0||this.containerHeight===0)return;let e=this.svgItem.viewBox.baseVal,t=e.x+e.width/2,n=e.y+e.height/2,r=this.containerWidth/this.containerHeight,i=this.buildBaseViewBox().base+300,a,o;r>1?(o=i,a=i*r):(a=i,o=i/r),e.width=a,e.height=o,e.x=t-a/2,e.y=n-o/2,this.zoomW=a,this.zoomH=o,this.zoomX=e.x,this.zoomY=e.y}toggleNodeVisibility(e,t,n){e.forEach(e=>{if(!e?.id)return;let t=this.nodeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedNodes.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedNodes.delete(e.id)))}),t.forEach(e=>{if(!e?.id)return;let t=this.edgeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedEdges.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedEdges.delete(e.id)))}),this.requestUpdate()}dependentNodeClicked(e){let t=e.detail.node.id;this.toggleNodeExpansion(t)}loadMoreChildrenClicked(e){this.loadMoreChildren(e.detail.parentId)}enterPovMode(e,t){let n=this.expansionManager.saveState();this.savedExpandedNodes=n.expandedNodes,this.savedVisibleChildrenCount=n.visibleChildrenCount,this.povMode=!0,this.povFocusNodeId=e,this.povNode=t,this.povNodeId=e}exitPovMode(e=!0){this.savedExpandedNodes&&this.savedVisibleChildrenCount&&(this.expansionManager.restoreState({expandedNodes:this.savedExpandedNodes,visibleChildrenCount:this.savedVisibleChildrenCount}),this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null),this.graphResponse?.nodes?.forEach(e=>{e.dependency&&=!1}),this.graphResponse?.edges?.forEach(e=>{e.dependency&&=!1}),this.povMode=!1,this.povNode=null,this.equalizer.controls.povNode=null,e&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache())}handlePovModeExit(){this.exitPovMode(!0)}updateGraphResponse(e){this.graphResponse=e,this.graphMode=e.mode||(this.changeView?Jt.change:Jt.standard),this.changeView=this.graphMode===Jt.change,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.equalizer.graphResponse=e,this.equalizer.controls.searchComponent.graphResponse=e,this.violationMap.clear(),e.violations&&Object.entries(e.violations).forEach(([e,t])=>{this.violationMap.set(e,t)}),this.buildGraphAndRender().then(()=>{this.activeNode||this.centerOnRoot()})}rotate(){switch(this.direction){case rs.LEFT:this.direction=rs.UP;break;case rs.DOWN:this.direction=rs.LEFT;break;case rs.RIGHT:this.direction=rs.DOWN;break;case rs.UP:this.direction=rs.RIGHT}this.resetNodes(),this.buildGraphAndRender().then(()=>{this.activeNode&&this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id}}))})}mouseMove(e){if(this.grabbed){let t=Math.sqrt((e.clientX-this.startX)**2+(e.clientY-this.startY)**2);!this.isDragging&&t>this.dragThreshold&&(this.isDragging=!0),this.isDragging&&requestAnimationFrame(()=>{let t=this.svgItem.viewBox.baseVal,n=(e.clientX-this.startX)*(t.width/this.svgItem.clientWidth),r=(e.clientY-this.startY)*(t.height/this.svgItem.clientHeight);t.x=this.dragStartViewBoxX-n,t.y=this.dragStartViewBoxY-r,this.zoomX=t.x,this.zoomY=t.y,this.zoomW=t.width,this.zoomH=t.height})}}mouseDown(e){this.grabbed=!0;let t=this.svgItem.viewBox.baseVal;this.startX=e.clientX,this.startY=e.clientY,this.dragStartViewBoxX=t.x,this.dragStartViewBoxY=t.y}mouseUp(){this.grabbed=!1,this.isDragging=!1}zoom(e){e=Math.abs(e)<.02?e/Math.abs(e)*.02:e;let[t,n,r,i]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],a=t+r/2,o=n+i/2,[s,c]=[r+r*e,i+i*e],l=a-s/2,u=o-c/2;s>=this.zoomMax||s<=this.zoomMin||(this.svgItem.setAttribute(`viewBox`,`${l} ${u} ${s} ${c}`),this.zoomX=l,this.zoomY=u,this.zoomW=s,this.zoomH=c)}zoomIn(){this.zoom(-.1)}zoomOut(){this.zoom(.1)}onWheel(e){e.preventDefault();let t=e.deltaY/1e3;t=Math.abs(t)<.02?.02*e.deltaY/Math.abs(e.deltaY):t;let n=new DOMPoint(e.clientX,e.clientY);n=n.matrixTransform(this.svgItem.getScreenCTM()?.inverse());let[r,i,a,o]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],[s,c]=[(n.x-r)/a,(n.y-i)/o],[l,u]=[a+a*t,o+o*t],d=n.x-s*l,f=n.y-c*u;l>=this.zoomMax||l<=this.zoomMin||Number.isNaN(d)||Number.isNaN(f)||Number.isNaN(l)||Number.isNaN(u)||requestAnimationFrame(()=>{this.zoomX=d,this.zoomY=f,this.zoomW=l,this.zoomH=u,this.svgItem.setAttribute(`viewBox`,`${d} ${f} ${l} ${u}`)})}equalizerFiltered(e){this.clearPathReveal(),this.graphResponse=e.detail.graph,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.extractEQPreferences(e);let t=e.detail.povMode;this.povNodeId=e.detail.povNodeId||null,t&&(this.povMode=!0),this.buildGraphAndRender().then(()=>{if(t&&this.povFocusNodeId){this.equalizer.controls.povNode=this.povNode;let e=this.graphResponse.nodes?.find(e=>e.id===this.povFocusNodeId);e&&this.moveToNode(e,!1)}else this.activeNode||this.centerOnRoot()})}extractEQPreferences(e){e.detail.spacing&&(e.detail.spacing.nodeNodeBetweenLayers&&(this.nodeNodeBetweenLayers=e.detail.spacing.nodeNodeBetweenLayers.toString()),e.detail.spacing.nodeNode&&(this.nodeNode=e.detail.spacing.nodeNode.toString()),e.detail.spacing.edgeNodeBetweenLayers&&(this.edgeNodeBetweenLayers=e.detail.spacing.edgeNodeBetweenLayers.toString()),e.detail.spacing.edgeNode&&(this.edgeNode=e.detail.spacing.edgeNode.toString()),this.bendEdges=!!e.detail.spacing.bendEdges,this.bendPoints=!!e.detail.spacing.bendPoints)}equalizerChanged(e){this.clearPathReveal(),e.detail.graph.nodes.length>0&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.graphResponse=e.detail.graph),this.extractEQPreferences(e),this.buildGraphAndRender().then(()=>{this.activeNode&&this._visible&&this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id,first:!0}}))})}resetNodes(){this.graph.children?.forEach(e=>{let t=e;delete t.x,delete t.y}),this.graph.edges?.forEach(e=>{delete e.sections})}filterGraphByExpansion(e,t){return this.layoutFilterManager.filterGraphByExpansion(e,t,this.povMode)}preservePositions(){this.layoutFilterManager.preservePositions(this.graph)}applyPositionHints(e){this.layoutFilterManager.applyPositionHints(e)}toggleNodeExpansion(e){this.expansionManager.toggleNodeExpansion(e)}loadMoreChildren(e){this.expansionManager.loadMoreChildren(e)}isNodeExpanded(e){return this.expansionManager.isNodeExpanded(e)}isNodeCurrentlyVisible(e){return this.expansionManager.isNodeCurrentlyVisible(e)}invalidateChildrenCache(){this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache()}addToNodeMap(e){this.nodeMap.has(e.id)||this.nodeMap.set(e.id,e)}ensureNodesVisible(e){this.expansionManager.ensureNodesVisible(e)}revealPathToNode(e){this.expansionManager.revealPathToNode(e,this.povMode)}clearPathReveal(){this.expansionManager.clearPathReveal()}generateOptions(){return{"spacing.nodeNodeBetweenLayers":this.nodeNodeBetweenLayers,"spacing.nodeNode":this.nodeNode,"elk.nodeLabels.placement":`INSIDE V_CENTER H_RIGHT`,"elk.algorithm":`layered`,"elk.direction":this.direction,"org.eclipse.elk.edgeRouting":`ORTHOGONAL`,"elk.layered.unnecessaryBendpoints":`true`,"elk.layered.spacing.edgeNodeBetweenLayers":this.edgeNodeBetweenLayers,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment":`BALANCED`,"org.eclipse.elk.layered.cycleBreaking.strategy":`DEPTH_FIRST`,"nodePlacement.strategy":`BRANDES_KOEPF`,"org.eclipse.elk.spacing.edgeLabel":`0`,"org.eclipse.elk.spacing.edgeNode":this.edgeNode,"org.eclipse.elk.layered.edgeLabels.sideSelection":`ALWAYS_UP`,"org.eclipse.elk.spacing.portPort":`10`,"elk.interactive":`true`,"elk.interactiveLayout":`true`,"elk.layered.interactiveReferencePoint":`CENTER`,"elk.layered.crossingMinimization.semiInteractive":`true`,"elk.layered.considerModelOrder.strategy":`NODES_AND_EDGES`}}buildGraph(){let e=++this.layoutRequestId,t=this.generateOptions(),n=this.filterGraphByExpansion(this.graphResponse.nodes||[],this.graphResponse.edges||[]);this.hasMoreChildren=n.hasMoreChildren,this.applyPositionHints(n.nodes);let r={id:`root`,layoutOptions:t,children:n.nodes,edges:n.edges};return this.nodeMap.clear(),this.equalizer.graphResponse||(this.equalizer.graphResponse=this.graphResponse),new Promise((n,i)=>{let a=()=>{this.elkLayoutWorker.removeEventListener(`message`,o),this.elkLayoutWorker.removeEventListener(`error`,s)},o=t=>{t.data.requestId===e&&(a(),t.data.success?(this.graph=t.data.graph,this.readyGo(),n(this.graph)):i(Error(t.data.error)))},s=e=>{a(),i(Error(`Worker error: ${e.message}`))};this.elkLayoutWorker.addEventListener(`message`,o),this.elkLayoutWorker.addEventListener(`error`,s),this.elkLayoutWorker.postMessage({requestId:e,graph:r,layoutOptions:t})})}async buildGraphAndRender(){await this.buildGraph(),await this.updateComplete,await new Promise(e=>requestAnimationFrame(()=>e()))}buildNodes(){this.nodeMap.clear(),this.definitionCache.clear(),this.edgeMap.clear();let e=this.explorerComponentFactory.buildNodes({graph:this.graph,graphResponse:this.graphResponse,expandedNodes:this.expandedNodes,hasMoreChildren:this.hasMoreChildren,povMode:this.povMode,povNodeId:this.povNodeId,activeNode:this.activeNode,violationMap:this.violationMap,disablePovMode:this.disablePovMode,hideExamples:this.hideExamples,changeView:this.changeView,graphMode:this.graphMode});this.nodes=e.nodes,this.nodeComponents=e.nodeComponents,this.renderGraphMap=e.renderGraphMap,this.nodeComponentMap=e.nodeComponentMap}buildEdges(){let e=this.explorerComponentFactory.buildEdges({graph:this.graph,collapsedEdges:this.collapsedEdges,bendPoints:this.bendPoints,bendEdges:this.bendEdges,edgePathStyle:this.edgePathStyle,nodeLimitExceeded:this.nodeLimitExceeded,povMode:this.povMode},this.renderGraphMap);this.edges=e.edges,this.edgeComponents=e.edgeComponents,this.edgeComponentMap=e.edgeComponentMap}readyGo(){this.buildNodes(),this.buildEdges(),this.ready=!0,this.requestUpdate()}reset(){this.direction=rs.RIGHT;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}this.zoomH=n,this.zoomW=t,this.zoomX=-150,this.zoomY=-150,this.svgItem.setAttribute(`viewBox`,`-150 -150 ${t} ${n}`),this.resetNodes(),this.buildGraphAndRender().then(()=>{this.snapToRoot()})}snapToRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=es(this.direction,e,t);this.snapViewBox(n.x,n.y)}this.activeNode=e}}resetSelection(){if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}this.activeNode=void 0,this.previousActiveNodeId=null,this.requestUpdate()}centerOnRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=es(this.direction,e,t);this.animateViewBox(n.x,n.y,200)}this.activeNode=e}}navigateToRoot(){this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}animateViewBox(e,t,n){let r=++this.currentAnimationId,i=this.svgItem.viewBox.baseVal,a=i.x,o=i.y,s=performance.now(),c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=this;function u(d){if(r!==l.currentAnimationId)return;let f=d-s,p=Math.min(f/n,1),m=c(p);i.x=a+(e-a)*m,i.y=o+(t-o)*m,l.zoomX=i.x,l.zoomY=i.y,p<1&&requestAnimationFrame(u)}requestAnimationFrame(u)}snapViewBox(e,t){this.currentAnimationId++;let n=this.svgItem.viewBox.baseVal;n.x=e,n.y=t,this.zoomX=e,this.zoomY=t,this.zoomW=n.width,this.zoomH=n.height}getNodeScreenOffset(e){let t=this.svgItem?.viewBox?.baseVal;if(!t)return null;let n=this.graph?.children?.find(t=>t.id===e);if(!n||n.x===void 0||n.y===void 0)return null;let r=n.width||0,i=n.height||0,a=n.x+r/2,o=n.y+i/2,s=t.x+t.width/2,c=t.y+t.height/2;return{x:a-s,y:o-c}}restoreNodeScreenPosition(e,t){let n=this.svgItem?.viewBox?.baseVal;if(!n)return;let r=this.graph?.children?.find(t=>t.id===e);if(!r||r.x===void 0||r.y===void 0)return;let i=r.width||0,a=r.height||0,o=r.x+i/2,s=r.y+a/2,c=o-t.x,l=s-t.y,u=c-n.width/2,d=l-n.height/2;this.snapViewBox(u,d)}moveToNode(e,t=!1,n=!1){if(this.svgItem&&this.graph?.children){let t=this.svgItem.viewBox.baseVal,r=this.graph.children.find(t=>t.id===e.id);if(r&&r.x!==void 0&&r.y!==void 0&&!r.filtered){let e=es(this.direction,r,t);n?this.snapViewBox(e.x,e.y):this.animateViewBox(e.x,e.y,200)}}}buildBaseViewBox(){let e=600,t=0;return this.graph.children?.forEach(()=>{e+=1,t+=20}),t>900&&(t=900),{base:e,offset:t}}render(){if(!this.ready)return N`
loading explorer... @@ -3315,13 +3318,13 @@ @mousedown="${this.mouseDown}" @mouseup="${this.mouseUp}" @mousemove="${this.mouseMove}"> - ${Vo()} + ${Wo()} ${Kt(this.edgeComponents,e=>e.edge.id,e=>e.render())} ${Kt(this.nodeComponents,e=>e.id,e=>e.render())} - `}};ts.graphDependentWorkerFactory=null,ts.elkWorkerFactory=null,ts.styles=[qt,Ji],Qo([M(`svg`)],ts.prototype,`svgItem`,void 0),Qo([M(`svg > g`)],ts.prototype,`svgGroup`,void 0),Qo([Be(`path`)],ts.prototype,`paths`,void 0),Qo([Be(`foreignObject`)],ts.prototype,`foreignObjects`,void 0),Qo([j()],ts.prototype,`ready`,void 0),Qo([A()],ts.prototype,`renderEqualizer`,void 0),Qo([A()],ts.prototype,`edgePathStyle`,void 0),Qo([A({type:Boolean})],ts.prototype,`embeddedMode`,void 0),Qo([A()],ts.prototype,`graphResponse`,void 0),Qo([A({type:Boolean})],ts.prototype,`disablePovMode`,void 0),Qo([A({type:Boolean})],ts.prototype,`hideExamples`,void 0),Qo([A({type:Boolean})],ts.prototype,`hideControls`,void 0),Qo([A({type:Boolean})],ts.prototype,`changeView`,void 0),Qo([A()],ts.prototype,`graphMode`,void 0),Qo([A()],ts.prototype,`povMode`,void 0),Qo([A()],ts.prototype,`povNodeId`,void 0),Qo([A()],ts.prototype,`povNode`,void 0),Qo([j()],ts.prototype,`models`,void 0),ts=$o=Qo([O(`pb33f-explorer`)],ts);var ns=k` + `}};is.graphDependentWorkerFactory=null,is.elkWorkerFactory=null,is.styles=[qt,Ji],ts([M(`svg`)],is.prototype,`svgItem`,void 0),ts([M(`svg > g`)],is.prototype,`svgGroup`,void 0),ts([Be(`path`)],is.prototype,`paths`,void 0),ts([Be(`foreignObject`)],is.prototype,`foreignObjects`,void 0),ts([j()],is.prototype,`ready`,void 0),ts([A()],is.prototype,`renderEqualizer`,void 0),ts([A()],is.prototype,`edgePathStyle`,void 0),ts([A({type:Boolean})],is.prototype,`embeddedMode`,void 0),ts([A()],is.prototype,`graphResponse`,void 0),ts([A({type:Boolean})],is.prototype,`disablePovMode`,void 0),ts([A({type:Boolean})],is.prototype,`hideExamples`,void 0),ts([A({type:Boolean})],is.prototype,`hideControls`,void 0),ts([A({type:Boolean})],is.prototype,`changeView`,void 0),ts([A()],is.prototype,`graphMode`,void 0),ts([A()],is.prototype,`povMode`,void 0),ts([A()],is.prototype,`povNodeId`,void 0),ts([A()],is.prototype,`povNode`,void 0),ts([j()],is.prototype,`models`,void 0),is=ns=ts([O(`pb33f-explorer`)],is);var as=k` :host { display: block; height: 100%; @@ -3428,7 +3431,7 @@ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background: var(--secondary-color-lowalpha); } -`,rs=k` +`,os=k` :host { display: inline-block; width: 1em; @@ -3441,17 +3444,17 @@ height: 100%; width: 100%; } -`,is=Symbol(),as=Symbol(),os,ss=new Map,cs=class extends L{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label=``,this.library=`default`}async resolveIcon(e,t){let n;if(t?.spriteSheet)return this.svg=N` +`,ss=Symbol(),cs=Symbol(),ls,us=new Map,ds=class extends L{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label=``,this.library=`default`}async resolveIcon(e,t){let n;if(t?.spriteSheet)return this.svg=N` - `,this.svg;try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?is:as}catch{return as}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if((t?.tagName)?.toLowerCase()!==`svg`)return is;os||=new DOMParser;let r=os.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):is}catch{return is}}connectedCallback(){super.connectedCallback(),g(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),_(this)}getIconSource(){let e=v(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){var e;let{url:t,fromLibrary:n}=this.getIconSource(),r=n?v(this.library):void 0;if(!t){this.svg=null;return}let i=ss.get(t);if(i||(i=this.resolveIcon(t,r),ss.set(t,i)),!this.initialRender)return;let a=await i;if(a===as&&ss.delete(t),t===this.getIconSource().url){if(It(a)){if(this.svg=a,r){await this.updateComplete;let e=this.shadowRoot.querySelector(`[part='svg']`);typeof r.mutator==`function`&&e&&r.mutator(e)}}else switch(a){case as:case is:this.svg=null,this.emit(`sl-error`);break;default:this.svg=a.cloneNode(!0),(e=r?.mutator)==null||e.call(r,this.svg),this.emit(`sl-load`)}}}render(){return this.svg}};cs.styles=[wn,rs],D([j()],cs.prototype,`svg`,2),D([A({reflect:!0})],cs.prototype,`name`,2),D([A()],cs.prototype,`src`,2),D([A()],cs.prototype,`label`,2),D([A({reflect:!0})],cs.prototype,`library`,2),D([I(`label`)],cs.prototype,`handleLabelChange`,1),D([I([`name`,`src`,`library`])],cs.prototype,`setIcon`,1),cs.define(`sl-icon`);var ls=c(o(((e,t)=>{var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1,i=1,a=0;n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,i){i===void 0&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+this.Diff_Timeout*1e3);var o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e==t)return e?[new n.Diff(a,e)]:[];r===void 0&&(r=!0);var s=r,c=this.diff_commonPrefix(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=this.diff_commonSuffix(e,t);var u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);var d=this.diff_compute_(e,t,s,o);return l&&d.unshift(new n.Diff(a,l)),u&&d.push(new n.Diff(a,u)),this.diff_cleanupMerge(d),d},n.prototype.diff_compute_=function(e,t,o,s){var c;if(!e)return[new n.Diff(i,t)];if(!t)return[new n.Diff(r,e)];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,d=l.indexOf(u);if(d!=-1)return c=[new n.Diff(i,l.substring(0,d)),new n.Diff(a,u),new n.Diff(i,l.substring(d+u.length))],e.length>t.length&&(c[0][0]=c[2][0]=r),c;if(u.length==1)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var p=f[0],m=f[1],h=f[2],g=f[3],_=f[4],v=this.diff_main(p,h,o,s),y=this.diff_main(m,g,o,s);return v.concat([new n.Diff(a,_)],y)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,o){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var c=s.lineArray,l=this.diff_main(e,t,!1,o);this.diff_charsToLines_(l,c),this.diff_cleanupSemantic(l),l.push(new n.Diff(a,``));for(var u=0,d=0,f=0,p=``,m=``;u=1&&f>=1){l.splice(u-d-f,d+f),u=u-d-f;for(var h=this.diff_main(p,m,!1,o),g=h.length-1;g>=0;g--)l.splice(u,0,h[g]);u+=h.length}f=0,d=0,p=``,m=``}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,a){for(var o=e.length,s=t.length,c=Math.ceil((o+s)/2),l=c,u=2*c,d=Array(u),f=Array(u),p=0;pa);b++){for(var x=-b+g;x<=b-_;x+=2){for(var S=l+x,C=x==-b||x!=b&&d[S-1]o)_+=2;else if(w>s)g+=2;else if(h){var T=l+m-x;if(T>=0&&T=E)return this.diff_bisectSplit_(e,t,C,w,a)}}}for(var ee=-b+v;ee<=b-y;ee+=2){for(var T=l+ee,E=ee==-b||ee!=b&&f[T-1]o)y+=2;else if(te>s)v+=2;else if(!h){var S=l+m-ee;if(S>=0&&S=E)return this.diff_bisectSplit_(e,t,C,w,a)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var a=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),c=t.substring(r),l=this.diff_main(a,o,!1,i),u=this.diff_main(s,c,!1,i);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};n[0]=``;function i(e){for(var t=``,i=0,o=-1,s=n.length;o`,this.svg;try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?ss:cs}catch{return cs}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if((t?.tagName)?.toLowerCase()!==`svg`)return ss;ls||=new DOMParser;let r=ls.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):ss}catch{return ss}}connectedCallback(){super.connectedCallback(),g(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),_(this)}getIconSource(){let e=v(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){var e;let{url:t,fromLibrary:n}=this.getIconSource(),r=n?v(this.library):void 0;if(!t){this.svg=null;return}let i=us.get(t);if(i||(i=this.resolveIcon(t,r),us.set(t,i)),!this.initialRender)return;let a=await i;if(a===cs&&us.delete(t),t===this.getIconSource().url){if(It(a)){if(this.svg=a,r){await this.updateComplete;let e=this.shadowRoot.querySelector(`[part='svg']`);typeof r.mutator==`function`&&e&&r.mutator(e)}}else switch(a){case cs:case ss:this.svg=null,this.emit(`sl-error`);break;default:this.svg=a.cloneNode(!0),(e=r?.mutator)==null||e.call(r,this.svg),this.emit(`sl-load`)}}}render(){return this.svg}};ds.styles=[wn,os],D([j()],ds.prototype,`svg`,2),D([A({reflect:!0})],ds.prototype,`name`,2),D([A()],ds.prototype,`src`,2),D([A()],ds.prototype,`label`,2),D([A({reflect:!0})],ds.prototype,`library`,2),D([I(`label`)],ds.prototype,`handleLabelChange`,1),D([I([`name`,`src`,`library`])],ds.prototype,`setIcon`,1),ds.define(`sl-icon`);var fs=c(o(((e,t)=>{var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1,i=1,a=0;n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,i){i===void 0&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+this.Diff_Timeout*1e3);var o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e==t)return e?[new n.Diff(a,e)]:[];r===void 0&&(r=!0);var s=r,c=this.diff_commonPrefix(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=this.diff_commonSuffix(e,t);var u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);var d=this.diff_compute_(e,t,s,o);return l&&d.unshift(new n.Diff(a,l)),u&&d.push(new n.Diff(a,u)),this.diff_cleanupMerge(d),d},n.prototype.diff_compute_=function(e,t,o,s){var c;if(!e)return[new n.Diff(i,t)];if(!t)return[new n.Diff(r,e)];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,d=l.indexOf(u);if(d!=-1)return c=[new n.Diff(i,l.substring(0,d)),new n.Diff(a,u),new n.Diff(i,l.substring(d+u.length))],e.length>t.length&&(c[0][0]=c[2][0]=r),c;if(u.length==1)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var p=f[0],m=f[1],h=f[2],g=f[3],_=f[4],v=this.diff_main(p,h,o,s),y=this.diff_main(m,g,o,s);return v.concat([new n.Diff(a,_)],y)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,o){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var c=s.lineArray,l=this.diff_main(e,t,!1,o);this.diff_charsToLines_(l,c),this.diff_cleanupSemantic(l),l.push(new n.Diff(a,``));for(var u=0,d=0,f=0,p=``,m=``;u=1&&f>=1){l.splice(u-d-f,d+f),u=u-d-f;for(var h=this.diff_main(p,m,!1,o),g=h.length-1;g>=0;g--)l.splice(u,0,h[g]);u+=h.length}f=0,d=0,p=``,m=``}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,a){for(var o=e.length,s=t.length,c=Math.ceil((o+s)/2),l=c,u=2*c,d=Array(u),f=Array(u),p=0;pa);b++){for(var x=-b+g;x<=b-_;x+=2){for(var S=l+x,C=x==-b||x!=b&&d[S-1]o)_+=2;else if(w>s)g+=2;else if(h){var T=l+m-x;if(T>=0&&T=E)return this.diff_bisectSplit_(e,t,C,w,a)}}}for(var ee=-b+v;ee<=b-y;ee+=2){for(var T=l+ee,E=ee==-b||ee!=b&&f[T-1]o)y+=2;else if(te>s)v+=2;else if(!h){var S=l+m-ee;if(S>=0&&S=E)return this.diff_bisectSplit_(e,t,C,w,a)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var a=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),c=t.substring(r),l=this.diff_main(a,o,!1,i),u=this.diff_main(s,c,!1,i);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};n[0]=``;function i(e){for(var t=``,i=0,o=-1,s=n.length;or?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2=e.length?[s,c,l,u,o]:null}var o=a(n,r,Math.ceil(n.length/4)),s=a(n,r,Math.ceil(n.length/2)),c;if(!o&&!s)return null;c=s?o&&o[4].length>s[4].length?o:s:o;var l,u,d,f;e.length>t.length?(l=c[0],u=c[1],d=c[2],f=c[3]):(d=c[0],f=c[1],l=c[2],u=c[3]);var p=c[4];return[l,u,d,f,p]},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,o=[],s=0,c=null,l=0,u=0,d=0,f=0,p=0;l0?o[s-1]:-1,u=0,d=0,f=0,p=0,c=null,t=!0)),l++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l=_?(g>=m.length/2||g>=h.length/2)&&(e.splice(l,0,new n.Diff(a,h.substring(0,g))),e[l-1][1]=m.substring(0,m.length-g),e[l+1][1]=h.substring(g),l++):(_>=m.length/2||_>=h.length/2)&&(e.splice(l,0,new n.Diff(a,m.substring(0,_))),e[l-1][0]=i,e[l-1][1]=h.substring(0,h.length-_),e[l+1][0]=r,e[l+1][1]=m.substring(_),l++),l++}l++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),a=r.match(n.nonAlphaNumericRegex_),o=i.match(n.nonAlphaNumericRegex_),s=a&&r.match(n.whitespaceRegex_),c=o&&i.match(n.whitespaceRegex_),l=s&&r.match(n.linebreakRegex_),u=c&&i.match(n.linebreakRegex_),d=l&&e.match(n.blanklineEndRegex_),f=u&&t.match(n.blanklineStartRegex_);return d||f?5:l||u?4:a&&!s&&c?3:s||c?2:a||o?1:0}for(var r=1;r=p&&(p=m,u=i,d=o,f=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=d,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,o=[],s=0,c=null,l=0,u=!1,d=!1,f=!1,p=!1;l0?o[s-1]:-1,f=p=!1),t=!0)),l++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(a,``));for(var t=0,o=0,s=0,c=``,l=``,u;t1?(o!==0&&s!==0&&(u=this.diff_commonPrefix(l,c),u!==0&&(t-o-s>0&&e[t-o-s-1][0]==a?e[t-o-s-1][1]+=l.substring(0,u):(e.splice(0,0,new n.Diff(a,l.substring(0,u))),t++),l=l.substring(u),c=c.substring(u)),u=this.diff_commonSuffix(l,c),u!==0&&(e[t][1]=l.substring(l.length-u)+e[t][1],l=l.substring(0,l.length-u),c=c.substring(0,c.length-u))),t-=o+s,e.splice(t,o+s),c.length&&(e.splice(t,0,new n.Diff(r,c)),t++),l.length&&(e.splice(t,0,new n.Diff(i,l)),t++),t++):t!==0&&e[t-1][0]==a?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,s=0,o=0,c=``,l=``}e[e.length-1][1]===``&&e.pop();var d=!1;for(t=1;tt));c++)o=n,s=a;return e.length!=c&&e[c][0]===r?s:s+(t-o)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,o=//g,c=/\n/g,l=0;l`);switch(u){case i:t[l]=``+d+``;break;case r:t[l]=``+d+``;break;case a:t[l]=``+d+``}}return t.join(``)},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw Error(`Pattern too long for this browser.`);var r=this.match_alphabet_(t),i=this;function a(e,r){var a=e/t.length,o=Math.abs(n-r);return i.Match_Distance?a+o/i.Match_Distance:o?1:a}var o=this.Match_Threshold,s=e.indexOf(t,n);s!=-1&&(o=Math.min(a(0,s),o),s=e.lastIndexOf(t,n+t.length),s!=-1&&(o=Math.min(a(0,s),o)));var c=1<=m;_--){var v=r[e.charAt(_-1)];if(p===0?g[_]=(g[_+1]<<1|1)&v:g[_]=(g[_+1]<<1|1)&v|(f[_+1]|f[_])<<1|1|f[_+1],g[_]&c){var y=a(p,_-1);if(y<=o){if(o=y,s=_-1,s>n)m=Math.max(1,2*n-s);else break}}}if(a(p+1,n)>o)break;f=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(c),this.diff_cleanupEfficiency(c));else if(e&&typeof e==`object`&&t===void 0&&o===void 0)c=e,s=this.diff_text1(c);else if(typeof e==`string`&&t&&typeof t==`object`&&o===void 0)s=e,c=t;else if(typeof e==`string`&&typeof t==`string`&&o&&typeof o==`object`)s=e,c=o;else throw Error(`Unknown call format to patch_make.`);if(c.length===0)return[];for(var l=[],u=new n.patch_obj,d=0,f=0,p=0,m=s,h=s,g=0;g=2*this.Patch_Margin&&d&&(this.patch_addContext_(u,m),l.push(u),u=new n.patch_obj,d=0,m=h,f=p)}_!==i&&(f+=v.length),_!==r&&(p+=v.length)}return d&&(this.patch_addContext_(u,m),l.push(u)),l},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?(d=this.match_main(t,u.substring(0,this.Match_MaxBits),l),d!=-1&&(f=this.match_main(t,u.substring(u.length-this.Match_MaxBits),l+u.length-this.Match_MaxBits),(f==-1||d>=f)&&(d=-1))):d=this.match_main(t,u,l),d==-1)s[c]=!1,o-=e[c].length2-e[c].length1;else{s[c]=!0,o=d-l;var p=f==-1?t.substring(d,d+u.length):t.substring(d,f+this.Match_MaxBits);if(u==p)t=t.substring(0,d)+this.diff_text2(e[c].diffs)+t.substring(d+u.length);else{var m=this.diff_main(u,p,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(m)/u.length>this.Patch_DeleteThreshold)s[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var h=0,g,_=0;_s[0][1].length){var c=t-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],o.start1-=c,o.start2-=c,o.length1+=c,o.length2+=c}if(o=e[e.length-1],s=o.diffs,s.length==0||s[s.length-1][0]!=a)s.push(new n.Diff(a,r)),o.length1+=t,o.length2+=t;else if(t>s[s.length-1][1].length){var c=t-s[s.length-1][1].length;s[s.length-1][1]+=r.substring(0,c),o.length1+=c,o.length2+=c}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,o=0;o2*t?(d.length1+=m.length,c+=m.length,f=!1,d.diffs.push(new n.Diff(p,m)),s.diffs.shift()):(m=m.substring(0,t-d.length1-this.Patch_Margin),d.length1+=m.length,c+=m.length,p===a?(d.length2+=m.length,l+=m.length):f=!1,d.diffs.push(new n.Diff(p,m)),m==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(m.length))}u=this.diff_text2(d.diffs),u=u.substring(u.length-this.Patch_Margin);var h=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);h!==``&&(d.length1+=h.length,d.length2+=h.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===a?d.diffs[d.diffs.length-1][1]+=h:d.diffs.push(new n.Diff(a,h))),f||e.splice(++o,0,d)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n`;break;case 2:case 3:t=N` `;break;case 4:case 5:t=N` `}return N`${t}`}renderChangeType(e){let t=N``;switch(e.change){case 1:t=N`(MODIFIED)`;break;case 2:case 3:t=N`(ADDED)`;break;case 4:case 5:t=N`(REMOVED)`}return N`${t}`}renderBreaking(e){return e?N` - `:N``}},ds=k` + `:N``}},ms=k` .props { border-top: 1px dashed var(--secondary-color); padding: 5px 0 5px 0; @@ -3727,7 +3730,7 @@ color: var(--secondary-color); } -`,fs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ps=class extends F{constructor(){super(),this.height=20,this.animateStripe=!1,this.speed=2,this._lastTime=performance.now(),this._currentOffset=0,this.warn=!1,this.danger=!1}connectedCallback(){super.connectedCallback(),this.colorAlt=`var(--background-color)`,this.colorMain=`var(--primary-color)`,this.warn&&(this.colorMain=`var(--warning-color)`),this.danger&&(this.colorMain=`var(--error-color)`),this.animateStripe&&(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this)))}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId)}updated(e){e.has(`animateStripe`)&&(this.animateStripe?(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))):this._animationFrameId&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0,this._currentOffset=0,this.requestUpdate()))}_updateAnimation(e){let t=e-this._lastTime;this._lastTime=e;let n=40/this.speed;this._currentOffset=(this._currentOffset+t/1e3*n)%40,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))}render(){let e=`rotate(45) translate(${this.animateStripe?this._currentOffset:0} 0)`;return N` +`,hs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gs=class extends F{constructor(){super(),this.height=20,this.animateStripe=!1,this.speed=2,this._lastTime=performance.now(),this._currentOffset=0,this.warn=!1,this.danger=!1}connectedCallback(){super.connectedCallback(),this.colorAlt=`var(--background-color)`,this.colorMain=`var(--primary-color)`,this.warn&&(this.colorMain=`var(--warning-color)`),this.danger&&(this.colorMain=`var(--error-color)`),this.animateStripe&&(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this)))}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId)}updated(e){e.has(`animateStripe`)&&(this.animateStripe?(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))):this._animationFrameId&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0,this._currentOffset=0,this.requestUpdate()))}_updateAnimation(e){let t=e-this._lastTime;this._lastTime=e;let n=40/this.speed;this._currentOffset=(this._currentOffset+t/1e3*n)%40,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))}render(){let e=`rotate(45) translate(${this.animateStripe?this._currentOffset:0} 0)`;return N` - `}};ps.styles=k` + `}};gs.styles=k` :host { display: block; width: 100%; @@ -3757,7 +3760,7 @@ svg { display: block; } - `,fs([A({type:Number})],ps.prototype,`height`,void 0),fs([A({type:Boolean})],ps.prototype,`animateStripe`,void 0),fs([A({type:Number})],ps.prototype,`speed`,void 0),fs([A({type:Boolean})],ps.prototype,`warn`,void 0),fs([A({type:Boolean})],ps.prototype,`danger`,void 0),ps=fs([O(`pb33f-warning-stripe`)],ps);var ms=k` + `,hs([A({type:Number})],gs.prototype,`height`,void 0),hs([A({type:Boolean})],gs.prototype,`animateStripe`,void 0),hs([A({type:Number})],gs.prototype,`speed`,void 0),hs([A({type:Boolean})],gs.prototype,`warn`,void 0),hs([A({type:Boolean})],gs.prototype,`danger`,void 0),gs=hs([O(`pb33f-warning-stripe`)],gs);var _s=k` :host { display: inline-flex; } @@ -3846,7 +3849,7 @@ box-shadow: 0 0 0 0 transparent; } } -`,hs=class extends L{constructor(){super(...arguments),this.variant=`primary`,this.pill=!1,this.pulse=!1}render(){return N` +`,vs=class extends L{constructor(){super(...arguments),this.variant=`primary`,this.pill=!1,this.pulse=!1}render(){return N` - `}};hs.styles=[wn,ms],D([A({reflect:!0})],hs.prototype,`variant`,2),D([A({type:Boolean,reflect:!0})],hs.prototype,`pill`,2),D([A({type:Boolean,reflect:!0})],hs.prototype,`pulse`,2),hs.define(`sl-badge`);var gs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_s=class extends F{constructor(){super(...arguments),this.iconSize=V.medium}formatLabel(e){return e?e.replace(/([a-z])([A-Z])/g,`$1 $2`).toUpperCase():``}render(){return N` + `}};vs.styles=[wn,_s],D([A({reflect:!0})],vs.prototype,`variant`,2),D([A({type:Boolean,reflect:!0})],vs.prototype,`pill`,2),D([A({type:Boolean,reflect:!0})],vs.prototype,`pulse`,2),vs.define(`sl-badge`);var ys=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bs=class extends F{constructor(){super(...arguments),this.iconSize=V.medium}formatLabel(e){return e?e.replace(/([a-z])([A-Z])/g,`$1 $2`).toUpperCase():``}render(){return N` ${this.formatLabel(this.icon)} - `}};_s.styles=k` + `}};bs.styles=k` :host { display: inline-flex; align-items: center; @@ -3878,7 +3881,7 @@ margin-left: 10px; padding-top: 4px; } - `,gs([A()],_s.prototype,`icon`,void 0),gs([A()],_s.prototype,`iconSize`,void 0),_s=gs([O(`pb33f-model-badge`)],_s);var vs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ys=class extends us{constructor(e){super(),this.diff=new ls.default,this.showDiff=!0,e&&(this.changes=e),this.renderChangeCountBar=!0,this.addPadding=!1,this.renderBreakingBar=!0,this.renderMeta=!1}toggleDiff(){this.showDiff=!this.showDiff}renderChange(e){let t=N``;e.context&&(e.context.originalLine&&e.context.originalLine===e.context.newLine&&(t=N` + `,ys([A()],bs.prototype,`icon`,void 0),ys([A()],bs.prototype,`iconSize`,void 0),bs=ys([O(`pb33f-model-badge`)],bs);var xs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ss=class extends ps{constructor(e){super(),this.diff=new fs.default,this.showDiff=!0,e&&(this.changes=e),this.renderChangeCountBar=!0,this.addPadding=!1,this.renderBreakingBar=!0,this.renderMeta=!1}toggleDiff(){this.showDiff=!this.showDiff}renderChange(e){let t=N``;e.context&&(e.context.originalLine&&e.context.originalLine===e.context.newLine&&(t=N` ${e.change==1?N` @@ -4046,7 +4049,7 @@ ${e}
${t} -
`}};ys.styles=[ds,Yn],vs([A()],ys.prototype,`changes`,void 0),vs([A({type:Boolean})],ys.prototype,`addPadding`,void 0),vs([A({type:Boolean})],ys.prototype,`renderBreakingBar`,void 0),vs([A({type:Boolean})],ys.prototype,`renderMeta`,void 0),vs([j()],ys.prototype,`showDiff`,void 0),vs([j()],ys.prototype,`renderChangeCountBar`,void 0),ys=vs([O(`pb33f-changes-component`)],ys);var bs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xs=class extends F{constructor(){super(...arguments),this.changes=[],this.panelHidden=!0}_flashTab(){let e=this.shadowRoot?.querySelector(`.collapse-tab`);e&&(e.addEventListener(`animationend`,()=>e.classList.remove(`flashing`),{once:!0}),e.classList.add(`flashing`))}_onCollapseClick(){this._flashTab(),this.dispatchEvent(new CustomEvent(`explorer-change-panel-toggled`,{bubbles:!0,composed:!0,detail:{hidden:!this.panelHidden}}))}render(){return N` +
`}};Ss.styles=[ms,Yn],xs([A()],Ss.prototype,`changes`,void 0),xs([A({type:Boolean})],Ss.prototype,`addPadding`,void 0),xs([A({type:Boolean})],Ss.prototype,`renderBreakingBar`,void 0),xs([A({type:Boolean})],Ss.prototype,`renderMeta`,void 0),xs([j()],Ss.prototype,`showDiff`,void 0),xs([j()],Ss.prototype,`renderChangeCountBar`,void 0),Ss=xs([O(`pb33f-changes-component`)],Ss);var Cs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ws=class extends F{constructor(){super(...arguments),this.changes=[],this.panelHidden=!0}_flashTab(){let e=this.shadowRoot?.querySelector(`.collapse-tab`);e&&(e.addEventListener(`animationend`,()=>e.classList.remove(`flashing`),{once:!0}),e.classList.add(`flashing`))}_onCollapseClick(){this._flashTab(),this.dispatchEvent(new CustomEvent(`explorer-change-panel-toggled`,{bubbles:!0,composed:!0,detail:{hidden:!this.panelHidden}}))}render(){return N`
${this.panelHidden?P:N`
@@ -4070,7 +4073,7 @@
- `}};xs.styles=[ns],bs([A({type:Array})],xs.prototype,`changes`,void 0),bs([A({type:Boolean,attribute:`panel-hidden`,reflect:!0})],xs.prototype,`panelHidden`,void 0),xs=bs([O(`pb33f-explorer-change-panel`)],xs);var Ss=k` + `}};ws.styles=[as],Cs([A({type:Array})],ws.prototype,`changes`,void 0),Cs([A({type:Boolean,attribute:`panel-hidden`,reflect:!0})],ws.prototype,`panelHidden`,void 0),ws=Cs([O(`pb33f-explorer-change-panel`)],ws);var Ts=k` :host { display: flex; @@ -4178,7 +4181,7 @@ padding-bottom: 5px; } -`,Cs=k` +`,Es=k` .scroller::-webkit-scrollbar { width: 8px; } @@ -4192,7 +4195,7 @@ background: var(--secondary-color-lowalpha); padding: var(--global-padding); } -`,ws=k` +`,Ds=k` ::-webkit-scrollbar { width: 8px; height: 8px; @@ -4206,7 +4209,7 @@ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background: var(--secondary-color-lowalpha); } -`,Ts=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Es=class extends us{constructor(){super()}getChangeValue(e){return e.new?N`${e.property}: +`,Os=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ks=class extends ps{constructor(){super()}getChangeValue(e){return e.new?N`${e.property}: ${e.new.length>100?e.new.slice(0,70)+`...`:e.new}`:e.original?N`${e.property}: ${e.original.length>100?e.original.slice(0,70)+`...`:e.original}`:N`${e.property}`}render(){return N`
@@ -4223,7 +4226,7 @@
${this.renderBreaking(e.breaking)}
${t}
`})} -
`}};Es.styles=[Ss,Cs],Ts([A()],Es.prototype,`changes`,void 0),Es=Ts([O(`pb33f-change-list`)],Es);var Ds=k` +
`}};ks.styles=[Ts,Es],Os([A()],ks.prototype,`changes`,void 0),ks=Os([O(`pb33f-change-list`)],ks);var As=k` :host { display: block; outline: 0; @@ -4375,7 +4378,7 @@ outline: dashed 1px SelectedItem; } } -`,Os=k` +`,js=k` :host { display: inline-block; } @@ -4493,7 +4496,7 @@ color: var(--sl-input-required-content-color); margin-inline-start: var(--sl-input-required-content-offset); } -`,ks=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new dn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit(`sl-change`)}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return N` +`,Ms=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new dn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit(`sl-change`)}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return N`
@@ -4551,7 +4554,7 @@ ${this.helpText}
- `}};ks.styles=[wn,en,Os],ks.dependencies={"sl-icon":cs},D([M(`input[type="checkbox"]`)],ks.prototype,`input`,2),D([j()],ks.prototype,`hasFocus`,2),D([A()],ks.prototype,`title`,2),D([A()],ks.prototype,`name`,2),D([A()],ks.prototype,`value`,2),D([A({reflect:!0})],ks.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],ks.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],ks.prototype,`checked`,2),D([A({type:Boolean,reflect:!0})],ks.prototype,`indeterminate`,2),D([$t(`checked`)],ks.prototype,`defaultChecked`,2),D([A({reflect:!0})],ks.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],ks.prototype,`required`,2),D([A({attribute:`help-text`})],ks.prototype,`helpText`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],ks.prototype,`handleDisabledChange`,1),D([I([`checked`,`indeterminate`],{waitUntilFirstUpdate:!0})],ks.prototype,`handleStateChange`,1);var As=k` + `}};Ms.styles=[wn,en,js],Ms.dependencies={"sl-icon":ds},D([M(`input[type="checkbox"]`)],Ms.prototype,`input`,2),D([j()],Ms.prototype,`hasFocus`,2),D([A()],Ms.prototype,`title`,2),D([A()],Ms.prototype,`name`,2),D([A()],Ms.prototype,`value`,2),D([A({reflect:!0})],Ms.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],Ms.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],Ms.prototype,`checked`,2),D([A({type:Boolean,reflect:!0})],Ms.prototype,`indeterminate`,2),D([$t(`checked`)],Ms.prototype,`defaultChecked`,2),D([A({reflect:!0})],Ms.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],Ms.prototype,`required`,2),D([A({attribute:`help-text`})],Ms.prototype,`helpText`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Ms.prototype,`handleDisabledChange`,1),D([I([`checked`,`indeterminate`],{waitUntilFirstUpdate:!0})],Ms.prototype,`handleStateChange`,1);var Ns=k` :host { --track-width: 2px; --track-color: rgb(128 128 128 / 25%); @@ -4608,12 +4611,12 @@ stroke-dasharray: 0.05em, 3em; } } -`,js=class extends L{constructor(){super(...arguments),this.localize=new Cn(this)}render(){return N` +`,Ps=class extends L{constructor(){super(...arguments),this.localize=new Cn(this)}render(){return N` - `}};js.styles=[wn,As];var Ms=new Map,Ns=new WeakMap;function Ps(e){return e??{keyframes:[],options:{duration:0}}}function Fs(e,t){return t.toLowerCase()===`rtl`?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function Is(e,t){Ms.set(e,Ps(t))}function Ls(e,t,n){let r=Ns.get(e);if(r?.[t])return Fs(r[t],n.dir);let i=Ms.get(t);return i?Fs(i,n.dir):{keyframes:[],options:{duration:0}}}function Rs(e,t,n){return new Promise(r=>{if(n?.duration===1/0)throw Error(`Promise-based animations must be finite.`);let i=e.animate(t,ie(re({},n),{duration:Bs()?0:n.duration}));i.addEventListener(`cancel`,r,{once:!0}),i.addEventListener(`finish`,r,{once:!0})})}function zs(e){return e=e.toString().toLowerCase(),e.indexOf(`ms`)>-1?parseFloat(e):e.indexOf(`s`)>-1?parseFloat(e)*1e3:parseFloat(e)}function Bs(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Vs(e){return Promise.all(e.getAnimations().map(e=>new Promise(t=>{e.cancel(),requestAnimationFrame(t)})))}function Hs(e,t){return e.map(e=>ie(re({},e),{height:e.height===`auto`?`${t}px`:e.height}))}function Us(e,t,n){return e?t(e):n?.(e)}var Ws=class e extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute(`role`)===`treeitem`}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`treeitem`),this.setAttribute(`tabindex`,`-1`),this.isNestedItem()&&(this.slot=`children`)}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?`auto`:`0`,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit(`sl-collapse`),await Vs(this.childrenContainer);let{keyframes:e,options:t}=Ls(this,`tree-item.collapse`,{dir:this.localize.dir()});await Rs(this.childrenContainer,Hs(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.hidden=!0,this.emit(`sl-after-collapse`)}isNestedItem(){let t=this.parentElement;return!!t&&e.isTreeItem(t)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has(`selected`)&&!e.has(`indeterminate`)&&(this.indeterminate=!1)}async animateExpand(){this.emit(`sl-expand`),await Vs(this.childrenContainer),this.childrenContainer.hidden=!1;let{keyframes:e,options:t}=Ls(this,`tree-item.expand`,{dir:this.localize.dir()});await Rs(this.childrenContainer,Hs(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.style.height=`auto`,this.emit(`sl-after-expand`)}handleLoadingChange(){this.setAttribute(`aria-busy`,this.loading?`true`:`false`),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`)}handleSelectedChange(){this.setAttribute(`aria-selected`,this.selected?`true`:`false`)}handleExpandedChange(){this.isLeaf?this.removeAttribute(`aria-expanded`):this.setAttribute(`aria-expanded`,this.expanded?`true`:`false`)}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit(`sl-lazy-load`)):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit(`sl-lazy-change`)}getChildrenItems({includeDisabled:t=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(n=>e.isTreeItem(n)&&(t||!n.disabled)):[]}render(){let e=this.localize.dir()===`rtl`,t=!this.loading&&(!this.isLeaf||this.lazy);return N` + `}};Ps.styles=[wn,Ns];var Fs=new Map,Is=new WeakMap;function Ls(e){return e??{keyframes:[],options:{duration:0}}}function Rs(e,t){return t.toLowerCase()===`rtl`?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function zs(e,t){Fs.set(e,Ls(t))}function Bs(e,t,n){let r=Is.get(e);if(r?.[t])return Rs(r[t],n.dir);let i=Fs.get(t);return i?Rs(i,n.dir):{keyframes:[],options:{duration:0}}}function Vs(e,t,n){return new Promise(r=>{if(n?.duration===1/0)throw Error(`Promise-based animations must be finite.`);let i=e.animate(t,ie(re({},n),{duration:Us()?0:n.duration}));i.addEventListener(`cancel`,r,{once:!0}),i.addEventListener(`finish`,r,{once:!0})})}function Hs(e){return e=e.toString().toLowerCase(),e.indexOf(`ms`)>-1?parseFloat(e):e.indexOf(`s`)>-1?parseFloat(e)*1e3:parseFloat(e)}function Us(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Ws(e){return Promise.all(e.getAnimations().map(e=>new Promise(t=>{e.cancel(),requestAnimationFrame(t)})))}function Gs(e,t){return e.map(e=>ie(re({},e),{height:e.height===`auto`?`${t}px`:e.height}))}function Ks(e,t,n){return e?t(e):n?.(e)}var qs=class e extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute(`role`)===`treeitem`}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`treeitem`),this.setAttribute(`tabindex`,`-1`),this.isNestedItem()&&(this.slot=`children`)}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?`auto`:`0`,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit(`sl-collapse`),await Ws(this.childrenContainer);let{keyframes:e,options:t}=Bs(this,`tree-item.collapse`,{dir:this.localize.dir()});await Vs(this.childrenContainer,Gs(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.hidden=!0,this.emit(`sl-after-collapse`)}isNestedItem(){let t=this.parentElement;return!!t&&e.isTreeItem(t)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has(`selected`)&&!e.has(`indeterminate`)&&(this.indeterminate=!1)}async animateExpand(){this.emit(`sl-expand`),await Ws(this.childrenContainer),this.childrenContainer.hidden=!1;let{keyframes:e,options:t}=Bs(this,`tree-item.expand`,{dir:this.localize.dir()});await Vs(this.childrenContainer,Gs(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.style.height=`auto`,this.emit(`sl-after-expand`)}handleLoadingChange(){this.setAttribute(`aria-busy`,this.loading?`true`:`false`),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`)}handleSelectedChange(){this.setAttribute(`aria-selected`,this.selected?`true`:`false`)}handleExpandedChange(){this.isLeaf?this.removeAttribute(`aria-expanded`):this.setAttribute(`aria-expanded`,this.expanded?`true`:`false`)}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit(`sl-lazy-load`)):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit(`sl-lazy-change`)}getChildrenItems({includeDisabled:t=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(n=>e.isTreeItem(n)&&(t||!n.disabled)):[]}render(){let e=this.localize.dir()===`rtl`,t=!this.loading&&(!this.isLeaf||this.lazy);return N` - ${Us(this.selectable,()=>N` + ${Ks(this.selectable,()=>N` - `}};Ws.styles=[wn,Ds],Ws.dependencies={"sl-checkbox":ks,"sl-icon":cs,"sl-spinner":js},D([j()],Ws.prototype,`indeterminate`,2),D([j()],Ws.prototype,`isLeaf`,2),D([j()],Ws.prototype,`loading`,2),D([j()],Ws.prototype,`selectable`,2),D([A({type:Boolean,reflect:!0})],Ws.prototype,`expanded`,2),D([A({type:Boolean,reflect:!0})],Ws.prototype,`selected`,2),D([A({type:Boolean,reflect:!0})],Ws.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],Ws.prototype,`lazy`,2),D([M(`slot:not([name])`)],Ws.prototype,`defaultSlot`,2),D([M(`slot[name=children]`)],Ws.prototype,`childrenSlot`,2),D([M(`.tree-item__item`)],Ws.prototype,`itemElement`,2),D([M(`.tree-item__children`)],Ws.prototype,`childrenContainer`,2),D([M(`.tree-item__expand-button slot`)],Ws.prototype,`expandButtonSlot`,2),D([I(`loading`,{waitUntilFirstUpdate:!0})],Ws.prototype,`handleLoadingChange`,1),D([I(`disabled`)],Ws.prototype,`handleDisabledChange`,1),D([I(`selected`)],Ws.prototype,`handleSelectedChange`,1),D([I(`expanded`,{waitUntilFirstUpdate:!0})],Ws.prototype,`handleExpandedChange`,1),D([I(`expanded`,{waitUntilFirstUpdate:!0})],Ws.prototype,`handleExpandAnimation`,1),D([I(`lazy`,{waitUntilFirstUpdate:!0})],Ws.prototype,`handleLazyChange`,1);var Gs=Ws;Is(`tree-item.expand`,{keyframes:[{height:`0`,opacity:`0`,overflow:`hidden`},{height:`auto`,opacity:`1`,overflow:`hidden`}],options:{duration:250,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}}),Is(`tree-item.collapse`,{keyframes:[{height:`auto`,opacity:`1`,overflow:`hidden`},{height:`0`,opacity:`0`,overflow:`hidden`}],options:{duration:200,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}});var Ks=k` + `}};qs.styles=[wn,As],qs.dependencies={"sl-checkbox":Ms,"sl-icon":ds,"sl-spinner":Ps},D([j()],qs.prototype,`indeterminate`,2),D([j()],qs.prototype,`isLeaf`,2),D([j()],qs.prototype,`loading`,2),D([j()],qs.prototype,`selectable`,2),D([A({type:Boolean,reflect:!0})],qs.prototype,`expanded`,2),D([A({type:Boolean,reflect:!0})],qs.prototype,`selected`,2),D([A({type:Boolean,reflect:!0})],qs.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],qs.prototype,`lazy`,2),D([M(`slot:not([name])`)],qs.prototype,`defaultSlot`,2),D([M(`slot[name=children]`)],qs.prototype,`childrenSlot`,2),D([M(`.tree-item__item`)],qs.prototype,`itemElement`,2),D([M(`.tree-item__children`)],qs.prototype,`childrenContainer`,2),D([M(`.tree-item__expand-button slot`)],qs.prototype,`expandButtonSlot`,2),D([I(`loading`,{waitUntilFirstUpdate:!0})],qs.prototype,`handleLoadingChange`,1),D([I(`disabled`)],qs.prototype,`handleDisabledChange`,1),D([I(`selected`)],qs.prototype,`handleSelectedChange`,1),D([I(`expanded`,{waitUntilFirstUpdate:!0})],qs.prototype,`handleExpandedChange`,1),D([I(`expanded`,{waitUntilFirstUpdate:!0})],qs.prototype,`handleExpandAnimation`,1),D([I(`lazy`,{waitUntilFirstUpdate:!0})],qs.prototype,`handleLazyChange`,1);var Js=qs;zs(`tree-item.expand`,{keyframes:[{height:`0`,opacity:`0`,overflow:`hidden`},{height:`auto`,opacity:`1`,overflow:`hidden`}],options:{duration:250,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}}),zs(`tree-item.collapse`,{keyframes:[{height:`auto`,opacity:`1`,overflow:`hidden`},{height:`0`,opacity:`0`,overflow:`hidden`}],options:{duration:200,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}});var Ys=k` :host { /* * These are actually used by tree item, but we define them here so they can more easily be set and all tree items @@ -4691,7 +4694,7 @@ */ font-size: 0; } -`;function qs(e,t,n){return(e=>Object.is(e,-0)?0:e)(en?n:e)}function Js(e,t=!1){function n(e){let t=e.getChildrenItems({includeDisabled:!1});if(t.length){let n=t.every(e=>e.selected),r=t.every(e=>!e.selected&&!e.indeterminate);e.selected=n,e.indeterminate=!n&&!r}}function r(e){let t=e.parentElement;Gs.isTreeItem(t)&&(n(t),r(t))}function i(e){for(let n of e.getChildrenItems())n.selected=t?e.selected||n.selected:!n.disabled&&e.selected,i(n);t&&n(e)}i(e),r(e)}var Ys=class extends L{constructor(){super(),this.selection=`single`,this.clickTarget=null,this.localize=new Cn(this),this.initTreeItem=e=>{e.selectable=this.selection===`multiple`,[`expand`,`collapse`].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(t=>{let n=e.querySelector(`[slot="${t}-icon"]`),r=this.getExpandButtonIcon(t);r&&(n===null?e.append(r):n.hasAttribute(`data-default`)&&n.replaceWith(r))})},this.handleTreeChanged=e=>{for(let t of e){let e=[...t.addedNodes].filter(Gs.isTreeItem),n=[...t.removedNodes].filter(Gs.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&n.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{let t=e.relatedTarget;(!t||!this.contains(t))&&(this.tabIndex=0)},this.handleFocusIn=e=>{let t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),Gs.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut),this.addEventListener(`sl-lazy-change`,this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tree`),this.setAttribute(`tabindex`,`0`),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}getExpandButtonIcon(e){let t=(e===`expand`?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){let n=t.cloneNode(!0);return[n,...n.querySelectorAll(`[id]`)].forEach(e=>e.removeAttribute(`id`)),n.setAttribute(`data-default`,``),n.slot=`${e}-icon`,n}return null}selectItem(e){let t=[...this.selectedItems];if(this.selection===`multiple`)e.selected=!e.selected,e.lazy&&(e.expanded=!0),Js(e);else if(this.selection===`single`||e.isLeaf){let t=this.getAllTreeItems();for(let n of t)n.selected=n===e}else this.selection===`leaf`&&(e.expanded=!e.expanded);let n=this.selectedItems;(t.length!==n.length||n.some(e=>!t.includes(e)))&&Promise.all(n.map(e=>e.updateComplete)).then(()=>{this.emit(`sl-selection-change`,{detail:{selection:n}})})}getAllTreeItems(){return[...this.querySelectorAll(`sl-tree-item`)]}focusItem(e){e?.focus()}handleKeyDown(e){if(![`ArrowDown`,`ArrowUp`,`ArrowRight`,`ArrowLeft`,`Home`,`End`,`Enter`,` `].includes(e.key)||e.composedPath().some(e=>[`input`,`textarea`].includes((e?.tagName)?.toLowerCase())))return;let t=this.getFocusableItems(),n=this.localize.dir()===`ltr`,r=this.localize.dir()===`rtl`;if(t.length>0){e.preventDefault();let i=t.findIndex(e=>e.matches(`:focus`)),a=t[i],o=e=>{let n=t[qs(e,0,t.length-1)];this.focusItem(n)},s=e=>{a.expanded=e};e.key===`ArrowDown`?o(i+1):e.key===`ArrowUp`?o(i-1):n&&e.key===`ArrowRight`||r&&e.key===`ArrowLeft`?!a||a.disabled||a.expanded||a.isLeaf&&!a.lazy?o(i+1):s(!0):n&&e.key===`ArrowLeft`||r&&e.key===`ArrowRight`?!a||a.disabled||a.isLeaf||!a.expanded?o(i-1):s(!1):e.key===`Home`?o(0):e.key===`End`?o(t.length-1):(e.key===`Enter`||e.key===` `)&&(a.disabled||this.selectItem(a))}}handleClick(e){let t=e.target,n=t.closest(`sl-tree-item`),r=e.composedPath().some(e=>(e?.classList)?.contains(`tree-item__expand-button`));n&&!n.disabled&&t===this.clickTarget&&(r?n.expanded=!n.expanded:this.selectItem(n))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){let e=this.selection===`multiple`,t=this.getAllTreeItems();this.setAttribute(`aria-multiselectable`,e?`true`:`false`);for(let n of t)n.selectable=e;e&&(await this.updateComplete,[...this.querySelectorAll(`:scope > sl-tree-item`)].forEach(e=>Js(e,!0)))}get selectedItems(){return this.getAllTreeItems().filter(e=>e.selected)}getFocusableItems(){let e=this.getAllTreeItems(),t=new Set;return e.filter(e=>{if(e.disabled)return!1;let n=e.parentElement?.closest(`[role=treeitem]`);return n&&(!n.expanded||n.loading||t.has(n))&&t.add(e),!t.has(e)})}render(){return N` +`;function Xs(e,t,n){return(e=>Object.is(e,-0)?0:e)(en?n:e)}function Zs(e,t=!1){function n(e){let t=e.getChildrenItems({includeDisabled:!1});if(t.length){let n=t.every(e=>e.selected),r=t.every(e=>!e.selected&&!e.indeterminate);e.selected=n,e.indeterminate=!n&&!r}}function r(e){let t=e.parentElement;Js.isTreeItem(t)&&(n(t),r(t))}function i(e){for(let n of e.getChildrenItems())n.selected=t?e.selected||n.selected:!n.disabled&&e.selected,i(n);t&&n(e)}i(e),r(e)}var Qs=class extends L{constructor(){super(),this.selection=`single`,this.clickTarget=null,this.localize=new Cn(this),this.initTreeItem=e=>{e.selectable=this.selection===`multiple`,[`expand`,`collapse`].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(t=>{let n=e.querySelector(`[slot="${t}-icon"]`),r=this.getExpandButtonIcon(t);r&&(n===null?e.append(r):n.hasAttribute(`data-default`)&&n.replaceWith(r))})},this.handleTreeChanged=e=>{for(let t of e){let e=[...t.addedNodes].filter(Js.isTreeItem),n=[...t.removedNodes].filter(Js.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&n.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{let t=e.relatedTarget;(!t||!this.contains(t))&&(this.tabIndex=0)},this.handleFocusIn=e=>{let t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),Js.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut),this.addEventListener(`sl-lazy-change`,this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tree`),this.setAttribute(`tabindex`,`0`),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}getExpandButtonIcon(e){let t=(e===`expand`?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){let n=t.cloneNode(!0);return[n,...n.querySelectorAll(`[id]`)].forEach(e=>e.removeAttribute(`id`)),n.setAttribute(`data-default`,``),n.slot=`${e}-icon`,n}return null}selectItem(e){let t=[...this.selectedItems];if(this.selection===`multiple`)e.selected=!e.selected,e.lazy&&(e.expanded=!0),Zs(e);else if(this.selection===`single`||e.isLeaf){let t=this.getAllTreeItems();for(let n of t)n.selected=n===e}else this.selection===`leaf`&&(e.expanded=!e.expanded);let n=this.selectedItems;(t.length!==n.length||n.some(e=>!t.includes(e)))&&Promise.all(n.map(e=>e.updateComplete)).then(()=>{this.emit(`sl-selection-change`,{detail:{selection:n}})})}getAllTreeItems(){return[...this.querySelectorAll(`sl-tree-item`)]}focusItem(e){e?.focus()}handleKeyDown(e){if(![`ArrowDown`,`ArrowUp`,`ArrowRight`,`ArrowLeft`,`Home`,`End`,`Enter`,` `].includes(e.key)||e.composedPath().some(e=>[`input`,`textarea`].includes((e?.tagName)?.toLowerCase())))return;let t=this.getFocusableItems(),n=this.localize.dir()===`ltr`,r=this.localize.dir()===`rtl`;if(t.length>0){e.preventDefault();let i=t.findIndex(e=>e.matches(`:focus`)),a=t[i],o=e=>{let n=t[Xs(e,0,t.length-1)];this.focusItem(n)},s=e=>{a.expanded=e};e.key===`ArrowDown`?o(i+1):e.key===`ArrowUp`?o(i-1):n&&e.key===`ArrowRight`||r&&e.key===`ArrowLeft`?!a||a.disabled||a.expanded||a.isLeaf&&!a.lazy?o(i+1):s(!0):n&&e.key===`ArrowLeft`||r&&e.key===`ArrowRight`?!a||a.disabled||a.isLeaf||!a.expanded?o(i-1):s(!1):e.key===`Home`?o(0):e.key===`End`?o(t.length-1):(e.key===`Enter`||e.key===` `)&&(a.disabled||this.selectItem(a))}}handleClick(e){let t=e.target,n=t.closest(`sl-tree-item`),r=e.composedPath().some(e=>(e?.classList)?.contains(`tree-item__expand-button`));n&&!n.disabled&&t===this.clickTarget&&(r?n.expanded=!n.expanded:this.selectItem(n))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){let e=this.selection===`multiple`,t=this.getAllTreeItems();this.setAttribute(`aria-multiselectable`,e?`true`:`false`);for(let n of t)n.selectable=e;e&&(await this.updateComplete,[...this.querySelectorAll(`:scope > sl-tree-item`)].forEach(e=>Zs(e,!0)))}get selectedItems(){return this.getAllTreeItems().filter(e=>e.selected)}getFocusableItems(){let e=this.getAllTreeItems(),t=new Set;return e.filter(e=>{if(e.disabled)return!1;let n=e.parentElement?.closest(`[role=treeitem]`);return n&&(!n.expanded||n.loading||t.has(n))&&t.add(e),!t.has(e)})}render(){return N` - `}};Ys.styles=[wn,Ks],D([M(`slot:not([name])`)],Ys.prototype,`defaultSlot`,2),D([M(`slot[name=expand-icon]`)],Ys.prototype,`expandedIconSlot`,2),D([M(`slot[name=collapse-icon]`)],Ys.prototype,`collapsedIconSlot`,2),D([A()],Ys.prototype,`selection`,2),D([I(`selection`)],Ys.prototype,`handleSelectionChange`,1),Ys.define(`sl-tree`),Gs.define(`sl-tree-item`);var Xs=k` + `}};Qs.styles=[wn,Ys],D([M(`slot:not([name])`)],Qs.prototype,`defaultSlot`,2),D([M(`slot[name=expand-icon]`)],Qs.prototype,`expandedIconSlot`,2),D([M(`slot[name=collapse-icon]`)],Qs.prototype,`collapsedIconSlot`,2),D([A()],Qs.prototype,`selection`,2),D([I(`selection`)],Qs.prototype,`handleSelectionChange`,1),Qs.define(`sl-tree`),Js.define(`sl-tree-item`);var $s=k` sl-tree { --indent-guide-width: 1px; --indent-guide-color: var(--secondary-color); @@ -4810,21 +4813,21 @@ sl-tree-item.no-changes[selected]::part(expand-button) { opacity: 1; } -`,Zs={[B.DOCUMENT]:{showOnLeaf:!0,showOnBranch:!0},[B.PATHS]:{showOnLeaf:!0,showOnBranch:!0},[B.COMPONENTS]:{showOnLeaf:!0,showOnBranch:!0},[B.INFO]:{showOnLeaf:!0,showOnBranch:!0},[B.CONTACT]:{showOnLeaf:!0,showOnBranch:!0},[B.LICENSE]:{showOnLeaf:!0,showOnBranch:!0},[B.SERVERS]:{showOnLeaf:!0,showOnBranch:!0},[B.SERVER]:{showOnLeaf:!0,showOnBranch:!0},[B.TAGS]:{showOnLeaf:!0,showOnBranch:!0},[B.TAG]:{showOnLeaf:!0,showOnBranch:!0},[B.SECURITY_SCHEMES]:{showOnLeaf:!0,showOnBranch:!0},[B.SECURITY_SCHEME]:{showOnLeaf:!0,showOnBranch:!0},[B.WEBHOOKS]:{showOnLeaf:!0,showOnBranch:!0},[B.WEBHOOK]:{showOnLeaf:!0,showOnBranch:!0},[B.EXTERNAL_DOCS]:{showOnLeaf:!0,showOnBranch:!0},[B.EXAMPLE]:{showOnLeaf:!0,showOnBranch:!0},[B.EXAMPLES]:{showOnLeaf:!0,showOnBranch:!0},[B.LINK]:{showOnLeaf:!0,showOnBranch:!0},[B.LINKS]:{showOnLeaf:!0,showOnBranch:!0},[B.CALLBACK]:{showOnLeaf:!0,showOnBranch:!0},[B.CALLBACKS]:{showOnLeaf:!0,showOnBranch:!0},[B.EXTENSIONS]:{showOnLeaf:!0,showOnBranch:!0},[B.EXTENSION]:{showOnLeaf:!0,showOnBranch:!0},[B.ROLODEX_FILE]:{showOnLeaf:!0,showOnBranch:!0},[B.ROLODEX_FOLDER]:{showOnLeaf:!0,showOnBranch:!0},[B.SECURITY]:{showOnLeaf:!0,showOnBranch:!0},[B.PARAMETERS]:{showOnLeaf:!0,showOnBranch:!0},[B.HEADERS]:{showOnLeaf:!0,showOnBranch:!0},[B.RESPONSES]:{showOnLeaf:!0,showOnBranch:!0},[B.REQUEST_BODIES]:{showOnLeaf:!0,showOnBranch:!0},[B.REQUEST_BODY]:{showOnLeaf:!0,showOnBranch:!0},[B.PATH_ITEMS]:{showOnLeaf:!0,showOnBranch:!0},[B.SCHEMAS]:{showOnLeaf:!0,showOnBranch:!0}};function Qs(e,t,n,r){let i=r[e];return i?i.onlyWithIssues?n:t?i.showOnLeaf:i.showOnBranch:!1}var $s=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ec,tc=new Set([B.DOCUMENT,B.INFO,B.CONTACT,B.LICENSE,B.TAGS,B.SERVERS,B.PATHS,B.COMPONENTS,B.SECURITY_SCHEMES,B.WEBHOOKS,B.SCHEMAS,B.PARAMETERS,B.HEADERS,B.RESPONSES,B.REQUEST_BODIES,B.CALLBACKS,B.LINKS,B.EXAMPLES,B.EXTENSIONS,B.PATH_ITEMS,B.EXTERNAL_DOCS,B.SECURITY,B.OPERATIONS,B.ROLODEX_FOLDER]),nc=ec=class extends F{static renderFileIcon(e,t){return N``}constructor(){super(),this.iconConfig=Zs,this.isBundled=!1,this._childRenderLimit=50,this.selectedNodes=[],this.isRolodex=!1,this.filteredNodes=new Map,this.pendingNavigationId=``,this.pendingNavigationPath=``,this.nodesWithChanges=new Map,this.expand=!1,this.expandedNodes=new Map,this.changesEnabled=!1,this.treeChanged=!1,this.childrenRendered=new Set,this.showAllChildren=new Set}disconnectedCallback(){super.disconnectedCallback(),this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout)}showMoreChildren(e){this.showAllChildren.add(e),this.requestUpdate()}nodeClicked(e,t=[],n){this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:e,changes:t,source:n}}))}rolodexClicked(e,t=``,n=[]){this.dispatchEvent(new CustomEvent(jn,{bubbles:!0,composed:!0,detail:{nodeId:e,path:t,changes:n}}))}openNode(e){if(this.nodeMap.get(e)){let t=this.nodeMap.get(e);t&&(this.expandedNodes.set(t.id,t),this.childrenRendered.add(t.id),this.openNode(t.parentId),this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(t.id)}`)[0]?.setAttribute(`expanded`,`true`)),this.requestUpdate()}else{let t=this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(e)}`)[0];if(t){t.setAttribute(`expanded`,`true`),this.childrenRendered.add(e);let n=t.getAttribute(`data-parentid`);n&&this.openNode(n),this.requestUpdate();return}}}willUpdate(e){(e.has(`node`)||e.has(`nodeMap`))&&(this.childrenRendered.clear(),this.expandedNodes.forEach((e,t)=>{this.childrenRendered.add(t)}),this.showAllChildren.clear())}updated(){if(this.pendingNavigationId!=``&&this.explorerClicked(this.pendingNavigationId),this.pendingNavigationPath&&this.pendingNavigationPath!=``){let e=this.pendingNavigationPath;this.openNodeByPath(e)}}openNodeByPath(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);if(n){let r=null;for(let t=0;t{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})}),t&&this.isRolodex)){let t=r.id.replace(`model-`,``);(this.currentId!==t||this.currentPath!==e)&&(this.currentId=t,this.currentPath=e,this.selectedNodes=[r],this.rolodexClicked(t,e,[]))}}}explorerClicked(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);n?this.pendingNavigationId!=``&&(e=this.pendingNavigationId,this.pendingNavigationId=``):this.pendingNavigationId=e;let r=null;for(let t=0;t{this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout),this.pendingExplorerTimeout=window.setTimeout(()=>{let n=this.renderRoot?.querySelector(`sl-tree-item#model-${CSS.escape(e)}`);n&&(n.selected=!0,t&&n.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`}))},50)});return}}r&&t&&requestAnimationFrame(()=>{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})})}collapse(e,t){e.stopPropagation(),t.treeExpanded=!1,this.expandedNodes.delete(t.id)}expanded(e,t){e.stopPropagation(),t.treeExpanded=!0,this.expandedNodes.set(t.id,t),this.childrenRendered.has(t.id)||(this.childrenRendered.add(t.id),this.requestUpdate())}renderLabel(e,t=!1){if(t)return N`${e.label}`;switch(e.type){case B.ROLODEX_FILE:return N`${e.label}`;case B.RESPONSE:return N`${e.label}`;case B.OPERATION:let t=e.instance?.operationId;return N` - ${t?N`${t}`:``}`;case B.PATH_ITEM:return N` - `;default:return N`${e.label}`}}buildTree(e,t){let n=[],r=e.label?.toLowerCase()===`document`,i=r||this.expand||this.childrenRendered.has(e.id);if(e.nodes&&i){let r=[];for(let t=0;t0){if(e.type===B.PATH_ITEM){let e=r.filter(e=>e.type===B.OPERATION),t=r.filter(e=>e.type===B.PARAMETER||e.type===B.PARAMETERS),n=r.filter(e=>e.type!==B.OPERATION&&e.type!==B.PARAMETER&&e.type!==B.PARAMETERS);r=t.concat(e).concat(n)}else r.sort((e,t)=>e.keyLine-t.keyLine);let i=this.showAllChildren.has(e.id),a=i?r.length:this._childRenderLimit,o=Math.min(r.length,a);for(let e=0;ethis._childRenderLimit){let t=r.length-this._childRenderLimit;n.push(N` +`,ec={[B.DOCUMENT]:{showOnLeaf:!0,showOnBranch:!0},[B.PATHS]:{showOnLeaf:!0,showOnBranch:!0},[B.CHANNEL]:{showOnLeaf:!0,showOnBranch:!0},[B.CHANNELS]:{showOnLeaf:!0,showOnBranch:!0},[B.COMPONENTS]:{showOnLeaf:!0,showOnBranch:!0},[B.INFO]:{showOnLeaf:!0,showOnBranch:!0},[B.CONTACT]:{showOnLeaf:!0,showOnBranch:!0},[B.LICENSE]:{showOnLeaf:!0,showOnBranch:!0},[B.SERVERS]:{showOnLeaf:!0,showOnBranch:!0},[B.SERVER]:{showOnLeaf:!0,showOnBranch:!0},[B.TAGS]:{showOnLeaf:!0,showOnBranch:!0},[B.TAG]:{showOnLeaf:!0,showOnBranch:!0},[B.SECURITY_SCHEMES]:{showOnLeaf:!0,showOnBranch:!0},[B.SECURITY_SCHEME]:{showOnLeaf:!0,showOnBranch:!0},[B.WEBHOOKS]:{showOnLeaf:!0,showOnBranch:!0},[B.WEBHOOK]:{showOnLeaf:!0,showOnBranch:!0},[B.EXTERNAL_DOCS]:{showOnLeaf:!0,showOnBranch:!0},[B.EXAMPLE]:{showOnLeaf:!0,showOnBranch:!0},[B.EXAMPLES]:{showOnLeaf:!0,showOnBranch:!0},[B.LINK]:{showOnLeaf:!0,showOnBranch:!0},[B.LINKS]:{showOnLeaf:!0,showOnBranch:!0},[B.CALLBACK]:{showOnLeaf:!0,showOnBranch:!0},[B.CALLBACKS]:{showOnLeaf:!0,showOnBranch:!0},[B.EXTENSIONS]:{showOnLeaf:!0,showOnBranch:!0},[B.EXTENSION]:{showOnLeaf:!0,showOnBranch:!0},[B.ROLODEX_FILE]:{showOnLeaf:!0,showOnBranch:!0},[B.ROLODEX_FOLDER]:{showOnLeaf:!0,showOnBranch:!0},[B.SECURITY]:{showOnLeaf:!0,showOnBranch:!0},[B.PARAMETERS]:{showOnLeaf:!0,showOnBranch:!0},[B.HEADERS]:{showOnLeaf:!0,showOnBranch:!0},[B.RESPONSES]:{showOnLeaf:!0,showOnBranch:!0},[B.REQUEST_BODIES]:{showOnLeaf:!0,showOnBranch:!0},[B.REQUEST_BODY]:{showOnLeaf:!0,showOnBranch:!0},[B.PATH_ITEMS]:{showOnLeaf:!0,showOnBranch:!0},[B.SCHEMAS]:{showOnLeaf:!0,showOnBranch:!0}};function tc(e,t,n,r){let i=r[e];return i?i.onlyWithIssues?n:t?i.showOnLeaf:i.showOnBranch:!1}var nc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rc,ic=new Set([B.DOCUMENT,B.INFO,B.CONTACT,B.LICENSE,B.TAGS,B.SERVERS,B.PATHS,B.COMPONENTS,B.SECURITY_SCHEMES,B.WEBHOOKS,B.SCHEMAS,B.PARAMETERS,B.HEADERS,B.RESPONSES,B.REQUEST_BODIES,B.CALLBACKS,B.LINKS,B.EXAMPLES,B.EXTENSIONS,B.PATH_ITEMS,B.EXTERNAL_DOCS,B.SECURITY,B.OPERATIONS,B.ROLODEX_FOLDER]),ac=rc=class extends F{static renderFileIcon(e,t){return N``}constructor(){super(),this.iconConfig=ec,this.isBundled=!1,this._childRenderLimit=50,this.selectedNodes=[],this.isRolodex=!1,this.filteredNodes=new Map,this.pendingNavigationId=``,this.pendingNavigationPath=``,this.nodesWithChanges=new Map,this.expand=!1,this.expandedNodes=new Map,this.changesEnabled=!1,this.treeChanged=!1,this.childrenRendered=new Set,this.showAllChildren=new Set}disconnectedCallback(){super.disconnectedCallback(),this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout)}showMoreChildren(e){this.showAllChildren.add(e),this.requestUpdate()}nodeClicked(e,t=[],n){this.dispatchEvent(new CustomEvent(An,{bubbles:!0,composed:!0,detail:{nodeId:e,changes:t,source:n}}))}rolodexClicked(e,t=``,n=[]){this.dispatchEvent(new CustomEvent(jn,{bubbles:!0,composed:!0,detail:{nodeId:e,path:t,changes:n}}))}openNode(e){if(this.nodeMap.get(e)){let t=this.nodeMap.get(e);t&&(this.expandedNodes.set(t.id,t),this.childrenRendered.add(t.id),this.openNode(t.parentId),this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(t.id)}`)[0]?.setAttribute(`expanded`,`true`)),this.requestUpdate()}else{let t=this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(e)}`)[0];if(t){t.setAttribute(`expanded`,`true`),this.childrenRendered.add(e);let n=t.getAttribute(`data-parentid`);n&&this.openNode(n),this.requestUpdate();return}}}willUpdate(e){(e.has(`node`)||e.has(`nodeMap`))&&(this.childrenRendered.clear(),this.expandedNodes.forEach((e,t)=>{this.childrenRendered.add(t)}),this.showAllChildren.clear())}updated(){if(this.pendingNavigationId!=``&&this.explorerClicked(this.pendingNavigationId),this.pendingNavigationPath&&this.pendingNavigationPath!=``){let e=this.pendingNavigationPath;this.openNodeByPath(e)}}openNodeByPath(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);if(n){let r=null;for(let t=0;t{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})}),t&&this.isRolodex)){let t=r.id.replace(`model-`,``);(this.currentId!==t||this.currentPath!==e)&&(this.currentId=t,this.currentPath=e,this.selectedNodes=[r],this.rolodexClicked(t,e,[]))}}}explorerClicked(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);n?this.pendingNavigationId!=``&&(e=this.pendingNavigationId,this.pendingNavigationId=``):this.pendingNavigationId=e;let r=null;for(let t=0;t{this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout),this.pendingExplorerTimeout=window.setTimeout(()=>{let n=this.renderRoot?.querySelector(`sl-tree-item#model-${CSS.escape(e)}`);n&&(n.selected=!0,t&&n.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`}))},50)});return}}r&&t&&requestAnimationFrame(()=>{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})})}collapse(e,t){e.stopPropagation(),t.treeExpanded=!1,this.expandedNodes.delete(t.id)}expanded(e,t){e.stopPropagation(),t.treeExpanded=!0,this.expandedNodes.set(t.id,t),this.childrenRendered.has(t.id)||(this.childrenRendered.add(t.id),this.requestUpdate())}renderLabel(e,t=!1){if(t)return N`${e.label}`;switch(e.type){case B.ROLODEX_FILE:return N`${e.label}`;case B.RESPONSE:return N`${e.label}`;case B.OPERATION:let t=e.instance?.operationId;return N` + ${ya(e.label,e.instance)}${t?N`${t}`:``}`;case B.PATH_ITEM:return N` + `;default:return N`${e.label}`}}buildTree(e,t){let n=[],r=e.type===B.DOCUMENT,i=r||this.expand||this.childrenRendered.has(e.id);if(e.nodes&&i){let r=[];for(let t=0;t0){if(e.type===B.PATH_ITEM){let e=r.filter(e=>e.type===B.OPERATION),t=r.filter(e=>e.type===B.PARAMETER||e.type===B.PARAMETERS),n=r.filter(e=>e.type!==B.OPERATION&&e.type!==B.PARAMETER&&e.type!==B.PARAMETERS);r=t.concat(e).concat(n)}else r.sort((e,t)=>e.keyLine-t.keyLine);let i=this.showAllChildren.has(e.id),a=i?r.length:this._childRenderLimit,o=Math.min(r.length,a);for(let e=0;ethis._childRenderLimit){let t=r.length-this._childRenderLimit;n.push(N` Show ${t} more items... - `)}}}let a=e.treeExpanded;e.label.toLowerCase()==`document`&&(a=!0),this.expandedNodes&&this.expandedNodes.get(e.id)&&(a=!0);let o=H.primary,s=this.filteredNodes.size>0&&!this.filteredNodes.get(e.id);if(e.type===B.RESPONSE)switch(Ka(parseInt(e.label))){case`http400`:o=H.warning;break;case`http500`:o=H.error;break;default:o=H.font}e.type===B.ROLODEX_FILE&&(o=H.secondary),s&&(o=H.filtered);let c=N``,l=N``,u=N``,d=!1,f=this.nodeMap.get(e.id);if(f){let e=Zt(f,this.violationMap);e.warnings>0&&(c=N` + `)}}}let a=e.treeExpanded;r&&(a=!0),this.expandedNodes&&this.expandedNodes.get(e.id)&&(a=!0);let o=H.primary,s=this.filteredNodes.size>0&&!this.filteredNodes.get(e.id);if(e.type===B.RESPONSE)switch(Ya(parseInt(e.label))){case`http400`:o=H.warning;break;case`http500`:o=H.error;break;default:o=H.font}e.type===B.ROLODEX_FILE&&(o=H.secondary),s&&(o=H.filtered);let c=N``,l=N``,u=N``,d=!1,f=this.nodeMap.get(e.id);if(f){let e=Zt(f,this.violationMap);e.warnings>0&&(c=N` ${e.warnings}`),e.errors>0&&(l=N` - ${e.errors}`),d=e.warnings>0||e.errors>0}e.label?.toLowerCase()===`document`&&this.isBundled&&(u=N`BUNDLED`);let p=!e.nodes||e.nodes.length===0,m=Qs(e.type,p,d,this.iconConfig),h=m?N` + ${e.errors}`),d=e.warnings>0||e.errors>0}e.label?.toLowerCase()===`document`&&this.isBundled&&(u=N`BUNDLED`);let p=!e.nodes||e.nodes.length===0,m=tc(e.type,p,d,this.iconConfig),h=m?N` `:N``;if(m&&e.openapi)h=N` `;else if(m&&!e.label.endsWith(`.json`)&&!e.label.endsWith(`.yaml`)&&!e.label.endsWith(`.yml`)&&e.label.includes(`.`)){let t=e.label.split(`.`).pop();if(t){let e=ec.ICON_TYPE_MAP[t];e&&(h=ec.renderFileIcon(e,o))}}let g=N``,_=e.timeline&&e.timeline.length>0;if(_){this.nodesWithChanges.set(e.id,e);let{additions:t,removals:n,modifications:r,breaking:i}=Xt(e.timeline);g=N`${i>0?N` `:N``} + color=${o}>`;else if(m&&e.type!==B.CHANNEL&&e.type!==B.CHANNELS&&!e.label.endsWith(`.json`)&&!e.label.endsWith(`.yaml`)&&!e.label.endsWith(`.yml`)&&e.label.includes(`.`)){let t=e.label.split(`.`).pop();if(t){let e=rc.ICON_TYPE_MAP[t];e&&(h=rc.renderFileIcon(e,o))}}let g=N``,_=e.timeline&&e.timeline.length>0;if(_){this.nodesWithChanges.set(e.id,e);let{additions:t,removals:n,modifications:r,breaking:i}=Xt(e.timeline);g=N`${i>0?N` `:N``} ${t>0?N` ${t>1?N`${t}`:N``} @@ -4851,7 +4854,7 @@ data-path="${e.path?e.path:e.nodePath}">
${h} -
+
${s?N`${this.renderLabel(e,s)} @@ -4867,15 +4870,15 @@ ${e} - `}};nc.styles=[Xs,Yi,Yn],nc.ICON_TYPE_MAP={[B.JS]:B.JS,[B.GO]:B.GO,[B.TS]:B.TS,[B.CS]:B.CS,[B.C]:B.C,[B.CPP]:B.CPP,[B.PHP]:B.PHP,[B.PY]:B.PY,[B.HTML]:B.HTML,[B.MD]:B.MD,[B.JAVA]:B.JAVA,[B.RS]:B.RS,[B.ZIG]:B.ZIG,[B.RB]:B.RB},$s([A()],nc.prototype,`node`,void 0),$s([A()],nc.prototype,`filteredNodes`,void 0),$s([A({type:Boolean})],nc.prototype,`expand`,void 0),$s([A({type:Boolean})],nc.prototype,`changesEnabled`,void 0),$s([A()],nc.prototype,`isRolodex`,void 0),$s([A()],nc.prototype,`nodeMap`,void 0),$s([A()],nc.prototype,`violationMap`,void 0),$s([A({type:Object})],nc.prototype,`iconConfig`,void 0),$s([A({type:Boolean})],nc.prototype,`isBundled`,void 0),nc=ec=$s([O(`pb33f-model-tree`)],nc);function rc(e){return e+.5|0}var ic=(e,t,n)=>Math.max(Math.min(e,n),t);function ac(e){return ic(rc(e*2.55),0,255)}function oc(e){return ic(rc(e*255),0,255)}function sc(e){return ic(rc(e/2.55)/100,0,1)}function cc(e){return ic(rc(e*100),0,100)}var lc={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},uc=[...`0123456789ABCDEF`],dc=e=>uc[e&15],fc=e=>uc[(e&240)>>4]+uc[e&15],pc=e=>(e&240)>>4==(e&15),mc=e=>pc(e.r)&&pc(e.g)&&pc(e.b)&&pc(e.a);function hc(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&lc[e[1]]*17,g:255&lc[e[2]]*17,b:255&lc[e[3]]*17,a:t===5?lc[e[4]]*17:255}:(t===7||t===9)&&(n={r:lc[e[1]]<<4|lc[e[2]],g:lc[e[3]]<<4|lc[e[4]],b:lc[e[5]]<<4|lc[e[6]],a:t===9?lc[e[7]]<<4|lc[e[8]]:255})),n}var gc=(e,t)=>e<255?t(e):``;function _c(e){var t=mc(e)?dc:fc;return e?`#`+t(e.r)+t(e.g)+t(e.b)+gc(e.a,t):void 0}var vc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function yc(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function bc(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function xc(e,t,n){let r=yc(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Sc(e,t,n,r,i){return e===i?(t-n)/r+(t.5?l/(2-i-a):l/(i+a),s=Sc(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function wc(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(oc)}function Tc(e,t,n){return wc(yc,e,t,n)}function Ec(e,t,n){return wc(xc,e,t,n)}function Dc(e,t,n){return wc(bc,e,t,n)}function Oc(e){return(e%360+360)%360}function kc(e){let t=vc.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?ac(+t[5]):oc(+t[5]));let i=Oc(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?Ec(i,a,o):t[1]===`hsv`?Dc(i,a,o):Tc(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Ac(e,t){var n=Cc(e);n[0]=Oc(n[0]+t),n=Tc(n),e.r=n[0],e.g=n[1],e.b=n[2]}function jc(e){if(!e)return;let t=Cc(e),n=t[0],r=cc(t[1]),i=cc(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${sc(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var Mc={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},Nc={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function Pc(){let e={},t=Object.keys(Nc),n=Object.keys(Mc),r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return e}var Fc;function Ic(e){Fc||(Fc=Pc(),Fc.transparent=[0,0,0,0]);let t=Fc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Lc=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Rc(e){let t=Lc.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?ac(e):ic(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?ac(r):ic(r,0,255)),i=255&(t[4]?ac(i):ic(i,0,255)),a=255&(t[6]?ac(a):ic(a,0,255)),{r,g:i,b:a,a:n}}}function zc(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${sc(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Bc=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,Vc=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Hc(e,t,n){let r=Vc(sc(e.r)),i=Vc(sc(e.g)),a=Vc(sc(e.b));return{r:oc(Bc(r+n*(Vc(sc(t.r))-r))),g:oc(Bc(i+n*(Vc(sc(t.g))-i))),b:oc(Bc(a+n*(Vc(sc(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Uc(e,t,n){if(e){let r=Cc(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Tc(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Wc(e,t){return e&&Object.assign(t||{},e)}function Gc(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=oc(e[3]))):(t=Wc(e,{r:0,g:0,b:0,a:1}),t.a=oc(t.a)),t}function Kc(e){return e.charAt(0)===`r`?Rc(e):kc(e)}var qc=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=Gc(t):n===`string`&&(r=hc(t)||Ic(t)||Kc(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Wc(this._rgb);return e&&(e.a=sc(e.a)),e}set rgb(e){this._rgb=Gc(e)}rgbString(){return this._valid?zc(this._rgb):void 0}hexString(){return this._valid?_c(this._rgb):void 0}hslString(){return this._valid?jc(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=Hc(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=oc(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=rc(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Uc(this._rgb,2,e),this}darken(e){return Uc(this._rgb,2,-e),this}saturate(e){return Uc(this._rgb,1,e),this}desaturate(e){return Uc(this._rgb,1,-e),this}rotate(e){return Ac(this._rgb,e),this}};function Jc(){}var Yc=(()=>{let e=0;return()=>e++})();function W(e){return e==null}function G(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function K(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function Xc(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function Zc(e,t){return Xc(e)?e:t}function q(e,t){return e===void 0?t:e}var Qc=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,$c=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function J(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function Y(e,t,n,r){let i,a,o;if(G(e)){if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function cl(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function ll(e){let t=cl(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function ul(e,t){return(sl[t]||(sl[t]=ll(t)))(e)}function dl(e){return e.charAt(0).toUpperCase()+e.slice(1)}var fl=e=>e!==void 0,pl=e=>typeof e==`function`,ml=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function hl(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var X=Math.PI,Z=2*X,gl=Z+X,_l=1/0,vl=X/180,yl=X/2,bl=X/4,xl=X*2/3,Sl=Math.log10,Cl=Math.sign;function wl(e,t,n){return Math.abs(e-t)e-t).pop(),t}function Dl(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Ol(e){return!Dl(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function kl(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Al(e,t,n){let r,i,a;for(r=0,i=e.length;rc&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Hl(e,t,n){n||=(n=>e[n]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var Ul=(e,t,n,r)=>Hl(e,n,r?r=>{let i=e[r][t];return ie[r][t]Hl(e,n,r=>e[r][t]>=n);function Gl(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{let n=`_onData`+dl(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})}))}function Jl(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(Kl.forEach(t=>{delete e[t]}),delete e._chartjs)}function Yl(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var Xl=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function Zl(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Xl.call(window,()=>{r=!1,e.apply(t,n)}))}}function Ql(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var $l=e=>e===`start`?`left`:e===`end`?`right`:`center`,eu=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,tu=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;function nu(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(Ul(c,u,d).lo,n?r:Ul(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!W(e[s.axis]));i-=Math.max(0,e)}i=zl(i,0,r-1)}if(m){let e=Math.max(Ul(c,o.axis,f,!0).hi+1,n?0:Ul(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!W(e[s.axis]));e+=Math.max(0,t)}a=zl(e,i,r)-i}else a=r-i}return{start:i,count:a}}function ru(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var iu=e=>e===0||e===1,au=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*Z/n)),ou=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*Z/n)+1,su={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*yl)+1,easeOutSine:e=>Math.sin(e*yl),easeInOutSine:e=>-.5*(Math.cos(X*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>iu(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>iu(e)?e:au(e,.075,.3),easeOutElastic:e=>iu(e)?e:ou(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return iu(e)?e:e<.5?.5*au(e*2,t,n):.5+.5*ou(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-su.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?su.easeInBounce(e*2)*.5:su.easeOutBounce(e*2-1)*.5+.5};function cu(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function lu(e){return cu(e)?e:new qc(e)}function uu(e){return cu(e)?e:new qc(e).saturate(.5).darken(.1).hexString()}var du=[`x`,`y`,`borderWidth`,`radius`,`tension`],fu=[`color`,`borderColor`,`backgroundColor`];function pu(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:fu},numbers:{type:`number`,properties:du}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function mu(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var hu=new Map;function gu(e,t){t||={};let n=e+JSON.stringify(t),r=hu.get(n);return r||(r=new Intl.NumberFormat(e,t),hu.set(n,r)),r}function _u(e,t,n){return gu(t,n).format(e)}var vu={values(e){return G(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=yu(e,n)}let o=Sl(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),_u(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(Sl(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?vu.numeric.call(this,e,t,n):``}};function yu(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var bu={formatters:vu};function xu(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:bu.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var Su=Object.create(null),Cu=Object.create(null);function wu(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>uu(t.backgroundColor),this.hoverBorderColor=(e,t)=>uu(t.borderColor),this.hoverColor=(e,t)=>uu(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Tu(this,e,t)}get(e){return wu(this,e)}describe(e,t){return Tu(Cu,e,t)}override(e,t){return Tu(Su,e,t)}route(e,t,n,r){let i=wu(this,e),a=wu(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return K(e)?Object.assign({},t,e):q(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[pu,mu,xu]);function Du(e){return!e||W(e.size)||W(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Ou(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function ku(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;cn.length){for(c=0;c0&&e.stroke()}}function Pu(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,zu(e,a),c=0;c+e||0;function Ju(e,t){let n={},r=K(t),i=r?Object.keys(t):t,a=K(e)?r?n=>q(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=qu(a(e));return n}function Yu(e){return Ju(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function Xu(e){return Ju(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function Zu(e){let t=Yu(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Qu(e,t){e||={},t||=Eu.font;let n=q(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=q(e.style,t.style);r&&!(``+r).match(Gu)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:q(e.family,t.family),lineHeight:Ku(q(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:q(e.weight,t.weight),string:``};return i.string=Du(i),i}function $u(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;an&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function td(e,t){return Object.assign(Object.create(e),t)}function nd(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=vd(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>nd([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return sd(n,r,()=>_d(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return yd(e).includes(t)},ownKeys(e){return yd(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function rd(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:id(e,r),setContext:t=>rd(e,t,n,r),override:i=>rd(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return sd(e,t,()=>cd(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function id(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:pl(n)?n:()=>n,isIndexable:pl(r)?r:()=>r}}var ad=(e,t)=>e?e+dl(t):t,od=(e,t)=>K(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sd(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function cd(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return pl(s)&&o.isScriptable(t)&&(s=ld(t,s,e,n)),G(s)&&s.length&&(s=ud(t,s,e,o.isIndexable)),od(t,s)&&(s=rd(s,i,a&&a[t],o)),s}function ld(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),od(e,c)&&(c=md(i._scopes,i,e,c)),c}function ud(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(K(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=md(r,i,e,c);t.push(rd(n,a,o&&o[e],s))}}return t}function dd(e,t,n){return pl(e)?e(t,n):e}var fd=(e,t)=>e===!0?t:typeof e==`string`?ul(t,e):void 0;function pd(e,t,n,r,i){for(let a of t){let t=fd(n,a);if(t){e.add(t);let a=dd(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function md(e,t,n,r){let i=t._rootScopes,a=dd(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=hd(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=hd(s,o,a,c,r),c===null)?!1:nd(Array.from(s),[``],i,a,()=>gd(t,n,r))}function hd(e,t,n,r,i){for(;n;)n=pd(e,t,n,r,i);return n}function gd(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return G(i)&&K(n)?n:i||{}}function _d(e,t,n,r){let i;for(let a of t)if(i=vd(ad(a,e),n),i!==void 0)return od(e,i)?md(n,r,e,i):i}function vd(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function yd(e){let t=e._keys;return t||=e._keys=bd(e._scopes),t}function bd(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function xd(e,t,n,r){let{iScale:i}=e,{key:a=`r`}=this._parsing,o=Array(r),s,c,l,u;for(s=0,c=r;ste===`x`?`y`:`x`;function Td(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=Fl(a,i),c=Fl(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function Ed(e,t,n){let r=e.length,i,a,o,s,c,l=Cd(e,0);for(let u=0;u!e.skip)),t.cubicInterpolationMode===`monotone`)Od(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function Id(e,t){return Fd(e).getPropertyValue(t)}var Ld=[`top`,`right`,`bottom`,`left`];function Rd(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=Ld[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var zd=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Bd(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(zd(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function Vd(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=Fd(n),a=i.boxSizing===`border-box`,o=Rd(i,`padding`),s=Rd(i,`border`,`width`),{x:c,y:l,box:u}=Bd(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function Hd(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&Nd(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=Fd(a),s=Rd(o,`border`,`width`),c=Rd(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=Pd(o.maxWidth,a,`clientWidth`),i=Pd(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||_l,maxHeight:i||_l}}var Ud=e=>Math.round(e*10)/10;function Wd(e,t,n,r){let i=Fd(e),a=Rd(i,`margin`),o=Pd(i.maxWidth,e,`clientWidth`)||_l,s=Pd(i.maxHeight,e,`clientHeight`)||_l,c=Hd(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=Rd(i,`border`,`width`),t=Rd(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=Ud(Math.min(l,o,c.maxWidth)),u=Ud(Math.min(u,s,c.maxHeight)),l&&!u&&(u=Ud(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=Ud(Math.floor(u*r))),{width:l,height:u}}function Gd(e,t,n){let r=t||1,i=Ud(e.height*r),a=Ud(e.width*r);e.height=Ud(e.height),e.width=Ud(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var Kd=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};Md()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function qd(e,t){let n=Id(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Jd(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Yd(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r===`middle`?n<.5?e.y:t.y:r===`after`?n<1?e.y:t.y:n>0?t.y:e.y}}function Xd(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=Jd(e,i,n),s=Jd(i,a,n),c=Jd(a,t,n);return Jd(Jd(o,s,n),Jd(s,c,n),n)}var Zd=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},Qd=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function $d(e,t,n){return e?Zd(t,n):Qd()}function ef(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function tf(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function nf(e){return e===`angle`?{between:Rl,compare:Il,normalize:Ll}:{between:Vl,compare:(e,t)=>e-t,normalize:e=>e}}function rf({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function af(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=nf(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;fc(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),C=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&C()&&(m.push(rf({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(rf({start:g,end:d,loop:f,count:o,style:p})),m}function sf(e,t){let n=[],r=e.segments;for(let i=0;ii&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function lf(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function uf(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=cf(n,i,a,r);return r===!0?df(e,[{start:o,end:s,loop:a}],n,t):df(e,lf(n,o,sr({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,Xl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},yf=`transparent`,bf={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=lu(e||yf),i=r.valid&&lu(t||yf);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},xf=class{constructor(e,t,n,r){let i=t[n];r=$u([e.to,r,i,e.from]);let a=$u([e.from,i,r]);this._active=!0,this._fn=e.fn||bf[e.type||typeof a],this._easing=su[e.easing]||su.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=$u([e.to,t,r,e.from]),this._from=$u([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;this._active=i!==o&&(a||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)):(this._target[r]=o,this._notify(!0))}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e{let i=e[r];if(!K(i))return;let a={};for(let e of t)a[e]=i[e];(G(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=wf(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&Cf(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u){if(d&&u.active()){u.update(d,l,o);continue}u.cancel()}!d||!d.duration?e[c]=l:(i[c]=u=new xf(d,e,c,l),r.push(u))}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return vf.add(this._chart,n),!0}};function Cf(e,t){let n=[],r=Object.keys(t);for(let t=0;t0||!n&&t<0)return i.index}return null}function If(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Mf(a,o,r),d=t.length,f;for(let e=0;en[e].axis===t).shift()}function Rf(e,t){return td(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function zf(e,t,n){return td(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Bf(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var Vf=e=>e===`reset`||e===`none`,Hf=(e,t)=>t?e:Object.assign({},e),Uf=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Of(n,!0),values:null},Wf=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=jf(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&Bf(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=q(n.xAxisID,Lf(e,`x`)),a=t.yAxisID=q(n.yAxisID,Lf(e,`y`)),o=t.rAxisID=q(n.rAxisID,Lf(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&Jl(this._data,this),e._stacked&&Bf(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(K(t)){let e=this._cachedMeta;this._data=Af(t,e)}else if(n!==t){if(n){Jl(n,this);let e=this._cachedMeta;Bf(e),e._parsed=[]}t&&Object.isExtensible(t)&&ql(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=jf(t.vScale,t),t.stack!==n.stack&&(r=!0,Bf(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(If(this,t._parsed),t._stacked=jf(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length||n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=G(r[e])?this.parseArrayData(n,r,e,t):K(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]t||u=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r=0&&ethis.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(Hf(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new Sf(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||Vf(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){Vf(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Vf(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;oe-t))}return e._cache.$bar}function Kf(e){let t=e.iScale,n=Gf(t,e.type),r=t._length,i,a,o,s,c=()=>{o!==32767&&o!==-32768&&(fl(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function Xf(e,t,n,r){return G(e)?Yf(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Zf(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l=n?1:-1):Cl(e)}function ep(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.basee.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(W(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[q(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),c=a._custom;return{label:n[e]||``,value:`(`+o+`, `+s+(c?`, `+c:``)+`)`}}update(e){let t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(t,r),l=a.axis,u=o.axis;for(let d=t;dRl(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>Rl(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(yl,u,f),_=m(X,l,d),v=m(X+yl,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var lp=class extends Wf{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}},cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(K(n[e])){let{key:e=`value`}=this._parsing;i=t=>+ul(n[t],e)}let a,o;for(a=e,o=e+t;a0&&!isNaN(e)?Math.abs(e)/t*Z:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=_u(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r0&&this.getParsed(t-1);for(let n=0;n=_){v.skip=!0;continue}let b=this.getParsed(n),x=W(b[f]),S=v[d]=a.getPixelForValue(b[d],n),C=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(C)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},dp=class extends Wf{static id=`polarArea`;static defaults={dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:`number`,properties:[`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`]}},indexAxis:`r`,startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((t,i)=>{let a=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:`radialLinear`,angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=_u(t._parsed[e].r,n.options.locale);return{label:r[e]||``,value:i}}parseObjectData(e,t,n,r){return xd.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){let e=this._cachedMeta,t={min:1/0,max:-1/0};return e.data.forEach((e,n)=>{let r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(rt.max&&(t.max=r))}),t}_updateRadius(){let e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*X,d=u,f,p=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?jl(this.resolveDataElementOptions(e,t).angle||n):0}},fp=Object.freeze({__proto__:null,BarController:op,BubbleController:sp,DoughnutController:lp,LineController:up,PieController:class extends lp{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}},PolarAreaController:dp,RadarController:class extends Wf{static id=`radar`;static defaults={datasetElementType:`line`,dataElementType:`point`,indexAxis:`r`,showLine:!0,elements:{line:{fill:`start`}}};static overrides={aspectRatio:1,scales:{r:{type:`radialLinear`}}};getLabelAndValue(e){let t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:``+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return xd.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,e!==`resize`){let t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);let a={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){let i=this._cachedMeta.rScale,a=r===`reset`;for(let o=t;o0&&this.getParsed(t-1);for(let l=t;l0&&Math.abs(n[f]-v[f])>g,h&&(m.parsed=n,m.raw=c.data[l]),d&&(m.options=u||this.resolveDataElementOptions(l,t.active?`active`:r)),_||this.updateElement(t,l,m,r),v=n}this.updateSharedOptions(u,r,l)}getMaxOverflow(){let e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}let n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;let i=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,a)/2}}});function pp(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var mp={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return pp()}parse(){return pp()}format(){return pp()}add(){return pp()}diff(){return pp()}startOf(){return pp()}endOf(){return pp()}}};function hp(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?Wl:Ul;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!W(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!W(e[t.axis]));r.hi+=Math.max(0,o)}return r}if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function gp(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Cp={evaluateInteractionItems:gp,modes:{index(e,t,n,r){let i=Vd(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?vp(e,i,a,r,o):xp(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=Vd(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?vp(e,i,a,r,o):xp(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;ee.pos===t)}function Ep(e,t){return e.filter(e=>wp.indexOf(e.pos)===-1&&e.box.axis===t)}function Dp(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function Op(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;ne.box.fullSize),!0),r=Dp(Tp(t,`left`),!0),i=Dp(Tp(t,`right`)),a=Dp(Tp(t,`top`),!0),o=Dp(Tp(t,`bottom`)),s=Ep(t,`x`),c=Ep(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:Tp(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function Mp(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Np(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Pp(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!K(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&Np(o,a.getPadding());let s=Math.max(0,t.outerWidth-Mp(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Mp(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Fp(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function Ip(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function Lp(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Np(f,Zu(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Ap(c.concat(l),d);Lp(s.fullSize,p,d,m),Lp(c,p,d,m),Lp(l,p,d,m)&&Lp(c,p,d,m),Fp(p),zp(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,zp(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Y(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},Vp=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},Hp=class extends Vp{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},Up=`$chartjs`,Wp={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},Gp=e=>e===null||e===``;function Kp(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[Up]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,Gp(i)){let t=qd(e,`width`);t!==void 0&&(e.width=t)}if(Gp(r)){if(e.style.height===``)e.height=e.width/(t||2);else{let t=qd(e,`height`);t!==void 0&&(e.height=t)}}return e}var qp=Kd?{passive:!0}:!1;function Jp(e,t,n){e&&e.addEventListener(t,n,qp)}function Yp(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,qp)}function Xp(e,t){let n=Wp[e.type]||e.type,{x:r,y:i}=Vd(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function Zp(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function Qp(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Zp(n.addedNodes,r),t&&=!Zp(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function $p(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Zp(n.removedNodes,r),t&&=!Zp(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var em=new Map,tm=0;function nm(){let e=window.devicePixelRatio;e!==tm&&(tm=e,em.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function rm(e,t){em.size||window.addEventListener(`resize`,nm),em.set(e,t)}function im(e){em.delete(e),em.size||window.removeEventListener(`resize`,nm)}function am(e,t,n){let r=e.canvas,i=r&&Nd(r);if(!i)return;let a=Zl((e,t)=>{let r=i.clientWidth;n(e,t),r{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;(n!==0||r!==0)&&a(n,r)});return o.observe(i),rm(e,a),o}function om(e,t,n){n&&n.disconnect(),t===`resize`&&im(e)}function sm(e,t,n){let r=e.canvas,i=Zl(t=>{e.ctx!==null&&n(Xp(t,e))},e);return Jp(r,t,i),i}var cm=class extends Vp{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(Kp(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[Up])return!1;let n=t[Up].initial;[`height`,`width`].forEach(e=>{let r=n[e];W(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[Up],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:Qp,detach:$p,resize:am}[t]||sm)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:om,detach:om,resize:om}[t]||Yp)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return Wd(e,t,n,r)}isAttached(e){let t=e&&Nd(e);return!!(t&&t.isConnected)}};function lm(e){return!Md()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?Hp:cm}var um=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Ol(this.x)&&Ol(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function dm(e,t){let n=e.options.ticks,r=fm(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?mm(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return hm(t,l,a,o/i),l;let u=pm(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(gm(t,l,u,W(r)?0:s-r,s),e=0,n=o-1;ei)return t}return Math.max(i,1)}function mm(e){let t=[],n,r;for(n=0,r=e.length;ne===`left`?`right`:e===`right`?`left`:e,ym=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,bm=(e,t)=>Math.min(t||e,e);function xm(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;ao+s)))return c}function Cm(e,t){Y(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;in?n:t,n=r&&t>n?t:n,{min:Zc(t,Zc(n,t)),max:Zc(n,Zc(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){J(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ed(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=zl(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-wm(e.grid)-t.padding-Tm(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=Ml(Math.min(Math.asin(zl((l.highest.height+6)/o,-1,1)),Math.asin(zl(s/c,-1,1))-Math.asin(zl(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){J(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){J(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=Tm(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=wm(i)+a):(e.height=this.maxHeight,e.width=wm(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=jl(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){J(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t({width:a[e]||0,height:o[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return Bl(this._alignToPixels?Au(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&eo*r?o/n:s/r:s*r0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=wm(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Au(n,e,p)},g,_,v,y,b,x,S,C,w,T,E,ee;if(a===`top`)g=h(this.bottom),x=this.bottom-u,C=g-m,T=h(e.top)+m,ee=e.bottom;else if(a===`bottom`)g=h(this.top),T=e.top,ee=h(e.bottom)-m,x=g+m,C=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,w=h(e.left)+m,E=e.right;else if(a===`right`)g=h(this.left),w=e.left,E=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(K(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}T=e.top,ee=e.bottom,x=g+m,C=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(K(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,w=e.left,E=e.right}let te=q(r.ticks.maxTicksLimit,l),ne=Math.max(1,Math.ceil(l/te));for(_=0;_0&&(a-=r/2)}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:w,textOffset:ee,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:te,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-jl(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);Eu.route(a,i,c,s)})}function Pm(e){return`id`in e&&`defaults`in e}var Fm=new class{constructor(){this.controllers=new jm(Wf,`datasets`,!0),this.elements=new jm(um,`elements`),this.plugins=new jm(Object,`plugins`),this.scales=new jm(Am,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):Y(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=dl(e);J(n[`before`+r],[],n),t[e](n),J(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;te.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function Lm(e){let t={},n=[],r=Object.keys(Fm.plugins.items);for(let e=0;e1&&Wm(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function qm(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function Jm(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return qm(e,`x`,n[0])||qm(e,`y`,n[0])}return{}}function Ym(e,t){let n=Su[e.type]||{scales:{}},r=t.scales||{},i=Vm(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!K(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=Km(t,o,Jm(t,e),Eu.scales[o.type]),c=Um(s,i),l=n.scales||{};a[t]=al(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||Vm(i,t),s=(Su[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=Hm(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),al(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];al(t,[Eu.scales[t.type],Eu.scale])}),a}function Xm(e){let t=e.options||={};t.plugins=q(t.plugins,{}),t.scales=Ym(e,t)}function Zm(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Qm(e){return e||={},e.data=Zm(e.data),Xm(e),e}var $m=new Map,eh=new Set;function th(e,t){let n=$m.get(e);return n||(n=t(),$m.set(e,n),eh.add(n)),n}var nh=(e,t,n)=>{let r=ul(t,n);r!==void 0&&e.add(r)},rh=class{constructor(e){this._config=Qm(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Zm(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),Xm(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return th(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return th(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return th(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return th(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>nh(s,e,t))),t.forEach(e=>nh(s,r,e)),t.forEach(e=>nh(s,Su[i]||{},e)),t.forEach(e=>nh(s,Eu,e)),t.forEach(e=>nh(s,Cu,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),eh.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,Su[t]||{},Eu.datasets[t]||{},{type:t},Eu,Cu]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=ih(this._resolverCache,e,r),s=a;if(oh(a,t)){i.$shared=!1,n=pl(n)?n():n;let t=this.createResolver(e,n,o);s=rd(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=ih(this._resolverCache,e,n);return K(t)?rd(i,t,void 0,r):i}};function ih(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:nd(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var ah=e=>K(e)&&Object.getOwnPropertyNames(e).some(t=>pl(e[t]));function oh(e,t){let{isScriptable:n,isIndexable:r}=id(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(pl(o)||ah(o))||a&&G(o))return!0}return!1}var sh=`4.5.1`,ch=[`top`,`bottom`,`left`,`right`,`chartArea`];function lh(e,t){return e===`top`||e===`bottom`||ch.indexOf(e)===-1&&t===`x`}function uh(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function dh(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),J(n&&n.onComplete,[e],t)}function fh(e){let t=e.chart,n=t.options.animation;J(n&&n.onProgress,[e],t)}function ph(e){return Md()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var mh={},hh=e=>{let t=ph(e);return Object.values(mh).filter(e=>e.canvas===t).pop()};function gh(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function _h(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var vh=class{static defaults=Eu;static instances=mh;static overrides=Su;static registry=Fm;static version=sh;static getChart=hh;static register(...e){Fm.add(...e),yh()}static unregister(...e){Fm.remove(...e),yh()}constructor(e,t){let n=this.config=new rh(t),r=ph(e),i=hh(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(lm(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;this.id=Yc(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Im,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Ql(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],mh[this.id]=this,!o||!s?console.error(`Failed to create chart: can't acquire context from the given item`):(vf.listen(this,`complete`,dh),vf.listen(this,`progress`,fh),this._initialize(),this.attached&&this.update())}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return W(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Fm}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():Gd(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return ju(this.canvas,this.ctx),this}stop(){return vf.stop(this),this}resize(e,t){vf.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Gd(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),J(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Y(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=Km(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),Y(i,t=>{let i=t.options,a=i.id,o=Km(a,i),s=q(i.type,t.dtype);(i.position===void 0||lh(i.position,o)!==lh(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(Fm.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),Y(r,(e,t)=>{e||delete n[t]}),Y(n,e=>{Bp.configure(this,e,e.options),Bp.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(uh(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Y(this.scales,e=>{Bp.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!ml(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)gh(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;ee.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;Bp.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Y(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=_f(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Fu(t,r),e.controller.draw(),r&&Iu(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return Pu(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Cp.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=td(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);fl(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),vf.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Y(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){Y(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},Y(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});el(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=hl(e),c=_h(e,this._lastEvent,n,s);n&&(this._lastEvent=null,J(i.onHover,[e,o,this],this),s&&J(i.onClick,[e,o,this],this));let l=!el(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function yh(){return Y(vh.instances,e=>e._plugins.invalidate())}function bh(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,Ll(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,Ll(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*Ll(r-n));if(u===`round`)e.arc(i,a,t,n-X/2,r+X/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+X/2)+i,c=-o*Math.sin(n+X/2)+a,l=o*Math.cos(r+X/2)+i,u=o*Math.sin(r+X/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function xh(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+yl,r-yl),e.closePath(),e.clip()}function Sh(e){return Ju(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function Ch(e,t,n,r){let i=Sh(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return zl(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:zl(i.innerStart,0,o),innerEnd:zl(i.innerEnd,0,o)}}function wh(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Th(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/X)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=Ch(t,f,d,_-g),S=d-v,C=d-y,w=g+v/S,T=_-y/C,E=f+b,ee=f+x,te=g+b/E,ne=_-x/ee;if(e.beginPath(),a){let t=(w+T)/2;if(e.arc(o,s,d,w,t),e.arc(o,s,d,t,T),y>0){let t=wh(C,T,o,s);e.arc(t.x,t.y,y,T,_+yl)}let n=wh(ee,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=wh(ee,ne,o,s);e.arc(t.x,t.y,x,_+yl,ne+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=wh(E,te,o,s);e.arc(t.x,t.y,b,te+Math.PI,g-yl)}let i=wh(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=wh(S,w,o,s);e.arc(t.x,t.y,v,g-yl,w)}}else{e.moveTo(o,s);let t=Math.cos(w)*d+o,n=Math.sin(w)*d+s;e.lineTo(t,n);let r=Math.cos(T)*d+o,i=Math.sin(T)*d+s;e.lineTo(r,i)}e.closePath()}function Eh(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){Th(e,t,n,r,c,i);for(let t=0;t=X&&p===0&&u!==`miter`&&bh(e,t,h),a||(Th(e,t,n,r,h,i),e.stroke())}var Oh=class extends um{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=Pl(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=q(l,o-a),f=Rl(r,a,o)&&a!==o,p=d>=Z||f,m=Vl(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>Z?Math.floor(n/Z):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(X,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,Eh(e,this,s,i,a),Dh(e,this,s,i,a),e.restore()}};function kh(e,t,n=t){e.lineCap=q(n.borderCapStyle,t.borderCapStyle),e.setLineDash(q(n.borderDash,t.borderDash)),e.lineDashOffset=q(n.borderDashOffset,t.borderDashOffset),e.lineJoin=q(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=q(n.borderWidth,t.borderWidth),e.strokeStyle=q(n.borderColor,t.borderColor)}function Ah(e,t,n){e.lineTo(n.x,n.y)}function jh(e){return e.stepped?Lu:e.tension||e.cubicInterpolationMode===`monotone`?Ru:Ah}function Mh(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=is&&a>s;return{count:r,start:c,loop:t.loop,ilen:l(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(ng&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function Fh(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Ph:Nh}function Ih(e){return e.stepped?Yd:e.tension||e.cubicInterpolationMode===`monotone`?Xd:Jd}function Lh(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),kh(e,t.options),e.stroke(i)}function Rh(e,t,n,r){let{segments:i,options:a}=t,o=Fh(t);for(let s of i)kh(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var zh=typeof Path2D==`function`;function Bh(e,t,n,r){zh&&!t.options.segment?Lh(e,t,n,r):Rh(e,t,n,r)}var Vh=class extends um{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;jd(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=uf(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=sf(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=Ih(n),c,l;for(c=0,l=a.length;ce.replace(`rgb(`,`rgba(`).replace(`)`,`, 0.5)`));function ng(e){return eg[e%eg.length]}function rg(e){return tg[e%tg.length]}function ig(e,t){return e.borderColor=ng(t),e.backgroundColor=rg(t),++t}function ag(e,t){return e.backgroundColor=e.data.map(()=>ng(t++)),t}function og(e,t){return e.backgroundColor=e.data.map(()=>rg(t++)),t}function sg(e){let t=0;return(n,r)=>{let i=e.getDatasetMeta(r).controller;i instanceof lp?t=ag(n,t):i instanceof dp?t=og(n,t):i&&(t=ig(n,t))}}function cg(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function lg(e){return e&&(e.borderColor||e.backgroundColor)}function ug(){return Eu.borderColor!==`rgba(0,0,0,0.1)`||Eu.backgroundColor!==`rgba(0,0,0,0.1)`}var dg={id:`colors`,defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;let{data:{datasets:r},options:i}=e.config,{elements:a}=i,o=cg(r)||lg(i)||a&&cg(a)||ug();if(!n.forceOverride&&o)return;let s=sg(e);r.forEach(s)}};function fg(e,t,n,r,i){let a=i.samples||r;if(a>=n)return e.slice(t,t+n);let o=[],s=(n-2)/(a-2),c=0,l=t+n-1,u=t,d,f,p,m,h;for(o[c++]=e[u],d=0;dp&&(p=m,f=e[a],h=a);o[c++]=f,u=h}return o[c++]=e[l],o}function pg(e,t,n,r){let i=0,a=0,o,s,c,l,u,d,f,p,m,h,g=[],_=t+n-1,v=e[t].x,y=e[_].x-v;for(o=t;oh&&(h=l,f=o),i=(a*i+s.x)/++a;else{let n=o-1;if(!W(d)&&!W(f)){let t=Math.min(d,f),r=Math.max(d,f);t!==p&&t!==n&&g.push({...e[t],x:i}),r!==p&&r!==n&&g.push({...e[r],x:i})}o>0&&n!==p&&g.push(e[n]),g.push(s),u=t,a=0,m=h=l,d=f=p=o}}return g}function mg(e){if(e._decimated){let t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function hg(e){e.data.datasets.forEach(e=>{mg(e)})}function gg(e,t){let n=t.length,r=0,i,{iScale:a}=e,{min:o,max:s,minDefined:c,maxDefined:l}=a.getUserBounds();return c&&(r=zl(Ul(t,a.axis,o).lo,0,n-1)),i=l?zl(Ul(t,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}var _g={id:`decimation`,defaults:{algorithm:`min-max`,enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){hg(e);return}let r=e.width;e.data.datasets.forEach((t,i)=>{let{_data:a,indexAxis:o}=t,s=e.getDatasetMeta(i),c=a||t.data;if($u([o,e.options.indexAxis])===`y`||!s.controller.supportsDecimation)return;let l=e.scales[s.xAxisID];if(l.type!==`linear`&&l.type!==`time`||e.options.parsing)return;let{start:u,count:d}=gg(s,c);if(d<=(n.threshold||4*r)){mg(t);return}W(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}}));let f;switch(n.algorithm){case`lttb`:f=fg(c,u,d,r,n);break;case`min-max`:f=pg(c,u,d,r);break;default:throw Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=f})},destroy(e){hg(e)}};function vg(e,t,n){let r=e.segments,i=e.points,a=t.points,o=[];for(let e of r){let{start:r,end:s}=e;s=xg(r,s,i);let c=yg(n,i[r],i[s],e.loop);if(!t.segments){o.push({source:e,target:c,start:i[r],end:i[s]});continue}let l=sf(t,c);for(let t of l){let r=yg(n,a[t.start],a[t.end],t.loop),s=of(e,i,r);for(let e of s)o.push({source:e,target:t,start:{[n]:Sg(c,r,`start`,Math.max)},end:{[n]:Sg(c,r,`end`,Math.min)}})}}return o}function yg(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e===`angle`&&(i=Ll(i),a=Ll(a)),{property:e,start:i,end:a}}function bg(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:e,end:t})=>{t=xg(e,t,i);let o=i[e],s=i[t];r===null?n!==null&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y})):(a.push({x:o.x,y:r}),a.push({x:s.x,y:r}))}),a}function xg(e,t,n){for(;t>e;t--){let e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Sg(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Cg(e,t){let n=[],r=!1;return G(e)?(r=!0,n=e):n=bg(e,t),n.length?new Vh({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function wg(e){return e&&e.fill!==!1}function Tg(e,t,n){let r=e[t].fill,i=[t],a;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!Xc(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function Eg(e,t,n){let r=Ag(e);if(K(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return Xc(i)&&Math.floor(i)===i?Dg(r[0],t,i,n):[`origin`,`start`,`end`,`stack`,`shape`].indexOf(r)>=0&&r}function Dg(e,t,n,r){return(e===`-`||e===`+`)&&(n=t+n),n===t||n<0||n>=r?!1:n}function Og(e,t){let n=null;return e===`start`?n=t.bottom:e===`end`?n=t.top:K(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function kg(e,t,n){let r;return r=e===`start`?n:e===`end`?t.options.reverse?t.min:t.max:K(e)?e.value:t.getBaseValue(),r}function Ag(e){let t=e.options,n=t.fill,r=q(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?`origin`:r}function jg(e){let{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=Mg(t,n);s.push(Cg({x:null,y:t.bottom},r));for(let e=0;e=0;--t){let n=i[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&n.fill&&Vg(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!==`beforeDatasetsDraw`)return;let r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){let n=r[t].$filler;wg(n)&&Vg(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;wg(r)&&n.drawTime===`beforeDatasetDraw`&&Vg(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:`beforeDatasetDraw`}},Yg=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Xg=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,Zg=class extends um{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=J(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=Qu(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Yg(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=Qg(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=$d(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=eu(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=eu(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=eu(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=eu(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Fu(e,this),this._draw(),Iu(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=Eu.color,s=$d(e.rtl,this.left,this.width),c=Qu(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=Yg(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=q(n.lineWidth,1);if(r.fillStyle=q(n.fillStyle,o),r.lineCap=q(n.lineCap,`butt`),r.lineDashOffset=q(n.lineDashOffset,0),r.lineJoin=q(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=q(n.strokeStyle,o),r.setLineDash(q(n.lineDash,[])),a.usePointStyle){let o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},c=s.xPlus(e,p/2),l=t+d;Nu(r,o,c,l,a.pointStyleWidth&&p)}else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=Xu(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?Uu(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){Hu(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:eu(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:eu(i,this.top+y+l,this.bottom-t[0].height),line:0},ef(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,C=f.y;s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(C=f.y+=b,f.line++,S=f.x=eu(i,this.left+l,this.right-n[f.line])):u>0&&C+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,C=f.y=eu(i,this.top+y+l,this.bottom-t[f.line].height));let w=s.x(S);if(g(w,C,o),S=tu(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),C,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=t_(o,e)+l}else f.y+=b}),tf(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=Qu(t.font),r=Zu(t.padding);if(!t.display)return;let i=$d(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=eu(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+eu(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=eu(o,u,u+d);a.textAlign=i.textAlign($l(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Hu(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=Qu(e.font),n=Zu(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(Vl(e,this.left,this.right)&&Vl(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ne.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function e_(e,t,n){let r=e;return typeof t.text!=`string`&&(r=t_(t,n)),r}function t_(e,t){return t*(e.text?e.text.length:0)}function n_(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var r_={id:`legend`,_element:Zg,start(e,t,n){let r=e.legend=new Zg({ctx:e.ctx,options:n,chart:e});Bp.configure(e,r,n),Bp.addBox(e,r)},stop(e){Bp.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;Bp.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=Zu(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},i_=class extends um{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=G(n.text)?n.text.length:1;this._padding=Zu(n.padding);let i=r*Qu(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=eu(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=eu(o,r,t),s=X*-.5):(l=i-e,u=eu(o,t,r),s=X*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=Qu(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);Hu(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:$l(t.align),textBaseline:`middle`,translation:[i,a]})}};function a_(e,t){let n=new i_({ctx:e.ctx,options:t,chart:e});Bp.configure(e,n,t),Bp.addBox(e,n),e.titleBlock=n}var o_={id:`title`,_element:i_,start(e,t,n){a_(e,n)},stop(e){let t=e.titleBlock;Bp.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;Bp.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},s_=new WeakMap,c_={id:`subtitle`,start(e,t,n){let r=new i_({ctx:e.ctx,options:n,chart:e});Bp.configure(e,r,n),Bp.addBox(e,r),s_.set(e,r)},stop(e){Bp.removeBox(e,s_.get(e)),s_.delete(e)},beforeUpdate(e,t,n){let r=s_.get(e);Bp.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`normal`},fullSize:!0,padding:0,position:`top`,text:``,weight:1500},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},l_={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;te+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;aMath.max(Math.min(e,n),t);function cc(e){return sc(oc(e*2.55),0,255)}function lc(e){return sc(oc(e*255),0,255)}function uc(e){return sc(oc(e/2.55)/100,0,1)}function dc(e){return sc(oc(e*100),0,100)}var fc={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},pc=[...`0123456789ABCDEF`],mc=e=>pc[e&15],hc=e=>pc[(e&240)>>4]+pc[e&15],gc=e=>(e&240)>>4==(e&15),_c=e=>gc(e.r)&&gc(e.g)&&gc(e.b)&&gc(e.a);function vc(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&fc[e[1]]*17,g:255&fc[e[2]]*17,b:255&fc[e[3]]*17,a:t===5?fc[e[4]]*17:255}:(t===7||t===9)&&(n={r:fc[e[1]]<<4|fc[e[2]],g:fc[e[3]]<<4|fc[e[4]],b:fc[e[5]]<<4|fc[e[6]],a:t===9?fc[e[7]]<<4|fc[e[8]]:255})),n}var yc=(e,t)=>e<255?t(e):``;function bc(e){var t=_c(e)?mc:hc;return e?`#`+t(e.r)+t(e.g)+t(e.b)+yc(e.a,t):void 0}var xc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Sc(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Cc(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function wc(e,t,n){let r=Sc(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Tc(e,t,n,r,i){return e===i?(t-n)/r+(t.5?l/(2-i-a):l/(i+a),s=Tc(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function Dc(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(lc)}function Oc(e,t,n){return Dc(Sc,e,t,n)}function kc(e,t,n){return Dc(wc,e,t,n)}function Ac(e,t,n){return Dc(Cc,e,t,n)}function jc(e){return(e%360+360)%360}function Mc(e){let t=xc.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?cc(+t[5]):lc(+t[5]));let i=jc(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?kc(i,a,o):t[1]===`hsv`?Ac(i,a,o):Oc(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Nc(e,t){var n=Ec(e);n[0]=jc(n[0]+t),n=Oc(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Pc(e){if(!e)return;let t=Ec(e),n=t[0],r=dc(t[1]),i=dc(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${uc(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var Fc={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},Ic={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function Lc(){let e={},t=Object.keys(Ic),n=Object.keys(Fc),r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return e}var Rc;function zc(e){Rc||(Rc=Lc(),Rc.transparent=[0,0,0,0]);let t=Rc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Bc=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Vc(e){let t=Bc.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?cc(e):sc(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?cc(r):sc(r,0,255)),i=255&(t[4]?cc(i):sc(i,0,255)),a=255&(t[6]?cc(a):sc(a,0,255)),{r,g:i,b:a,a:n}}}function Hc(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${uc(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Uc=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,Wc=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Gc(e,t,n){let r=Wc(uc(e.r)),i=Wc(uc(e.g)),a=Wc(uc(e.b));return{r:lc(Uc(r+n*(Wc(uc(t.r))-r))),g:lc(Uc(i+n*(Wc(uc(t.g))-i))),b:lc(Uc(a+n*(Wc(uc(t.b))-a))),a:e.a+n*(t.a-e.a)}}function Kc(e,t,n){if(e){let r=Ec(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Oc(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function qc(e,t){return e&&Object.assign(t||{},e)}function Jc(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=lc(e[3]))):(t=qc(e,{r:0,g:0,b:0,a:1}),t.a=lc(t.a)),t}function Yc(e){return e.charAt(0)===`r`?Vc(e):Mc(e)}var Xc=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=Jc(t):n===`string`&&(r=vc(t)||zc(t)||Yc(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=qc(this._rgb);return e&&(e.a=uc(e.a)),e}set rgb(e){this._rgb=Jc(e)}rgbString(){return this._valid?Hc(this._rgb):void 0}hexString(){return this._valid?bc(this._rgb):void 0}hslString(){return this._valid?Pc(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=Gc(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=lc(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=oc(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Kc(this._rgb,2,e),this}darken(e){return Kc(this._rgb,2,-e),this}saturate(e){return Kc(this._rgb,1,e),this}desaturate(e){return Kc(this._rgb,1,-e),this}rotate(e){return Nc(this._rgb,e),this}};function Zc(){}var Qc=(()=>{let e=0;return()=>e++})();function W(e){return e==null}function G(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function K(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function $c(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function el(e,t){return $c(e)?e:t}function q(e,t){return e===void 0?t:e}var tl=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,nl=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function J(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function Y(e,t,n,r){let i,a,o;if(G(e)){if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function dl(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function fl(e){let t=dl(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function pl(e,t){return(ul[t]||(ul[t]=fl(t)))(e)}function ml(e){return e.charAt(0).toUpperCase()+e.slice(1)}var hl=e=>e!==void 0,gl=e=>typeof e==`function`,_l=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function vl(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var X=Math.PI,Z=2*X,yl=Z+X,bl=1/0,xl=X/180,Sl=X/2,Cl=X/4,wl=X*2/3,Tl=Math.log10,El=Math.sign;function Dl(e,t,n){return Math.abs(e-t)e-t).pop(),t}function Al(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function jl(e){return!Al(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Ml(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Nl(e,t,n){let r,i,a;for(r=0,i=e.length;rc&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Gl(e,t,n){n||=(n=>e[n]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var Kl=(e,t,n,r)=>Gl(e,n,r?r=>{let i=e[r][t];return ie[r][t]Gl(e,n,r=>e[r][t]>=n);function Jl(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{let n=`_onData`+ml(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})}))}function Zl(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(Yl.forEach(t=>{delete e[t]}),delete e._chartjs)}function Ql(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var $l=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function eu(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,$l.call(window,()=>{r=!1,e.apply(t,n)}))}}function tu(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var nu=e=>e===`start`?`left`:e===`end`?`right`:`center`,ru=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,iu=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;function au(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(Kl(c,u,d).lo,n?r:Kl(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!W(e[s.axis]));i-=Math.max(0,e)}i=Hl(i,0,r-1)}if(m){let e=Math.max(Kl(c,o.axis,f,!0).hi+1,n?0:Kl(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!W(e[s.axis]));e+=Math.max(0,t)}a=Hl(e,i,r)-i}else a=r-i}return{start:i,count:a}}function ou(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var su=e=>e===0||e===1,cu=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*Z/n)),lu=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*Z/n)+1,uu={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Sl)+1,easeOutSine:e=>Math.sin(e*Sl),easeInOutSine:e=>-.5*(Math.cos(X*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>su(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>su(e)?e:cu(e,.075,.3),easeOutElastic:e=>su(e)?e:lu(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return su(e)?e:e<.5?.5*cu(e*2,t,n):.5+.5*lu(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-uu.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?uu.easeInBounce(e*2)*.5:uu.easeOutBounce(e*2-1)*.5+.5};function du(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function fu(e){return du(e)?e:new Xc(e)}function pu(e){return du(e)?e:new Xc(e).saturate(.5).darken(.1).hexString()}var mu=[`x`,`y`,`borderWidth`,`radius`,`tension`],hu=[`color`,`borderColor`,`backgroundColor`];function gu(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:hu},numbers:{type:`number`,properties:mu}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function _u(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var vu=new Map;function yu(e,t){t||={};let n=e+JSON.stringify(t),r=vu.get(n);return r||(r=new Intl.NumberFormat(e,t),vu.set(n,r)),r}function bu(e,t,n){return yu(t,n).format(e)}var xu={values(e){return G(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=Su(e,n)}let o=Tl(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),bu(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(Tl(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?xu.numeric.call(this,e,t,n):``}};function Su(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Cu={formatters:xu};function wu(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Cu.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var Tu=Object.create(null),Eu=Object.create(null);function Du(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>pu(t.backgroundColor),this.hoverBorderColor=(e,t)=>pu(t.borderColor),this.hoverColor=(e,t)=>pu(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Ou(this,e,t)}get(e){return Du(this,e)}describe(e,t){return Ou(Eu,e,t)}override(e,t){return Ou(Tu,e,t)}route(e,t,n,r){let i=Du(this,e),a=Du(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return K(e)?Object.assign({},t,e):q(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[gu,_u,wu]);function Au(e){return!e||W(e.size)||W(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function ju(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Mu(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;cn.length){for(c=0;c0&&e.stroke()}}function Lu(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,Hu(e,a),c=0;c+e||0;function Zu(e,t){let n={},r=K(t),i=r?Object.keys(t):t,a=K(e)?r?n=>q(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=Xu(a(e));return n}function Qu(e){return Zu(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function $u(e){return Zu(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function ed(e){let t=Qu(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function td(e,t){e||={},t||=ku.font;let n=q(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=q(e.style,t.style);r&&!(``+r).match(Ju)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:q(e.family,t.family),lineHeight:Yu(q(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:q(e.weight,t.weight),string:``};return i.string=Au(i),i}function nd(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;an&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function id(e,t){return Object.assign(Object.create(e),t)}function ad(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=xd(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>ad([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return ud(n,r,()=>bd(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return Sd(e).includes(t)},ownKeys(e){return Sd(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function od(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:sd(e,r),setContext:t=>od(e,t,n,r),override:i=>od(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return ud(e,t,()=>dd(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function sd(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:gl(n)?n:()=>n,isIndexable:gl(r)?r:()=>r}}var cd=(e,t)=>e?e+ml(t):t,ld=(e,t)=>K(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function ud(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function dd(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return gl(s)&&o.isScriptable(t)&&(s=fd(t,s,e,n)),G(s)&&s.length&&(s=pd(t,s,e,o.isIndexable)),ld(t,s)&&(s=od(s,i,a&&a[t],o)),s}function fd(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),ld(e,c)&&(c=_d(i._scopes,i,e,c)),c}function pd(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(K(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=_d(r,i,e,c);t.push(od(n,a,o&&o[e],s))}}return t}function md(e,t,n){return gl(e)?e(t,n):e}var hd=(e,t)=>e===!0?t:typeof e==`string`?pl(t,e):void 0;function gd(e,t,n,r,i){for(let a of t){let t=hd(n,a);if(t){e.add(t);let a=md(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function _d(e,t,n,r){let i=t._rootScopes,a=md(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=vd(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=vd(s,o,a,c,r),c===null)?!1:ad(Array.from(s),[``],i,a,()=>yd(t,n,r))}function vd(e,t,n,r,i){for(;n;)n=gd(e,t,n,r,i);return n}function yd(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return G(i)&&K(n)?n:i||{}}function bd(e,t,n,r){let i;for(let a of t)if(i=xd(cd(a,e),n),i!==void 0)return ld(e,i)?_d(n,r,e,i):i}function xd(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function Sd(e){let t=e._keys;return t||=e._keys=Cd(e._scopes),t}function Cd(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function wd(e,t,n,r){let{iScale:i}=e,{key:a=`r`}=this._parsing,o=Array(r),s,c,l,u;for(s=0,c=r;ste===`x`?`y`:`x`;function Od(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=Rl(a,i),c=Rl(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function kd(e,t,n){let r=e.length,i,a,o,s,c,l=Ed(e,0);for(let u=0;u!e.skip)),t.cubicInterpolationMode===`monotone`)jd(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function zd(e,t){return Rd(e).getPropertyValue(t)}var Bd=[`top`,`right`,`bottom`,`left`];function Vd(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=Bd[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var Hd=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Ud(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(Hd(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function Wd(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=Rd(n),a=i.boxSizing===`border-box`,o=Vd(i,`padding`),s=Vd(i,`border`,`width`),{x:c,y:l,box:u}=Ud(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function Gd(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&Id(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=Rd(a),s=Vd(o,`border`,`width`),c=Vd(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=Ld(o.maxWidth,a,`clientWidth`),i=Ld(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||bl,maxHeight:i||bl}}var Kd=e=>Math.round(e*10)/10;function qd(e,t,n,r){let i=Rd(e),a=Vd(i,`margin`),o=Ld(i.maxWidth,e,`clientWidth`)||bl,s=Ld(i.maxHeight,e,`clientHeight`)||bl,c=Gd(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=Vd(i,`border`,`width`),t=Vd(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=Kd(Math.min(l,o,c.maxWidth)),u=Kd(Math.min(u,s,c.maxHeight)),l&&!u&&(u=Kd(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=Kd(Math.floor(u*r))),{width:l,height:u}}function Jd(e,t,n){let r=t||1,i=Kd(e.height*r),a=Kd(e.width*r);e.height=Kd(e.height),e.width=Kd(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var Yd=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};Fd()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function Xd(e,t){let n=zd(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Zd(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Qd(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r===`middle`?n<.5?e.y:t.y:r===`after`?n<1?e.y:t.y:n>0?t.y:e.y}}function $d(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=Zd(e,i,n),s=Zd(i,a,n),c=Zd(a,t,n);return Zd(Zd(o,s,n),Zd(s,c,n),n)}var ef=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},tf=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function nf(e,t,n){return e?ef(t,n):tf()}function rf(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function af(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function of(e){return e===`angle`?{between:Vl,compare:zl,normalize:Bl}:{between:Wl,compare:(e,t)=>e-t,normalize:e=>e}}function sf({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function cf(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=of(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;fc(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),C=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&C()&&(m.push(sf({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(sf({start:g,end:d,loop:f,count:o,style:p})),m}function uf(e,t){let n=[],r=e.segments;for(let i=0;ii&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function ff(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function pf(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=df(n,i,a,r);return r===!0?mf(e,[{start:o,end:s,loop:a}],n,t):mf(e,ff(n,o,sr({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,$l.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},Sf=`transparent`,Cf={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=fu(e||Sf),i=r.valid&&fu(t||Sf);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},wf=class{constructor(e,t,n,r){let i=t[n];r=nd([e.to,r,i,e.from]);let a=nd([e.from,i,r]);this._active=!0,this._fn=e.fn||Cf[e.type||typeof a],this._easing=uu[e.easing]||uu.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=nd([e.to,t,r,e.from]),this._from=nd([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;this._active=i!==o&&(a||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)):(this._target[r]=o,this._notify(!0))}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e{let i=e[r];if(!K(i))return;let a={};for(let e of t)a[e]=i[e];(G(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=Df(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&Ef(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u){if(d&&u.active()){u.update(d,l,o);continue}u.cancel()}!d||!d.duration?e[c]=l:(i[c]=u=new wf(d,e,c,l),r.push(u))}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return xf.add(this._chart,n),!0}};function Ef(e,t){let n=[],r=Object.keys(t);for(let t=0;t0||!n&&t<0)return i.index}return null}function zf(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Ff(a,o,r),d=t.length,f;for(let e=0;en[e].axis===t).shift()}function Vf(e,t){return id(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function Hf(e,t,n){return id(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Uf(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var Wf=e=>e===`reset`||e===`none`,Gf=(e,t)=>t?e:Object.assign({},e),Kf=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:jf(n,!0),values:null},qf=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Pf(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&Uf(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=q(n.xAxisID,Bf(e,`x`)),a=t.yAxisID=q(n.yAxisID,Bf(e,`y`)),o=t.rAxisID=q(n.rAxisID,Bf(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&Zl(this._data,this),e._stacked&&Uf(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(K(t)){let e=this._cachedMeta;this._data=Nf(t,e)}else if(n!==t){if(n){Zl(n,this);let e=this._cachedMeta;Uf(e),e._parsed=[]}t&&Object.isExtensible(t)&&Xl(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=Pf(t.vScale,t),t.stack!==n.stack&&(r=!0,Uf(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(zf(this,t._parsed),t._stacked=Pf(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length||n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=G(r[e])?this.parseArrayData(n,r,e,t):K(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]t||u=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r=0&&ethis.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(Gf(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new Tf(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||Wf(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){Wf(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Wf(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;oe-t))}return e._cache.$bar}function Yf(e){let t=e.iScale,n=Jf(t,e.type),r=t._length,i,a,o,s,c=()=>{o!==32767&&o!==-32768&&(hl(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function $f(e,t,n,r){return G(e)?Qf(e,t,n,r):t[n.axis]=n.parse(e,r),t}function ep(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l=n?1:-1):El(e)}function rp(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.basee.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(W(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[q(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),c=a._custom;return{label:n[e]||``,value:`(`+o+`, `+s+(c?`, `+c:``)+`)`}}update(e){let t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(t,r),l=a.axis,u=o.axis;for(let d=t;dVl(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>Vl(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(Sl,u,f),_=m(X,l,d),v=m(X+Sl,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var fp=class extends qf{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}},cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(K(n[e])){let{key:e=`value`}=this._parsing;i=t=>+pl(n[t],e)}let a,o;for(a=e,o=e+t;a0&&!isNaN(e)?Math.abs(e)/t*Z:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=bu(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r0&&this.getParsed(t-1);for(let n=0;n=_){v.skip=!0;continue}let b=this.getParsed(n),x=W(b[f]),S=v[d]=a.getPixelForValue(b[d],n),C=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(C)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},mp=class extends qf{static id=`polarArea`;static defaults={dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:`number`,properties:[`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`]}},indexAxis:`r`,startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((t,i)=>{let a=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:`radialLinear`,angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=bu(t._parsed[e].r,n.options.locale);return{label:r[e]||``,value:i}}parseObjectData(e,t,n,r){return wd.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){let e=this._cachedMeta,t={min:1/0,max:-1/0};return e.data.forEach((e,n)=>{let r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(rt.max&&(t.max=r))}),t}_updateRadius(){let e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*X,d=u,f,p=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Pl(this.resolveDataElementOptions(e,t).angle||n):0}},hp=Object.freeze({__proto__:null,BarController:lp,BubbleController:up,DoughnutController:fp,LineController:pp,PieController:class extends fp{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}},PolarAreaController:mp,RadarController:class extends qf{static id=`radar`;static defaults={datasetElementType:`line`,dataElementType:`point`,indexAxis:`r`,showLine:!0,elements:{line:{fill:`start`}}};static overrides={aspectRatio:1,scales:{r:{type:`radialLinear`}}};getLabelAndValue(e){let t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:``+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return wd.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,e!==`resize`){let t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);let a={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){let i=this._cachedMeta.rScale,a=r===`reset`;for(let o=t;o0&&this.getParsed(t-1);for(let l=t;l0&&Math.abs(n[f]-v[f])>g,h&&(m.parsed=n,m.raw=c.data[l]),d&&(m.options=u||this.resolveDataElementOptions(l,t.active?`active`:r)),_||this.updateElement(t,l,m,r),v=n}this.updateSharedOptions(u,r,l)}getMaxOverflow(){let e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}let n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;let i=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,a)/2}}});function gp(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var _p={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return gp()}parse(){return gp()}format(){return gp()}add(){return gp()}diff(){return gp()}startOf(){return gp()}endOf(){return gp()}}};function vp(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?ql:Kl;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!W(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!W(e[t.axis]));r.hi+=Math.max(0,o)}return r}if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function yp(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Ep={evaluateInteractionItems:yp,modes:{index(e,t,n,r){let i=Wd(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?xp(e,i,a,r,o):wp(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=Wd(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?xp(e,i,a,r,o):wp(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;ee.pos===t)}function kp(e,t){return e.filter(e=>Dp.indexOf(e.pos)===-1&&e.box.axis===t)}function Ap(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function jp(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;ne.box.fullSize),!0),r=Ap(Op(t,`left`),!0),i=Ap(Op(t,`right`)),a=Ap(Op(t,`top`),!0),o=Ap(Op(t,`bottom`)),s=kp(t,`x`),c=kp(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:Op(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function Fp(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Ip(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Lp(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!K(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&Ip(o,a.getPadding());let s=Math.max(0,t.outerWidth-Fp(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Fp(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Rp(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function zp(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function Bp(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Ip(f,ed(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Np(c.concat(l),d);Bp(s.fullSize,p,d,m),Bp(c,p,d,m),Bp(l,p,d,m)&&Bp(c,p,d,m),Rp(p),Hp(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,Hp(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Y(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},Wp=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},Gp=class extends Wp{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},Kp=`$chartjs`,qp={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},Jp=e=>e===null||e===``;function Yp(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[Kp]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,Jp(i)){let t=Xd(e,`width`);t!==void 0&&(e.width=t)}if(Jp(r)){if(e.style.height===``)e.height=e.width/(t||2);else{let t=Xd(e,`height`);t!==void 0&&(e.height=t)}}return e}var Xp=Yd?{passive:!0}:!1;function Zp(e,t,n){e&&e.addEventListener(t,n,Xp)}function Qp(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Xp)}function $p(e,t){let n=qp[e.type]||e.type,{x:r,y:i}=Wd(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function em(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function tm(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=em(n.addedNodes,r),t&&=!em(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function nm(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=em(n.removedNodes,r),t&&=!em(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var rm=new Map,im=0;function am(){let e=window.devicePixelRatio;e!==im&&(im=e,rm.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function om(e,t){rm.size||window.addEventListener(`resize`,am),rm.set(e,t)}function sm(e){rm.delete(e),rm.size||window.removeEventListener(`resize`,am)}function cm(e,t,n){let r=e.canvas,i=r&&Id(r);if(!i)return;let a=eu((e,t)=>{let r=i.clientWidth;n(e,t),r{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;(n!==0||r!==0)&&a(n,r)});return o.observe(i),om(e,a),o}function lm(e,t,n){n&&n.disconnect(),t===`resize`&&sm(e)}function um(e,t,n){let r=e.canvas,i=eu(t=>{e.ctx!==null&&n($p(t,e))},e);return Zp(r,t,i),i}var dm=class extends Wp{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(Yp(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[Kp])return!1;let n=t[Kp].initial;[`height`,`width`].forEach(e=>{let r=n[e];W(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[Kp],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:tm,detach:nm,resize:cm}[t]||um)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:lm,detach:lm,resize:lm}[t]||Qp)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return qd(e,t,n,r)}isAttached(e){let t=e&&Id(e);return!!(t&&t.isConnected)}};function fm(e){return!Fd()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?Gp:dm}var pm=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return jl(this.x)&&jl(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function mm(e,t){let n=e.options.ticks,r=hm(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?_m(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return vm(t,l,a,o/i),l;let u=gm(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(ym(t,l,u,W(r)?0:s-r,s),e=0,n=o-1;ei)return t}return Math.max(i,1)}function _m(e){let t=[],n,r;for(n=0,r=e.length;ne===`left`?`right`:e===`right`?`left`:e,Sm=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,Cm=(e,t)=>Math.min(t||e,e);function wm(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;ao+s)))return c}function Em(e,t){Y(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;in?n:t,n=r&&t>n?t:n,{min:el(t,el(n,t)),max:el(n,el(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){J(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=rd(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=Hl(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-Dm(e.grid)-t.padding-Om(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=Fl(Math.min(Math.asin(Hl((l.highest.height+6)/o,-1,1)),Math.asin(Hl(s/c,-1,1))-Math.asin(Hl(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){J(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){J(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=Om(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=Dm(i)+a):(e.height=this.maxHeight,e.width=Dm(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=Pl(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){J(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t({width:a[e]||0,height:o[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return Ul(this._alignToPixels?Nu(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&eo*r?o/n:s/r:s*r0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=Dm(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Nu(n,e,p)},g,_,v,y,b,x,S,C,w,T,E,ee;if(a===`top`)g=h(this.bottom),x=this.bottom-u,C=g-m,T=h(e.top)+m,ee=e.bottom;else if(a===`bottom`)g=h(this.top),T=e.top,ee=h(e.bottom)-m,x=g+m,C=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,w=h(e.left)+m,E=e.right;else if(a===`right`)g=h(this.left),w=e.left,E=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(K(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}T=e.top,ee=e.bottom,x=g+m,C=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(K(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,w=e.left,E=e.right}let te=q(r.ticks.maxTicksLimit,l),ne=Math.max(1,Math.ceil(l/te));for(_=0;_0&&(a-=r/2)}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:w,textOffset:ee,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:te,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-Pl(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);ku.route(a,i,c,s)})}function Lm(e){return`id`in e&&`defaults`in e}var Rm=new class{constructor(){this.controllers=new Pm(qf,`datasets`,!0),this.elements=new Pm(pm,`elements`),this.plugins=new Pm(Object,`plugins`),this.scales=new Pm(Nm,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):Y(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=ml(e);J(n[`before`+r],[],n),t[e](n),J(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;te.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function Bm(e){let t={},n=[],r=Object.keys(Rm.plugins.items);for(let e=0;e1&&qm(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Xm(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function Zm(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return Xm(e,`x`,n[0])||Xm(e,`y`,n[0])}return{}}function Qm(e,t){let n=Tu[e.type]||{scales:{}},r=t.scales||{},i=Wm(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!K(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=Ym(t,o,Zm(t,e),ku.scales[o.type]),c=Km(s,i),l=n.scales||{};a[t]=cl(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||Wm(i,t),s=(Tu[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=Gm(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),cl(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];cl(t,[ku.scales[t.type],ku.scale])}),a}function $m(e){let t=e.options||={};t.plugins=q(t.plugins,{}),t.scales=Qm(e,t)}function eh(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function th(e){return e||={},e.data=eh(e.data),$m(e),e}var nh=new Map,rh=new Set;function ih(e,t){let n=nh.get(e);return n||(n=t(),nh.set(e,n),rh.add(n)),n}var ah=(e,t,n)=>{let r=pl(t,n);r!==void 0&&e.add(r)},oh=class{constructor(e){this._config=th(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=eh(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),$m(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return ih(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return ih(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return ih(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return ih(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>ah(s,e,t))),t.forEach(e=>ah(s,r,e)),t.forEach(e=>ah(s,Tu[i]||{},e)),t.forEach(e=>ah(s,ku,e)),t.forEach(e=>ah(s,Eu,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),rh.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,Tu[t]||{},ku.datasets[t]||{},{type:t},ku,Eu]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=sh(this._resolverCache,e,r),s=a;if(lh(a,t)){i.$shared=!1,n=gl(n)?n():n;let t=this.createResolver(e,n,o);s=od(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=sh(this._resolverCache,e,n);return K(t)?od(i,t,void 0,r):i}};function sh(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:ad(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var ch=e=>K(e)&&Object.getOwnPropertyNames(e).some(t=>gl(e[t]));function lh(e,t){let{isScriptable:n,isIndexable:r}=sd(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(gl(o)||ch(o))||a&&G(o))return!0}return!1}var uh=`4.5.1`,dh=[`top`,`bottom`,`left`,`right`,`chartArea`];function fh(e,t){return e===`top`||e===`bottom`||dh.indexOf(e)===-1&&t===`x`}function ph(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function mh(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),J(n&&n.onComplete,[e],t)}function hh(e){let t=e.chart,n=t.options.animation;J(n&&n.onProgress,[e],t)}function gh(e){return Fd()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var _h={},vh=e=>{let t=gh(e);return Object.values(_h).filter(e=>e.canvas===t).pop()};function yh(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function bh(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var xh=class{static defaults=ku;static instances=_h;static overrides=Tu;static registry=Rm;static version=uh;static getChart=vh;static register(...e){Rm.add(...e),Sh()}static unregister(...e){Rm.remove(...e),Sh()}constructor(e,t){let n=this.config=new oh(t),r=gh(e),i=vh(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(fm(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;this.id=Qc(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new zm,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=tu(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],_h[this.id]=this,!o||!s?console.error(`Failed to create chart: can't acquire context from the given item`):(xf.listen(this,`complete`,mh),xf.listen(this,`progress`,hh),this._initialize(),this.attached&&this.update())}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return W(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Rm}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():Jd(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return Pu(this.canvas,this.ctx),this}stop(){return xf.stop(this),this}resize(e,t){xf.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Jd(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),J(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Y(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=Ym(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),Y(i,t=>{let i=t.options,a=i.id,o=Ym(a,i),s=q(i.type,t.dtype);(i.position===void 0||fh(i.position,o)!==fh(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(Rm.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),Y(r,(e,t)=>{e||delete n[t]}),Y(n,e=>{Up.configure(this,e,e.options),Up.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(ph(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Y(this.scales,e=>{Up.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!_l(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)yh(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;ee.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;Up.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Y(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=bf(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Ru(t,r),e.controller.draw(),r&&zu(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return Lu(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Ep.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=id(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);hl(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),xf.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Y(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){Y(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},Y(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});rl(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=vl(e),c=bh(e,this._lastEvent,n,s);n&&(this._lastEvent=null,J(i.onHover,[e,o,this],this),s&&J(i.onClick,[e,o,this],this));let l=!rl(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function Sh(){return Y(xh.instances,e=>e._plugins.invalidate())}function Ch(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,Bl(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,Bl(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*Bl(r-n));if(u===`round`)e.arc(i,a,t,n-X/2,r+X/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+X/2)+i,c=-o*Math.sin(n+X/2)+a,l=o*Math.cos(r+X/2)+i,u=o*Math.sin(r+X/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function wh(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+Sl,r-Sl),e.closePath(),e.clip()}function Th(e){return Zu(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function Eh(e,t,n,r){let i=Th(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return Hl(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Hl(i.innerStart,0,o),innerEnd:Hl(i.innerEnd,0,o)}}function Dh(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Oh(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/X)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=Eh(t,f,d,_-g),S=d-v,C=d-y,w=g+v/S,T=_-y/C,E=f+b,ee=f+x,te=g+b/E,ne=_-x/ee;if(e.beginPath(),a){let t=(w+T)/2;if(e.arc(o,s,d,w,t),e.arc(o,s,d,t,T),y>0){let t=Dh(C,T,o,s);e.arc(t.x,t.y,y,T,_+Sl)}let n=Dh(ee,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=Dh(ee,ne,o,s);e.arc(t.x,t.y,x,_+Sl,ne+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=Dh(E,te,o,s);e.arc(t.x,t.y,b,te+Math.PI,g-Sl)}let i=Dh(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=Dh(S,w,o,s);e.arc(t.x,t.y,v,g-Sl,w)}}else{e.moveTo(o,s);let t=Math.cos(w)*d+o,n=Math.sin(w)*d+s;e.lineTo(t,n);let r=Math.cos(T)*d+o,i=Math.sin(T)*d+s;e.lineTo(r,i)}e.closePath()}function kh(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){Oh(e,t,n,r,c,i);for(let t=0;t=X&&p===0&&u!==`miter`&&Ch(e,t,h),a||(Oh(e,t,n,r,h,i),e.stroke())}var jh=class extends pm{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=Ll(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=q(l,o-a),f=Vl(r,a,o)&&a!==o,p=d>=Z||f,m=Wl(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>Z?Math.floor(n/Z):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(X,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,kh(e,this,s,i,a),Ah(e,this,s,i,a),e.restore()}};function Mh(e,t,n=t){e.lineCap=q(n.borderCapStyle,t.borderCapStyle),e.setLineDash(q(n.borderDash,t.borderDash)),e.lineDashOffset=q(n.borderDashOffset,t.borderDashOffset),e.lineJoin=q(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=q(n.borderWidth,t.borderWidth),e.strokeStyle=q(n.borderColor,t.borderColor)}function Nh(e,t,n){e.lineTo(n.x,n.y)}function Ph(e){return e.stepped?Bu:e.tension||e.cubicInterpolationMode===`monotone`?Vu:Nh}function Fh(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=is&&a>s;return{count:r,start:c,loop:t.loop,ilen:l(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(ng&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function Rh(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Lh:Ih}function zh(e){return e.stepped?Qd:e.tension||e.cubicInterpolationMode===`monotone`?$d:Zd}function Bh(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Mh(e,t.options),e.stroke(i)}function Vh(e,t,n,r){let{segments:i,options:a}=t,o=Rh(t);for(let s of i)Mh(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var Hh=typeof Path2D==`function`;function Uh(e,t,n,r){Hh&&!t.options.segment?Bh(e,t,n,r):Vh(e,t,n,r)}var Wh=class extends pm{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;Pd(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=pf(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=uf(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=zh(n),c,l;for(c=0,l=a.length;ce.replace(`rgb(`,`rgba(`).replace(`)`,`, 0.5)`));function ag(e){return rg[e%rg.length]}function og(e){return ig[e%ig.length]}function sg(e,t){return e.borderColor=ag(t),e.backgroundColor=og(t),++t}function cg(e,t){return e.backgroundColor=e.data.map(()=>ag(t++)),t}function lg(e,t){return e.backgroundColor=e.data.map(()=>og(t++)),t}function ug(e){let t=0;return(n,r)=>{let i=e.getDatasetMeta(r).controller;i instanceof fp?t=cg(n,t):i instanceof mp?t=lg(n,t):i&&(t=sg(n,t))}}function dg(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function fg(e){return e&&(e.borderColor||e.backgroundColor)}function pg(){return ku.borderColor!==`rgba(0,0,0,0.1)`||ku.backgroundColor!==`rgba(0,0,0,0.1)`}var mg={id:`colors`,defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;let{data:{datasets:r},options:i}=e.config,{elements:a}=i,o=dg(r)||fg(i)||a&&dg(a)||pg();if(!n.forceOverride&&o)return;let s=ug(e);r.forEach(s)}};function hg(e,t,n,r,i){let a=i.samples||r;if(a>=n)return e.slice(t,t+n);let o=[],s=(n-2)/(a-2),c=0,l=t+n-1,u=t,d,f,p,m,h;for(o[c++]=e[u],d=0;dp&&(p=m,f=e[a],h=a);o[c++]=f,u=h}return o[c++]=e[l],o}function gg(e,t,n,r){let i=0,a=0,o,s,c,l,u,d,f,p,m,h,g=[],_=t+n-1,v=e[t].x,y=e[_].x-v;for(o=t;oh&&(h=l,f=o),i=(a*i+s.x)/++a;else{let n=o-1;if(!W(d)&&!W(f)){let t=Math.min(d,f),r=Math.max(d,f);t!==p&&t!==n&&g.push({...e[t],x:i}),r!==p&&r!==n&&g.push({...e[r],x:i})}o>0&&n!==p&&g.push(e[n]),g.push(s),u=t,a=0,m=h=l,d=f=p=o}}return g}function _g(e){if(e._decimated){let t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function vg(e){e.data.datasets.forEach(e=>{_g(e)})}function yg(e,t){let n=t.length,r=0,i,{iScale:a}=e,{min:o,max:s,minDefined:c,maxDefined:l}=a.getUserBounds();return c&&(r=Hl(Kl(t,a.axis,o).lo,0,n-1)),i=l?Hl(Kl(t,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}var bg={id:`decimation`,defaults:{algorithm:`min-max`,enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){vg(e);return}let r=e.width;e.data.datasets.forEach((t,i)=>{let{_data:a,indexAxis:o}=t,s=e.getDatasetMeta(i),c=a||t.data;if(nd([o,e.options.indexAxis])===`y`||!s.controller.supportsDecimation)return;let l=e.scales[s.xAxisID];if(l.type!==`linear`&&l.type!==`time`||e.options.parsing)return;let{start:u,count:d}=yg(s,c);if(d<=(n.threshold||4*r)){_g(t);return}W(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}}));let f;switch(n.algorithm){case`lttb`:f=hg(c,u,d,r,n);break;case`min-max`:f=gg(c,u,d,r);break;default:throw Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=f})},destroy(e){vg(e)}};function xg(e,t,n){let r=e.segments,i=e.points,a=t.points,o=[];for(let e of r){let{start:r,end:s}=e;s=wg(r,s,i);let c=Sg(n,i[r],i[s],e.loop);if(!t.segments){o.push({source:e,target:c,start:i[r],end:i[s]});continue}let l=uf(t,c);for(let t of l){let r=Sg(n,a[t.start],a[t.end],t.loop),s=lf(e,i,r);for(let e of s)o.push({source:e,target:t,start:{[n]:Tg(c,r,`start`,Math.max)},end:{[n]:Tg(c,r,`end`,Math.min)}})}}return o}function Sg(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e===`angle`&&(i=Bl(i),a=Bl(a)),{property:e,start:i,end:a}}function Cg(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:e,end:t})=>{t=wg(e,t,i);let o=i[e],s=i[t];r===null?n!==null&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y})):(a.push({x:o.x,y:r}),a.push({x:s.x,y:r}))}),a}function wg(e,t,n){for(;t>e;t--){let e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Tg(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Eg(e,t){let n=[],r=!1;return G(e)?(r=!0,n=e):n=Cg(e,t),n.length?new Wh({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Dg(e){return e&&e.fill!==!1}function Og(e,t,n){let r=e[t].fill,i=[t],a;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!$c(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function kg(e,t,n){let r=Ng(e);if(K(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return $c(i)&&Math.floor(i)===i?Ag(r[0],t,i,n):[`origin`,`start`,`end`,`stack`,`shape`].indexOf(r)>=0&&r}function Ag(e,t,n,r){return(e===`-`||e===`+`)&&(n=t+n),n===t||n<0||n>=r?!1:n}function jg(e,t){let n=null;return e===`start`?n=t.bottom:e===`end`?n=t.top:K(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Mg(e,t,n){let r;return r=e===`start`?n:e===`end`?t.options.reverse?t.min:t.max:K(e)?e.value:t.getBaseValue(),r}function Ng(e){let t=e.options,n=t.fill,r=q(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?`origin`:r}function Pg(e){let{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=Fg(t,n);s.push(Eg({x:null,y:t.bottom},r));for(let e=0;e=0;--t){let n=i[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&n.fill&&Wg(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!==`beforeDatasetsDraw`)return;let r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){let n=r[t].$filler;Dg(n)&&Wg(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;Dg(r)&&n.drawTime===`beforeDatasetDraw`&&Wg(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:`beforeDatasetDraw`}},Qg=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},$g=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,e_=class extends pm{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=J(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=td(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Qg(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=t_(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=nf(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=ru(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=ru(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=ru(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=ru(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Ru(e,this),this._draw(),zu(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=ku.color,s=nf(e.rtl,this.left,this.width),c=td(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=Qg(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=q(n.lineWidth,1);if(r.fillStyle=q(n.fillStyle,o),r.lineCap=q(n.lineCap,`butt`),r.lineDashOffset=q(n.lineDashOffset,0),r.lineJoin=q(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=q(n.strokeStyle,o),r.setLineDash(q(n.lineDash,[])),a.usePointStyle){let o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},c=s.xPlus(e,p/2),l=t+d;Iu(r,o,c,l,a.pointStyleWidth&&p)}else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=$u(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?Ku(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){Gu(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:ru(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:ru(i,this.top+y+l,this.bottom-t[0].height),line:0},rf(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,C=f.y;s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(C=f.y+=b,f.line++,S=f.x=ru(i,this.left+l,this.right-n[f.line])):u>0&&C+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,C=f.y=ru(i,this.top+y+l,this.bottom-t[f.line].height));let w=s.x(S);if(g(w,C,o),S=iu(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),C,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=i_(o,e)+l}else f.y+=b}),af(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=td(t.font),r=ed(t.padding);if(!t.display)return;let i=nf(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=ru(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+ru(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=ru(o,u,u+d);a.textAlign=i.textAlign(nu(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Gu(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=td(e.font),n=ed(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(Wl(e,this.left,this.right)&&Wl(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ne.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function r_(e,t,n){let r=e;return typeof t.text!=`string`&&(r=i_(t,n)),r}function i_(e,t){return t*(e.text?e.text.length:0)}function a_(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var o_={id:`legend`,_element:e_,start(e,t,n){let r=e.legend=new e_({ctx:e.ctx,options:n,chart:e});Up.configure(e,r,n),Up.addBox(e,r)},stop(e){Up.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;Up.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=ed(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},s_=class extends pm{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=G(n.text)?n.text.length:1;this._padding=ed(n.padding);let i=r*td(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=ru(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=ru(o,r,t),s=X*-.5):(l=i-e,u=ru(o,t,r),s=X*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=td(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);Gu(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:nu(t.align),textBaseline:`middle`,translation:[i,a]})}};function c_(e,t){let n=new s_({ctx:e.ctx,options:t,chart:e});Up.configure(e,n,t),Up.addBox(e,n),e.titleBlock=n}var l_={id:`title`,_element:s_,start(e,t,n){c_(e,n)},stop(e){let t=e.titleBlock;Up.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;Up.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},u_=new WeakMap,d_={id:`subtitle`,start(e,t,n){let r=new s_({ctx:e.ctx,options:n,chart:e});Up.configure(e,r,n),Up.addBox(e,r),u_.set(e,r)},stop(e){Up.removeBox(e,u_.get(e)),u_.delete(e)},beforeUpdate(e,t,n){let r=u_.get(e);Up.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`normal`},fullSize:!0,padding:0,position:`top`,text:``,weight:1500},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},f_={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;te+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;a-1?e.split(` -`):e}function f_(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function p_(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=Qu(t.bodyFont),l=Qu(t.titleFont),u=Qu(t.footerFont),d=a.length,f=i.length,p=r.length,m=Zu(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,Y(e.title,y),n.font=c.string,Y(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,Y(r,e=>{Y(e.before,y),Y(e.lines,y),Y(e.after,y)}),v=0,n.font=u.string,Y(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function m_(e,t){let{y:n,height:r}=t;return ne.height-r/2?`bottom`:`center`}function h_(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function g_(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),h_(l,e,t,n)&&(l=`center`),l}function __(e,t,n){let r=n.yAlign||t.yAlign||m_(e,n);return{xAlign:n.xAlign||t.xAlign||g_(e,t,n,r),yAlign:r}}function v_(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function y_(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:r-=t===`bottom`?i+n:i/2,r}function b_(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Xu(o),m=v_(t,s),h=y_(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:zl(m,0,r.width-t.width),y:zl(h,0,r.height-t.height)}}function x_(e,t,n){let r=Zu(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function S_(e){return u_([],d_(e))}function C_(e,t,n){return td(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function w_(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var T_={beforeTitle:Jc,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex{let t={before:[],lines:[],after:[]},i=w_(n,e);u_(t.before,d_(E_(i,`beforeLabel`,this,e))),u_(t.lines,E_(i,`label`,this,e)),u_(t.after,d_(E_(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return S_(E_(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=E_(n,`beforeFooter`,this,e),i=E_(n,`footer`,this,e),a=E_(n,`afterFooter`,this,e),o=[];return o=u_(o,d_(r)),o=u_(o,d_(i)),o=u_(o,d_(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;se.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),Y(o,t=>{let n=w_(e.callbacks,t);r.push(E_(n,`labelColor`,this,t)),i.push(E_(n,`labelPointStyle`,this,t)),a.push(E_(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=l_[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=p_(this,n),o=Object.assign({},e,t),s=__(this.chart,n,o),c=b_(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=Xu(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=$d(n.rtl,this.x,this.width);for(e.x=x_(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=Qu(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;se!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Uu(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Uu(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=Qu(n.bodyFont),d=u.lineHeight,f=0,p=$d(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=x_(this,h,n),t.fillStyle=n.bodyColor,Y(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=l_[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=p_(this,e),o=Object.assign({},n,this._size),s=__(t,e,o),c=b_(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=Zu(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),ef(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),tf(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!el(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!el(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=l_[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},O_=Object.freeze({__proto__:null,Colors:dg,Decimation:_g,Filler:Jg,Legend:r_,SubTitle:c_,Title:o_,Tooltip:{id:`tooltip`,_element:D_,positioners:l_,afterInit(e,t,n){n&&(e.tooltip=new D_({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:T_},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]}}),k_=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function A_(e,t,n,r){let i=e.indexOf(t);return i===-1?k_(e,t,n,r):i===e.lastIndexOf(t)?i:n}var j_=(e,t)=>e===null?null:zl(Math.round(e),0,t);function M_(e){let t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function P_(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!W(a),_=!W(o),v=!W(c),y=(h-m)/(u+1),b=Tl((h-m)/p/f)*f,x,S,C,w;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];w=Math.ceil(h/b)-Math.floor(m/b),w>p&&(b=Tl(w*b/p/f)*f),W(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,C=Math.ceil(h/b)*b):(S=m,C=h),g&&_&&i&&kl((o-a)/i,b/1e3)?(w=Math.round(Math.min((o-a)/b,l)),b=(o-a)/w,S=a,C=o):v?(S=g?a:S,C=_?o:C,w=c-1,b=(C-S)/w):(w=(C-S)/b,w=wl(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w));let T=Math.max(Nl(b),Nl(S));x=10**(W(s)?T:s),S=Math.round(S*x)/x,C=Math.round(C*x)/x;let E=0;for(g&&(d&&S!==a?(n.push({value:a}),So)break;n.push({value:e})}return _&&d&&C!==o?n.length&&wl(n[n.length-1].value,o,F_(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||C===o)&&n.push({value:C}),n}function F_(e,t,{horizontal:n,minRotation:r}){let i=jl(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var I_=class extends Am{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return W(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=Cl(r),t=Cl(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=P_({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Al(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return _u(e,this.chart.options.locale,this.options.ticks.format)}},L_=class extends I_{static id=`linear`;static defaults={ticks:{callback:bu.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=Xc(e)?e:0,this.max=Xc(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=jl(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},R_=e=>Math.floor(Sl(e)),z_=(e,t)=>10**(R_(e)+t);function B_(e){return e/10**R_(e)==1}function V_(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function H_(e,t){let n=R_(t-e);for(;V_(e,t,n)>10;)n++;for(;V_(e,t,n)<10;)n--;return Math.min(n,R_(e))}function U_(e,{min:t,max:n}){t=Zc(e.min,t);let r=[],i=R_(t),a=H_(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=Zc(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=Zc(e.max,f);return r.push({value:p,major:B_(p),significand:d}),r}var W_=class extends Am{static id=`logarithmic`;static defaults={ticks:{callback:bu.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=I_.prototype.parse.apply(this,[e,t]);if(n===0)this._zero=!0;else return Xc(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=Xc(e)?Math.max(0,e):null,this.max=Xc(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Xc(this._userMin)&&(this.min=e===z_(this.min,0)?z_(this.min,-1):z_(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(z_(n,-1)),a(z_(r,1)))),n<=0&&i(z_(r,-1)),r<=0&&a(z_(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=U_({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Al(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:_u(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Sl(e),this._valueRange=Sl(this.max)-Sl(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Sl(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}};function G_(e){let t=e.ticks;if(t.display&&e.display){let e=Zu(t.backdropPadding);return q(t.font&&t.font.size,Eu.font.size)+e.height}return 0}function K_(e,t,n){return n=G(n)?n:[n],{w:ku(e,t.string,n),h:n.length*t.lineHeight}}function q_(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function J_(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?X/a:0;for(let c=0;ct.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function X_(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Ml(Ll(c.angle+yl))),u=tv(c.y,s.h,l),d=$_(l),f=ev(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function Z_(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Pu({x:n,y:r},t)||Pu({x:n,y:a},t)||Pu({x:i,y:r},t)||Pu({x:i,y:a},t))}function Q_(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:G_(a)/2,additionalAngle:o?X/i:0},l;for(let a=0;a270||n<90)&&(e-=t),e}function nv(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!W(s)){let n=Xu(t.borderRadius),c=Zu(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Uu(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function rv(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));nv(n,a,t);let o=Qu(a.font),{x:s,y:c,textAlign:l}=t;Hu(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function iv(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Z);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a{let n=J(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?J_(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Z/(this._pointLabels.length||1),n=this.options.startAngle||0;return Ll(e*t+jl(n))}getDistanceFromCenterForValue(e){if(W(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(W(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);av(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;a&&i&&(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=Qu(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=Zu(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}Hu(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}},cv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},lv=Object.keys(cv);function uv(e,t){return e-t}function dv(e,t){if(W(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),Xc(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Ol(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function fv(e,t,n,r){let i=lv.length;for(let a=lv.indexOf(e);a=lv.indexOf(n);a--){let n=lv[a];if(cv[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return lv[n?lv.indexOf(n):0]}function mv(e){for(let t=lv.indexOf(e)+1,n=lv.length;t=t?n[r]:n[i];e[a]=!0}}function gv(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function _v(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=zl(t,0,a),n=zl(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||fv(i.minUnit,t,n,this._getLabelCapacity(t)),o=q(r.ticks.stepSize,1),s=a===`week`&&i.isoWeekday,c=Ol(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return J(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Ul(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Ul(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}var bv=class extends vv{static id=`timeseries`;static defaults=vv.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=yv(t,this.min),this._tableRange=yv(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;ae-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(yv(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return yv(this._table,n*this._tableRange+this._minPos,!0)}},xv=[fp,$h,O_,Object.freeze({__proto__:null,CategoryScale:N_,LinearScale:L_,LogarithmicScale:W_,RadialLinearScale:sv,TimeScale:vv,TimeSeriesScale:bv})];vh.register(...xv);var Sv=vh,Cv={size:15,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},wv={size:10,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},Tv={size:12,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},Ev={size:15,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`bold`,style:`normal`},Dv={size:25,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,weight:`bold`,style:`normal`,lineHeight:3},Ov=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kv=class extends F{constructor(){super(),this.currentTheme=`dark`,this._themeHandler=()=>{this.readColors(),this.currentTheme=Av()}}readColors(){let e=getComputedStyle(this);this.primary=e.getPropertyValue(`--primary-color`).trim(),this.secondary=e.getPropertyValue(`--secondary-color`).trim(),this.tertiary=e.getPropertyValue(`--tertiary-color`).trim(),this.background=e.getPropertyValue(`--background-color`).trim(),this.error=e.getPropertyValue(`--error-color`).trim(),this.ok=e.getPropertyValue(`--terminal-text`).trim(),this.warn=e.getPropertyValue(`--warn-color`).trim(),this.color1=e.getPropertyValue(`--chart-color1`).trim(),this.color2=e.getPropertyValue(`--chart-color2`).trim(),this.color3=e.getPropertyValue(`--chart-color3`).trim(),this.color4=e.getPropertyValue(`--chart-color4`).trim(),this.color5=e.getPropertyValue(`--chart-color5`).trim()}firstUpdated(){this.readColors(),this.currentTheme=Av(),this.font=Cv,this.smallFont=wv,this.mediumFont=Tv,this.titleFont=Dv,this.fontBold=Ev,window.addEventListener(Zi,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(Zi,this._themeHandler)}};Ov([j()],kv.prototype,`currentTheme`,void 0);function Av(){let e=document.documentElement.getAttribute(`theme`);return e===`light`?`light`:e===`tektronix`?`tektronix`:`dark`}var jv=[`#f83aff`,`rgba(98, 196, 255, 1)`,`rgba(248,58,255,0.47)`,`rgba(98, 196, 255, 0.8)`,`rgba(248,58,255,0.2)`,`rgba(98, 196, 255, 0.5)`],Mv=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.4)`,`rgba(0, 0, 0, 0.25)`,`rgba(0, 0, 0, 0.15)`,`rgba(0, 0, 0, 0.08)`,`rgba(0, 0, 0, 0.5)`],Nv=[`#33ff33`,`rgba(102, 255, 102, 0.8)`,`rgba(51, 255, 51, 0.47)`,`rgba(102, 255, 102, 0.6)`,`rgba(51, 255, 51, 0.25)`,`rgba(102, 255, 102, 0.4)`],Pv=[`#f83aff`,`#00FF00`,`#787878`],Fv=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.35)`,`rgba(0, 0, 0, 0.15)`],Iv=[`#33ff33`,`#66ff66`,`#1a991a`],Lv=[`#ff246b`,`rgba(98, 196, 255, 1)`],Rv=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.25)`],zv=[`#66ff66`,`#1a991a`],Bv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vv=class extends kv{constructor(){super(),this._prevDatasets=``,this._prevLabels=``,this.colors=jv,this.width=300,this.height=300,this.id=crypto.randomUUID(),this.firstRun=!0}dataChanged(){let e=JSON.stringify(this.datasets?.map(e=>e.data)),t=JSON.stringify(this.labels);return e!==this._prevDatasets||t!==this._prevLabels?(this._prevDatasets=e,this._prevLabels=t,!0):!1}refresh(){this.chart.update()}firstUpdated(){super.firstUpdated()}updated(e){if(!(!this.chart||e.has(`changesChart`)||e.has(`breakingChanges`)||e.has(`currentTheme`)||this.dataChanged()))return;this.chart&&this.chart.destroy();let t=this.currentTheme;this.colors=this.changesChart?t===`tektronix`?Iv:t===`light`?Fv:Pv:this.breakingChanges?t===`tektronix`?zv:t===`light`?Rv:Lv:t===`tektronix`?Nv:t===`light`?Mv:jv,this.datasets.forEach(e=>{e.backgroundColor=this.colors,e.borderColor=this.background});let n=!1;this.title&&(n=!0);let r=this.firstRun?1e3:250;this.chart=new Sv(this.shadowRoot?.querySelector(`#chart-`+this.id),{type:`doughnut`,data:{labels:this.labels,datasets:this.datasets},options:{animation:{duration:r},responsive:!0,maintainAspectRatio:!1,layout:{autoPadding:!1,padding:{top:0,bottom:0}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:n,text:this.title,font:this.titleFont,color:this.primary,align:`center`},legend:{display:this.showLegend,position:`right`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,generateLabels:e=>{let t=e.data;if(t.labels&&t.datasets.length){let e=t.datasets[0].backgroundColor||[];return t.labels.map((t,n)=>({text:t,fillStyle:e[n]||this.secondary,strokeStyle:e[n]||this.secondary,fontColor:e[n]||this.secondary,hidden:!1,index:n}))}return[]}}}}}}),this.firstRun=!1}render(){return N` +`):e}function h_(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function g_(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=td(t.bodyFont),l=td(t.titleFont),u=td(t.footerFont),d=a.length,f=i.length,p=r.length,m=ed(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,Y(e.title,y),n.font=c.string,Y(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,Y(r,e=>{Y(e.before,y),Y(e.lines,y),Y(e.after,y)}),v=0,n.font=u.string,Y(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function __(e,t){let{y:n,height:r}=t;return ne.height-r/2?`bottom`:`center`}function v_(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function y_(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),v_(l,e,t,n)&&(l=`center`),l}function b_(e,t,n){let r=n.yAlign||t.yAlign||__(e,n);return{xAlign:n.xAlign||t.xAlign||y_(e,t,n,r),yAlign:r}}function x_(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function S_(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:r-=t===`bottom`?i+n:i/2,r}function C_(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=$u(o),m=x_(t,s),h=S_(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:Hl(m,0,r.width-t.width),y:Hl(h,0,r.height-t.height)}}function w_(e,t,n){let r=ed(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function T_(e){return p_([],m_(e))}function E_(e,t,n){return id(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function D_(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var O_={beforeTitle:Zc,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex{let t={before:[],lines:[],after:[]},i=D_(n,e);p_(t.before,m_(k_(i,`beforeLabel`,this,e))),p_(t.lines,k_(i,`label`,this,e)),p_(t.after,m_(k_(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return T_(k_(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=k_(n,`beforeFooter`,this,e),i=k_(n,`footer`,this,e),a=k_(n,`afterFooter`,this,e),o=[];return o=p_(o,m_(r)),o=p_(o,m_(i)),o=p_(o,m_(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;se.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),Y(o,t=>{let n=D_(e.callbacks,t);r.push(k_(n,`labelColor`,this,t)),i.push(k_(n,`labelPointStyle`,this,t)),a.push(k_(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=f_[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=g_(this,n),o=Object.assign({},e,t),s=b_(this.chart,n,o),c=C_(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=$u(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=nf(n.rtl,this.x,this.width);for(e.x=w_(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=td(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;se!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Ku(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Ku(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=td(n.bodyFont),d=u.lineHeight,f=0,p=nf(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=w_(this,h,n),t.fillStyle=n.bodyColor,Y(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=f_[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=g_(this,e),o=Object.assign({},n,this._size),s=b_(t,e,o),c=C_(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=ed(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),rf(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),af(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!rl(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!rl(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=f_[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},j_=Object.freeze({__proto__:null,Colors:mg,Decimation:bg,Filler:Zg,Legend:o_,SubTitle:d_,Title:l_,Tooltip:{id:`tooltip`,_element:A_,positioners:f_,afterInit(e,t,n){n&&(e.tooltip=new A_({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:O_},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]}}),M_=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function N_(e,t,n,r){let i=e.indexOf(t);return i===-1?M_(e,t,n,r):i===e.lastIndexOf(t)?i:n}var P_=(e,t)=>e===null?null:Hl(Math.round(e),0,t);function F_(e){let t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function L_(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!W(a),_=!W(o),v=!W(c),y=(h-m)/(u+1),b=Ol((h-m)/p/f)*f,x,S,C,w;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];w=Math.ceil(h/b)-Math.floor(m/b),w>p&&(b=Ol(w*b/p/f)*f),W(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,C=Math.ceil(h/b)*b):(S=m,C=h),g&&_&&i&&Ml((o-a)/i,b/1e3)?(w=Math.round(Math.min((o-a)/b,l)),b=(o-a)/w,S=a,C=o):v?(S=g?a:S,C=_?o:C,w=c-1,b=(C-S)/w):(w=(C-S)/b,w=Dl(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w));let T=Math.max(Il(b),Il(S));x=10**(W(s)?T:s),S=Math.round(S*x)/x,C=Math.round(C*x)/x;let E=0;for(g&&(d&&S!==a?(n.push({value:a}),So)break;n.push({value:e})}return _&&d&&C!==o?n.length&&Dl(n[n.length-1].value,o,R_(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||C===o)&&n.push({value:C}),n}function R_(e,t,{horizontal:n,minRotation:r}){let i=Pl(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var z_=class extends Nm{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return W(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=El(r),t=El(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=L_({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Nl(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return bu(e,this.chart.options.locale,this.options.ticks.format)}},B_=class extends z_{static id=`linear`;static defaults={ticks:{callback:Cu.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=$c(e)?e:0,this.max=$c(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Pl(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},V_=e=>Math.floor(Tl(e)),H_=(e,t)=>10**(V_(e)+t);function U_(e){return e/10**V_(e)==1}function W_(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function G_(e,t){let n=V_(t-e);for(;W_(e,t,n)>10;)n++;for(;W_(e,t,n)<10;)n--;return Math.min(n,V_(e))}function K_(e,{min:t,max:n}){t=el(e.min,t);let r=[],i=V_(t),a=G_(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=el(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=el(e.max,f);return r.push({value:p,major:U_(p),significand:d}),r}var q_=class extends Nm{static id=`logarithmic`;static defaults={ticks:{callback:Cu.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=z_.prototype.parse.apply(this,[e,t]);if(n===0)this._zero=!0;else return $c(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=$c(e)?Math.max(0,e):null,this.max=$c(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!$c(this._userMin)&&(this.min=e===H_(this.min,0)?H_(this.min,-1):H_(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(H_(n,-1)),a(H_(r,1)))),n<=0&&i(H_(r,-1)),r<=0&&a(H_(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=K_({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Nl(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:bu(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Tl(e),this._valueRange=Tl(this.max)-Tl(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Tl(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}};function J_(e){let t=e.ticks;if(t.display&&e.display){let e=ed(t.backdropPadding);return q(t.font&&t.font.size,ku.font.size)+e.height}return 0}function Y_(e,t,n){return n=G(n)?n:[n],{w:Mu(e,t.string,n),h:n.length*t.lineHeight}}function X_(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function Z_(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?X/a:0;for(let c=0;ct.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function $_(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Fl(Bl(c.angle+Sl))),u=iv(c.y,s.h,l),d=nv(l),f=rv(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function ev(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Lu({x:n,y:r},t)||Lu({x:n,y:a},t)||Lu({x:i,y:r},t)||Lu({x:i,y:a},t))}function tv(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:J_(a)/2,additionalAngle:o?X/i:0},l;for(let a=0;a270||n<90)&&(e-=t),e}function av(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!W(s)){let n=$u(t.borderRadius),c=ed(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Ku(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function ov(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));av(n,a,t);let o=td(a.font),{x:s,y:c,textAlign:l}=t;Gu(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function sv(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Z);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a{let n=J(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?Z_(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Z/(this._pointLabels.length||1),n=this.options.startAngle||0;return Bl(e*t+Pl(n))}getDistanceFromCenterForValue(e){if(W(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(W(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);cv(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;a&&i&&(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=td(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=ed(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}Gu(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}},dv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},fv=Object.keys(dv);function pv(e,t){return e-t}function mv(e,t){if(W(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),$c(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(jl(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function hv(e,t,n,r){let i=fv.length;for(let a=fv.indexOf(e);a=fv.indexOf(n);a--){let n=fv[a];if(dv[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return fv[n?fv.indexOf(n):0]}function _v(e){for(let t=fv.indexOf(e)+1,n=fv.length;t=t?n[r]:n[i];e[a]=!0}}function yv(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function bv(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=Hl(t,0,a),n=Hl(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||hv(i.minUnit,t,n,this._getLabelCapacity(t)),o=q(r.ticks.stepSize,1),s=a===`week`&&i.isoWeekday,c=jl(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return J(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Kl(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Kl(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}var Cv=class extends xv{static id=`timeseries`;static defaults=xv.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Sv(t,this.min),this._tableRange=Sv(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;ae-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Sv(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return Sv(this._table,n*this._tableRange+this._minPos,!0)}},wv=[hp,ng,j_,Object.freeze({__proto__:null,CategoryScale:I_,LinearScale:B_,LogarithmicScale:q_,RadialLinearScale:uv,TimeScale:xv,TimeSeriesScale:Cv})];xh.register(...wv);var Tv=xh,Ev={size:15,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},Dv={size:10,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},Ov={size:12,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},kv={size:15,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`bold`,style:`normal`},Av={size:25,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,weight:`bold`,style:`normal`,lineHeight:3},jv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mv=class extends F{constructor(){super(),this.currentTheme=`dark`,this._themeHandler=()=>{this.readColors(),this.currentTheme=Nv()}}readColors(){let e=getComputedStyle(this);this.primary=e.getPropertyValue(`--primary-color`).trim(),this.secondary=e.getPropertyValue(`--secondary-color`).trim(),this.tertiary=e.getPropertyValue(`--tertiary-color`).trim(),this.background=e.getPropertyValue(`--background-color`).trim(),this.error=e.getPropertyValue(`--error-color`).trim(),this.ok=e.getPropertyValue(`--terminal-text`).trim(),this.warn=e.getPropertyValue(`--warn-color`).trim(),this.color1=e.getPropertyValue(`--chart-color1`).trim(),this.color2=e.getPropertyValue(`--chart-color2`).trim(),this.color3=e.getPropertyValue(`--chart-color3`).trim(),this.color4=e.getPropertyValue(`--chart-color4`).trim(),this.color5=e.getPropertyValue(`--chart-color5`).trim()}firstUpdated(){this.readColors(),this.currentTheme=Nv(),this.font=Ev,this.smallFont=Dv,this.mediumFont=Ov,this.titleFont=Av,this.fontBold=kv,window.addEventListener(Zi,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(Zi,this._themeHandler)}};jv([j()],Mv.prototype,`currentTheme`,void 0);function Nv(){let e=document.documentElement.getAttribute(`theme`);return e===`light`?`light`:e===`tektronix`?`tektronix`:`dark`}var Pv=[`#f83aff`,`rgba(98, 196, 255, 1)`,`rgba(248,58,255,0.47)`,`rgba(98, 196, 255, 0.8)`,`rgba(248,58,255,0.2)`,`rgba(98, 196, 255, 0.5)`],Fv=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.4)`,`rgba(0, 0, 0, 0.25)`,`rgba(0, 0, 0, 0.15)`,`rgba(0, 0, 0, 0.08)`,`rgba(0, 0, 0, 0.5)`],Iv=[`#33ff33`,`rgba(102, 255, 102, 0.8)`,`rgba(51, 255, 51, 0.47)`,`rgba(102, 255, 102, 0.6)`,`rgba(51, 255, 51, 0.25)`,`rgba(102, 255, 102, 0.4)`],Lv=[`#f83aff`,`#00FF00`,`#787878`],Rv=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.35)`,`rgba(0, 0, 0, 0.15)`],zv=[`#33ff33`,`#66ff66`,`#1a991a`],Bv=[`#ff246b`,`rgba(98, 196, 255, 1)`],Vv=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.25)`],Hv=[`#66ff66`,`#1a991a`],Uv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wv=class extends Mv{constructor(){super(),this._prevDatasets=``,this._prevLabels=``,this.colors=Pv,this.width=300,this.height=300,this.id=crypto.randomUUID(),this.firstRun=!0}dataChanged(){let e=JSON.stringify(this.datasets?.map(e=>e.data)),t=JSON.stringify(this.labels);return e!==this._prevDatasets||t!==this._prevLabels?(this._prevDatasets=e,this._prevLabels=t,!0):!1}refresh(){this.chart.update()}firstUpdated(){super.firstUpdated()}updated(e){if(!(!this.chart||e.has(`changesChart`)||e.has(`breakingChanges`)||e.has(`currentTheme`)||this.dataChanged()))return;this.chart&&this.chart.destroy();let t=this.currentTheme;this.colors=this.changesChart?t===`tektronix`?zv:t===`light`?Rv:Lv:this.breakingChanges?t===`tektronix`?Hv:t===`light`?Vv:Bv:t===`tektronix`?Iv:t===`light`?Fv:Pv,this.datasets.forEach(e=>{e.backgroundColor=this.colors,e.borderColor=this.background});let n=!1;this.title&&(n=!0);let r=this.firstRun?1e3:250;this.chart=new Tv(this.shadowRoot?.querySelector(`#chart-`+this.id),{type:`doughnut`,data:{labels:this.labels,datasets:this.datasets},options:{animation:{duration:r},responsive:!0,maintainAspectRatio:!1,layout:{autoPadding:!1,padding:{top:0,bottom:0}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:n,text:this.title,font:this.titleFont,color:this.primary,align:`center`},legend:{display:this.showLegend,position:`right`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,generateLabels:e=>{let t=e.data;if(t.labels&&t.datasets.length){let e=t.datasets[0].backgroundColor||[];return t.labels.map((t,n)=>({text:t,fillStyle:e[n]||this.secondary,strokeStyle:e[n]||this.secondary,fontColor:e[n]||this.secondary,hidden:!1,index:n}))}return[]}}}}}}),this.firstRun=!1}render(){return N` - `}};Bv([A()],Vv.prototype,`title`,void 0),Bv([A()],Vv.prototype,`datasets`,void 0),Bv([A()],Vv.prototype,`labels`,void 0),Bv([A({type:Number})],Vv.prototype,`width`,void 0),Bv([A({type:Number})],Vv.prototype,`height`,void 0),Bv([A({type:Boolean})],Vv.prototype,`changesChart`,void 0),Bv([A({type:Boolean})],Vv.prototype,`showLegend`,void 0),Bv([A({type:Boolean})],Vv.prototype,`breakingChanges`,void 0),Vv=Bv([O(`pb33f-doughnut-chart`)],Vv);var Hv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Uv=class extends kv{constructor(){super(),this.title=`chart`,this.legend=!1,this.height=458,this.smallTitle=!1,this.stepSize=1,this.chartType=`line`}computeSuggestedMax(){if(!this.datasets||this.datasets.length===0)return;let e=0;for(let t of this.datasets)if(t.data)for(let n of t.data)n>e&&(e=n);return Math.ceil(e*1.1)}updateChart(){this.chart&&this.chart.data&&this.datasets&&this.datasets.length>0&&(this.chart.data.labels=this.labels,this.chart.data.datasets=this.datasets,this.chart.update())}buildChart(){let e=this.titleFont;this.smallTitle&&(e=this.fontBold),this.chart&&this.chart.destroy(),this.chart=new Sv(this.shadowRoot?.querySelector(`#chart`),{type:this.chartType,data:{labels:this.labels,datasets:this.datasets},options:{responsive:!0,maintainAspectRatio:!1,elements:{point:{borderColor:this.secondary,backgroundColor:this.secondary,pointStyle:`rect`,radius:4}},scales:{x:{ticks:{font:this.smallFont,color:this.secondary},border:{color:this.secondary}},y:{min:0,suggestedMax:this.computeSuggestedMax(),ticks:{stepSize:this.stepSize,font:this.font,color:this.secondary},border:{color:this.secondary}}},layout:{autoPadding:!1,padding:{top:20,bottom:20}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:!0,text:this.title,font:e,color:this.primary,align:`start`},legend:{display:this.legend,position:`bottom`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,pointStyle:`line`,boxHeight:1}}}}})}connectedCallback(){super.connectedCallback(),!this.chart&&this.hasUpdated&&this.updateComplete.then(()=>this.buildChart())}disconnectedCallback(){super.disconnectedCallback(),this.chart&&=(this.chart.destroy(),null)}resize(){this.chart?.resize()}firstUpdated(){super.firstUpdated(),this.buildChart()}updated(e){e.has(`currentTheme`)&&this.chart&&this.buildChart()}render(){return N` + `}};Uv([A()],Wv.prototype,`title`,void 0),Uv([A()],Wv.prototype,`datasets`,void 0),Uv([A()],Wv.prototype,`labels`,void 0),Uv([A({type:Number})],Wv.prototype,`width`,void 0),Uv([A({type:Number})],Wv.prototype,`height`,void 0),Uv([A({type:Boolean})],Wv.prototype,`changesChart`,void 0),Uv([A({type:Boolean})],Wv.prototype,`showLegend`,void 0),Uv([A({type:Boolean})],Wv.prototype,`breakingChanges`,void 0),Wv=Uv([O(`pb33f-doughnut-chart`)],Wv);var Gv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kv=class extends Mv{constructor(){super(),this.title=`chart`,this.legend=!1,this.height=458,this.smallTitle=!1,this.stepSize=1,this.chartType=`line`}computeSuggestedMax(){if(!this.datasets||this.datasets.length===0)return;let e=0;for(let t of this.datasets)if(t.data)for(let n of t.data)n>e&&(e=n);return Math.ceil(e*1.1)}updateChart(){this.chart&&this.chart.data&&this.datasets&&this.datasets.length>0&&(this.chart.data.labels=this.labels,this.chart.data.datasets=this.datasets,this.chart.update())}buildChart(){let e=this.titleFont;this.smallTitle&&(e=this.fontBold),this.chart&&this.chart.destroy(),this.chart=new Tv(this.shadowRoot?.querySelector(`#chart`),{type:this.chartType,data:{labels:this.labels,datasets:this.datasets},options:{responsive:!0,maintainAspectRatio:!1,elements:{point:{borderColor:this.secondary,backgroundColor:this.secondary,pointStyle:`rect`,radius:4}},scales:{x:{ticks:{font:this.smallFont,color:this.secondary},border:{color:this.secondary}},y:{min:0,suggestedMax:this.computeSuggestedMax(),ticks:{stepSize:this.stepSize,font:this.font,color:this.secondary},border:{color:this.secondary}}},layout:{autoPadding:!1,padding:{top:20,bottom:20}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:!0,text:this.title,font:e,color:this.primary,align:`start`},legend:{display:this.legend,position:`bottom`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,pointStyle:`line`,boxHeight:1}}}}})}connectedCallback(){super.connectedCallback(),!this.chart&&this.hasUpdated&&this.updateComplete.then(()=>this.buildChart())}disconnectedCallback(){super.disconnectedCallback(),this.chart&&=(this.chart.destroy(),null)}resize(){this.chart?.resize()}firstUpdated(){super.firstUpdated(),this.buildChart()}updated(e){e.has(`currentTheme`)&&this.chart&&this.buildChart()}render(){return N`
- `}};Uv.styles=k` + `}};Kv.styles=k` :host { display: block; width: 100%; @@ -4883,7 +4886,7 @@ .chart-container { position: relative; width: 100%; - }`,Hv([A()],Uv.prototype,`title`,void 0),Hv([A()],Uv.prototype,`datasets`,void 0),Hv([A()],Uv.prototype,`labels`,void 0),Hv([A({type:Boolean})],Uv.prototype,`legend`,void 0),Hv([A({type:Boolean})],Uv.prototype,`smallTitle`,void 0),Hv([A({type:Number})],Uv.prototype,`height`,void 0),Hv([A({type:Number})],Uv.prototype,`width`,void 0),Hv([A({type:Number})],Uv.prototype,`stepSize`,void 0),Hv([A()],Uv.prototype,`chartType`,void 0),Uv=Hv([O(`pb33f-chart`)],Uv);var Wv=k` + }`,Gv([A()],Kv.prototype,`title`,void 0),Gv([A()],Kv.prototype,`datasets`,void 0),Gv([A()],Kv.prototype,`labels`,void 0),Gv([A({type:Boolean})],Kv.prototype,`legend`,void 0),Gv([A({type:Boolean})],Kv.prototype,`smallTitle`,void 0),Gv([A({type:Number})],Kv.prototype,`height`,void 0),Gv([A({type:Number})],Kv.prototype,`width`,void 0),Gv([A({type:Number})],Kv.prototype,`stepSize`,void 0),Gv([A()],Kv.prototype,`chartType`,void 0),Kv=Gv([O(`pb33f-chart`)],Kv);var qv=k` .timeline-item { display: flex; padding-top: 5px; @@ -5025,7 +5028,7 @@ } -`,Gv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kv=class extends F{constructor(){super(),this.large=!1,this.selected=!1,this.hideScore=!1}render(){N``;let e=N` +`,Jv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yv=class extends F{constructor(){super(),this.large=!1,this.selected=!1,this.hideScore=!1}render(){N``;let e=N` `,t=!1;this.specSummary.breakingChanges&&this.specSummary.breakingChanges>0&&(e=N` ${this.specSummary.breakingChanges} `,t=!0);let n=N` @@ -5081,7 +5084,7 @@
`}
- `}additionalWidth(e){return e?e>=1e5?this.large?`sext-large`:`sext`:e>=1e4?this.large?`quint-large`:`quint`:e>=1e3?this.large?`quad-large`:`quad`:e>=100?this.large?`triple-large`:`triple`:`no`+e:`gip`}};Kv.styles=[Wv,Yn],Gv([A()],Kv.prototype,`specSummary`,void 0),Gv([A()],Kv.prototype,`large`,void 0),Gv([A()],Kv.prototype,`selected`,void 0),Gv([A({type:Boolean})],Kv.prototype,`hideScore`,void 0),Kv=Gv([O(`pb33f-spec-summary-timeline-item`)],Kv);var qv=k` + `}additionalWidth(e){return e?e>=1e5?this.large?`sext-large`:`sext`:e>=1e4?this.large?`quint-large`:`quint`:e>=1e3?this.large?`quad-large`:`quad`:e>=100?this.large?`triple-large`:`triple`:`no`+e:`gip`}};Yv.styles=[qv,Yn],Jv([A()],Yv.prototype,`specSummary`,void 0),Jv([A()],Yv.prototype,`large`,void 0),Jv([A()],Yv.prototype,`selected`,void 0),Jv([A({type:Boolean})],Yv.prototype,`hideScore`,void 0),Yv=Jv([O(`pb33f-spec-summary-timeline-item`)],Yv);var Xv=k` pb33f-timeline-item { width: 100%; @@ -5138,7 +5141,7 @@ } } -`,Jv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yv=class extends F{constructor(){super(),this.skinny=!1}render(){return N` +`,Zv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qv=class extends F{constructor(){super(),this.skinny=!1}render(){return N`
@@ -5146,7 +5149,7 @@
- `}};Yv.styles=qv,Jv([A({type:Boolean})],Yv.prototype,`skinny`,void 0),Yv=Jv([O(`pb33f-timeline`)],Yv);var Xv=k` + `}};Qv.styles=Xv,Zv([A({type:Boolean})],Qv.prototype,`skinny`,void 0),Qv=Zv([O(`pb33f-timeline`)],Qv);var $v=k` :host { display: flex; position: relative; @@ -5254,7 +5257,7 @@ } -`,Zv=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qv=class extends F{constructor(){super(),this.skinny=!1}render(){return this.skinny?N` +`,ey=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ty=class extends F{constructor(){super(),this.skinny=!1}render(){return this.skinny?N`
@@ -5276,7 +5279,7 @@
-
`}};Qv.styles=Xv,Zv([A({type:Boolean})],Qv.prototype,`skinny`,void 0),Qv=Zv([O(`pb33f-timeline-item`)],Qv);var $v=k` +
`}};ty.styles=$v,ey([A({type:Boolean})],ty.prototype,`skinny`,void 0),ty=ey([O(`pb33f-timeline-item`)],ty);var ny=k` a, a:visited, a:active { text-decoration: none; color: var(--primary-color); @@ -5399,7 +5402,7 @@ to { opacity: 0; } - }`,ey=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ty=class extends F{constructor(){super(),this.name=`pb33f`,this.url=`https://pb33f.io`,this.wide=!1,this.fluid=!1}render(){return N` + }`,ry=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},iy=class extends F{constructor(){super(),this.name=`pb33f`,this.url=`https://pb33f.io`,this.wide=!1,this.fluid=!1}render(){return N`
`}};ty.styles=$v,ey([A()],ty.prototype,`name`,void 0),ey([A()],ty.prototype,`url`,void 0),ey([A({type:Boolean})],ty.prototype,`wide`,void 0),ey([A({type:Boolean})],ty.prototype,`fluid`,void 0),ty=ey([O(`pb33f-header`)],ty);var ny=k` + `}};iy.styles=ny,ry([A()],iy.prototype,`name`,void 0),ry([A()],iy.prototype,`url`,void 0),ry([A({type:Boolean})],iy.prototype,`wide`,void 0),ry([A({type:Boolean})],iy.prototype,`fluid`,void 0),iy=ry([O(`pb33f-header`)],iy);var ay=k` footer { padding: var(--footer-padding); width: 100vw; @@ -5433,11 +5436,11 @@ font-weight: normal; color: var(--font-color-sub2); } -`,ry=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},iy=`https://pb33f.io`,ay=`princess b33f heavy industries`,oy=class extends F{constructor(){super(),this.url=iy,this.linkTitle=ay,this.build=``,this.fluid=!1}render(){let e=this.linkTitle||`princess b33f heavy industries`;return N` +`,oy=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},sy=`https://pb33f.io`,cy=`princess b33f heavy industries`,ly=class extends F{constructor(){super(),this.url=sy,this.linkTitle=cy,this.build=``,this.fluid=!1}render(){let e=this.linkTitle||`princess b33f heavy industries`;return N`
${e} ${this.build?N`${this.build}`:``} -
`}};oy.styles=[ny,Oa],ry([A()],oy.prototype,`build`,void 0),ry([A()],oy.prototype,`url`,void 0),ry([A({attribute:`link-title`})],oy.prototype,`linkTitle`,void 0),ry([A({type:Boolean,reflect:!0})],oy.prototype,`fluid`,void 0),oy=ry([O(`pb33f-footer`)],oy);var sy=k` + `}};ly.styles=[ay,ja],oy([A()],ly.prototype,`build`,void 0),oy([A()],ly.prototype,`url`,void 0),oy([A({attribute:`link-title`})],ly.prototype,`linkTitle`,void 0),oy([A({type:Boolean,reflect:!0})],ly.prototype,`fluid`,void 0),ly=oy([O(`pb33f-footer`)],ly);var uy=k` :host { display: inline-flex; @@ -5455,7 +5458,7 @@ text-shadow: 0 0 8px rgba(51, 255, 51, 0.6); } -`,cy=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ly=`tektronix`,uy=`pb33f-theme`,dy=`pb33f-base-theme`,fy=class extends F{constructor(){super(...arguments),this.baseTheme=`dark`,this.tektronixActive=!1}get activeTheme(){return this.tektronixActive?ly:this.baseTheme}connectedCallback(){super.connectedCallback();let e=localStorage.getItem(uy);if(e===`tektronix`){this.tektronixActive=!0;let e=localStorage.getItem(dy);this.baseTheme=e===`light`?`light`:`dark`}else this.tektronixActive=!1,this.baseTheme=e===`light`?`light`:`dark`;this.applyTheme()}applyTheme(){let e=this.activeTheme;localStorage.setItem(uy,e),localStorage.setItem(dy,this.baseTheme);let t=document.querySelector(`html`);t&&(t.setAttribute(`theme`,e),e===`light`?t.classList.remove(`sl-theme-dark`):t.classList.add(`sl-theme-dark`))}dispatchThemeChange(){window.dispatchEvent(new CustomEvent(Zi,{detail:{theme:this.activeTheme}}))}toggleTheme(){this.baseTheme=this.baseTheme===`dark`?`light`:`dark`,this.tektronixActive&&=!1,this.applyTheme(),this.dispatchThemeChange()}toggleTektronix(){this.tektronixActive=!this.tektronixActive,this.applyTheme(),this.dispatchThemeChange()}render(){let e=this.baseTheme===`dark`?`sun`:`moon`,t=this.baseTheme===`dark`?`Switch to Roger Mode (light)`:`Switch to PB33F Mode (dark)`,n=this.tektronixActive?`Disable Tektronix 4010 Mode`:`Enable Tektronix 4010 Mode`;return N` +`,dy=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fy=`tektronix`,py=`pb33f-theme`,my=`pb33f-base-theme`,hy=class extends F{constructor(){super(...arguments),this.baseTheme=`dark`,this.tektronixActive=!1}get activeTheme(){return this.tektronixActive?fy:this.baseTheme}connectedCallback(){super.connectedCallback();let e=localStorage.getItem(py);if(e===`tektronix`){this.tektronixActive=!0;let e=localStorage.getItem(my);this.baseTheme=e===`light`?`light`:`dark`}else this.tektronixActive=!1,this.baseTheme=e===`light`?`light`:`dark`;this.applyTheme()}applyTheme(){let e=this.activeTheme;localStorage.setItem(py,e),localStorage.setItem(my,this.baseTheme);let t=document.querySelector(`html`);t&&(t.setAttribute(`theme`,e),e===`light`?t.classList.remove(`sl-theme-dark`):t.classList.add(`sl-theme-dark`))}dispatchThemeChange(){window.dispatchEvent(new CustomEvent(Zi,{detail:{theme:this.activeTheme}}))}toggleTheme(){this.baseTheme=this.baseTheme===`dark`?`light`:`dark`,this.tektronixActive&&=!1,this.applyTheme(),this.dispatchThemeChange()}toggleTektronix(){this.tektronixActive=!this.tektronixActive,this.applyTheme(),this.dispatchThemeChange()}render(){let e=this.baseTheme===`dark`?`sun`:`moon`,t=this.baseTheme===`dark`?`Switch to Roger Mode (light)`:`Switch to PB33F Mode (dark)`,n=this.tektronixActive?`Disable Tektronix 4010 Mode`:`Enable Tektronix 4010 Mode`;return N` - `}};fy.styles=[sy,Yn],cy([j()],fy.prototype,`baseTheme`,void 0),cy([j()],fy.prototype,`tektronixActive`,void 0),fy=cy([O(`pb33f-theme-switcher`)],fy);function py(e){switch(e.toLowerCase()){case`get`:return`success`;case`post`:return`primary`;case`put`:return`primary`;case`delete`:return`danger`;case`patch`:return`warning`;case`query`:return`primary`;default:return`neutral`}}var my=k` + `}};hy.styles=[uy,Yn],dy([j()],hy.prototype,`baseTheme`,void 0),dy([j()],hy.prototype,`tektronixActive`,void 0),hy=dy([O(`pb33f-theme-switcher`)],hy);function gy(e){switch(e.toLowerCase()){case`get`:return`success`;case`post`:return`primary`;case`put`:return`primary`;case`delete`:return`danger`;case`patch`:return`warning`;case`query`:return`primary`;default:return`neutral`}}var _y=k` :host { --http-get-color: var(--terminal-text); --http-get-border-color: var(--ok-color-lowalpha); @@ -5607,11 +5610,11 @@ --http-trace-color: #6b7280; --http-query-color: #2563eb; } -`,hy=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gy={GET:`GET`,POST:`POST`,PUT:`PUT`,DELETE:`DEL`,PATCH:`PAT`,OPTIONS:`OPT`,HEAD:`HEAD`,TRACE:`TRC`,QUERY:`QRY`},_y=class extends F{constructor(){super(),this.mode=``,this.lower=!1,this.method=`GET`}render(){if(this.mode===`nav-naked`){let e=this.method.toUpperCase(),t=gy[e]??e;return N`${t}`}let e=`medium`;this.large&&(e=`large`),this.tiny&&(e=`small`),this.micro&&(e=`small`);let t=this.method.toLowerCase(),n=this.micro?`method ${e} micro ${t}`:`method ${e} ${t}`;return N` - =0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yy={GET:`GET`,POST:`POST`,PUT:`PUT`,DELETE:`DEL`,PATCH:`PAT`,OPTIONS:`OPT`,HEAD:`HEAD`,TRACE:`TRC`,QUERY:`QRY`},by=class extends F{constructor(){super(),this.mode=``,this.lower=!1,this.method=`GET`}render(){if(this.mode===`nav-naked`){let e=this.method.toUpperCase(),t=yy[e]??e;return N`${t}`}let e=`medium`;this.large&&(e=`large`),this.tiny&&(e=`small`),this.micro&&(e=`small`);let t=this.method.toLowerCase(),n=this.micro?`method ${e} micro ${t}`:`method ${e} ${t}`;return N` + ${this.lower?this.method.toLowerCase():this.method.toUpperCase()} - `}};_y.styles=my,hy([A()],_y.prototype,`method`,void 0),hy([A({type:Boolean})],_y.prototype,`lower`,void 0),hy([A({type:Boolean})],_y.prototype,`large`,void 0),hy([A({type:Boolean})],_y.prototype,`tiny`,void 0),hy([A({type:Boolean})],_y.prototype,`micro`,void 0),hy([A({reflect:!0})],_y.prototype,`mode`,void 0),_y=hy([O(`pb33f-http-method`)],_y);var vy=k` + `}};by.styles=_y,vy([A()],by.prototype,`method`,void 0),vy([A({type:Boolean})],by.prototype,`lower`,void 0),vy([A({type:Boolean})],by.prototype,`large`,void 0),vy([A({type:Boolean})],by.prototype,`tiny`,void 0),vy([A({type:Boolean})],by.prototype,`micro`,void 0),vy([A({reflect:!0})],by.prototype,`mode`,void 0),by=vy([O(`pb33f-http-method`)],by);var xy=k` :host { color: var(--font-color); font-family: var(--font-stack), monospace; @@ -5650,7 +5653,7 @@ .nowrap { display: inline-block; } -`,yy=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},by=class extends F{constructor(){super(),this.path=`/`,this.nowrap=!1}replaceBrackets(){let e=/\{([\w$.#/]+)\}/g,t=this.nowrap?` nowrap`:``,n=this.formatSlashes(this.path).replace(e,(e,n)=>`{${n}}`);return this.nowrap?N`
${Nt(n)}
`:N`${Nt(n)}`}formatSlashes(e){return e.replaceAll(`/`,`/`)}render(){return N`${this.replaceBrackets()}`}};by.styles=vy,yy([A()],by.prototype,`path`,void 0),yy([A({type:Boolean})],by.prototype,`nowrap`,void 0),by=yy([O(`pb33f-render-operation-path`)],by);var xy=k` +`,Sy=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cy=class extends F{constructor(){super(),this.path=`/`,this.nowrap=!1}replaceBrackets(){let e=/\{([\w$.#/]+)\}/g,t=this.nowrap?` nowrap`:``,n=this.formatSlashes(this.path).replace(e,(e,n)=>`{${n}}`);return this.nowrap?N`
${Nt(n)}
`:N`${Nt(n)}`}formatSlashes(e){return e.replaceAll(`/`,`/`)}render(){return N`${this.replaceBrackets()}`}};Cy.styles=xy,Sy([A()],Cy.prototype,`path`,void 0),Sy([A({type:Boolean})],Cy.prototype,`nowrap`,void 0),Cy=Sy([O(`pb33f-render-operation-path`)],Cy);var wy=k` :host { color: var(--font-color); font-family: var(--font-stack), monospace; @@ -5742,7 +5745,7 @@ -`,Sy=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cy=/(\{)([\w.\-_$:]+)(})|(:)([\w.\-_$:]+)/g,wy=/(\[)(["']?)([\w${}:.\-_/\\]+)(['"]?)(])/g,Ty=class extends F{constructor(){super(),this.path=`/`,this.selected=!1,this.chars=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`}replaceBrackets(e){let t,n=e;for(;(t=Cy.exec(e))!==null;)t.forEach((e,t)=>{e!==void 0&&(t===1||t===4)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&(t===2||t===5)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&t===3&&(n=n.replaceAll(e,``+e+``))});return n}breakPath(){if(!this.path)return N`{no path}`;let e=this.path.split(`.`);e.length>0&&e[0]==`$`&&(e=e.slice(1,e.length));let t=e.join(`.`),n=t,r=new Map,i;for(;(i=wy.exec(n))!==null;){let e=Ey(wy.lastIndex-i.index,this.chars);r.set(e,i),t=t.substring(0,i.index)+e+t.substring(wy.lastIndex)}t=t.replaceAll(`.`,`.`),r.forEach((e,n)=>{let r=[];e[1]!==void 0&&r.push(``+e[1]+``),e[2]!==void 0&&r.push(e[2]),e[3]!==void 0&&r.push(``+this.replaceBrackets(e[3])+``),e[4]!==void 0&&r.push(e[4]),e[5]!==void 0&&r.push(``+e[5]+``);let i=r.join(``);t=t.replaceAll(n,i)});let a=t;return a=a.replaceAll(`$`,`$`),a===``&&(a=`{no path available}`),N`${Nt(a.toString())}`}render(){return N`${this.breakPath()}`}};Ty.styles=xy,Sy([A()],Ty.prototype,`path`,void 0),Sy([A({type:Boolean})],Ty.prototype,`selected`,void 0),Ty=Sy([O(`pb33f-render-json-path`)],Ty);function Ey(e,t){let n=``;for(let r=e;r>0;--r)n+=t[Math.floor(Math.random()*t.length)];return n}var Dy=k` +`,Ty=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ey=/(\{)([\w.\-_$:]+)(})|(:)([\w.\-_$:]+)/g,Dy=/(\[)(["']?)([\w${}:.\-_/\\]+)(['"]?)(])/g,Oy=class extends F{constructor(){super(),this.path=`/`,this.selected=!1,this.chars=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`}replaceBrackets(e){let t,n=e;for(;(t=Ey.exec(e))!==null;)t.forEach((e,t)=>{e!==void 0&&(t===1||t===4)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&(t===2||t===5)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&t===3&&(n=n.replaceAll(e,``+e+``))});return n}breakPath(){if(!this.path)return N`{no path}`;let e=this.path.split(`.`);e.length>0&&e[0]==`$`&&(e=e.slice(1,e.length));let t=e.join(`.`),n=t,r=new Map,i;for(;(i=Dy.exec(n))!==null;){let e=ky(Dy.lastIndex-i.index,this.chars);r.set(e,i),t=t.substring(0,i.index)+e+t.substring(Dy.lastIndex)}t=t.replaceAll(`.`,`.`),r.forEach((e,n)=>{let r=[];e[1]!==void 0&&r.push(``+e[1]+``),e[2]!==void 0&&r.push(e[2]),e[3]!==void 0&&r.push(``+this.replaceBrackets(e[3])+``),e[4]!==void 0&&r.push(e[4]),e[5]!==void 0&&r.push(``+e[5]+``);let i=r.join(``);t=t.replaceAll(n,i)});let a=t;return a=a.replaceAll(`$`,`$`),a===``&&(a=`{no path available}`),N`${Nt(a.toString())}`}render(){return N`${this.breakPath()}`}};Oy.styles=wy,Ty([A()],Oy.prototype,`path`,void 0),Ty([A({type:Boolean})],Oy.prototype,`selected`,void 0),Oy=Ty([O(`pb33f-render-json-path`)],Oy);function ky(e,t){let n=``;for(let r=e;r>0;--r)n+=t[Math.floor(Math.random()*t.length)];return n}var Ay=k` .change-card { border-bottom: 1px dashed var(--secondary-color-dimmer); background: var(--background-color); @@ -5933,7 +5936,7 @@ .line-content .gi { color: var(--terminal-text); font-family: var(--font-stack-bold), monospace; } .line-content .ge { text-decoration: underline; } .line-content .gh, .line-content .gu { font-family: var(--font-stack-bold), monospace; } -`,Oy=[Dy,ws,k` +`,jy=[Ay,Ds,k` :host { display: block; overflow: hidden; @@ -6102,11 +6105,11 @@ background: var(--secondary-color); color: var(--background-color); } -`],ky=10,Ay=500,jy=1,My=2,Ny=3,Py=4,Fy=5;function Iy(e,t,n,r,i,a=ky){let o=Ly(t),s=Ly(n);return(e||[]).map((e,t)=>{let n=Uy(e),c=Ky(e,o,s,r||{},i||{},a);return{key:`${e.path||`change`}:${e.property||`property`}:${e.change}:${t}`,title:`${Qy(e.change)}: ${e.property||`changed item`}`,path:e.path,breaking:!!e.breaking,valueBlocks:n,contextBlocks:c}})}function Ly(e){if(!e)return[];let t=e.split(` -`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Ry(e){return{start:e,end:e}}function zy(e,t){if(t<=0||e.length===0||t>e.length)return{start:t,end:t};let n=t-1,r=ob(e[n]),i=n;for(let t=n-1;t>=0;t--){let n=e[t];if(!sb(n)&&ob(n)e.length)return{start:t,end:t};let n=t-1,r=Vy(e,n,n,ob(e[n]));return{start:t,end:Math.max(t,r+1)}}function Vy(e,t,n,r){let i=t;for(let a=t+1;ar)i=a;else break}for(;i>n&&sb(e[i]);)i--;if(i+10;){if(nb(e,n,r))return By(e,n);let t=rb(e,n,r);if(t>0)return By(e,t);let i=ib(e,n);if(i<=0||i===n)break;n=i}}return zy(e,t)}function Uy(e){let t=Jy(e),n=Yy(e);switch(e.change){case My:case Ny:return Wy(`Added Value`,`added`,n);case Py:case Fy:return Wy(`Removed Value`,`removed`,t);case jy:{let e=[];return t&&e.push({title:`Original Value`,tone:`removed`,lines:Gy(t)}),n&&e.push({title:`Modified Value`,tone:`added`,lines:Gy(n)}),e}default:return[]}}function Wy(e,t,n){return n?[{title:e,tone:t,lines:Gy(n)}]:[]}function Gy(e){let t=e.split(` -`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Ky(e,t,n,r,i,a=ky){let o=[],s=e.context?.originalLine||0,c=e.context?.newLine||0,l=Zy(e);switch(e.change){case My:case Ny:c>0&&o.push(qy(`Modified Context`,`added`,n,i,Hy(n,c,e),a));break;case Py:case Fy:s>0&&o.push(qy(`Original Context`,`removed`,t,r,Hy(t,s,e),a));break;case jy:s>0&&o.push(qy(`Original Context`,`removed`,t,r,l?Hy(t,s,e):Ry(s),a)),c>0&&o.push(qy(`Modified Context`,`added`,n,i,l?Hy(n,c,e):Ry(c),a))}return o}function qy(e,t,n,r,i,a=ky){let o=Math.max(1,i.start-a),s=Math.min(n.length,i.end+a),c=[];for(let e=o;e<=s;e++)c.push({lineNum:e,content:n[e-1]||``,highlightedContent:r[e],emphasis:e===i.start?`primary`:e>i.start&&e<=i.end?`range`:`normal`});return{title:e,tone:t,lines:c}}function Jy(e){return e.originalEncoded?e.originalEncoded:Xy(e.original)}function Yy(e){return e.newEncoded?e.newEncoded:Xy(e.new)}function Xy(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Zy(e){return Jy(e).includes(` -`)||Yy(e).includes(` -`)}function Qy(e){switch(e){case My:case Ny:return`Added`;case Py:case Fy:return`Removed`;case jy:default:return`Modified`}}function $y(e){return e>=jy&&e<=Fy}function eb(e){let t=new Set,n=[],r=e=>{let r=tb(e);r&&!t.has(r)&&(t.add(r),n.push(r))};return r(e.property||``),r(Jy(e)),r(Yy(e)),n}function tb(e){return e.trim().replace(/,$/,``).trim().replace(/^['"]|['"]$/g,``).trim().toLowerCase()}function nb(e,t,n){if(t<=0||t>e.length||n.length===0)return!1;let r=ab(e[t-1]);return r?n.includes(r):!1}function rb(e,t,n){if(t<=0||t>e.length||n.length===0)return 0;let r=t-1,i=ob(e[r]),a=-1;for(let t=r+1;te.length)return 0;let n=t-1,r=ob(e[n]);for(let t=n-1;t>=0;t--)if(!sb(e[t])&&ob(e[t])0?e.slice(0,n):e)}let n=t.indexOf(`:`);return n>0?tb(t.slice(0,n)):t[0]===`{`||t[0]===`}`||t[0]===`[`||t[0]===`]`?null:tb(t)}function ob(e){for(let t=0;t{let n=Ky(e),c=Yy(e,o,s,r||{},i||{},a);return{key:`${e.path||`change`}:${e.property||`property`}:${e.change}:${t}`,title:`${tb(e.change)}: ${e.property||`changed item`}`,path:e.path,breaking:!!e.breaking,valueBlocks:n,contextBlocks:c}})}function By(e){if(!e)return[];let t=e.split(` +`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Vy(e){return{start:e,end:e}}function Hy(e,t){if(t<=0||e.length===0||t>e.length)return{start:t,end:t};let n=t-1,r=lb(e[n]),i=n;for(let t=n-1;t>=0;t--){let n=e[t];if(!ub(n)&&lb(n)e.length)return{start:t,end:t};let n=t-1,r=Wy(e,n,n,lb(e[n]));return{start:t,end:Math.max(t,r+1)}}function Wy(e,t,n,r){let i=t;for(let a=t+1;ar)i=a;else break}for(;i>n&&ub(e[i]);)i--;if(i+10;){if(ab(e,n,r))return Uy(e,n);let t=ob(e,n,r);if(t>0)return Uy(e,t);let i=sb(e,n);if(i<=0||i===n)break;n=i}}return Hy(e,t)}function Ky(e){let t=Zy(e),n=Qy(e);switch(e.change){case Fy:case Iy:return qy(`Added Value`,`added`,n);case Ly:case Ry:return qy(`Removed Value`,`removed`,t);case Py:{let e=[];return t&&e.push({title:`Original Value`,tone:`removed`,lines:Jy(t)}),n&&e.push({title:`Modified Value`,tone:`added`,lines:Jy(n)}),e}default:return[]}}function qy(e,t,n){return n?[{title:e,tone:t,lines:Jy(n)}]:[]}function Jy(e){let t=e.split(` +`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Yy(e,t,n,r,i,a=My){let o=[],s=e.context?.originalLine||0,c=e.context?.newLine||0,l=eb(e);switch(e.change){case Fy:case Iy:c>0&&o.push(Xy(`Modified Context`,`added`,n,i,Gy(n,c,e),a));break;case Ly:case Ry:s>0&&o.push(Xy(`Original Context`,`removed`,t,r,Gy(t,s,e),a));break;case Py:s>0&&o.push(Xy(`Original Context`,`removed`,t,r,l?Gy(t,s,e):Vy(s),a)),c>0&&o.push(Xy(`Modified Context`,`added`,n,i,l?Gy(n,c,e):Vy(c),a))}return o}function Xy(e,t,n,r,i,a=My){let o=Math.max(1,i.start-a),s=Math.min(n.length,i.end+a),c=[];for(let e=o;e<=s;e++)c.push({lineNum:e,content:n[e-1]||``,highlightedContent:r[e],emphasis:e===i.start?`primary`:e>i.start&&e<=i.end?`range`:`normal`});return{title:e,tone:t,lines:c}}function Zy(e){return e.originalEncoded?e.originalEncoded:$y(e.original)}function Qy(e){return e.newEncoded?e.newEncoded:$y(e.new)}function $y(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function eb(e){return Zy(e).includes(` +`)||Qy(e).includes(` +`)}function tb(e){switch(e){case Fy:case Iy:return`Added`;case Ly:case Ry:return`Removed`;case Py:default:return`Modified`}}function nb(e){return e>=Py&&e<=Ry}function rb(e){let t=new Set,n=[],r=e=>{let r=ib(e);r&&!t.has(r)&&(t.add(r),n.push(r))};return r(e.property||``),r(Zy(e)),r(Qy(e)),n}function ib(e){return e.trim().replace(/,$/,``).trim().replace(/^['"]|['"]$/g,``).trim().toLowerCase()}function ab(e,t,n){if(t<=0||t>e.length||n.length===0)return!1;let r=cb(e[t-1]);return r?n.includes(r):!1}function ob(e,t,n){if(t<=0||t>e.length||n.length===0)return 0;let r=t-1,i=lb(e[r]),a=-1;for(let t=r+1;te.length)return 0;let n=t-1,r=lb(e[n]);for(let t=n-1;t>=0;t--)if(!ub(e[t])&&lb(e[t])0?e.slice(0,n):e)}let n=t.indexOf(`:`);return n>0?ib(t.slice(0,n)):t[0]===`{`||t[0]===`}`||t[0]===`[`||t[0]===`]`?null:ib(t)}function lb(e){for(let t=0;tnull,pb=class extends L{constructor(){super(...arguments),this.isCollapsed=!1,this.localize=new Cn(this),this.positionBeforeCollapsing=0,this.position=50,this.vertical=!1,this.disabled=!1,this.snapValue=``,this.snapFunction=fb,this.snapThreshold=12}toSnapFunction(e){let t=e.split(` `);return({pos:n,size:r,snapThreshold:i,isRtl:a,vertical:o})=>{let s=n,c=1/0;return t.forEach(t=>{let l;if(t.startsWith(`repeat(`)){let t=e.substring(7,e.length-1),i=t.endsWith(`%`),s=Number.parseFloat(t),c=i?s/100*r:s;l=Math.round((a&&!o?r-n:n)/c)*c}else l=t.endsWith(`%`)?Number.parseFloat(t)/100*r:Number.parseFloat(t);a&&!o&&(l=r-l);let u=Math.abs(n-l);u<=i&&uthis.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()===`rtl`;this.disabled||(e.cancelable&&e.preventDefault(),db(this,{onMove:(e,n)=>{let r=this.vertical?n:e;this.primary===`end`&&(r=this.size-r),r=this.snapFunction({pos:r,size:this.size,snapThreshold:this.snapThreshold,isRtl:t,vertical:this.vertical})??r,this.position=qs(this.pixelsToPercentage(r),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`].includes(e.key)){let t=this.position,n=(e.shiftKey?10:1)*(this.primary===`end`?-1:1);if(e.preventDefault(),(e.key===`ArrowLeft`&&!this.vertical||e.key===`ArrowUp`&&this.vertical)&&(t-=n),(e.key===`ArrowRight`&&!this.vertical||e.key===`ArrowDown`&&this.vertical)&&(t+=n),e.key===`Home`&&(t=this.primary===`end`?100:0),e.key===`End`&&(t=this.primary===`end`?0:100),e.key===`Enter`){if(this.isCollapsed)t=this.positionBeforeCollapsing,this.isCollapsed=!1;else{let e=this.position;t=0,requestAnimationFrame(()=>{this.isCollapsed=!0,this.positionBeforeCollapsing=e})}}this.position=qs(t,0,100)}}handleResize(e){let{width:t,height:n}=e[0].contentRect;this.size=this.vertical?n:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.positionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.isCollapsed=!1,this.positionBeforeCollapsing=0,this.positionInPixels=this.percentageToPixels(this.position),this.emit(`sl-reposition`)}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?`gridTemplateRows`:`gridTemplateColumns`,t=this.vertical?`gridTemplateColumns`:`gridTemplateRows`,n=this.localize.dir()===`rtl`,r=` +`;function mb(e,t){function n(n){let r=e.getBoundingClientRect(),i=e.ownerDocument.defaultView,a=r.left+i.scrollX,o=r.top+i.scrollY,s=n.pageX-a,c=n.pageY-o;t?.onMove&&t.onMove(s,c)}function r(){document.removeEventListener(`pointermove`,n),document.removeEventListener(`pointerup`,r),t?.onStop&&t.onStop()}document.addEventListener(`pointermove`,n,{passive:!0}),document.addEventListener(`pointerup`,r),t?.initialEvent instanceof PointerEvent&&n(t.initialEvent)}var hb=()=>null,gb=class extends L{constructor(){super(...arguments),this.isCollapsed=!1,this.localize=new Cn(this),this.positionBeforeCollapsing=0,this.position=50,this.vertical=!1,this.disabled=!1,this.snapValue=``,this.snapFunction=hb,this.snapThreshold=12}toSnapFunction(e){let t=e.split(` `);return({pos:n,size:r,snapThreshold:i,isRtl:a,vertical:o})=>{let s=n,c=1/0;return t.forEach(t=>{let l;if(t.startsWith(`repeat(`)){let t=e.substring(7,e.length-1),i=t.endsWith(`%`),s=Number.parseFloat(t),c=i?s/100*r:s;l=Math.round((a&&!o?r-n:n)/c)*c}else l=t.endsWith(`%`)?Number.parseFloat(t)/100*r:Number.parseFloat(t);a&&!o&&(l=r-l);let u=Math.abs(n-l);u<=i&&uthis.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()===`rtl`;this.disabled||(e.cancelable&&e.preventDefault(),mb(this,{onMove:(e,n)=>{let r=this.vertical?n:e;this.primary===`end`&&(r=this.size-r),r=this.snapFunction({pos:r,size:this.size,snapThreshold:this.snapThreshold,isRtl:t,vertical:this.vertical})??r,this.position=Xs(this.pixelsToPercentage(r),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`].includes(e.key)){let t=this.position,n=(e.shiftKey?10:1)*(this.primary===`end`?-1:1);if(e.preventDefault(),(e.key===`ArrowLeft`&&!this.vertical||e.key===`ArrowUp`&&this.vertical)&&(t-=n),(e.key===`ArrowRight`&&!this.vertical||e.key===`ArrowDown`&&this.vertical)&&(t+=n),e.key===`Home`&&(t=this.primary===`end`?100:0),e.key===`End`&&(t=this.primary===`end`?0:100),e.key===`Enter`){if(this.isCollapsed)t=this.positionBeforeCollapsing,this.isCollapsed=!1;else{let e=this.position;t=0,requestAnimationFrame(()=>{this.isCollapsed=!0,this.positionBeforeCollapsing=e})}}this.position=Xs(t,0,100)}}handleResize(e){let{width:t,height:n}=e[0].contentRect;this.size=this.vertical?n:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.positionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.isCollapsed=!1,this.positionBeforeCollapsing=0,this.positionInPixels=this.percentageToPixels(this.position),this.emit(`sl-reposition`)}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?`gridTemplateRows`:`gridTemplateColumns`,t=this.vertical?`gridTemplateColumns`:`gridTemplateRows`,n=this.localize.dir()===`rtl`,r=` clamp( 0%, clamp( @@ -6211,7 +6214,7 @@
- `}};pb.styles=[wn,ub],D([M(`.divider`)],pb.prototype,`divider`,2),D([A({type:Number,reflect:!0})],pb.prototype,`position`,2),D([A({attribute:`position-in-pixels`,type:Number})],pb.prototype,`positionInPixels`,2),D([A({type:Boolean,reflect:!0})],pb.prototype,`vertical`,2),D([A({type:Boolean,reflect:!0})],pb.prototype,`disabled`,2),D([A()],pb.prototype,`primary`,2),D([A({reflect:!0})],pb.prototype,`snap`,1),D([A({type:Number,attribute:`snap-threshold`})],pb.prototype,`snapThreshold`,2),D([I(`position`)],pb.prototype,`handlePositionChange`,1),D([I(`positionInPixels`)],pb.prototype,`handlePositionInPixelsChange`,1),D([I(`vertical`)],pb.prototype,`handleVerticalChange`,1),pb.define(`sl-split-panel`);var mb=k` + `}};gb.styles=[wn,pb],D([M(`.divider`)],gb.prototype,`divider`,2),D([A({type:Number,reflect:!0})],gb.prototype,`position`,2),D([A({attribute:`position-in-pixels`,type:Number})],gb.prototype,`positionInPixels`,2),D([A({type:Boolean,reflect:!0})],gb.prototype,`vertical`,2),D([A({type:Boolean,reflect:!0})],gb.prototype,`disabled`,2),D([A()],gb.prototype,`primary`,2),D([A({reflect:!0})],gb.prototype,`snap`,1),D([A({type:Number,attribute:`snap-threshold`})],gb.prototype,`snapThreshold`,2),D([I(`position`)],gb.prototype,`handlePositionChange`,1),D([I(`positionInPixels`)],gb.prototype,`handlePositionInPixelsChange`,1),D([I(`vertical`)],gb.prototype,`handleVerticalChange`,1),gb.define(`sl-split-panel`);var _b=k` :host { display: block; } @@ -6243,7 +6246,7 @@ white-space: nowrap; border: 0; } -`,hb=k` +`,vb=k` :host { display: inline-block; } @@ -6252,7 +6255,7 @@ display: flex; flex-wrap: nowrap; } -`,gb=class extends L{constructor(){super(...arguments),this.disableRole=!1,this.label=``}handleFocus(e){_b(e.target)?.toggleAttribute(`data-sl-button-group__button--focus`,!0)}handleBlur(e){_b(e.target)?.toggleAttribute(`data-sl-button-group__button--focus`,!1)}handleMouseOver(e){_b(e.target)?.toggleAttribute(`data-sl-button-group__button--hover`,!0)}handleMouseOut(e){_b(e.target)?.toggleAttribute(`data-sl-button-group__button--hover`,!1)}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),r=_b(t);r&&(r.toggleAttribute(`data-sl-button-group__button`,!0),r.toggleAttribute(`data-sl-button-group__button--first`,n===0),r.toggleAttribute(`data-sl-button-group__button--inner`,n>0&&n{let n=e.indexOf(t),r=bb(t);r&&(r.toggleAttribute(`data-sl-button-group__button`,!0),r.toggleAttribute(`data-sl-button-group__button--first`,n===0),r.toggleAttribute(`data-sl-button-group__button--inner`,n>0&&n
- `}};gb.styles=[wn,hb],D([M(`slot`)],gb.prototype,`defaultSlot`,2),D([j()],gb.prototype,`disableRole`,2),D([A()],gb.prototype,`label`,2);function _b(e){let t=`sl-button, sl-radio-button`;return e.closest(t)??e.querySelector(t)}var vb=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this),this.hasSlotController=new dn(this,`help-text`,`label`),this.customValidityMessage=``,this.hasButtonGroup=!1,this.errorMessage=``,this.defaultValue=``,this.label=``,this.helpText=``,this.name=`option`,this.value=``,this.size=`medium`,this.form=``,this.required=!1}get validity(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?ln:cn:un}get validationMessage(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?this.validationInput.validationMessage:``:this.customValidityMessage}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll(`sl-radio, sl-radio-button`)]}handleRadioClick(e){let t=e.target.closest(`sl-radio, sl-radio-button`),n=this.getAllRadios(),r=this.value;t&&!t.disabled&&(this.value=t.value,n.forEach(e=>e.checked=e===t),this.value!==r&&(this.emit(`sl-change`),this.emit(`sl-input`)))}handleKeyDown(e){if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,` `].includes(e.key))return;let t=this.getAllRadios().filter(e=>!e.disabled),n=t.find(e=>e.checked)??t[0],r=e.key===` `?0:[`ArrowUp`,`ArrowLeft`].includes(e.key)?-1:1,i=this.value,a=t.indexOf(n)+r;a<0&&(a=t.length-1),a>t.length-1&&(a=0),this.getAllRadios().forEach(e=>{e.checked=!1,this.hasButtonGroup||e.setAttribute(`tabindex`,`-1`)}),this.value=t[a].value,t[a].checked=!0,this.hasButtonGroup?t[a].shadowRoot.querySelector(`button`).focus():(t[a].setAttribute(`tabindex`,`0`),t[a].focus()),this.value!==i&&(this.emit(`sl-change`),this.emit(`sl-input`)),e.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){let e=this.getAllRadios();if(await Promise.all(e.map(async e=>{await e.updateComplete,e.checked=e.value===this.value,e.size=this.size})),this.hasButtonGroup=e.some(e=>e.tagName.toLowerCase()===`sl-radio-button`),e.length>0&&!e.some(e=>e.checked)){if(this.hasButtonGroup){let t=e[0].shadowRoot?.querySelector(`button`);t&&t.setAttribute(`tabindex`,`0`)}else e[0].setAttribute(`tabindex`,`0`)}if(this.hasButtonGroup){let e=this.shadowRoot?.querySelector(`sl-button-group`);e&&(e.disableRole=!0)}}syncRadios(){customElements.get(`sl-radio`)&&customElements.get(`sl-radio-button`)?this.syncRadioElements():(customElements.get(`sl-radio`)?this.syncRadioElements():customElements.whenDefined(`sl-radio`).then(()=>this.syncRadios()),customElements.get(`sl-radio-button`)?this.syncRadioElements():customElements.whenDefined(`sl-radio-button`).then(()=>this.syncRadios()))}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let e=this.required&&!this.value,t=this.customValidityMessage!==``;return e||t?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?``:this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),e}setCustomValidity(e=``){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){let t=this.getAllRadios(),n=t.find(e=>e.checked),r=t.find(e=>!e.disabled),i=n||r;i&&i.focus(e)}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=N` + `}};yb.styles=[wn,vb],D([M(`slot`)],yb.prototype,`defaultSlot`,2),D([j()],yb.prototype,`disableRole`,2),D([A()],yb.prototype,`label`,2);function bb(e){let t=`sl-button, sl-radio-button`;return e.closest(t)??e.querySelector(t)}var xb=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this),this.hasSlotController=new dn(this,`help-text`,`label`),this.customValidityMessage=``,this.hasButtonGroup=!1,this.errorMessage=``,this.defaultValue=``,this.label=``,this.helpText=``,this.name=`option`,this.value=``,this.size=`medium`,this.form=``,this.required=!1}get validity(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?ln:cn:un}get validationMessage(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?this.validationInput.validationMessage:``:this.customValidityMessage}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll(`sl-radio, sl-radio-button`)]}handleRadioClick(e){let t=e.target.closest(`sl-radio, sl-radio-button`),n=this.getAllRadios(),r=this.value;t&&!t.disabled&&(this.value=t.value,n.forEach(e=>e.checked=e===t),this.value!==r&&(this.emit(`sl-change`),this.emit(`sl-input`)))}handleKeyDown(e){if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,` `].includes(e.key))return;let t=this.getAllRadios().filter(e=>!e.disabled),n=t.find(e=>e.checked)??t[0],r=e.key===` `?0:[`ArrowUp`,`ArrowLeft`].includes(e.key)?-1:1,i=this.value,a=t.indexOf(n)+r;a<0&&(a=t.length-1),a>t.length-1&&(a=0),this.getAllRadios().forEach(e=>{e.checked=!1,this.hasButtonGroup||e.setAttribute(`tabindex`,`-1`)}),this.value=t[a].value,t[a].checked=!0,this.hasButtonGroup?t[a].shadowRoot.querySelector(`button`).focus():(t[a].setAttribute(`tabindex`,`0`),t[a].focus()),this.value!==i&&(this.emit(`sl-change`),this.emit(`sl-input`)),e.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){let e=this.getAllRadios();if(await Promise.all(e.map(async e=>{await e.updateComplete,e.checked=e.value===this.value,e.size=this.size})),this.hasButtonGroup=e.some(e=>e.tagName.toLowerCase()===`sl-radio-button`),e.length>0&&!e.some(e=>e.checked)){if(this.hasButtonGroup){let t=e[0].shadowRoot?.querySelector(`button`);t&&t.setAttribute(`tabindex`,`0`)}else e[0].setAttribute(`tabindex`,`0`)}if(this.hasButtonGroup){let e=this.shadowRoot?.querySelector(`sl-button-group`);e&&(e.disableRole=!0)}}syncRadios(){customElements.get(`sl-radio`)&&customElements.get(`sl-radio-button`)?this.syncRadioElements():(customElements.get(`sl-radio`)?this.syncRadioElements():customElements.whenDefined(`sl-radio`).then(()=>this.syncRadios()),customElements.get(`sl-radio-button`)?this.syncRadioElements():customElements.whenDefined(`sl-radio-button`).then(()=>this.syncRadios()))}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let e=this.required&&!this.value,t=this.customValidityMessage!==``;return e||t?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?``:this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),e}setCustomValidity(e=``){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){let t=this.getAllRadios(),n=t.find(e=>e.checked),r=t.find(e=>!e.disabled),i=n||r;i&&i.focus(e)}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=N` `;return N`
${this.helpText}
- `}};vb.styles=[wn,en,mb],vb.dependencies={"sl-button-group":gb},D([M(`slot:not([name])`)],vb.prototype,`defaultSlot`,2),D([M(`.radio-group__validation-input`)],vb.prototype,`validationInput`,2),D([j()],vb.prototype,`hasButtonGroup`,2),D([j()],vb.prototype,`errorMessage`,2),D([j()],vb.prototype,`defaultValue`,2),D([A()],vb.prototype,`label`,2),D([A({attribute:`help-text`})],vb.prototype,`helpText`,2),D([A()],vb.prototype,`name`,2),D([A({reflect:!0})],vb.prototype,`value`,2),D([A({reflect:!0})],vb.prototype,`size`,2),D([A({reflect:!0})],vb.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],vb.prototype,`required`,2),D([I(`size`,{waitUntilFirstUpdate:!0})],vb.prototype,`handleSizeChange`,1),D([I(`value`)],vb.prototype,`handleValueChange`,1),vb.define(`sl-radio-group`);var yb=k` + `}};xb.styles=[wn,en,_b],xb.dependencies={"sl-button-group":yb},D([M(`slot:not([name])`)],xb.prototype,`defaultSlot`,2),D([M(`.radio-group__validation-input`)],xb.prototype,`validationInput`,2),D([j()],xb.prototype,`hasButtonGroup`,2),D([j()],xb.prototype,`errorMessage`,2),D([j()],xb.prototype,`defaultValue`,2),D([A()],xb.prototype,`label`,2),D([A({attribute:`help-text`})],xb.prototype,`helpText`,2),D([A()],xb.prototype,`name`,2),D([A({reflect:!0})],xb.prototype,`value`,2),D([A({reflect:!0})],xb.prototype,`size`,2),D([A({reflect:!0})],xb.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],xb.prototype,`required`,2),D([I(`size`,{waitUntilFirstUpdate:!0})],xb.prototype,`handleSizeChange`,1),D([I(`value`)],xb.prototype,`handleValueChange`,1),xb.define(`sl-radio-group`);var Sb=k` :host { display: inline-block; position: relative; @@ -6910,8 +6913,8 @@ :host([data-sl-button-group__button][checked]) { z-index: 2; } -`,bb=k` - ${yb} +`,Cb=k` + ${Sb} .button__prefix, .button__suffix, @@ -6934,7 +6937,7 @@ opacity: 0; z-index: -1; } -`,xb=Symbol.for(``),Sb=e=>{if(e?.r===xb)return e?._$litStatic$},Cb=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:xb}),wb=new Map,Tb=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l{if(e?.r===wb)return e?._$litStatic$},Eb=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:wb}),Db=new Map,Ob=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l - `}};Eb.styles=[wn,bb],D([M(`.button`)],Eb.prototype,`input`,2),D([M(`.hidden-input`)],Eb.prototype,`hiddenInput`,2),D([j()],Eb.prototype,`hasFocus`,2),D([A({type:Boolean,reflect:!0})],Eb.prototype,`checked`,2),D([A()],Eb.prototype,`value`,2),D([A({type:Boolean,reflect:!0})],Eb.prototype,`disabled`,2),D([A({reflect:!0})],Eb.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],Eb.prototype,`pill`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Eb.prototype,`handleDisabledChange`,1),Eb.define(`sl-radio-button`);var Db=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ob=Object.freeze({type:`spacer`,content:``}),kb=20,Ab=20,jb=`pb33f-diff-view-mode`;function Mb(e){return e===`side-by-side`||e===`unified`}var Nb=class extends F{constructor(){super(...arguments),this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.selectedChanges=[],this.contentMode=`file`,this.viewMode=`side-by-side`,this._cachedFocusedSections=[],this.cachedLeft=[],this.cachedRight=[],this.cachedUnified=[],this.originalLineToIndex=new Map,this.modifiedLineToIndex=new Map,this.dmp=(()=>{let e=new ls.default;return e.Diff_Timeout=5,e})(),this._highlightTimer=0,this._highlightedElement=null,this._panels=[],this._scrollListeners=[],this._resizeObserver=null,this._rafId=0,this._scrollDirty=!1,this._syncing=!1,this._rendering=!1,this._renderStart=[0,0],this._renderEnd=[0,0],this._viewportHeight=[0,0],this._lastScrollTop=0,this._pendingJump=[0,0]}connectedCallback(){super.connectedCallback(),this.restoreStoredViewMode()}willUpdate(e){e.has(`selectedChanges`)&&(this.contentMode=this.hasSelection?`change`:`file`);let t=e.has(`originalSpec`)||e.has(`modifiedSpec`);t?this.recomputeDiffs():(e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&this._applyHighlights(),(t||e.has(`selectedChanges`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedFocusedSections=[])}updated(e){super.updated(e);let t=e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`);if(e.has(`contentMode`)&&this.contentMode===`change`&&this._teardownScrolling(),this.contentMode===`file`&&(e.has(`contentMode`)||e.has(`viewMode`)||e.has(`originalSpec`)||e.has(`modifiedSpec`))){let t=e.has(`contentMode`)&&e.get(`contentMode`)===`change`;this.updateComplete.then(()=>{requestAnimationFrame(()=>{let e=0,n=0;if(t&&this.selectedChanges.length>0){let t=this.selectedChanges.find(e=>e.context?.originalLine>0||e.context?.newLine>0);t&&(e=t.context?.originalLine||0,n=t.context?.newLine||0)}this._setupScrolling(e,n)})})}else this.contentMode===`file`&&t&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this._panels.length>0&&this._markDirty()})})}disconnectedCallback(){super.disconnectedCallback(),this._teardownScrolling(),this._highlightTimer&&=(clearTimeout(this._highlightTimer),0)}restoreStoredViewMode(){try{let e=localStorage.getItem(jb);Mb(e)&&(this.viewMode=e)}catch{}}setViewMode(e){this.viewMode=e;try{localStorage.setItem(jb,e)}catch{}}get hasSelection(){return Array.isArray(this.selectedChanges)&&this.selectedChanges.length>0}recomputeDiffs(){let e=this.dmp.diff_linesToChars_(this.originalSpec,this.modifiedSpec),t=this.dmp.diff_main(e.chars1,e.chars2,!1);this.dmp.diff_charsToLines_(t,e.lineArray);let n=[],r=[],i=[],a=this.originalHighlighted||{},o=this.modifiedHighlighted||{},s=new Map,c=new Map,l=1,u=1;for(let[e,d]of t){let t=d.split(` -`);t[t.length-1]===``&&t.pop();for(let d of t)if(e===0){let e=n.length,t={type:`equal`,content:d,highlightedContent:a[l]||o[u],originalLineNum:l,modifiedLineNum:u};n.push(t),r.push(t),i.push(t),s.set(l,e),c.set(u,e),l++,u++}else if(e===-1){let e=n.length,t={type:`removed`,content:d,highlightedContent:a[l],originalLineNum:l};n.push(t),r.push(Ob),i.push(t),s.set(l,e),l++}else if(e===1){let e=r.length,t={type:`added`,content:d,highlightedContent:o[u],modifiedLineNum:u};r.push(t),n.push(Ob),i.push(t),c.set(u,e),u++}}this.cachedLeft=n,this.cachedRight=r,this.cachedUnified=i,this.originalLineToIndex=s,this.modifiedLineToIndex=c,this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_applyHighlights(){let e=this.originalHighlighted||{},t=this.modifiedHighlighted||{};for(let n of this.cachedLeft)n.type!==`spacer`&&(n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));for(let n of this.cachedRight)n.type!==`spacer`&&(n.modifiedLineNum?n.highlightedContent=t[n.modifiedLineNum]:n.originalLineNum&&(n.highlightedContent=e[n.originalLineNum]));for(let n of this.cachedUnified)n.type!==`spacer`&&(n.originalLineNum&&n.modifiedLineNum?n.highlightedContent=e[n.originalLineNum]||t[n.modifiedLineNum]:n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_setupScrolling(e=0,t=0){this._teardownScrolling(),this._renderStart=[-1,-1],this._renderEnd=[-1,-1],this._lastScrollTop=0,this._pendingJump=[e,t];let n=Array.from(this.renderRoot.querySelectorAll(`.diff-panel`));if(this._panels=n,n.length){for(let e of n)e.scrollTop=0;this._resizeObserver=new ResizeObserver(()=>{this._markDirty()});for(let e=0;e{this._rendering||this._syncing||(this._lastScrollTop=t.scrollTop,this.viewMode===`side-by-side`&&n.length===2&&(this._syncing=!0,n[1-e].scrollTop=this._lastScrollTop,this._syncing=!1),this._markDirty())};t.addEventListener(`scroll`,r,{passive:!0}),this._scrollListeners.push(()=>t.removeEventListener(`scroll`,r))}this._markDirty()}}_teardownScrolling(){for(let e of this._scrollListeners)e();this._scrollListeners=[],this._resizeObserver?.disconnect(),this._resizeObserver=null,this._rafId&&=(cancelAnimationFrame(this._rafId),0),this._scrollDirty=!1,this._panels=[]}_markDirty(){this._scrollDirty||(this._scrollDirty=!0,this._rafId=requestAnimationFrame(()=>{this._scrollDirty=!1,this._rafId=0,this._updateAllPanels()}))}_updateAllPanels(){let e=this._lastScrollTop;for(let t=0;t0||this._pendingJump[1]>0){let[e,t]=this._pendingJump;this._pendingJump=[0,0],requestAnimationFrame(()=>this.scrollToLine(e,t))}}_getLinesForPanel(e){return this.viewMode===`unified`?this.cachedUnified:e===0?this.cachedLeft:this.cachedRight}_getSideForPanel(e){return this.viewMode===`unified`?`unified`:e===0?`left`:`right`}_renderRange(e,t,n,r,i,a){let o=e.querySelector(`.scroll-pad-top`),s=e.querySelector(`.visible-lines`),c=e.querySelector(`.scroll-pad-bottom`);if(!o||!s||!c)return;this._highlightedElement&&=null,this._rendering=!0;let l=e.scrollTop;o.style.height=`${n*kb}px`,c.style.height=`${(i-r)*kb}px`;let u=document.createDocumentFragment();for(let e=n;e0&&(n=this.originalLineToIndex.get(e)??-1),n<0&&t&&t>0&&(n=this.modifiedLineToIndex.get(t)??-1),n<0)return;let r=this._panels[0];if(!r)return;let i=this._viewportHeight[0]||r.clientHeight,a=Math.max(0,n*kb-i/2+kb/2);r.scrollTop=a,this._panels.length>1&&(this._panels[1].scrollTop=a),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)));let o=this._findScrollTarget(e,t);o&&(this._highlightTimer&&=(clearTimeout(this._highlightTimer),0),this._highlightedElement&&=(this._highlightedElement.classList.remove(`highlight`),null),o.classList.add(`highlight`),this._highlightedElement=o,this._highlightTimer=window.setTimeout(()=>{o?.classList.remove(`highlight`),this._highlightedElement=null,this._highlightTimer=0},2e3))}_findScrollTarget(e,t){if(this.viewMode===`side-by-side`&&this._panels.length>1){if(e>0){let t=this._panels[0].querySelector(`[data-original-line="${e}"]`);if(t)return t}if(t&&t>0){let e=this._panels[1].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(t&&t>0){let e=this._panels[0].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(e>0){let t=this._panels[1].querySelector(`[data-original-line="${e}"]`);if(t)return t}return null}let n=this._panels[0];if(!n)return null;if(e>0){let t=n.querySelector(`[data-original-line="${e}"]`);if(t)return t}return t&&t>0?n.querySelector(`[data-modified-line="${t}"]`):null}renderControls(){return N` + `}};kb.styles=[wn,Cb],D([M(`.button`)],kb.prototype,`input`,2),D([M(`.hidden-input`)],kb.prototype,`hiddenInput`,2),D([j()],kb.prototype,`hasFocus`,2),D([A({type:Boolean,reflect:!0})],kb.prototype,`checked`,2),D([A()],kb.prototype,`value`,2),D([A({type:Boolean,reflect:!0})],kb.prototype,`disabled`,2),D([A({reflect:!0})],kb.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],kb.prototype,`pill`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],kb.prototype,`handleDisabledChange`,1),kb.define(`sl-radio-button`);var Ab=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jb=Object.freeze({type:`spacer`,content:``}),Mb=20,Nb=20,Pb=`pb33f-diff-view-mode`;function Fb(e){return e===`side-by-side`||e===`unified`}var Ib=class extends F{constructor(){super(...arguments),this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.selectedChanges=[],this.contentMode=`file`,this.viewMode=`side-by-side`,this._cachedFocusedSections=[],this.cachedLeft=[],this.cachedRight=[],this.cachedUnified=[],this.originalLineToIndex=new Map,this.modifiedLineToIndex=new Map,this.dmp=(()=>{let e=new fs.default;return e.Diff_Timeout=5,e})(),this._highlightTimer=0,this._highlightedElement=null,this._panels=[],this._scrollListeners=[],this._resizeObserver=null,this._rafId=0,this._scrollDirty=!1,this._syncing=!1,this._rendering=!1,this._renderStart=[0,0],this._renderEnd=[0,0],this._viewportHeight=[0,0],this._lastScrollTop=0,this._pendingJump=[0,0]}connectedCallback(){super.connectedCallback(),this.restoreStoredViewMode()}willUpdate(e){e.has(`selectedChanges`)&&(this.contentMode=this.hasSelection?`change`:`file`);let t=e.has(`originalSpec`)||e.has(`modifiedSpec`);t?this.recomputeDiffs():(e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&this._applyHighlights(),(t||e.has(`selectedChanges`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedFocusedSections=[])}updated(e){super.updated(e);let t=e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`);if(e.has(`contentMode`)&&this.contentMode===`change`&&this._teardownScrolling(),this.contentMode===`file`&&(e.has(`contentMode`)||e.has(`viewMode`)||e.has(`originalSpec`)||e.has(`modifiedSpec`))){let t=e.has(`contentMode`)&&e.get(`contentMode`)===`change`;this.updateComplete.then(()=>{requestAnimationFrame(()=>{let e=0,n=0;if(t&&this.selectedChanges.length>0){let t=this.selectedChanges.find(e=>e.context?.originalLine>0||e.context?.newLine>0);t&&(e=t.context?.originalLine||0,n=t.context?.newLine||0)}this._setupScrolling(e,n)})})}else this.contentMode===`file`&&t&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this._panels.length>0&&this._markDirty()})})}disconnectedCallback(){super.disconnectedCallback(),this._teardownScrolling(),this._highlightTimer&&=(clearTimeout(this._highlightTimer),0)}restoreStoredViewMode(){try{let e=localStorage.getItem(Pb);Fb(e)&&(this.viewMode=e)}catch{}}setViewMode(e){this.viewMode=e;try{localStorage.setItem(Pb,e)}catch{}}get hasSelection(){return Array.isArray(this.selectedChanges)&&this.selectedChanges.length>0}recomputeDiffs(){let e=this.dmp.diff_linesToChars_(this.originalSpec,this.modifiedSpec),t=this.dmp.diff_main(e.chars1,e.chars2,!1);this.dmp.diff_charsToLines_(t,e.lineArray);let n=[],r=[],i=[],a=this.originalHighlighted||{},o=this.modifiedHighlighted||{},s=new Map,c=new Map,l=1,u=1;for(let[e,d]of t){let t=d.split(` +`);t[t.length-1]===``&&t.pop();for(let d of t)if(e===0){let e=n.length,t={type:`equal`,content:d,highlightedContent:a[l]||o[u],originalLineNum:l,modifiedLineNum:u};n.push(t),r.push(t),i.push(t),s.set(l,e),c.set(u,e),l++,u++}else if(e===-1){let e=n.length,t={type:`removed`,content:d,highlightedContent:a[l],originalLineNum:l};n.push(t),r.push(jb),i.push(t),s.set(l,e),l++}else if(e===1){let e=r.length,t={type:`added`,content:d,highlightedContent:o[u],modifiedLineNum:u};r.push(t),n.push(jb),i.push(t),c.set(u,e),u++}}this.cachedLeft=n,this.cachedRight=r,this.cachedUnified=i,this.originalLineToIndex=s,this.modifiedLineToIndex=c,this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_applyHighlights(){let e=this.originalHighlighted||{},t=this.modifiedHighlighted||{};for(let n of this.cachedLeft)n.type!==`spacer`&&(n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));for(let n of this.cachedRight)n.type!==`spacer`&&(n.modifiedLineNum?n.highlightedContent=t[n.modifiedLineNum]:n.originalLineNum&&(n.highlightedContent=e[n.originalLineNum]));for(let n of this.cachedUnified)n.type!==`spacer`&&(n.originalLineNum&&n.modifiedLineNum?n.highlightedContent=e[n.originalLineNum]||t[n.modifiedLineNum]:n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_setupScrolling(e=0,t=0){this._teardownScrolling(),this._renderStart=[-1,-1],this._renderEnd=[-1,-1],this._lastScrollTop=0,this._pendingJump=[e,t];let n=Array.from(this.renderRoot.querySelectorAll(`.diff-panel`));if(this._panels=n,n.length){for(let e of n)e.scrollTop=0;this._resizeObserver=new ResizeObserver(()=>{this._markDirty()});for(let e=0;e{this._rendering||this._syncing||(this._lastScrollTop=t.scrollTop,this.viewMode===`side-by-side`&&n.length===2&&(this._syncing=!0,n[1-e].scrollTop=this._lastScrollTop,this._syncing=!1),this._markDirty())};t.addEventListener(`scroll`,r,{passive:!0}),this._scrollListeners.push(()=>t.removeEventListener(`scroll`,r))}this._markDirty()}}_teardownScrolling(){for(let e of this._scrollListeners)e();this._scrollListeners=[],this._resizeObserver?.disconnect(),this._resizeObserver=null,this._rafId&&=(cancelAnimationFrame(this._rafId),0),this._scrollDirty=!1,this._panels=[]}_markDirty(){this._scrollDirty||(this._scrollDirty=!0,this._rafId=requestAnimationFrame(()=>{this._scrollDirty=!1,this._rafId=0,this._updateAllPanels()}))}_updateAllPanels(){let e=this._lastScrollTop;for(let t=0;t0||this._pendingJump[1]>0){let[e,t]=this._pendingJump;this._pendingJump=[0,0],requestAnimationFrame(()=>this.scrollToLine(e,t))}}_getLinesForPanel(e){return this.viewMode===`unified`?this.cachedUnified:e===0?this.cachedLeft:this.cachedRight}_getSideForPanel(e){return this.viewMode===`unified`?`unified`:e===0?`left`:`right`}_renderRange(e,t,n,r,i,a){let o=e.querySelector(`.scroll-pad-top`),s=e.querySelector(`.visible-lines`),c=e.querySelector(`.scroll-pad-bottom`);if(!o||!s||!c)return;this._highlightedElement&&=null,this._rendering=!0;let l=e.scrollTop;o.style.height=`${n*Mb}px`,c.style.height=`${(i-r)*Mb}px`;let u=document.createDocumentFragment();for(let e=n;e0&&(n=this.originalLineToIndex.get(e)??-1),n<0&&t&&t>0&&(n=this.modifiedLineToIndex.get(t)??-1),n<0)return;let r=this._panels[0];if(!r)return;let i=this._viewportHeight[0]||r.clientHeight,a=Math.max(0,n*Mb-i/2+Mb/2);r.scrollTop=a,this._panels.length>1&&(this._panels[1].scrollTop=a),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)));let o=this._findScrollTarget(e,t);o&&(this._highlightTimer&&=(clearTimeout(this._highlightTimer),0),this._highlightedElement&&=(this._highlightedElement.classList.remove(`highlight`),null),o.classList.add(`highlight`),this._highlightedElement=o,this._highlightTimer=window.setTimeout(()=>{o?.classList.remove(`highlight`),this._highlightedElement=null,this._highlightTimer=0},2e3))}_findScrollTarget(e,t){if(this.viewMode===`side-by-side`&&this._panels.length>1){if(e>0){let t=this._panels[0].querySelector(`[data-original-line="${e}"]`);if(t)return t}if(t&&t>0){let e=this._panels[1].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(t&&t>0){let e=this._panels[0].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(e>0){let t=this._panels[1].querySelector(`[data-original-line="${e}"]`);if(t)return t}return null}let n=this._panels[0];if(!n)return null;if(e>0){let t=n.querySelector(`[data-original-line="${e}"]`);if(t)return t}return t&&t>0?n.querySelector(`[data-modified-line="${t}"]`):null}renderControls(){return N`
${this.hasSelection?N` `:P}
- `}renderFocusedDiff(){!this._cachedFocusedSections.length&&this.selectedChanges.length&&(this._cachedFocusedSections=Iy(this.selectedChanges,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{}));let e=this._cachedFocusedSections;if(!e.length)return N` + `}renderFocusedDiff(){!this._cachedFocusedSections.length&&this.selectedChanges.length&&(this._cachedFocusedSections=zy(this.selectedChanges,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{}));let e=this._cachedFocusedSections;if(!e.length)return N` ${this.renderControls()}
No focused changes available
`;let t=[],n=[];for(let r of e){let e=N` @@ -7052,7 +7055,7 @@
- `}};Nb.styles=Oy,Db([A()],Nb.prototype,`originalSpec`,void 0),Db([A()],Nb.prototype,`modifiedSpec`,void 0),Db([A({type:Object})],Nb.prototype,`originalHighlighted`,void 0),Db([A({type:Object})],Nb.prototype,`modifiedHighlighted`,void 0),Db([A({type:Array})],Nb.prototype,`selectedChanges`,void 0),Db([j()],Nb.prototype,`contentMode`,void 0),Db([j()],Nb.prototype,`viewMode`,void 0),Nb=Db([O(`pb33f-diff-viewer`)],Nb);var Pb=k` + `}};Ib.styles=jy,Ab([A()],Ib.prototype,`originalSpec`,void 0),Ab([A()],Ib.prototype,`modifiedSpec`,void 0),Ab([A({type:Object})],Ib.prototype,`originalHighlighted`,void 0),Ab([A({type:Object})],Ib.prototype,`modifiedHighlighted`,void 0),Ab([A({type:Array})],Ib.prototype,`selectedChanges`,void 0),Ab([j()],Ib.prototype,`contentMode`,void 0),Ab([j()],Ib.prototype,`viewMode`,void 0),Ib=Ab([O(`pb33f-diff-viewer`)],Ib);var Lb=k` :host { display: block; } @@ -7079,7 +7082,7 @@ .change-card { padding-bottom: var(--global-padding); } -`,Fb=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ib=class extends F{constructor(){super(...arguments),this.changes=[],this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.compact=!1,this._cachedSections=null}willUpdate(e){(e.has(`changes`)||e.has(`originalSpec`)||e.has(`modifiedSpec`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedSections=null)}_getSections(){return this._cachedSections===null?this.changes.length?(this._cachedSections=Iy(this.changes,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{},this.compact?5:void 0),this._cachedSections):[]:this._cachedSections}renderValueBlock(e){return N` +`,Rb=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zb=class extends F{constructor(){super(...arguments),this.changes=[],this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.compact=!1,this._cachedSections=null}willUpdate(e){(e.has(`changes`)||e.has(`originalSpec`)||e.has(`modifiedSpec`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedSections=null)}_getSections(){return this._cachedSections===null?this.changes.length?(this._cachedSections=zy(this.changes,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{},this.compact?5:void 0),this._cachedSections):[]:this._cachedSections}renderValueBlock(e){return N`
${this.compact?P:N`
${e.title}
`}
@@ -7123,7 +7126,7 @@ `})}
- `:P}};Ib.styles=[Dy,Pb],Fb([A({type:Array})],Ib.prototype,`changes`,void 0),Fb([A()],Ib.prototype,`originalSpec`,void 0),Fb([A()],Ib.prototype,`modifiedSpec`,void 0),Fb([A({type:Object})],Ib.prototype,`originalHighlighted`,void 0),Fb([A({type:Object})],Ib.prototype,`modifiedHighlighted`,void 0),Fb([A({type:Boolean})],Ib.prototype,`compact`,void 0),Ib=Fb([O(`pb33f-focused-diff-panel`)],Ib);var Lb=[ws,k` + `:P}};zb.styles=[Ay,Lb],Rb([A({type:Array})],zb.prototype,`changes`,void 0),Rb([A()],zb.prototype,`originalSpec`,void 0),Rb([A()],zb.prototype,`modifiedSpec`,void 0),Rb([A({type:Object})],zb.prototype,`originalHighlighted`,void 0),Rb([A({type:Object})],zb.prototype,`modifiedHighlighted`,void 0),Rb([A({type:Boolean})],zb.prototype,`compact`,void 0),zb=Rb([O(`pb33f-focused-diff-panel`)],zb);var Bb=[Ds,k` :host { display: flex; flex-direction: column; @@ -7943,7 +7946,7 @@ padding-bottom: var(--global-padding); border-bottom: 1px dashed var(--hrcolor); } -`];function Rb(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var zb=k` +`];function Vb(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Hb=k` :host { --indicator-color: var(--sl-color-primary-600); --track-color: var(--sl-color-neutral-200); @@ -8177,11 +8180,11 @@ .tab-group--end ::slotted(sl-tab-panel) { --padding: 0 var(--sl-spacing-medium); } -`,Bb=k` +`,Ub=k` :host { display: contents; } -`,Vb=class extends L{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>{this.emit(`sl-resize`,{detail:{entries:e}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){let e=this.shadowRoot.querySelector(`slot`);if(e!==null){let t=e.assignedElements({flatten:!0});this.observedElements.forEach(e=>this.resizeObserver.unobserve(e)),this.observedElements=[],t.forEach(e=>{this.resizeObserver.observe(e),this.observedElements.push(e)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return N` `}};Vb.styles=[wn,Bb],D([A({type:Boolean,reflect:!0})],Vb.prototype,`disabled`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Vb.prototype,`handleDisabledChange`,1);function Hb(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}function Ub(e,t,n=`vertical`,r=`smooth`){let i=Hb(e,t),a=i.top+t.scrollTop,o=i.left+t.scrollLeft,s=t.scrollLeft,c=t.scrollLeft+t.offsetWidth,l=t.scrollTop,u=t.scrollTop+t.offsetHeight;(n===`horizontal`||n===`both`)&&(oc&&t.scrollTo({left:o-t.offsetWidth+e.clientWidth,behavior:r})),(n===`vertical`||n===`both`)&&(au&&t.scrollTo({top:a-t.offsetHeight+e.clientHeight,behavior:r}))}var Wb=k` +`,Wb=class extends L{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>{this.emit(`sl-resize`,{detail:{entries:e}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){let e=this.shadowRoot.querySelector(`slot`);if(e!==null){let t=e.assignedElements({flatten:!0});this.observedElements.forEach(e=>this.resizeObserver.unobserve(e)),this.observedElements=[],t.forEach(e=>{this.resizeObserver.observe(e),this.observedElements.push(e)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return N` `}};Wb.styles=[wn,Ub],D([A({type:Boolean,reflect:!0})],Wb.prototype,`disabled`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Wb.prototype,`handleDisabledChange`,1);function Gb(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}function Kb(e,t,n=`vertical`,r=`smooth`){let i=Gb(e,t),a=i.top+t.scrollTop,o=i.left+t.scrollLeft,s=t.scrollLeft,c=t.scrollLeft+t.offsetWidth,l=t.scrollTop,u=t.scrollTop+t.offsetHeight;(n===`horizontal`||n===`both`)&&(oc&&t.scrollTo({left:o-t.offsetWidth+e.clientWidth,behavior:r})),(n===`vertical`||n===`both`)&&(au&&t.scrollTo({top:a-t.offsetHeight+e.clientHeight,behavior:r}))}var qb=k` :host { display: inline-block; color: var(--sl-color-neutral-600); @@ -8228,7 +8231,7 @@ .icon-button__icon { pointer-events: none; } -`,Gb=class extends L{constructor(){super(...arguments),this.hasFocus=!1,this.label=``,this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){let e=!!this.href,t=e?Cb`a`:Cb`button`;return Tb` +`,Jb=class extends L{constructor(){super(...arguments),this.hasFocus=!1,this.label=``,this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){let e=!!this.href,t=e?Eb`a`:Eb`button`;return Ob` <${t} part="base" class=${En({"icon-button":!0,"icon-button--disabled":!e&&this.disabled,"icon-button--focused":this.hasFocus})} @@ -8254,7 +8257,7 @@ aria-hidden="true" > - `}};Gb.styles=[wn,Wb],Gb.dependencies={"sl-icon":cs},D([M(`.icon-button`)],Gb.prototype,`button`,2),D([j()],Gb.prototype,`hasFocus`,2),D([A()],Gb.prototype,`name`,2),D([A()],Gb.prototype,`library`,2),D([A()],Gb.prototype,`src`,2),D([A()],Gb.prototype,`href`,2),D([A()],Gb.prototype,`target`,2),D([A()],Gb.prototype,`download`,2),D([A()],Gb.prototype,`label`,2),D([A({type:Boolean,reflect:!0})],Gb.prototype,`disabled`,2);var Kb=class extends L{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new Cn(this),this.hasScrollControls=!1,this.shouldHideScrollStartButton=!1,this.shouldHideScrollEndButton=!1,this.placement=`top`,this.activation=`auto`,this.noScrollControls=!1,this.fixedScrollControls=!1,this.scrollOffset=1}connectedCallback(){let e=Promise.all([customElements.whenDefined(`sl-tab`),customElements.whenDefined(`sl-tab-panel`)]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{let t=e.filter(({target:e})=>{if(e===this)return!0;if(e.closest(`sl-tab-group`)!==this)return!1;let t=e.tagName.toLowerCase();return t===`sl-tab`||t===`sl-tab-panel`});if(t.length!==0){if(t.some(e=>![`aria-labelledby`,`aria-controls`].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),t.some(e=>e.attributeName===`disabled`))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName===`active`)){let e=t.filter(e=>e.attributeName===`active`&&e.target.tagName.toLowerCase()===`sl-tab`).map(e=>e.target).find(e=>e.active);e&&this.setActiveTab(e)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:[`active`,`disabled`,`name`,`panel`],childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then(()=>{new IntersectionObserver((e,t)=>{e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.getActiveTab()??this.tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector(`slot[name="nav"]`).assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(e=>e.tagName.toLowerCase()===`sl-tab-panel`)}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){let t=e.target.closest(`sl-tab`);t?.closest(`sl-tab-group`)===this&&t!==null&&this.setActiveTab(t,{scrollBehavior:`smooth`})}handleKeyDown(e){let t=e.target.closest(`sl-tab`);if(t?.closest(`sl-tab-group`)===this&&([`Enter`,` `].includes(e.key)&&t!==null&&(this.setActiveTab(t,{scrollBehavior:`smooth`}),e.preventDefault()),[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key))){let t=this.tabs.find(e=>e.matches(`:focus`)),n=this.localize.dir()===`rtl`,r=null;if(t?.tagName.toLowerCase()===`sl-tab`){if(e.key===`Home`)r=this.focusableTabs[0];else if(e.key===`End`)r=this.focusableTabs[this.focusableTabs.length-1];else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowRight`:`ArrowLeft`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowUp`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`backward`)}else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowLeft`:`ArrowRight`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowDown`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`forward`)}if(!r)return;r.tabIndex=0,r.focus({preventScroll:!0}),this.activation===`auto`?this.setActiveTab(r,{scrollBehavior:`smooth`}):this.tabs.forEach(e=>{e.tabIndex=e===r?0:-1}),[`top`,`bottom`].includes(this.placement)&&Ub(r,this.nav,`horizontal`),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:`smooth`})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:`smooth`})}setActiveTab(e,t){if(t=re({emitEvents:!0,scrollBehavior:`auto`},t),e!==this.activeTab&&!e.disabled){let n=this.activeTab;this.activeTab=e,this.tabs.forEach(e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1}),this.panels.forEach(e=>e.active=e.name===this.activeTab?.panel),this.syncIndicator(),[`top`,`bottom`].includes(this.placement)&&Ub(this.activeTab,this.nav,`horizontal`,t.scrollBehavior),t.emitEvents&&(n&&this.emit(`sl-tab-hide`,{detail:{name:n.panel}}),this.emit(`sl-tab-show`,{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(e=>{let t=this.panels.find(t=>t.name===e.panel);t&&(e.setAttribute(`aria-controls`,t.getAttribute(`id`)),t.setAttribute(`aria-labelledby`,e.getAttribute(`id`)))})}repositionIndicator(){let e=this.getActiveTab();if(!e)return;let t=e.clientWidth,n=e.clientHeight,r=this.localize.dir()===`rtl`,i=this.getAllTabs(),a=i.slice(0,i.indexOf(e)).reduce((e,t)=>({left:e.left+t.clientWidth,top:e.top+t.clientHeight}),{left:0,top:0});switch(this.placement){case`top`:case`bottom`:this.indicator.style.width=`${t}px`,this.indicator.style.height=`auto`,this.indicator.style.translate=r?`${-1*a.left}px`:`${a.left}px`;break;case`start`:case`end`:this.indicator.style.width=`auto`,this.indicator.style.height=`${n}px`,this.indicator.style.translate=`0 ${a.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(e=>!e.disabled),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(e,t){let n=null,r=t===`forward`?1:-1,i=e+r;for(;e=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return this.localize.dir()===`rtl`?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.hasScrollControls=!this.noScrollControls&&[`top`,`bottom`].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display=`block`,this.repositionIndicator()):this.indicator.style.display=`none`}show(e){let t=this.tabs.find(t=>t.panel===e);t&&this.setActiveTab(t,{scrollBehavior:`smooth`})}render(){let e=this.localize.dir()===`rtl`;return N` + `}};Jb.styles=[wn,qb],Jb.dependencies={"sl-icon":ds},D([M(`.icon-button`)],Jb.prototype,`button`,2),D([j()],Jb.prototype,`hasFocus`,2),D([A()],Jb.prototype,`name`,2),D([A()],Jb.prototype,`library`,2),D([A()],Jb.prototype,`src`,2),D([A()],Jb.prototype,`href`,2),D([A()],Jb.prototype,`target`,2),D([A()],Jb.prototype,`download`,2),D([A()],Jb.prototype,`label`,2),D([A({type:Boolean,reflect:!0})],Jb.prototype,`disabled`,2);var Yb=class extends L{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new Cn(this),this.hasScrollControls=!1,this.shouldHideScrollStartButton=!1,this.shouldHideScrollEndButton=!1,this.placement=`top`,this.activation=`auto`,this.noScrollControls=!1,this.fixedScrollControls=!1,this.scrollOffset=1}connectedCallback(){let e=Promise.all([customElements.whenDefined(`sl-tab`),customElements.whenDefined(`sl-tab-panel`)]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{let t=e.filter(({target:e})=>{if(e===this)return!0;if(e.closest(`sl-tab-group`)!==this)return!1;let t=e.tagName.toLowerCase();return t===`sl-tab`||t===`sl-tab-panel`});if(t.length!==0){if(t.some(e=>![`aria-labelledby`,`aria-controls`].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),t.some(e=>e.attributeName===`disabled`))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName===`active`)){let e=t.filter(e=>e.attributeName===`active`&&e.target.tagName.toLowerCase()===`sl-tab`).map(e=>e.target).find(e=>e.active);e&&this.setActiveTab(e)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:[`active`,`disabled`,`name`,`panel`],childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then(()=>{new IntersectionObserver((e,t)=>{e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.getActiveTab()??this.tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector(`slot[name="nav"]`).assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(e=>e.tagName.toLowerCase()===`sl-tab-panel`)}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){let t=e.target.closest(`sl-tab`);t?.closest(`sl-tab-group`)===this&&t!==null&&this.setActiveTab(t,{scrollBehavior:`smooth`})}handleKeyDown(e){let t=e.target.closest(`sl-tab`);if(t?.closest(`sl-tab-group`)===this&&([`Enter`,` `].includes(e.key)&&t!==null&&(this.setActiveTab(t,{scrollBehavior:`smooth`}),e.preventDefault()),[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key))){let t=this.tabs.find(e=>e.matches(`:focus`)),n=this.localize.dir()===`rtl`,r=null;if(t?.tagName.toLowerCase()===`sl-tab`){if(e.key===`Home`)r=this.focusableTabs[0];else if(e.key===`End`)r=this.focusableTabs[this.focusableTabs.length-1];else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowRight`:`ArrowLeft`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowUp`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`backward`)}else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowLeft`:`ArrowRight`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowDown`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`forward`)}if(!r)return;r.tabIndex=0,r.focus({preventScroll:!0}),this.activation===`auto`?this.setActiveTab(r,{scrollBehavior:`smooth`}):this.tabs.forEach(e=>{e.tabIndex=e===r?0:-1}),[`top`,`bottom`].includes(this.placement)&&Kb(r,this.nav,`horizontal`),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:`smooth`})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:`smooth`})}setActiveTab(e,t){if(t=re({emitEvents:!0,scrollBehavior:`auto`},t),e!==this.activeTab&&!e.disabled){let n=this.activeTab;this.activeTab=e,this.tabs.forEach(e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1}),this.panels.forEach(e=>e.active=e.name===this.activeTab?.panel),this.syncIndicator(),[`top`,`bottom`].includes(this.placement)&&Kb(this.activeTab,this.nav,`horizontal`,t.scrollBehavior),t.emitEvents&&(n&&this.emit(`sl-tab-hide`,{detail:{name:n.panel}}),this.emit(`sl-tab-show`,{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(e=>{let t=this.panels.find(t=>t.name===e.panel);t&&(e.setAttribute(`aria-controls`,t.getAttribute(`id`)),t.setAttribute(`aria-labelledby`,e.getAttribute(`id`)))})}repositionIndicator(){let e=this.getActiveTab();if(!e)return;let t=e.clientWidth,n=e.clientHeight,r=this.localize.dir()===`rtl`,i=this.getAllTabs(),a=i.slice(0,i.indexOf(e)).reduce((e,t)=>({left:e.left+t.clientWidth,top:e.top+t.clientHeight}),{left:0,top:0});switch(this.placement){case`top`:case`bottom`:this.indicator.style.width=`${t}px`,this.indicator.style.height=`auto`,this.indicator.style.translate=r?`${-1*a.left}px`:`${a.left}px`;break;case`start`:case`end`:this.indicator.style.width=`auto`,this.indicator.style.height=`${n}px`,this.indicator.style.translate=`0 ${a.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(e=>!e.disabled),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(e,t){let n=null,r=t===`forward`?1:-1,i=e+r;for(;e=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return this.localize.dir()===`rtl`?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.hasScrollControls=!this.noScrollControls&&[`top`,`bottom`].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display=`block`,this.repositionIndicator()):this.indicator.style.display=`none`}show(e){let t=this.tabs.find(t=>t.panel===e);t&&this.setActiveTab(t,{scrollBehavior:`smooth`})}render(){let e=this.localize.dir()===`rtl`;return N`
- `}};Kb.styles=[wn,zb],Kb.dependencies={"sl-icon-button":Gb,"sl-resize-observer":Vb},D([M(`.tab-group`)],Kb.prototype,`tabGroup`,2),D([M(`.tab-group__body`)],Kb.prototype,`body`,2),D([M(`.tab-group__nav`)],Kb.prototype,`nav`,2),D([M(`.tab-group__indicator`)],Kb.prototype,`indicator`,2),D([j()],Kb.prototype,`hasScrollControls`,2),D([j()],Kb.prototype,`shouldHideScrollStartButton`,2),D([j()],Kb.prototype,`shouldHideScrollEndButton`,2),D([A()],Kb.prototype,`placement`,2),D([A()],Kb.prototype,`activation`,2),D([A({attribute:`no-scroll-controls`,type:Boolean})],Kb.prototype,`noScrollControls`,2),D([A({attribute:`fixed-scroll-controls`,type:Boolean})],Kb.prototype,`fixedScrollControls`,2),D([Le({passive:!0})],Kb.prototype,`updateScrollButtons`,1),D([I(`noScrollControls`,{waitUntilFirstUpdate:!0})],Kb.prototype,`updateScrollControls`,1),D([I(`placement`,{waitUntilFirstUpdate:!0})],Kb.prototype,`syncIndicator`,1),Kb.define(`sl-tab-group`);var qb=(e,t)=>{let n=0;return function(...r){window.clearTimeout(n),n=window.setTimeout(()=>{e.call(this,...r)},t)}},Jb=(e,t,n)=>{let r=e[t];e[t]=function(...e){r.call(this,...e),n.call(this,r,...e)}};(()=>{if(typeof window<`u`&&!(`onscrollend`in window)){let e=new Set,t=new WeakMap,n=t=>{for(let n of t.changedTouches)e.add(n.identifier)},r=t=>{for(let n of t.changedTouches)e.delete(n.identifier)};document.addEventListener(`touchstart`,n,!0),document.addEventListener(`touchend`,r,!0),document.addEventListener(`touchcancel`,r,!0),Jb(EventTarget.prototype,`addEventListener`,function(n,r){if(r!==`scrollend`)return;let i=qb(()=>{e.size?i():this.dispatchEvent(new Event(`scrollend`))},100);n.call(this,`scroll`,i,{passive:!0}),t.set(this,i)}),Jb(EventTarget.prototype,`removeEventListener`,function(e,n){if(n!==`scrollend`)return;let r=t.get(this);r&&e.call(this,`scroll`,r,{passive:!0})})}})();var Yb=k` + `}};Yb.styles=[wn,Hb],Yb.dependencies={"sl-icon-button":Jb,"sl-resize-observer":Wb},D([M(`.tab-group`)],Yb.prototype,`tabGroup`,2),D([M(`.tab-group__body`)],Yb.prototype,`body`,2),D([M(`.tab-group__nav`)],Yb.prototype,`nav`,2),D([M(`.tab-group__indicator`)],Yb.prototype,`indicator`,2),D([j()],Yb.prototype,`hasScrollControls`,2),D([j()],Yb.prototype,`shouldHideScrollStartButton`,2),D([j()],Yb.prototype,`shouldHideScrollEndButton`,2),D([A()],Yb.prototype,`placement`,2),D([A()],Yb.prototype,`activation`,2),D([A({attribute:`no-scroll-controls`,type:Boolean})],Yb.prototype,`noScrollControls`,2),D([A({attribute:`fixed-scroll-controls`,type:Boolean})],Yb.prototype,`fixedScrollControls`,2),D([Le({passive:!0})],Yb.prototype,`updateScrollButtons`,1),D([I(`noScrollControls`,{waitUntilFirstUpdate:!0})],Yb.prototype,`updateScrollControls`,1),D([I(`placement`,{waitUntilFirstUpdate:!0})],Yb.prototype,`syncIndicator`,1),Yb.define(`sl-tab-group`);var Xb=(e,t)=>{let n=0;return function(...r){window.clearTimeout(n),n=window.setTimeout(()=>{e.call(this,...r)},t)}},Zb=(e,t,n)=>{let r=e[t];e[t]=function(...e){r.call(this,...e),n.call(this,r,...e)}};(()=>{if(typeof window<`u`&&!(`onscrollend`in window)){let e=new Set,t=new WeakMap,n=t=>{for(let n of t.changedTouches)e.add(n.identifier)},r=t=>{for(let n of t.changedTouches)e.delete(n.identifier)};document.addEventListener(`touchstart`,n,!0),document.addEventListener(`touchend`,r,!0),document.addEventListener(`touchcancel`,r,!0),Zb(EventTarget.prototype,`addEventListener`,function(n,r){if(r!==`scrollend`)return;let i=Xb(()=>{e.size?i():this.dispatchEvent(new Event(`scrollend`))},100);n.call(this,`scroll`,i,{passive:!0}),t.set(this,i)}),Zb(EventTarget.prototype,`removeEventListener`,function(e,n){if(n!==`scrollend`)return;let r=t.get(this);r&&e.call(this,`scroll`,r,{passive:!0})})}})();var Qb=k` :host { --padding: 0; @@ -8317,12 +8320,12 @@ display: block; padding: var(--padding); } -`,Xb=0,Zb=class extends L{constructor(){super(...arguments),this.attrId=++Xb,this.componentId=`sl-tab-panel-${this.attrId}`,this.name=``,this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute(`role`,`tabpanel`)}handleActiveChange(){this.setAttribute(`aria-hidden`,this.active?`false`:`true`)}render(){return N` +`,$b=0,ex=class extends L{constructor(){super(...arguments),this.attrId=++$b,this.componentId=`sl-tab-panel-${this.attrId}`,this.name=``,this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute(`role`,`tabpanel`)}handleActiveChange(){this.setAttribute(`aria-hidden`,this.active?`false`:`true`)}render(){return N` - `}};Zb.styles=[wn,Yb],D([A({reflect:!0})],Zb.prototype,`name`,2),D([A({type:Boolean,reflect:!0})],Zb.prototype,`active`,2),D([I(`active`)],Zb.prototype,`handleActiveChange`,1),Zb.define(`sl-tab-panel`);var Qb=k` + `}};ex.styles=[wn,Qb],D([A({reflect:!0})],ex.prototype,`name`,2),D([A({type:Boolean,reflect:!0})],ex.prototype,`active`,2),D([I(`active`)],ex.prototype,`handleActiveChange`,1),ex.define(`sl-tab-panel`);var tx=k` :host { display: inline-block; } @@ -8387,7 +8390,7 @@ outline-offset: -3px; } } -`,$b=0,ex=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.attrId=++$b,this.componentId=`sl-tab-${this.attrId}`,this.panel=``,this.active=!1,this.closable=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tab`)}handleCloseClick(e){e.stopPropagation(),this.emit(`sl-close`)}handleActiveChange(){this.setAttribute(`aria-selected`,this.active?`true`:`false`)}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.tabIndex=this.disabled&&!this.active?-1:0}render(){return this.id=this.id.length>0?this.id:this.componentId,N` +`,nx=0,rx=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.attrId=++nx,this.componentId=`sl-tab-${this.attrId}`,this.panel=``,this.active=!1,this.closable=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tab`)}handleCloseClick(e){e.stopPropagation(),this.emit(`sl-close`)}handleActiveChange(){this.setAttribute(`aria-selected`,this.active?`true`:`false`)}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.tabIndex=this.disabled&&!this.active?-1:0}render(){return this.id=this.id.length>0?this.id:this.componentId,N`
`:``}
- `}};ex.styles=[wn,Qb],ex.dependencies={"sl-icon-button":Gb},D([M(`.tab`)],ex.prototype,`tab`,2),D([A({reflect:!0})],ex.prototype,`panel`,2),D([A({type:Boolean,reflect:!0})],ex.prototype,`active`,2),D([A({type:Boolean,reflect:!0})],ex.prototype,`closable`,2),D([A({type:Boolean,reflect:!0})],ex.prototype,`disabled`,2),D([A({type:Number,reflect:!0})],ex.prototype,`tabIndex`,2),D([I(`active`)],ex.prototype,`handleActiveChange`,1),D([I(`disabled`)],ex.prototype,`handleDisabledChange`,1),ex.define(`sl-tab`);var tx=k` + `}};rx.styles=[wn,tx],rx.dependencies={"sl-icon-button":Jb},D([M(`.tab`)],rx.prototype,`tab`,2),D([A({reflect:!0})],rx.prototype,`panel`,2),D([A({type:Boolean,reflect:!0})],rx.prototype,`active`,2),D([A({type:Boolean,reflect:!0})],rx.prototype,`closable`,2),D([A({type:Boolean,reflect:!0})],rx.prototype,`disabled`,2),D([A({type:Number,reflect:!0})],rx.prototype,`tabIndex`,2),D([I(`active`)],rx.prototype,`handleActiveChange`,1),D([I(`disabled`)],rx.prototype,`handleDisabledChange`,1),rx.define(`sl-tab`);var ix=k` :host { --max-width: 20rem; --hide-delay: 0ms; @@ -8458,7 +8461,7 @@ user-select: none; -webkit-user-select: none; } -`;function nx(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}var rx=class extends L{constructor(){super(),this.localize=new Cn(this),this.content=``,this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger=`hover focus`,this.hoist=!1,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger(`hover`)){let e=zs(getComputedStyle(this).getPropertyValue(`--show-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}},this.handleMouseOut=()=>{if(this.hasTrigger(`hover`)){let e=zs(getComputedStyle(this).getPropertyValue(`--hide-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}},this.addEventListener(`blur`,this.handleBlur,!0),this.addEventListener(`focus`,this.handleFocus,!0),this.addEventListener(`click`,this.handleClick),this.addEventListener(`mouseover`,this.handleMouseOver),this.addEventListener(`mouseout`,this.handleMouseOut)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}async handleOpenChange(){var e,t;if(this.open){if(this.disabled)return;this.emit(`sl-show`),`CloseWatcher`in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener(`keydown`,this.handleDocumentKeyDown),await Vs(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:n}=Ls(this,`tooltip.show`,{dir:this.localize.dir()});await Rs(this.popup.popup,t,n),this.popup.reposition(),this.emit(`sl-after-show`)}else{this.emit(`sl-hide`),(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await Vs(this.body);let{keyframes:e,options:n}=Ls(this,`tooltip.hide`,{dir:this.localize.dir()});await Rs(this.popup.popup,e,n),this.popup.active=!1,this.body.hidden=!0,this.emit(`sl-after-hide`)}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,nx(this,`sl-after-show`)}async hide(){if(this.open)return this.open=!1,nx(this,`sl-after-hide`)}render(){return N` +`;function ax(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}var ox=class extends L{constructor(){super(),this.localize=new Cn(this),this.content=``,this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger=`hover focus`,this.hoist=!1,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger(`hover`)){let e=Hs(getComputedStyle(this).getPropertyValue(`--show-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}},this.handleMouseOut=()=>{if(this.hasTrigger(`hover`)){let e=Hs(getComputedStyle(this).getPropertyValue(`--hide-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}},this.addEventListener(`blur`,this.handleBlur,!0),this.addEventListener(`focus`,this.handleFocus,!0),this.addEventListener(`click`,this.handleClick),this.addEventListener(`mouseover`,this.handleMouseOver),this.addEventListener(`mouseout`,this.handleMouseOut)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}async handleOpenChange(){var e,t;if(this.open){if(this.disabled)return;this.emit(`sl-show`),`CloseWatcher`in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener(`keydown`,this.handleDocumentKeyDown),await Ws(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:n}=Bs(this,`tooltip.show`,{dir:this.localize.dir()});await Vs(this.popup.popup,t,n),this.popup.reposition(),this.emit(`sl-after-show`)}else{this.emit(`sl-hide`),(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await Ws(this.body);let{keyframes:e,options:n}=Bs(this,`tooltip.hide`,{dir:this.localize.dir()});await Vs(this.popup.popup,e,n),this.popup.active=!1,this.body.hidden=!0,this.emit(`sl-after-hide`)}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,ax(this,`sl-after-show`)}async hide(){if(this.open)return this.open=!1,ax(this,`sl-after-hide`)}render(){return N` ${this.content}
- `}};rx.styles=[wn,tx],rx.dependencies={"sl-popup":z},D([M(`slot:not([name])`)],rx.prototype,`defaultSlot`,2),D([M(`.tooltip__body`)],rx.prototype,`body`,2),D([M(`sl-popup`)],rx.prototype,`popup`,2),D([A()],rx.prototype,`content`,2),D([A()],rx.prototype,`placement`,2),D([A({type:Boolean,reflect:!0})],rx.prototype,`disabled`,2),D([A({type:Number})],rx.prototype,`distance`,2),D([A({type:Boolean,reflect:!0})],rx.prototype,`open`,2),D([A({type:Number})],rx.prototype,`skidding`,2),D([A()],rx.prototype,`trigger`,2),D([A({type:Boolean})],rx.prototype,`hoist`,2),D([I(`open`,{waitUntilFirstUpdate:!0})],rx.prototype,`handleOpenChange`,1),D([I([`content`,`distance`,`hoist`,`placement`,`skidding`])],rx.prototype,`handleOptionsChange`,1),D([I(`disabled`)],rx.prototype,`handleDisabledChange`,1),Is(`tooltip.show`,{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:`ease`}}),Is(`tooltip.hide`,{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:`ease`}}),rx.define(`sl-tooltip`);var ix=[{max:276e4,value:6e4,unit:`minute`},{max:72e6,value:36e5,unit:`hour`},{max:5184e5,value:864e5,unit:`day`},{max:24192e5,value:6048e5,unit:`week`},{max:28512e6,value:2592e6,unit:`month`},{max:1/0,value:31536e6,unit:`year`}],ax=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.isoTime=``,this.relativeTime=``,this.date=new Date,this.format=`long`,this.numeric=`auto`,this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){let e=new Date,t=new Date(this.date);if(isNaN(t.getMilliseconds()))return this.relativeTime=``,this.isoTime=``,``;let n=t.getTime()-e.getTime(),{unit:r,value:i}=ix.find(e=>Math.abs(n)this.requestUpdate(),e)}return N` `}};D([j()],ax.prototype,`isoTime`,2),D([j()],ax.prototype,`relativeTime`,2),D([A()],ax.prototype,`date`,2),D([A()],ax.prototype,`format`,2),D([A()],ax.prototype,`numeric`,2),D([A({type:Boolean})],ax.prototype,`sync`,2);function ox(e){let t={second:1e3,minute:6e4,hour:36e5,day:864e5}[e];return t-Date.now()%t}ax.define(`sl-relative-time`);var sx=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.value=0,this.type=`decimal`,this.noGrouping=!1,this.currency=`USD`,this.currencyDisplay=`symbol`}render(){return isNaN(this.value)?``:this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};D([A({type:Number})],sx.prototype,`value`,2),D([A()],sx.prototype,`type`,2),D([A({attribute:`no-grouping`,type:Boolean})],sx.prototype,`noGrouping`,2),D([A()],sx.prototype,`currency`,2),D([A({attribute:`currency-display`})],sx.prototype,`currencyDisplay`,2),D([A({attribute:`minimum-integer-digits`,type:Number})],sx.prototype,`minimumIntegerDigits`,2),D([A({attribute:`minimum-fraction-digits`,type:Number})],sx.prototype,`minimumFractionDigits`,2),D([A({attribute:`maximum-fraction-digits`,type:Number})],sx.prototype,`maximumFractionDigits`,2),D([A({attribute:`minimum-significant-digits`,type:Number})],sx.prototype,`minimumSignificantDigits`,2),D([A({attribute:`maximum-significant-digits`,type:Number})],sx.prototype,`maximumSignificantDigits`,2),sx.define(`sl-format-number`),Gb.define(`sl-icon-button`);var cx=k` + `}};ox.styles=[wn,ix],ox.dependencies={"sl-popup":z},D([M(`slot:not([name])`)],ox.prototype,`defaultSlot`,2),D([M(`.tooltip__body`)],ox.prototype,`body`,2),D([M(`sl-popup`)],ox.prototype,`popup`,2),D([A()],ox.prototype,`content`,2),D([A()],ox.prototype,`placement`,2),D([A({type:Boolean,reflect:!0})],ox.prototype,`disabled`,2),D([A({type:Number})],ox.prototype,`distance`,2),D([A({type:Boolean,reflect:!0})],ox.prototype,`open`,2),D([A({type:Number})],ox.prototype,`skidding`,2),D([A()],ox.prototype,`trigger`,2),D([A({type:Boolean})],ox.prototype,`hoist`,2),D([I(`open`,{waitUntilFirstUpdate:!0})],ox.prototype,`handleOpenChange`,1),D([I([`content`,`distance`,`hoist`,`placement`,`skidding`])],ox.prototype,`handleOptionsChange`,1),D([I(`disabled`)],ox.prototype,`handleDisabledChange`,1),zs(`tooltip.show`,{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:`ease`}}),zs(`tooltip.hide`,{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:`ease`}}),ox.define(`sl-tooltip`);var sx=[{max:276e4,value:6e4,unit:`minute`},{max:72e6,value:36e5,unit:`hour`},{max:5184e5,value:864e5,unit:`day`},{max:24192e5,value:6048e5,unit:`week`},{max:28512e6,value:2592e6,unit:`month`},{max:1/0,value:31536e6,unit:`year`}],cx=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.isoTime=``,this.relativeTime=``,this.date=new Date,this.format=`long`,this.numeric=`auto`,this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){let e=new Date,t=new Date(this.date);if(isNaN(t.getMilliseconds()))return this.relativeTime=``,this.isoTime=``,``;let n=t.getTime()-e.getTime(),{unit:r,value:i}=sx.find(e=>Math.abs(n)this.requestUpdate(),e)}return N` `}};D([j()],cx.prototype,`isoTime`,2),D([j()],cx.prototype,`relativeTime`,2),D([A()],cx.prototype,`date`,2),D([A()],cx.prototype,`format`,2),D([A()],cx.prototype,`numeric`,2),D([A({type:Boolean})],cx.prototype,`sync`,2);function lx(e){let t={second:1e3,minute:6e4,hour:36e5,day:864e5}[e];return t-Date.now()%t}cx.define(`sl-relative-time`);var ux=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.value=0,this.type=`decimal`,this.noGrouping=!1,this.currency=`USD`,this.currencyDisplay=`symbol`}render(){return isNaN(this.value)?``:this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};D([A({type:Number})],ux.prototype,`value`,2),D([A()],ux.prototype,`type`,2),D([A({attribute:`no-grouping`,type:Boolean})],ux.prototype,`noGrouping`,2),D([A()],ux.prototype,`currency`,2),D([A({attribute:`currency-display`})],ux.prototype,`currencyDisplay`,2),D([A({attribute:`minimum-integer-digits`,type:Number})],ux.prototype,`minimumIntegerDigits`,2),D([A({attribute:`minimum-fraction-digits`,type:Number})],ux.prototype,`minimumFractionDigits`,2),D([A({attribute:`maximum-fraction-digits`,type:Number})],ux.prototype,`maximumFractionDigits`,2),D([A({attribute:`minimum-significant-digits`,type:Number})],ux.prototype,`minimumSignificantDigits`,2),D([A({attribute:`maximum-significant-digits`,type:Number})],ux.prototype,`maximumSignificantDigits`,2),ux.define(`sl-format-number`),Jb.define(`sl-icon-button`);var dx=k` :host { display: inline-block; } @@ -8596,7 +8599,7 @@ .tag--pill { border-radius: var(--sl-border-radius-pill); } -`,lx=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.variant=`neutral`,this.size=`medium`,this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit(`sl-remove`)}render(){return N` +`,fx=class extends L{constructor(){super(...arguments),this.localize=new Cn(this),this.variant=`neutral`,this.size=`medium`,this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit(`sl-remove`)}render(){return N` `:``} - `}};lx.styles=[wn,cx],lx.dependencies={"sl-icon-button":Gb},D([A({reflect:!0})],lx.prototype,`variant`,2),D([A({reflect:!0})],lx.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],lx.prototype,`pill`,2),D([A({type:Boolean})],lx.prototype,`removable`,2),lx.define(`sl-tag`);var ux=k` + `}};fx.styles=[wn,dx],fx.dependencies={"sl-icon-button":Jb},D([A({reflect:!0})],fx.prototype,`variant`,2),D([A({reflect:!0})],fx.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],fx.prototype,`pill`,2),D([A({type:Boolean})],fx.prototype,`removable`,2),fx.define(`sl-tag`);var px=k` :host { display: block; } @@ -9009,7 +9012,7 @@ ${this.helpText} - `}};Q.styles=[wn,en,ux],Q.dependencies={"sl-icon":cs},D([M(`.input__control`)],Q.prototype,`input`,2),D([j()],Q.prototype,`hasFocus`,2),D([A()],Q.prototype,`title`,2),D([A({reflect:!0})],Q.prototype,`type`,2),D([A()],Q.prototype,`name`,2),D([A()],Q.prototype,`value`,2),D([$t()],Q.prototype,`defaultValue`,2),D([A({reflect:!0})],Q.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`filled`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`pill`,2),D([A()],Q.prototype,`label`,2),D([A({attribute:`help-text`})],Q.prototype,`helpText`,2),D([A({type:Boolean})],Q.prototype,`clearable`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`disabled`,2),D([A()],Q.prototype,`placeholder`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`readonly`,2),D([A({attribute:`password-toggle`,type:Boolean})],Q.prototype,`passwordToggle`,2),D([A({attribute:`password-visible`,type:Boolean})],Q.prototype,`passwordVisible`,2),D([A({attribute:`no-spin-buttons`,type:Boolean})],Q.prototype,`noSpinButtons`,2),D([A({reflect:!0})],Q.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`required`,2),D([A()],Q.prototype,`pattern`,2),D([A({type:Number})],Q.prototype,`minlength`,2),D([A({type:Number})],Q.prototype,`maxlength`,2),D([A()],Q.prototype,`min`,2),D([A()],Q.prototype,`max`,2),D([A()],Q.prototype,`step`,2),D([A()],Q.prototype,`autocapitalize`,2),D([A()],Q.prototype,`autocorrect`,2),D([A()],Q.prototype,`autocomplete`,2),D([A({type:Boolean})],Q.prototype,`autofocus`,2),D([A()],Q.prototype,`enterkeyhint`,2),D([A({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Q.prototype,`spellcheck`,2),D([A()],Q.prototype,`inputmode`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleDisabledChange`,1),D([I(`step`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleStepChange`,1),D([I(`value`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleValueChange`,1),Q.define(`sl-input`);var $=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new dn(this,`[default]`,`prefix`,`suffix`),this.localize=new Cn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:cn}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?Cb`a`:Cb`button`;return Tb` + `}};Q.styles=[wn,en,px],Q.dependencies={"sl-icon":ds},D([M(`.input__control`)],Q.prototype,`input`,2),D([j()],Q.prototype,`hasFocus`,2),D([A()],Q.prototype,`title`,2),D([A({reflect:!0})],Q.prototype,`type`,2),D([A()],Q.prototype,`name`,2),D([A()],Q.prototype,`value`,2),D([$t()],Q.prototype,`defaultValue`,2),D([A({reflect:!0})],Q.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`filled`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`pill`,2),D([A()],Q.prototype,`label`,2),D([A({attribute:`help-text`})],Q.prototype,`helpText`,2),D([A({type:Boolean})],Q.prototype,`clearable`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`disabled`,2),D([A()],Q.prototype,`placeholder`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`readonly`,2),D([A({attribute:`password-toggle`,type:Boolean})],Q.prototype,`passwordToggle`,2),D([A({attribute:`password-visible`,type:Boolean})],Q.prototype,`passwordVisible`,2),D([A({attribute:`no-spin-buttons`,type:Boolean})],Q.prototype,`noSpinButtons`,2),D([A({reflect:!0})],Q.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`required`,2),D([A()],Q.prototype,`pattern`,2),D([A({type:Number})],Q.prototype,`minlength`,2),D([A({type:Number})],Q.prototype,`maxlength`,2),D([A()],Q.prototype,`min`,2),D([A()],Q.prototype,`max`,2),D([A()],Q.prototype,`step`,2),D([A()],Q.prototype,`autocapitalize`,2),D([A()],Q.prototype,`autocorrect`,2),D([A()],Q.prototype,`autocomplete`,2),D([A({type:Boolean})],Q.prototype,`autofocus`,2),D([A()],Q.prototype,`enterkeyhint`,2),D([A({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Q.prototype,`spellcheck`,2),D([A()],Q.prototype,`inputmode`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleDisabledChange`,1),D([I(`step`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleStepChange`,1),D([I(`value`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleValueChange`,1),Q.define(`sl-input`);var $=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new dn(this,`[default]`,`prefix`,`suffix`),this.localize=new Cn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:cn}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?Eb`a`:Eb`button`;return Ob` <${t} part="base" class=${En({button:!0,"button--default":this.variant==="default","button--primary":this.variant===`primary`,"button--success":this.variant===`success`,"button--neutral":this.variant===`neutral`,"button--warning":this.variant===`warning`,"button--danger":this.variant===`danger`,"button--text":this.variant===`text`,"button--small":this.size===`small`,"button--medium":this.size===`medium`,"button--large":this.size===`large`,"button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()===`rtl`,"button--has-label":this.hasSlotController.test(`[default]`),"button--has-prefix":this.hasSlotController.test(`prefix`),"button--has-suffix":this.hasSlotController.test(`suffix`)})} @@ -9033,10 +9036,10 @@ - ${this.caret?Tb` `:``} - ${this.loading?Tb``:``} + ${this.caret?Ob` `:``} + ${this.loading?Ob``:``} - `}};$.styles=[wn,yb],$.dependencies={"sl-icon":cs,"sl-spinner":js},D([M(`.button`)],$.prototype,`button`,2),D([j()],$.prototype,`hasFocus`,2),D([j()],$.prototype,`invalid`,2),D([A()],$.prototype,`title`,2),D([A({reflect:!0})],$.prototype,`variant`,2),D([A({reflect:!0})],$.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`caret`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`loading`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`outline`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`pill`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`circle`,2),D([A()],$.prototype,`type`,2),D([A()],$.prototype,`name`,2),D([A()],$.prototype,`value`,2),D([A()],$.prototype,`href`,2),D([A()],$.prototype,`target`,2),D([A()],$.prototype,`rel`,2),D([A()],$.prototype,`download`,2),D([A()],$.prototype,`form`,2),D([A({attribute:`formaction`})],$.prototype,`formAction`,2),D([A({attribute:`formenctype`})],$.prototype,`formEnctype`,2),D([A({attribute:`formmethod`})],$.prototype,`formMethod`,2),D([A({attribute:`formnovalidate`,type:Boolean})],$.prototype,`formNoValidate`,2),D([A({attribute:`formtarget`})],$.prototype,`formTarget`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],$.prototype,`handleDisabledChange`,1),$.define(`sl-button`);var dx=k` + `}};$.styles=[wn,Sb],$.dependencies={"sl-icon":ds,"sl-spinner":Ps},D([M(`.button`)],$.prototype,`button`,2),D([j()],$.prototype,`hasFocus`,2),D([j()],$.prototype,`invalid`,2),D([A()],$.prototype,`title`,2),D([A({reflect:!0})],$.prototype,`variant`,2),D([A({reflect:!0})],$.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`caret`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`loading`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`outline`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`pill`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`circle`,2),D([A()],$.prototype,`type`,2),D([A()],$.prototype,`name`,2),D([A()],$.prototype,`value`,2),D([A()],$.prototype,`href`,2),D([A()],$.prototype,`target`,2),D([A()],$.prototype,`rel`,2),D([A()],$.prototype,`download`,2),D([A()],$.prototype,`form`,2),D([A({attribute:`formaction`})],$.prototype,`formAction`,2),D([A({attribute:`formenctype`})],$.prototype,`formEnctype`,2),D([A({attribute:`formmethod`})],$.prototype,`formMethod`,2),D([A({attribute:`formnovalidate`,type:Boolean})],$.prototype,`formNoValidate`,2),D([A({attribute:`formtarget`})],$.prototype,`formTarget`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],$.prototype,`handleDisabledChange`,1),$.define(`sl-button`);var mx=k` :host { display: inline-block; } @@ -9201,7 +9204,7 @@ background-color: ButtonText; } } -`,fx=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new dn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return N` +`,hx=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new dn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return N`
@@ -9247,7 +9250,7 @@ ${this.helpText}
- `}};fx.styles=[wn,en,dx],D([M(`input[type="checkbox"]`)],fx.prototype,`input`,2),D([j()],fx.prototype,`hasFocus`,2),D([A()],fx.prototype,`title`,2),D([A()],fx.prototype,`name`,2),D([A()],fx.prototype,`value`,2),D([A({reflect:!0})],fx.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],fx.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],fx.prototype,`checked`,2),D([$t(`checked`)],fx.prototype,`defaultChecked`,2),D([A({reflect:!0})],fx.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],fx.prototype,`required`,2),D([A({attribute:`help-text`})],fx.prototype,`helpText`,2),D([I(`checked`,{waitUntilFirstUpdate:!0})],fx.prototype,`handleCheckedChange`,1),D([I(`disabled`,{waitUntilFirstUpdate:!0})],fx.prototype,`handleDisabledChange`,1),fx.define(`sl-switch`);var px=[`MODIFIED`,`ADDED`,`REMOVED`],mx=[`BREAKING`,`NON-BREAKING`],hx={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function gx(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function _x(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var vx=class extends F{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=Lb}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(An,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(An,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=hx[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,..._x(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>gx(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,_x(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:px,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:mx,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return N` + `}};hx.styles=[wn,en,mx],D([M(`input[type="checkbox"]`)],hx.prototype,`input`,2),D([j()],hx.prototype,`hasFocus`,2),D([A()],hx.prototype,`title`,2),D([A()],hx.prototype,`name`,2),D([A()],hx.prototype,`value`,2),D([A({reflect:!0})],hx.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],hx.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],hx.prototype,`checked`,2),D([$t(`checked`)],hx.prototype,`defaultChecked`,2),D([A({reflect:!0})],hx.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],hx.prototype,`required`,2),D([A({attribute:`help-text`})],hx.prototype,`helpText`,2),D([I(`checked`,{waitUntilFirstUpdate:!0})],hx.prototype,`handleCheckedChange`,1),D([I(`disabled`,{waitUntilFirstUpdate:!0})],hx.prototype,`handleDisabledChange`,1),hx.define(`sl-switch`);var gx=[`MODIFIED`,`ADDED`,`REMOVED`],_x=[`BREAKING`,`NON-BREAKING`],vx={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function yx(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function bx(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var xx=class extends F{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=Bb}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(An,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(An,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=vx[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,...bx(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>yx(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,bx(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:gx,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:_x,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return N` - `}};si.styles=[vte],si=yte([Ct(`pb33f-explorer-key`)],si);var ci=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},li;(function(e){e.NodeNodeBetweenLayers=`nodeNodeBetweenLayers`,e.NodeNode=`nodeNode`,e.EdgeNodeBetweenLayers=`edgeNodeBetweenLayers`,e.EdgeNode=`edgeNode`})(li||={});var bte=1e4,ui=class extends oi{static getObjectTypes(){return[{type:E.DOCUMENT,label:`Document`},{type:E.INFO,label:`Info`},{type:E.PATHS,label:`Paths`},{type:E.PATH_ITEM,label:`Path Item`},{type:E.OPERATION,label:`Operation`},{type:E.PARAMETER,label:`Parameter`},{type:E.REQUEST_BODY,label:`Request Body`},{type:E.RESPONSE,label:`Response`},{type:E.MEDIA_TYPE,label:`Media Type`},{type:E.SCHEMA,label:`Schema`},{type:E.COMPONENTS,label:`Components`},{type:E.SCHEMAS,label:`Schemas`},{type:E.RESPONSES,label:`Responses`},{type:E.PARAMETERS,label:`Parameters`},{type:E.REQUEST_BODIES,label:`Request Bodies`},{type:E.HEADERS,label:`Headers`},{type:E.SECURITY_SCHEMES,label:`Security Schemes`},{type:E.LINKS,label:`Links`},{type:E.CALLBACKS,label:`Callbacks`},{type:E.SERVERS,label:`Servers`},{type:E.SERVER,label:`Server`},{type:E.TAGS,label:`Tags`},{type:E.TAG,label:`Tag`},{type:E.EXTERNAL_DOCS,label:`External Docs`},{type:E.WEBHOOKS,label:`Webhooks`},{type:E.WEBHOOK,label:`Webhook`},{type:E.EXAMPLE,label:`Example`},{type:E.HEADER,label:`Header`},{type:E.LINK,label:`Link`},{type:E.CALLBACK,label:`Callback`},{type:E.SECURITY_SCHEME,label:`Security Scheme`},{type:E.POLYMORPHIC,label:`Polymorphic`}]}constructor(){super(),this.maxNodes=bte,this.initialized=!1,this._inPovMode=!1,this.renderEqualizer=!0,this.controls=new ri,this.keyComponent=new si,this.controls.searchComponent.graphResponse=this.graphResponse,this.equalizerOpen=!1,this.keyOpen=!1,this.equalizerWorker=new ii,this.boundHandleEQResult=this.handleEQResult.bind(this),this.boundOpenEqualizer=this.openEqualizer.bind(this),this.boundCloseEqualizer=this.closeEqualizer.bind(this),this.boundOpenKey=this.openKey.bind(this),this.boundCloseKey=this.closeKey.bind(this),this.boundExitPovMode=this.exitPovMode.bind(this),this.boundHandleAncestorToggle=this.handleAncestorToggle.bind(this),this.equalizerWorker.addEventListener(`message`,this.boundHandleEQResult),this.controls.addEventListener(On,this.boundOpenEqualizer),this.controls.addEventListener(kn,this.boundCloseEqualizer),this.addEventListener(An,this.boundOpenKey),this.addEventListener(jn,this.boundCloseKey),this.controls.addEventListener(In,this.boundExitPovMode),this.controls.addEventListener(Ln,this.boundHandleAncestorToggle),this.firstBoot=!0}disconnectedCallback(){super.disconnectedCallback(),this.equalizerWorker.removeEventListener(`message`,this.boundHandleEQResult),this.equalizerWorker.terminate(),this.controls.removeEventListener(On,this.boundOpenEqualizer),this.controls.removeEventListener(kn,this.boundCloseEqualizer),this.removeEventListener(An,this.boundOpenKey),this.removeEventListener(jn,this.boundCloseKey),this.controls.removeEventListener(In,this.boundExitPovMode),this.controls.removeEventListener(Ln,this.boundHandleAncestorToggle)}updated(){this.controls.renderEqualizer=this.renderEqualizer,this.controls.povMode=this.povMode}async runEQ(e=!1){return this.runEQPromise=new Promise(t=>{let n={};n.graphResponse=this.graphResponse,n.rebuild=e,this.extractSpacing(n);let r=e=>{this.equalizerWorker.removeEventListener(`message`,r),t(e.data)};this.equalizerWorker.addEventListener(`message`,r),this._visible||e?this.equalizerWorker.postMessage(n):(this._cachedEQ=n,this.equalizerWorker.removeEventListener(`message`,r),t(n))}),this.runEQPromise}handleEQResult(e){if(e.data.povMode){this.povMode=!0,this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.controls.povMode=!0,this._inPovMode||=!0;let t={nodes:e.data.nodes,edges:e.data.edges,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!0,povNodeId:e.data.povNodeId};this.dispatchEvent(new CustomEvent(Nn,{bubbles:!0,composed:!0,detail:{graph:t,spacing:t.spacing,povMode:!0,povNodeId:e.data.povNodeId}}))}else{if(this.controls.searchComponent.graphResponse=e.data,!this.firstBoot){let t={graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1};this.dispatchEvent(new CustomEvent(Nn,{bubbles:!0,composed:!0,detail:t}))}this.initialized||=!0,(this.firstBoot||e.data.rebuild)&&(this.dispatchEvent(new CustomEvent(Mn,{bubbles:!0,composed:!0,detail:{graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1}})),this.firstBoot&&setTimeout(()=>{this.activeNode||this.navigateToRoot(),this.firstBoot=!1},2e3))}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}openEqualizer(){this.equalizerOpen=!0,this.controls.equalizerClosed=!1,this.requestUpdate()}closeEqualizer(){this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.requestUpdate()}closeKey(){this.keyOpen=!1,this.controls.keyClosed=!0,this.requestUpdate()}openKey(){this.keyOpen=!0,this.controls.keyClosed=!1,this.requestUpdate()}isInitialized(){return this.initialized}nodeSpacingRangeChanged(e){let t=this.shadowRoot?.querySelector(`#${e}`),n=parseInt(t.value);switch(e){case li.NodeNodeBetweenLayers:this.nodeNodeBetweenLayers=n;break;case li.NodeNode:this.nodeNode=n;break;case li.EdgeNodeBetweenLayers:this.edgeNodeBetweenLayers=n;break;case li.EdgeNode:this.edgeNode=n}}bendChanged(){this.bendEdges=!this.bendEdges,this.bendEdges&&(this.bendPoints=!0)}bendPointsChanged(){this.bendPoints=!this.bendPoints}exitPovMode(){this.povMode=!1,this._inPovMode=!1,this.controls.povMode=!1,this.controls.equalizerClosed=!0,this.controls.showAncestors=!0,this.runEQ(!0)}handleAncestorToggle(e){let t=e.detail.showAncestors;this.dispatchEvent(new CustomEvent(`reprocessPov`,{bubbles:!0,composed:!0,detail:{showAncestors:t}}))}async initializeEqualizer(){return new Promise(e=>{if(this.initialized){e(this.graphResponse);return}let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t)})}componentVisible(){super.componentVisible()}componentHidden(){super.componentHidden(),this.controls.searchComponent.disableSearchPanel()}async sendConfig(){return new Promise(e=>{let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t),this.closeEqualizer()})}extractSpacing(e){e.spacing={nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints}}equalizer(){return T` + `}};si.styles=[vte],si=yte([wt(`pb33f-explorer-key`)],si);var ci=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},li;(function(e){e.NodeNodeBetweenLayers=`nodeNodeBetweenLayers`,e.NodeNode=`nodeNode`,e.EdgeNodeBetweenLayers=`edgeNodeBetweenLayers`,e.EdgeNode=`edgeNode`})(li||={});var bte=1e4,ui=class extends oi{static getObjectTypes(){return[{type:E.DOCUMENT,label:`Document`},{type:E.INFO,label:`Info`},{type:E.PATHS,label:`Paths`},{type:E.PATH_ITEM,label:`Path Item`},{type:E.OPERATION,label:`Operation`},{type:E.PARAMETER,label:`Parameter`},{type:E.REQUEST_BODY,label:`Request Body`},{type:E.RESPONSE,label:`Response`},{type:E.MEDIA_TYPE,label:`Media Type`},{type:E.SCHEMA,label:`Schema`},{type:E.COMPONENTS,label:`Components`},{type:E.SCHEMAS,label:`Schemas`},{type:E.RESPONSES,label:`Responses`},{type:E.PARAMETERS,label:`Parameters`},{type:E.REQUEST_BODIES,label:`Request Bodies`},{type:E.HEADERS,label:`Headers`},{type:E.SECURITY_SCHEMES,label:`Security Schemes`},{type:E.LINKS,label:`Links`},{type:E.CALLBACKS,label:`Callbacks`},{type:E.SERVERS,label:`Servers`},{type:E.SERVER,label:`Server`},{type:E.TAGS,label:`Tags`},{type:E.TAG,label:`Tag`},{type:E.EXTERNAL_DOCS,label:`External Docs`},{type:E.WEBHOOKS,label:`Webhooks`},{type:E.WEBHOOK,label:`Webhook`},{type:E.EXAMPLE,label:`Example`},{type:E.HEADER,label:`Header`},{type:E.LINK,label:`Link`},{type:E.CALLBACK,label:`Callback`},{type:E.SECURITY_SCHEME,label:`Security Scheme`},{type:E.POLYMORPHIC,label:`Polymorphic`}]}constructor(){super(),this.maxNodes=bte,this.initialized=!1,this._inPovMode=!1,this.renderEqualizer=!0,this.controls=new ri,this.keyComponent=new si,this.controls.searchComponent.graphResponse=this.graphResponse,this.equalizerOpen=!1,this.keyOpen=!1,this.equalizerWorker=new ii,this.boundHandleEQResult=this.handleEQResult.bind(this),this.boundOpenEqualizer=this.openEqualizer.bind(this),this.boundCloseEqualizer=this.closeEqualizer.bind(this),this.boundOpenKey=this.openKey.bind(this),this.boundCloseKey=this.closeKey.bind(this),this.boundExitPovMode=this.exitPovMode.bind(this),this.boundHandleAncestorToggle=this.handleAncestorToggle.bind(this),this.equalizerWorker.addEventListener(`message`,this.boundHandleEQResult),this.controls.addEventListener(kn,this.boundOpenEqualizer),this.controls.addEventListener(An,this.boundCloseEqualizer),this.addEventListener(jn,this.boundOpenKey),this.addEventListener(Mn,this.boundCloseKey),this.controls.addEventListener(Ln,this.boundExitPovMode),this.controls.addEventListener(Rn,this.boundHandleAncestorToggle),this.firstBoot=!0}disconnectedCallback(){super.disconnectedCallback(),this.equalizerWorker.removeEventListener(`message`,this.boundHandleEQResult),this.equalizerWorker.terminate(),this.controls.removeEventListener(kn,this.boundOpenEqualizer),this.controls.removeEventListener(An,this.boundCloseEqualizer),this.removeEventListener(jn,this.boundOpenKey),this.removeEventListener(Mn,this.boundCloseKey),this.controls.removeEventListener(Ln,this.boundExitPovMode),this.controls.removeEventListener(Rn,this.boundHandleAncestorToggle)}updated(){this.controls.renderEqualizer=this.renderEqualizer,this.controls.povMode=this.povMode}async runEQ(e=!1){return this.runEQPromise=new Promise(t=>{let n={};n.graphResponse=this.graphResponse,n.rebuild=e,this.extractSpacing(n);let r=e=>{this.equalizerWorker.removeEventListener(`message`,r),t(e.data)};this.equalizerWorker.addEventListener(`message`,r),this._visible||e?this.equalizerWorker.postMessage(n):(this._cachedEQ=n,this.equalizerWorker.removeEventListener(`message`,r),t(n))}),this.runEQPromise}handleEQResult(e){if(e.data.povMode){this.povMode=!0,this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.controls.povMode=!0,this._inPovMode||=!0;let t={nodes:e.data.nodes,edges:e.data.edges,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!0,povNodeId:e.data.povNodeId};this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0,detail:{graph:t,spacing:t.spacing,povMode:!0,povNodeId:e.data.povNodeId}}))}else{if(this.controls.searchComponent.graphResponse=e.data,!this.firstBoot){let t={graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1};this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0,detail:t}))}this.initialized||=!0,(this.firstBoot||e.data.rebuild)&&(this.dispatchEvent(new CustomEvent(Nn,{bubbles:!0,composed:!0,detail:{graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1}})),this.firstBoot&&setTimeout(()=>{this.activeNode||this.navigateToRoot(),this.firstBoot=!1},2e3))}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}openEqualizer(){this.equalizerOpen=!0,this.controls.equalizerClosed=!1,this.requestUpdate()}closeEqualizer(){this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.requestUpdate()}closeKey(){this.keyOpen=!1,this.controls.keyClosed=!0,this.requestUpdate()}openKey(){this.keyOpen=!0,this.controls.keyClosed=!1,this.requestUpdate()}isInitialized(){return this.initialized}nodeSpacingRangeChanged(e){let t=this.shadowRoot?.querySelector(`#${e}`),n=parseInt(t.value);switch(e){case li.NodeNodeBetweenLayers:this.nodeNodeBetweenLayers=n;break;case li.NodeNode:this.nodeNode=n;break;case li.EdgeNodeBetweenLayers:this.edgeNodeBetweenLayers=n;break;case li.EdgeNode:this.edgeNode=n}}bendChanged(){this.bendEdges=!this.bendEdges,this.bendEdges&&(this.bendPoints=!0)}bendPointsChanged(){this.bendPoints=!this.bendPoints}exitPovMode(){this.povMode=!1,this._inPovMode=!1,this.controls.povMode=!1,this.controls.equalizerClosed=!0,this.controls.showAncestors=!0,this.runEQ(!0)}handleAncestorToggle(e){let t=e.detail.showAncestors;this.dispatchEvent(new CustomEvent(`reprocessPov`,{bubbles:!0,composed:!0,detail:{showAncestors:t}}))}async initializeEqualizer(){return new Promise(e=>{if(this.initialized){e(this.graphResponse);return}let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t)})}componentVisible(){super.componentVisible()}componentHidden(){super.componentHidden(),this.controls.searchComponent.disableSearchPanel()}async sendConfig(){return new Promise(e=>{let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t),this.closeEqualizer()})}extractSpacing(e){e.spacing={nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints}}equalizer(){return T`

Layout Settings

@@ -2552,7 +2552,7 @@ ${this.equalizerOpen?this.equalizer():null} ${this.keyOpen?this.key():null}
- `}};ui.styles=[xn,ai,zn,ti],ci([Ot(`form`)],ui.prototype,`form`,void 0),ci([wt({type:Number})],ui.prototype,`nodeNodeBetweenLayers`,void 0),ci([wt({type:Number})],ui.prototype,`nodeNode`,void 0),ci([wt({type:Number})],ui.prototype,`edgeNodeBetweenLayers`,void 0),ci([wt({type:Number})],ui.prototype,`edgeNode`,void 0),ci([wt({type:Boolean})],ui.prototype,`bendEdges`,void 0),ci([wt({type:Boolean})],ui.prototype,`bendPoints`,void 0),ci([wt({type:Boolean})],ui.prototype,`renderEqualizer`,void 0),ci([wt({type:Boolean})],ui.prototype,`povMode`,void 0),ci([wt({type:Number})],ui.prototype,`maxNodes`,void 0),ui=ci([Ct(`pb33f-explorer-equalizer`)],ui);var di=xe` + `}};ui.styles=[Sn,ai,Bn,ti],ci([kt(`form`)],ui.prototype,`form`,void 0),ci([Tt({type:Number})],ui.prototype,`nodeNodeBetweenLayers`,void 0),ci([Tt({type:Number})],ui.prototype,`nodeNode`,void 0),ci([Tt({type:Number})],ui.prototype,`edgeNodeBetweenLayers`,void 0),ci([Tt({type:Number})],ui.prototype,`edgeNode`,void 0),ci([Tt({type:Boolean})],ui.prototype,`bendEdges`,void 0),ci([Tt({type:Boolean})],ui.prototype,`bendPoints`,void 0),ci([Tt({type:Boolean})],ui.prototype,`renderEqualizer`,void 0),ci([Tt({type:Boolean})],ui.prototype,`povMode`,void 0),ci([Tt({type:Number})],ui.prototype,`maxNodes`,void 0),ui=ci([wt(`pb33f-explorer-equalizer`)],ui);var di=xe` .change-icon { display: inline-block; margin-left: 6px; @@ -2581,19 +2581,19 @@ color: var(--font-color-sub1) } -`,fi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pi=class extends St{get changeCounts(){return Wt(this.node?.timeline)}get changeCategory(){return this.changeCounts.category}constructor(e,t){super(),this.disablePovMode=!1,this.hideExamples=!1,this.moreChildrenCount=0,this.nodeMap=e,this.violationMap=t||new Map,this.isLeaf=!1,this.refChecked=!1,this.outputs=[],this.inputs=[],this.dim=!1,this.expanded=!0}areDependentsVisible(){if(this.nodeMap&&this.node.nodes){for(let e=0;e=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pi=class extends Ct{get changeCounts(){return Gt(this.node?.timeline)}get changeCategory(){return this.changeCounts.category}constructor(e,t){super(),this.disablePovMode=!1,this.hideExamples=!1,this.moreChildrenCount=0,this.nodeMap=e,this.violationMap=t||new Map,this.isLeaf=!1,this.refChecked=!1,this.outputs=[],this.inputs=[],this.dim=!1,this.expanded=!0}areDependentsVisible(){if(this.nodeMap&&this.node.nodes){for(let e=0;e`}loadMore(){this.dispatchEvent(new CustomEvent(Fn,{bubbles:!0,composed:!0,detail:{parentId:this.node.id}}))}renderLoadMoreControl(){return this.moreChildrenCount>0&&this.expanded?T` + style="${this.node.nodes?``:`display: none`}">`}loadMore(){this.dispatchEvent(new CustomEvent(In,{bubbles:!0,composed:!0,detail:{parentId:this.node.id}}))}renderLoadMoreControl(){return this.moreChildrenCount>0&&this.expanded?T` ${this.moreChildrenCount} `:null}renderArrayType(){return this.node?.isArray?T` -
Array[]
`:null}activatePovMode(){this.dispatchEvent(new CustomEvent(See,{bubbles:!0,composed:!0,detail:{nodeId:this.node.id}}))}renderPovButton(){return this.disablePovMode?null:this.active&&this.node.id!==`root`?this.inPovMode&&this.povNodeId===this.node.id?null:T` +
Array[]
`:null}activatePovMode(){this.dispatchEvent(new CustomEvent(xee,{bubbles:!0,composed:!0,detail:{nodeId:this.node.id}}))}renderPovButton(){return this.disablePovMode?null:this.active&&this.node.id!==`root`?this.inPovMode&&this.povNodeId===this.node.id?null:T` `:T``}countResults(){return Gt(this.node,this.violationMap)}hasVacuumResults(e=this.countResults()){return e.errors+e.warnings+e.info>0}renderVacuumResults(e=this.countResults()){if(this.node?.violationIds&&this.node.violationIds.length>0&&this.violationMap){let t=T``,n=T``,r=T``;return e.errors+e.warnings+e.info<=0?T``:(e.errors>0&&(t=T` + ${this.renderLoadMoreControl()}`}renderActiveArrow(){return this.active?T``:T``}countResults(){return Kt(this.node,this.violationMap)}hasVacuumResults(e=this.countResults()){return e.errors+e.warnings+e.info>0}renderVacuumResults(e=this.countResults()){if(this.node?.violationIds&&this.node.violationIds.length>0&&this.violationMap){let t=T``,n=T``,r=T``;return e.errors+e.warnings+e.info<=0?T``:(e.errors>0&&(t=T` ${e.errors}`),e.warnings>0&&(n=T`${e.errors>0?T` | `:``} @@ -2621,7 +2621,7 @@ ${this.node.extensions?this.node.extensions:this.nodeInstance.extensions} - `}clicked(){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:this.id}}))}isSingleLineNode(){return this.height<=30}renderClasses(e=`rendered-element`,t=this.countResults(),n=this.changeCounts){let r=[e];this.active&&r.push(`active`),this.isSingleLineNode()&&r.push(`single-line`),this.isRef&&this.outputs.length==1&&r.push(`ref`),this.node.dependency&&this.dim&&r.push(`dependent-node`),this.hasVacuumResults(t)&&r.push(`has-vacuum-results`);let i=n.category;return i!==Ut.NONE&&i!==Ut.MODIFIED&&r.push(`change-${i}`),r.join(` `)}renderNodeWrapper(e){let t=this.countResults(),n=this.changeCounts;return T` + `}clicked(){this.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:{nodeId:this.id}}))}isSingleLineNode(){return this.height<=30}renderClasses(e=`rendered-element`,t=this.countResults(),n=this.changeCounts){let r=[e];this.active&&r.push(`active`),this.isSingleLineNode()&&r.push(`single-line`),this.isRef&&this.outputs.length==1&&r.push(`ref`),this.node.dependency&&this.dim&&r.push(`dependent-node`),this.hasVacuumResults(t)&&r.push(`has-vacuum-results`);let i=n.category;return i!==Wt.NONE&&i!==Wt.MODIFIED&&r.push(`change-${i}`),r.join(` `)}renderNodeWrapper(e){let t=this.countResults(),n=this.changeCounts;return T`
@@ -2658,9 +2658,9 @@
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}};pi.styles=[ai,di],fi([wt({type:Boolean})],pi.prototype,`active`,void 0),fi([wt({type:Boolean})],pi.prototype,`expanded`,void 0),fi([wt({type:Boolean})],pi.prototype,`inPovMode`,void 0),fi([wt({type:Boolean})],pi.prototype,`disablePovMode`,void 0),fi([wt({type:Boolean})],pi.prototype,`hideExamples`,void 0),fi([wt({type:String})],pi.prototype,`povNodeId`,void 0),pi=fi([Ct(`pb33f-explorer-graph-node`)],pi);var xte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},mi=class extends pi{constructor(e){super(e)}renderDocument(){let e=[];return e.push(T`
+ `}};pi.styles=[ai,di],fi([Tt({type:Boolean})],pi.prototype,`active`,void 0),fi([Tt({type:Boolean})],pi.prototype,`expanded`,void 0),fi([Tt({type:Boolean})],pi.prototype,`inPovMode`,void 0),fi([Tt({type:Boolean})],pi.prototype,`disablePovMode`,void 0),fi([Tt({type:Boolean})],pi.prototype,`hideExamples`,void 0),fi([Tt({type:String})],pi.prototype,`povNodeId`,void 0),pi=fi([wt(`pb33f-explorer-graph-node`)],pi);function mi(e){return e?.label===`AsyncAPI`||typeof e?.instance?.asyncapi==`string`?`AsyncAPI Document`:`OpenAPI Document`}function hi(e,t){let n=xte(t);return n?T`${n}${e}`:T``}function xte(e){let t=e?.action;return t===`send`||t===`receive`?t:void 0}var gi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_i=class extends pi{constructor(e){super(e)}renderDocument(){let e=[];e.push(T`
- OpenAPI Document + ${mi(this.node)}
`),this.document?.version&&e.push(T`
 > Version @@ -2677,7 +2677,10 @@ -
`),this.document?.tags&&e.push(T`
 > +
`);for(let[t,n,r]of[[`Channels`,this.document?.channels,E.CHANNELS],[`Operations`,this.document?.operations,E.OPERATIONS]])n&&e.push(T`
 > + + ${t}${n} +
`);return this.document?.tags&&e.push(T`
 > Tags ${this.document?.tags} @@ -2689,7 +2692,7 @@ Servers ${this.document?.servers} -
`),e}render(){return this.document=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};mi.styles=[ai],mi=xte([Ct(`pb33f-explorer-document-node`)],mi);var Ste=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+
`),e}render(){if(mi(this.node)===`AsyncAPI Document`){let e=this.nodeInstance,t=e=>e&&typeof e==`object`?Object.keys(e).length:0;this.document={version:e?.asyncapi,channels:t(e?.channels),operations:t(e?.operations),servers:t(e?.servers),components:Object.entries(e?.components??{}).reduce((e,[n,r])=>e+(n.startsWith(`x-`)?0:t(r)),0)}}else this.document=this.nodeInstance;return this.renderNodeWrapper(this.renderDocument())}};_i.styles=[ai],_i=gi([wt(`pb33f-explorer-document-node`)],_i);var Ste=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
Information ${this.renderDependentControl()} @@ -2698,7 +2701,7 @@
`),this.info?.version&&e.push(T`
 > Version ${this.info?.version} -
`),e}render(){return this.info=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};hi.styles=[ai,di],hi=Ste([Ct(`pb33f-explorer-info-node`)],hi);var Cte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];if(e.push(T`
+
`),e}render(){return this.info=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};vi.styles=[ai,di],vi=Ste([wt(`pb33f-explorer-info-node`)],vi);var Cte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];if(e.push(T`
License
`),this.license?.name&&e.push(T`
 > @@ -2707,13 +2710,13 @@ ${this.license?.identifier}
`),e;e.push(T`
 > ${this.license?.url} -
`)}return e}render(){return this.license=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};gi.styles=[ai,di],gi=Cte([Ct(`pb33f-explorer-license-node`)],gi);var wte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_i=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+
`)}return e}render(){return this.license=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};yi.styles=[ai,di],yi=Cte([wt(`pb33f-explorer-license-node`)],yi);var wte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
Contact
`),this.contact?.name&&e.push(T`
 > ${this.contact?.name} -
`),e}render(){return this.contact=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};_i.styles=[ai,di],_i=wte([Ct(`pb33f-explorer-contact-node`)],_i);var Tte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vi=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(t=T``),e.push(T` +
`),e}render(){return this.contact=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};bi.styles=[ai,di],bi=wte([wt(`pb33f-explorer-contact-node`)],bi);var Tte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xi=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(t=T``),e.push(T`
Tag ${t}
`),this.label&&e.push(T`
 > ${this.label} -
`),e}render(){return this.renderNodeWrapper(this.renderNode())}};vi.styles=[ai,di],vi=Tte([Ct(`pb33f-explorer-tag-node`)],vi);var yi=xe` +
`),e}render(){return this.renderNodeWrapper(this.renderNode())}};xi.styles=[ai,di],xi=Tte([wt(`pb33f-explorer-tag-node`)],xi);var Si=xe` a { color: var(--primary-color); text-decoration: none; @@ -2736,7 +2739,7 @@ a:active { color: var(--primary-color); } -`,Ete=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bi=class extends pi{constructor(e){super(e)}renderNode(){let e=T``;this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(e=T``);let t=[];return t.push(T`
+`,Ete=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ci=class extends pi{constructor(e){super(e)}renderNode(){let e=T``;this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(e=T``);let t=[];return t.push(T`
Server ${e}
`),this.server?.url&&t.push(T`
 > @@ -2746,7 +2749,7 @@ Variables ${Object.keys(this.server.variables).length} -
`),t}render(){return this.server=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};bi.styles=[ai,yi,di],bi=Ete([Ct(`pb33f-explorer-server-node`)],bi);var Dte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xi=class extends pi{constructor(e){super(e)}renderDocument(){let e=[];return e.push(T` +
`),t}render(){return this.server=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ci.styles=[ai,Si,di],Ci=Ete([wt(`pb33f-explorer-server-node`)],Ci);var Dte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wi=class extends pi{constructor(e){super(e)}renderDocument(){let e=[];return e.push(T`
@@ -2802,7 +2805,7 @@ Path Items ${Object.keys(this.components?.pathItems).length} -
`),e}render(){return this.components=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};xi.styles=[ai,di],xi=Dte([Ct(`pb33f-explorer-components-node`)],xi);function Ote(e){return e&&typeof e==`object`&&e.$ref!==void 0&&typeof e.$ref==`string`}var Si=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ci=class extends pi{constructor(e){super(e),this.embedded=!1}countExamples(e){return e?Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:1:0}schemaExampleCount(e){if(!e)return 0;let t=this.countExamples(e.examples);return e.example!==void 0&&t++,t}schemaDoesNotNeedExamples(e){let t=e.enum&&e.enum.length>0,n=e.type===`boolean`||Array.isArray(e.type)&&e.type.length===1&&e.type[0]===`boolean`,r=e.default!==void 0;return!!(t||n||r)}schemasHaveExampleCoverage(e){return e.length!==0&&e.every(e=>{if(Ote(e))return!1;let t=e;return this.schemaDoesNotNeedExamples(t)||this.schemaExampleCount(t)>0})}getExampleCoverage(e){if(!e)return{schemaExampleCount:0,allPropertiesHaveExamples:!1,allPolyChildrenHaveExamples:!1};if(this.cachedExampleCoverageSchema===e&&this.cachedExampleCoverage)return this.cachedExampleCoverage;let t=e.properties?Object.values(e.properties):[],n=[...e.anyOf||[],...e.oneOf||[],...e.allOf||[]],r={schemaExampleCount:this.schemaExampleCount(e),allPropertiesHaveExamples:this.schemasHaveExampleCoverage(t),allPolyChildrenHaveExamples:this.schemasHaveExampleCoverage(n)};return this.cachedExampleCoverageSchema=e,this.cachedExampleCoverage=r,r}renderNode(){let e=`Schema`;this.label&&(e=this.label);let t=[],n=T``;if(this.schema?.type&&(n=T`${this.schema.type}`,Array.isArray(this.schema.type)&&(n=T`${this.schema.type.map(e=>T`${e} `)}`)),this.embedded||t.push(T` + `),e}render(){return this.components=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};wi.styles=[ai,di],wi=Dte([wt(`pb33f-explorer-components-node`)],wi);function Ote(e){return e&&typeof e==`object`&&e.$ref!==void 0&&typeof e.$ref==`string`}var Ti=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ei=class extends pi{constructor(e){super(e),this.embedded=!1}countExamples(e){return e?Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:1:0}schemaExampleCount(e){if(!e)return 0;let t=this.countExamples(e.examples);return e.example!==void 0&&t++,t}schemaDoesNotNeedExamples(e){let t=e.enum&&e.enum.length>0,n=e.type===`boolean`||Array.isArray(e.type)&&e.type.length===1&&e.type[0]===`boolean`,r=e.default!==void 0;return!!(t||n||r)}schemasHaveExampleCoverage(e){return e.length!==0&&e.every(e=>{if(Ote(e))return!1;let t=e;return this.schemaDoesNotNeedExamples(t)||this.schemaExampleCount(t)>0})}getExampleCoverage(e){if(!e)return{schemaExampleCount:0,allPropertiesHaveExamples:!1,allPolyChildrenHaveExamples:!1};if(this.cachedExampleCoverageSchema===e&&this.cachedExampleCoverage)return this.cachedExampleCoverage;let t=e.properties?Object.values(e.properties):[],n=[...e.anyOf||[],...e.oneOf||[],...e.allOf||[]],r={schemaExampleCount:this.schemaExampleCount(e),allPropertiesHaveExamples:this.schemasHaveExampleCoverage(t),allPolyChildrenHaveExamples:this.schemasHaveExampleCoverage(n)};return this.cachedExampleCoverageSchema=e,this.cachedExampleCoverage=r,r}renderNode(){let e=`Schema`;this.label&&(e=this.label);let t=[],n=T``;if(this.schema?.type&&(n=T`${this.schema.type}`,Array.isArray(this.schema.type)&&(n=T`${this.schema.type.map(e=>T`${e} `)}`)),this.embedded||t.push(T`
@@ -2842,7 +2845,7 @@
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}return this.renderNodeWrapper(this.renderNode())}};Ci.styles=[ai,di],Si([wt({type:Boolean})],Ci.prototype,`embedded`,void 0),Ci=Si([Ct(`pb33f-explorer-schema-node`)],Ci);var kte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+ `}return this.renderNodeWrapper(this.renderNode())}};Ei.styles=[ai,di],Ti([Tt({type:Boolean})],Ei.prototype,`embedded`,void 0),Ei=Ti([wt(`pb33f-explorer-schema-node`)],Ei);var kte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Di=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
${this.label} ${this.renderDependentControl()} @@ -2851,7 +2854,7 @@
`),this.scheme?.flows&&e.push(T`
 > Flows ${Object.keys(this.scheme?.flows).length} -
`),e}render(){return this.scheme=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};wi.styles=[ai,di],wi=kte([Ct(`pb33f-explorer-security-scheme-node`)],wi);var Ate=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ti=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.parameter?.schema&&!this.parameter.schema.hasOwnProperty(`$ref`)){let e=this.parameter.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}let n=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(n=T``),e.push(T`
+
`),e}render(){return this.scheme=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Di.styles=[ai,di],Di=kte([wt(`pb33f-explorer-security-scheme-node`)],Di);var Ate=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oi=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.parameter?.schema&&!this.parameter.schema.hasOwnProperty(`$ref`)){let e=this.parameter.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}let n=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(n=T``),e.push(T`
${this.label}${n} ${t} ${this.renderDependentControl()} @@ -2870,7 +2873,7 @@ Media Types ${Object.keys(this.parameter?.content).length} -
`),e}render(){return this.parameter=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ti.styles=[ai,di],Ti=Ate([Ct(`pb33f-explorer-parameter-node`)],Ti);var jte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ei=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.header?.schema&&!this.header.schema.hasOwnProperty(`$ref`)){let e=this.header.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
+
`),e}render(){return this.parameter=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Oi.styles=[ai,di],Oi=Ate([wt(`pb33f-explorer-parameter-node`)],Oi);var jte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ki=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.header?.schema&&!this.header.schema.hasOwnProperty(`$ref`)){let e=this.header.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
${this.label} ${t} ${this.renderDependentControl()} @@ -2892,7 +2895,7 @@
- `),e}render(){return this.header=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ei.styles=[ai,di],Ei=jte([Ct(`pb33f-explorer-header-node`)],Ei);var Mte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Di=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=this.label.replaceAll(`/`,`/`);return e.push(T`
+ `),e}render(){return this.header=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ki.styles=[ai,di],ki=jte([wt(`pb33f-explorer-header-node`)],ki);var Mte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ai=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=this.label.replaceAll(`/`,`/`);return e.push(T`
${t} ${this.renderDependentControl()} @@ -2904,9 +2907,9 @@ Media Types ${Object.keys(this.requestBody?.content).length} -
`),e}render(){return this.requestBody=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Di.styles=[ai,di],Di=Mte([Ct(`pb33f-explorer-request-body-node`)],Di);var Nte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oi=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``,n=this.label.replaceAll(`/`,`/`);if(this.mediaType?.schema&&!this.mediaType.schema.hasOwnProperty(`$ref`)){let e=this.mediaType.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
+
`),e}render(){return this.requestBody=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ai.styles=[ai,di],Ai=Mte([wt(`pb33f-explorer-request-body-node`)],Ai);var Nte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ji=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``,n=this.label.replaceAll(`/`,`/`);if(this.mediaType?.schema&&!this.mediaType.schema.hasOwnProperty(`$ref`)){let e=this.mediaType.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
- ${Pt(n.toString())} ${t} + ${Ft(n.toString())} ${t} ${this.renderDependentControl()}
`),this.mediaType?.encoding&&e.push(T`
 > @@ -2918,9 +2921,9 @@
- `),e}render(){return this.mediaType=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Oi.styles=[ai,di],Oi=Nte([Ct(`pb33f-explorer-media-type-node`)],Oi);function ki(e){return e?e>=100&&e<400?`http200`:e>=400&&e<500?`http400`:e>=500?`http500`:`pending`:`pending`}var Pte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ai=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+ `),e}render(){return this.mediaType=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ji.styles=[ai,di],ji=Nte([wt(`pb33f-explorer-media-type-node`)],ji);function Mi(e){return e?e>=100&&e<400?`http200`:e>=400&&e<500?`http400`:e>=500?`http500`:`pending`:`pending`}var Pte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ni=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- ${this.label} + ${this.label} ${this.renderDependentControl()}
`),this.response?.content&&e.push(T`
 > @@ -2937,7 +2940,7 @@ Links ${Object.keys(this.response?.links).length} -
`),e}render(){return this.response=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ai.styles=[ai,Gr,di],Ai=Pte([Ct(`pb33f-explorer-response-node`)],Ai);var Fte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ji=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` +
`),e}render(){return this.response=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ni.styles=[ai,Gr,di],Ni=Pte([wt(`pb33f-explorer-response-node`)],Ni);var Fte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
Link Parameters ${Object.keys(this.link?.parameters).length} -
`),e}render(){return this.link=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ji.styles=[ai,yi,di],ji=Fte([Ct(`pb33f-explorer-link-node`)],ji);var Ite=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` +
`),e}render(){return this.link=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Pi.styles=[ai,Si,di],Pi=Fte([wt(`pb33f-explorer-link-node`)],Pi);var Ite=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
Expressions ${Object.keys(this.callback).filter(e=>!e.startsWith(`x-`)).length} -
`),e}render(){return this.callback=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Mi.styles=[ai,di],Mi=Ite([Ct(`pb33f-explorer-callback-node`)],Mi);var Lte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ni=class extends pi{constructor(e){super(e)}renderStatsForOperation(e){let t=0,n=0,r=0,i=T``,a=T``,o=T``;return e.parameters&&(n=e.parameters.length,i=T` +
`),e}render(){return this.callback=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Fi.styles=[ai,di],Fi=Ite([wt(`pb33f-explorer-callback-node`)],Fi);var Lte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ii=class extends pi{constructor(e){super(e)}renderStatsForOperation(e){let t=0,n=0,r=0,i=T``,a=T``,o=T``;return e.parameters&&(n=e.parameters.length,i=T` (${n})`),e.responses&&(r=Object.keys(e.responses).length,a=T` @@ -3028,12 +3031,12 @@ Path Servers ${Object.keys(this.pathItem?.servers).length} -
`),e}render(){return this.pathItem=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ni.styles=[ai,di],Ni=Lte([Ct(`pb33f-explorer-pathitem-node`)],Ni);var Rte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` +
`),e}render(){return this.pathItem=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ii.styles=[ai,di],Ii=Lte([wt(`pb33f-explorer-pathitem-node`)],Ii);var Rte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Li=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- + ${hi(this.label,this.nodeInstance)} ${this.renderDependentControl()}
`),this.operation?.operationId&&e.push(T`
 > @@ -3071,7 +3074,7 @@
`),this.operation?.deprecated&&e.push(T`
 > Deprecated -
`),e}render(){return this.operation=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Pi.styles=[ai,yi,di],Pi=Rte([Ct(`pb33f-explorer-operation-node`)],Pi);var zte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` + `),e}render(){return this.operation=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Li.styles=[ai,Si,di],Li=Rte([wt(`pb33f-explorer-operation-node`)],Li);var zte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ri=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
`),this.xml?.name&&e.push(T`
 > Name: ${this.xml.name} -
`),e}render(){return this.xml=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Fi.styles=[ai,di],Fi=zte([Ct(`pb33f-explorer-xml-node`)],Fi);var Bte=xe` +
`),e}render(){return this.xml=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ri.styles=[ai,di],Ri=zte([wt(`pb33f-explorer-xml-node`)],Ri);var Bte=xe` .cv-row { display: flex; align-items: center; @@ -3118,11 +3121,11 @@ .change-icon.added { border-color: rgba(0, 255, 0, 0.3); } -`,Vte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ii=class extends pi{constructor(e){super(e)}renderHeader(){switch(this.node?.type){case E.OPERATION:return T` +`,Vte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zi=class extends pi{constructor(e){super(e)}renderHeader(){switch(this.node?.type){case E.OPERATION:return T`
- + ${hi(this.label,this.node?.instance)} ${this.renderDependentControl()}
`;case E.PATH_ITEM:return T`
@@ -3134,7 +3137,7 @@
- OpenAPI Document + ${mi(this.node)} ${this.renderDependentControl()}
`;default:return T`
@@ -3142,12 +3145,12 @@ icon="${this.node?.type}"> ${this.label} ${this.renderDependentControl()} -
`}}childRowClicked(e,t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:e}}))}getOwnChanges(e){if(!e.timeline?.length)return[];let t=e.childChanges;if(!t?.length)return e.timeline;let n=new Set;for(let e of t){let t=this.nodeMap?.get(e.nodeId);if(t?.timeline)for(let e of t.timeline)n.add(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`)}return e.timeline.filter(e=>!n.has(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`))}renderChildRows(){let e=this.node?.childChanges;return!e||e.length===0?ct:T`${e.map(e=>T` +
`}}childRowClicked(e,t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:{nodeId:e}}))}getOwnChanges(e){if(!e.timeline?.length)return[];let t=e.childChanges;if(!t?.length)return e.timeline;let n=new Set;for(let e of t){let t=this.nodeMap?.get(e.nodeId);if(t?.timeline)for(let e of t.timeline)n.add(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`)}return e.timeline.filter(e=>!n.has(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`))}renderChildRows(){let e=this.node?.childChanges;return!e||e.length===0?ct:T`${e.map(e=>T`
 > - ${e.type===E.OPERATION?T``:e.type===E.PATH_ITEM?T``:T`${e.label}`} + ${e.type===E.OPERATION?hi(e.label,this.nodeMap?.get(e.nodeId)?.instance):e.type===E.PATH_ITEM?T``:T`${e.label}`}
- `)}`}renderChanges(e=this.changeCounts){if(!this.node?.timeline?.length)return T``;if(!this.node.childChanges?.length)return super.renderChanges(e);let t=this.getOwnChanges(this.node);if(!t.length)return T``;let n=Wt(t),r=this.renderBadges(n.breaking,n.modifications,n.additions,n.removals);return r.length===0?T``:T`
${r}
`}render(){let e=this.countResults(),t=this.changeCounts;return T` + `)}`}renderChanges(e=this.changeCounts){if(!this.node?.timeline?.length)return T``;if(!this.node.childChanges?.length)return super.renderChanges(e);let t=this.getOwnChanges(this.node);if(!t.length)return T``;let n=Gt(t),r=this.renderBadges(n.breaking,n.modifications,n.additions,n.removals);return r.length===0?T``:T`
${r}
`}render(){let e=this.countResults(),t=this.changeCounts;return T`
${this.renderHeader()} @@ -3156,18 +3159,18 @@
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}};Ii.styles=[ai,di,Bte],Ii=Vte([Ct(`pb33f-explorer-change-view-node`)],Ii);var Hte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Li=class extends St{constructor(){super(...arguments),this.active=!1,this.visible=!0}configure(e){this.id=e.id,e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.width!==void 0&&(this.width=e.width),e.height!==void 0&&(this.height=e.height),this.body=e.body,e.active!==void 0&&(this.active=e.active),e.visible!==void 0&&(this.visible=e.visible),this.requestUpdate()}render(){if(!this.visible)return ot``;let e=``;return e=this.body?this.body:`Object Node`,this.x==null||this.y==null?ot``:ot` + `}};zi.styles=[ai,di,Bte],zi=Vte([wt(`pb33f-explorer-change-view-node`)],zi);var Hte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bi=class extends Ct{constructor(){super(...arguments),this.active=!1,this.visible=!0}configure(e){this.id=e.id,e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.width!==void 0&&(this.width=e.width),e.height!==void 0&&(this.height=e.height),this.body=e.body,e.active!==void 0&&(this.active=e.active),e.visible!==void 0&&(this.visible=e.visible),this.requestUpdate()}render(){if(!this.visible)return ot``;let e=``;return e=this.body?this.body:`Object Node`,this.x==null||this.y==null?ot``:ot`
${e}
-
`}};Li=Hte([Ct(`pb33f-explorer-foreign-object`)],Li);function Ri(e){return function(){return e}}var zi=Math.PI,Bi=2*zi,Vi=1e-6,Ute=Bi-Vi;function Hi(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return Hi;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tVi){if(!(Math.abs(u*s-c*l)>Vi)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((zi-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Vi&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Vi||Math.abs(this._y1-l)>Vi)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Bi+Bi),d>Ute?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Vi&&this._append`A${n},${n},0,${+(d>=zi)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};Ui.prototype;function Gte(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ui(t)}Array.prototype.slice;function Kte(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Wi(e){this._context=e}Wi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function qte(e){return new Wi(e)}function Jte(e){return e[0]}function Yte(e){return e[1]}function Xte(e,t){var n=Ri(!0),r=null,i=qte,a=null,o=Gte(s);e=typeof e==`function`?e:e===void 0?Jte:Ri(e),t=typeof t==`function`?t:t===void 0?Yte:Ri(t);function s(s){var c,l=(s=Kte(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Zte=(function e(t){function n(e){return t===1?new Ki(e):new qi(e,t)}return n.beta=function(t){return e(+t)},n})(.85),Qte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ji=class extends St{constructor(){super(),this.roundCorners=!1,this.edgePathStyle=`d3`,this.visible=!0,this.targetIsLeaf=!1,this.sections=[],this.isDependency=!1,this.dim=!1,this.animated=!0,this.changeCategory=Ut.NONE}configure(e){this.edge=e.edge,e.bendPoints!==void 0&&(this.bendPoints=e.bendPoints),e.bendCurve!==void 0&&(this.bendCurve=e.bendCurve),e.roundCorners!==void 0&&(this.roundCorners=e.roundCorners),e.edgePathStyle!==void 0&&(this.edgePathStyle=e.edgePathStyle),e.visible!==void 0&&(this.visible=e.visible),e.animated!==void 0&&(this.animated=e.animated),e.isDependency!==void 0&&(this.isDependency=e.isDependency),e.dim!==void 0&&(this.dim=e.dim),e.changeCategory!==void 0&&(this.changeCategory=e.changeCategory),this.requestUpdate()}render(){if(!this.visible)return ot``;let e=0;return this.sections.length=0,this.edge.sections?.forEach(t=>{let n=`arrow`;this.edge.ref.length>0&&(n=`arrow-ref`),this.edge.poly&&this.edge.poly!=``&&(n=`arrow-poly`),this.targetIsLeaf&&(n=`leaf`),this.targetIsLeaf&&this.edge.ref.length>0&&(n=`leaf-ref`),this.targetIsLeaf&&this.edge.poly&&this.edge.poly!=``&&(n=`leaf-poly`);let r=this.changeCategory!==Ut.NONE&&this.changeCategory!==Ut.MODIFIED;r&&(n===`arrow`?n=`arrow-${this.changeCategory}`:n===`leaf`&&(n=`leaf-${this.changeCategory}`));let i=ene(t,this.bendPoints),a=this.buildPath(i),o=[];this.edge.ref.length>0&&o.push(`ref`),this.targetIsLeaf&&o.push(`target-leaf`),this.edge.poly&&this.edge.poly!=``&&o.push(this.edge.poly),this.edge.dependency&&this.dim&&o.push(`dependency`),this.animated||o.push(`no-animation`),r&&o.push(`change-${this.changeCategory}`);let s=ot` + `}};Bi=Hte([wt(`pb33f-explorer-foreign-object`)],Bi);function Vi(e){return function(){return e}}var Hi=Math.PI,Ui=2*Hi,Wi=1e-6,Ute=Ui-Wi;function Gi(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return Gi;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tWi){if(!(Math.abs(u*s-c*l)>Wi)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Hi-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Wi&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Wi||Math.abs(this._y1-l)>Wi)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Ui+Ui),d>Ute?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Wi&&this._append`A${n},${n},0,${+(d>=Hi)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};Ki.prototype;function Gte(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ki(t)}Array.prototype.slice;function Kte(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function qi(e){this._context=e}qi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function qte(e){return new qi(e)}function Jte(e){return e[0]}function Yte(e){return e[1]}function Xte(e,t){var n=Vi(!0),r=null,i=qte,a=null,o=Gte(s);e=typeof e==`function`?e:e===void 0?Jte:Vi(e),t=typeof t==`function`?t:t===void 0?Yte:Vi(t);function s(s){var c,l=(s=Kte(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Zte=(function e(t){function n(e){return t===1?new Yi(e):new Xi(e,t)}return n.beta=function(t){return e(+t)},n})(.85),Qte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zi=class extends Ct{constructor(){super(),this.roundCorners=!1,this.edgePathStyle=`d3`,this.visible=!0,this.targetIsLeaf=!1,this.sections=[],this.isDependency=!1,this.dim=!1,this.animated=!0,this.changeCategory=Wt.NONE}configure(e){this.edge=e.edge,e.bendPoints!==void 0&&(this.bendPoints=e.bendPoints),e.bendCurve!==void 0&&(this.bendCurve=e.bendCurve),e.roundCorners!==void 0&&(this.roundCorners=e.roundCorners),e.edgePathStyle!==void 0&&(this.edgePathStyle=e.edgePathStyle),e.visible!==void 0&&(this.visible=e.visible),e.animated!==void 0&&(this.animated=e.animated),e.isDependency!==void 0&&(this.isDependency=e.isDependency),e.dim!==void 0&&(this.dim=e.dim),e.changeCategory!==void 0&&(this.changeCategory=e.changeCategory),this.requestUpdate()}render(){if(!this.visible)return ot``;let e=0;return this.sections.length=0,this.edge.sections?.forEach(t=>{let n=`arrow`;this.edge.ref.length>0&&(n=`arrow-ref`),this.edge.poly&&this.edge.poly!=``&&(n=`arrow-poly`),this.targetIsLeaf&&(n=`leaf`),this.targetIsLeaf&&this.edge.ref.length>0&&(n=`leaf-ref`),this.targetIsLeaf&&this.edge.poly&&this.edge.poly!=``&&(n=`leaf-poly`);let r=this.changeCategory!==Wt.NONE&&this.changeCategory!==Wt.MODIFIED;r&&(n===`arrow`?n=`arrow-${this.changeCategory}`:n===`leaf`&&(n=`leaf-${this.changeCategory}`));let i=ene(t,this.bendPoints),a=this.buildPath(i),o=[];this.edge.ref.length>0&&o.push(`ref`),this.targetIsLeaf&&o.push(`target-leaf`),this.edge.poly&&this.edge.poly!=``&&o.push(this.edge.poly),this.edge.dependency&&this.dim&&o.push(`dependency`),this.animated||o.push(`no-animation`),r&&o.push(`change-${this.changeCategory}`);let s=ot` `;this.sections.push(s),e+=1}),ot`${this.sections}`}shouldUseRoundedPath(){return this.roundCorners&&this.edge.ref.length===0&&(!this.edge.poly||this.edge.poly===``)}buildPath(e){return!this.bendCurve||this.edgePathStyle===`polyline`?Yi(e):this.edgePathStyle===`rounded-orthogonal`?this.shouldUseRoundedPath()?rne(e):Yi(e):nne(e)||Yi(e)}};Ji=Qte([Ct(`pb33f-explorer-edge`)],Ji);var $te=Xte().x(e=>e.x).y(e=>e.y).curve(Zte.beta(1));function ene(e,t){if(!e)return[];let n=[e.startPoint];return t&&e.bendPoints&&n.push(...e.bendPoints),n.push(e.endPoint),tne(n)}function tne(e){if(e.length<=2)return[...e];let t=[];for(let n of e){let e=t[t.length-1];(!e||e.x!==n.x||e.y!==n.y)&&t.push(n)}if(t.length<=2)return t;let n=[t[0]];for(let e=1;e0);n+=` L ${m.x} ${m.y}`,n+=` A ${p} ${p} 0 0 ${g} ${h.x} ${h.y}`}let r=e[e.length-1];return n+=` L ${r.x} ${r.y}`,n}var ine=new Set([E.DOCUMENT,E.INFO,E.COMPONENTS,E.PATHS,E.SCHEMAS,E.PARAMETERS,E.RESPONSES,E.REQUEST_BODY,E.REQUEST_BODIES,E.TAGS,E.SECURITY,E.SECURITY_SCHEMES,E.SERVERS,E.HEADERS,E.LINKS,E.CALLBACKS,E.PATH_ITEMS,E.OPERATIONS,E.EXAMPLES,E.EXTENSIONS,E.WEBHOOKS]),ane=class{constructor(e){this.deps=e}createNodeComponent(e){let t=this.deps.getNodeMap();switch(e){case E.DOCUMENT:return new mi(t);case E.INFO:return new hi(t);case E.LICENSE:return new gi(t);case E.CONTACT:return new _i(t);case E.TAG:return new vi(t);case E.SERVER:return new bi(t);case E.COMPONENTS:return new xi(t);case E.SCHEMA:return new Ci(t);case E.SECURITY_SCHEME:return new wi(t);case E.PARAMETER:return new Ti(t);case E.HEADER:return new Ei(t);case E.REQUEST_BODY:return new Di(t);case E.MEDIA_TYPE:return new Oi(t);case E.RESPONSE:return new Ai(t);case E.LINK:return new ji(t);case E.CALLBACK:return new Mi(t);case E.PATH_ITEM:return new Ni(t);case E.OPERATION:return new Pi(t);case E.XML:return new Fi(t);default:return new pi(t)}}buildNodes(e){let t=[],n=[],r=new Map,i=new Map,a=this.deps.getNodeMap(),o=this.deps.getDefinitionCache();return e.graphResponse.nodes?.forEach(e=>{a.set(e.id,e),e.instance&&typeof e.instance==`object`&&!e.instance.$ref&&o.set(e.id,e)}),e.graphResponse.edges?.forEach(e=>{this.deps.getEdgeMap().set(e.id,e)}),e.graph.children?.forEach(s=>{let c=s;c.x&&c.y&&(c.x=Math.round(c.x),c.y=Math.round(c.y));let l=e.graphMode===Ht.change?new Ii(a):this.createNodeComponent(c.type);l.height=c.height,l.width=c.width-2,l.id=c.id,l.label=c.label,l.isLeaf=!(c.nodes&&c.nodes.length>0),l.expanded=e.expandedNodes.has(c.id),l.moreChildrenCount=e.hasMoreChildren.get(c.id)||0,l.node=c,l.inPovMode=e.povMode,l.povNodeId=e.povNodeId,l.disablePovMode=e.disablePovMode,l.hideExamples=e.hideExamples;let u=a.get(c.id);l.nodeInstance=this.resolveNodeInstance(c,o.get(c.id),u),l.violationMap=e.violationMap,c.violationIds=u?.violationIds;let d=u?.dependency||!1;l.isDependency=d,l.dim=d&&e.povMode;let f=e.activeNode&&e.activeNode.id===c.id;f&&(l.active=!0),r.set(c.id,l);let p=new Li,m={id:c.id,x:c.x,y:c.y,width:c.width,height:c.height,body:l,active:f,visible:!0};p.configure(m),n.push(p),i.set(c.id,p),t.push(c)}),{nodes:t,nodeComponents:n,renderGraphMap:r,nodeComponentMap:i}}buildEdges(e,t){let n=[],r=[],i=new Map,a=this.deps.getEdgeMap(),o=e.nodeLimitExceeded||e.graph.children&&e.graph.children.length>50;return e.graph.edges?.forEach(s=>{let c=s,l=t.get(c.sources[0]);l?.outputs.push(c);let u=t.get(c.targets[0]);u?.inputs.push(c),c.ref.length>0&&l&&(l.isRef=!0);let d=new Ji,f=a.get(c.id)?.dependency||!1,p=u?.changeCategory??Ut.NONE,m=!!u?.isLeaf&&!one(u?.node?.type)&&c.ref.length===0&&(!c.poly||c.poly===``),h={edge:c,visible:!e.collapsedEdges.has(c.id),animated:!o,bendPoints:e.bendPoints,bendCurve:e.bendEdges,edgePathStyle:e.edgePathStyle,roundCorners:m,isDependency:f,dim:f&&e.povMode,changeCategory:p};d.configure(h),n.push(c),r.push(d),i.set(c.id,d)}),this.applyLeafDetection(t,i),{edges:n,edgeComponents:r,edgeComponentMap:i}}resolveNodeInstance(e,t,n){return e.instance&&typeof e.instance==`object`&&!e.instance.$ref?e.instance:t?.instance||n?.instance}applyLeafDetection(e,t){e.forEach(e=>{e.outputs.length<=0?(e.isLeaf=!0,e.inputs.forEach(e=>{let n=t.get(e.id);n&&(n.targetIsLeaf=!0)})):e.outputs.forEach(n=>{if(n.ref!==``){let r=t.get(n.id);r&&r.targetIsLeaf&&(r.targetIsLeaf=!1,e.isLeaf=!1,e.isRef=!0)}})})}};function one(e){return e?ine.has(e):!1}function sne(){return ot` + marker-end="url(#${n})"/>`;this.sections.push(s),e+=1}),ot`${this.sections}`}shouldUseRoundedPath(){return this.roundCorners&&this.edge.ref.length===0&&(!this.edge.poly||this.edge.poly===``)}buildPath(e){return!this.bendCurve||this.edgePathStyle===`polyline`?Qi(e):this.edgePathStyle===`rounded-orthogonal`?this.shouldUseRoundedPath()?rne(e):Qi(e):nne(e)||Qi(e)}};Zi=Qte([wt(`pb33f-explorer-edge`)],Zi);var $te=Xte().x(e=>e.x).y(e=>e.y).curve(Zte.beta(1));function ene(e,t){if(!e)return[];let n=[e.startPoint];return t&&e.bendPoints&&n.push(...e.bendPoints),n.push(e.endPoint),tne(n)}function tne(e){if(e.length<=2)return[...e];let t=[];for(let n of e){let e=t[t.length-1];(!e||e.x!==n.x||e.y!==n.y)&&t.push(n)}if(t.length<=2)return t;let n=[t[0]];for(let e=1;e0);n+=` L ${m.x} ${m.y}`,n+=` A ${p} ${p} 0 0 ${g} ${h.x} ${h.y}`}let r=e[e.length-1];return n+=` L ${r.x} ${r.y}`,n}var ine=new Set([E.DOCUMENT,E.INFO,E.COMPONENTS,E.PATHS,E.SCHEMAS,E.PARAMETERS,E.RESPONSES,E.REQUEST_BODY,E.REQUEST_BODIES,E.TAGS,E.SECURITY,E.SECURITY_SCHEMES,E.SERVERS,E.HEADERS,E.LINKS,E.CALLBACKS,E.PATH_ITEMS,E.OPERATIONS,E.EXAMPLES,E.EXTENSIONS,E.WEBHOOKS]),ane=class{constructor(e){this.deps=e}createNodeComponent(e){let t=this.deps.getNodeMap();switch(e){case E.DOCUMENT:return new _i(t);case E.INFO:return new vi(t);case E.LICENSE:return new yi(t);case E.CONTACT:return new bi(t);case E.TAG:return new xi(t);case E.SERVER:return new Ci(t);case E.COMPONENTS:return new wi(t);case E.SCHEMA:return new Ei(t);case E.SECURITY_SCHEME:return new Di(t);case E.PARAMETER:return new Oi(t);case E.HEADER:return new ki(t);case E.REQUEST_BODY:return new Ai(t);case E.MEDIA_TYPE:return new ji(t);case E.RESPONSE:return new Ni(t);case E.LINK:return new Pi(t);case E.CALLBACK:return new Fi(t);case E.PATH_ITEM:return new Ii(t);case E.OPERATION:return new Li(t);case E.XML:return new Ri(t);default:return new pi(t)}}buildNodes(e){let t=[],n=[],r=new Map,i=new Map,a=this.deps.getNodeMap(),o=this.deps.getDefinitionCache();return e.graphResponse.nodes?.forEach(e=>{a.set(e.id,e),e.instance&&typeof e.instance==`object`&&!e.instance.$ref&&o.set(e.id,e)}),e.graphResponse.edges?.forEach(e=>{this.deps.getEdgeMap().set(e.id,e)}),e.graph.children?.forEach(s=>{let c=s;c.x&&c.y&&(c.x=Math.round(c.x),c.y=Math.round(c.y));let l=e.graphMode===Ut.change?new zi(a):this.createNodeComponent(c.type);l.height=c.height,l.width=c.width-2,l.id=c.id,l.label=c.label,l.isLeaf=!(c.nodes&&c.nodes.length>0),l.expanded=e.expandedNodes.has(c.id),l.moreChildrenCount=e.hasMoreChildren.get(c.id)||0,l.node=c,l.inPovMode=e.povMode,l.povNodeId=e.povNodeId,l.disablePovMode=e.disablePovMode,l.hideExamples=e.hideExamples;let u=a.get(c.id);l.nodeInstance=this.resolveNodeInstance(c,o.get(c.id),u),l.violationMap=e.violationMap,c.violationIds=u?.violationIds;let d=u?.dependency||!1;l.isDependency=d,l.dim=d&&e.povMode;let f=e.activeNode&&e.activeNode.id===c.id;f&&(l.active=!0),r.set(c.id,l);let p=new Bi,m={id:c.id,x:c.x,y:c.y,width:c.width,height:c.height,body:l,active:f,visible:!0};p.configure(m),n.push(p),i.set(c.id,p),t.push(c)}),{nodes:t,nodeComponents:n,renderGraphMap:r,nodeComponentMap:i}}buildEdges(e,t){let n=[],r=[],i=new Map,a=this.deps.getEdgeMap(),o=e.nodeLimitExceeded||e.graph.children&&e.graph.children.length>50;return e.graph.edges?.forEach(s=>{let c=s,l=t.get(c.sources[0]);l?.outputs.push(c);let u=t.get(c.targets[0]);u?.inputs.push(c),c.ref.length>0&&l&&(l.isRef=!0);let d=new Zi,f=a.get(c.id)?.dependency||!1,p=u?.changeCategory??Wt.NONE,m=!!u?.isLeaf&&!one(u?.node?.type)&&c.ref.length===0&&(!c.poly||c.poly===``),h={edge:c,visible:!e.collapsedEdges.has(c.id),animated:!o,bendPoints:e.bendPoints,bendCurve:e.bendEdges,edgePathStyle:e.edgePathStyle,roundCorners:m,isDependency:f,dim:f&&e.povMode,changeCategory:p};d.configure(h),n.push(c),r.push(d),i.set(c.id,d)}),this.applyLeafDetection(t,i),{edges:n,edgeComponents:r,edgeComponentMap:i}}resolveNodeInstance(e,t,n){return e.instance&&typeof e.instance==`object`&&!e.instance.$ref?e.instance:t?.instance||n?.instance}applyLeafDetection(e,t){e.forEach(e=>{e.outputs.length<=0?(e.isLeaf=!0,e.inputs.forEach(e=>{let n=t.get(e.id);n&&(n.targetIsLeaf=!0)})):e.outputs.forEach(n=>{if(n.ref!==``){let r=t.get(n.id);r&&r.targetIsLeaf&&(r.targetIsLeaf=!1,e.isLeaf=!1,e.isRef=!0)}})})}};function one(e){return e?ine.has(e):!1}function sne(){return ot` - `}var cne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},lne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},une=class{constructor(e){this.childrenMapCache=null,this.expandedNodes=new Set([`root`]),this.visibleChildrenCount=new Map,this.pathRevealNodes=new Set,this.pathRevealTarget=null,this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null,this.CHILD_BATCH_SIZE=10,this.callbacks=e}toggleNodeExpansion(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.clearPathRevealDescendants(e);this.expandedNodes.has(e)?this.expandedNodes.delete(e):t||this.expandedNodes.add(e),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}loadMoreChildren(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE;this.visibleChildrenCount.set(e,t+this.CHILD_BATCH_SIZE),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}isNodeExpanded(e){return this.expandedNodes.has(e)}isNodeCurrentlyVisible(e){if(e===`root`)return!0;let t=this.callbacks.getNodeMap().get(e);if(!t)return!1;let n=t.parentId||`root`;if(!this.expandedNodes.has(n))return!1;if(!this.childrenMapCache)return!0;let r=this.childrenMapCache.get(n);if(!r)return!0;let i=this.visibleChildrenCount.get(n)||this.CHILD_BATCH_SIZE,a=r.findIndex(t=>t.id===e);return a>=0&&ae.id===t.id);if(r<0){n.push(t);let r=n.length;r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}else r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}}revealPathToNode(e,t){if(t)return;let n=this.callbacks.getNodeMap(),r=[],i=e;for(;i&&i!==`root`;){let e=n.get(i);if(!e||this.isNodeCurrentlyVisible(i)||this.pathRevealNodes.has(i))break;r.push(i),i=e.parentId||`root`}let a=n.get(e);if(r.length===0)a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a),this.callbacks.moveToNode(a));else{r.reverse();for(let e of r)this.pathRevealNodes.add(e);this.pathRevealTarget=e,a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a)),this.callbacks.buildGraph().then(()=>{a&&this.callbacks.moveToNode(a)})}}clearPathReveal(){this.pathRevealNodes.size>0&&(this.pathRevealNodes.clear(),this.pathRevealTarget=null)}clearPathRevealDescendants(e){if(this.pathRevealNodes.size===0)return!1;let t=this.callbacks.getNodeMap(),n=[];for(let r of this.pathRevealNodes){let i=r;for(;i&&i!==`root`;){let a=t.get(i);if(!a)break;if(a.parentId===e){n.push(r);break}i=a.parentId}}for(let e of n)this.pathRevealNodes.delete(e);return this.pathRevealTarget&&n.includes(this.pathRevealTarget)&&(this.pathRevealTarget=null),n.length>0}hasPathReveal(){return this.pathRevealNodes.size>0}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(){if(this.childrenMapCache)return;this.childrenMapCache=new Map;let e=this.callbacks.getGraphResponseNodes()||[];for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}getState(){return{expandedNodes:this.expandedNodes,visibleChildrenCount:this.visibleChildrenCount,pathRevealNodes:this.pathRevealNodes,pathRevealTarget:this.pathRevealTarget}}saveState(){return{expandedNodes:new Set(this.expandedNodes),visibleChildrenCount:new Map(this.visibleChildrenCount)}}restoreState(e){this.expandedNodes.clear();for(let t of e.expandedNodes)this.expandedNodes.add(t);this.visibleChildrenCount.clear();for(let[t,n]of e.visibleChildrenCount)this.visibleChildrenCount.set(t,n)}},dne=class{constructor(e){this.childrenMapCache=null,this.positionCache=new Map,this.callbacks=e}filterGraphByExpansion(e,t,n){let r=new Map,i=new Map,a=this.callbacks.getExpandedNodes(),o=this.callbacks.getVisibleChildrenCount(),s=this.callbacks.getPathRevealNodes(),c=this.callbacks.getChildBatchSize(),l=e.find(e=>e.id===`root`);if(l&&r.set(`root`,l),this.buildChildrenMapCache(e),n)for(let t of e)r.set(t.id,t);else{let e=[`root`],t=0;for(;ta&&i.set(n,t.length-a)}else if(s.size>0){let t=this.childrenMapCache.get(n)||[];for(let n of t)s.has(n.id)&&(r.set(n.id,n),e.push(n.id))}}}let u=t.filter(e=>!(!r.has(e.sources[0])||!r.has(e.targets[0])));return{nodes:Array.from(r.values()),edges:u,hasMoreChildren:i}}preservePositions(e){this.positionCache.clear(),e?.children?.forEach(e=>{e.x!==void 0&&e.y!==void 0&&this.positionCache.set(e.id,{x:e.x,y:e.y})})}applyPositionHints(e){for(let t of e){let e=this.positionCache.get(t.id);e&&(t.x=e.x,t.y=e.y)}}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(e){if(!this.childrenMapCache){this.childrenMapCache=new Map;for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}}clearPositionCache(){this.positionCache.clear()}getPositionCache(){return this.positionCache}},Xi=.22,Zi=.5;function fne(e){switch(e){case`LEFT`:return{x:.78,y:Zi};case`UP`:return{x:Zi,y:.78};case`DOWN`:return{x:Zi,y:Xi};default:return{x:Xi,y:Zi}}}function pne(e,t,n){let r=fne(e),i=(t.x||0)+(t.width||0)/2,a=(t.y||0)+(t.height||0)/2;return{x:i-n.width*r.x,y:a-n.height*r.y}}function mne(e,t){let n=(e.x||0)+(e.width||0)/2,r=(e.y||0)+(e.height||0)/2;return{x:n-t.width/2,y:r-t.height/2}}function Qi(e,t,n){return t.id===`root`?pne(e,t,n):mne(t,n)}var $i=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ea,ta;(function(e){e.UP=`UP`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`})(ta||={});var na=ea=class extends oi{get expandedNodes(){return this.expansionManager.expandedNodes}get visibleChildrenCount(){return this.expansionManager.visibleChildrenCount}get pathRevealNodes(){return this.expansionManager.pathRevealNodes}get pathRevealTarget(){return this.expansionManager.pathRevealTarget}constructor(){super(),this.edgePathStyle=`d3`,this.embeddedMode=!1,this.disablePovMode=!1,this.hideExamples=!1,this.hideControls=!1,this.changeView=!1,this.graphMode=Ht.standard,this.povPreviousViewBox=null,this.povFocusNodeId=null,this.layoutRequestId=0,this.nodeComponents=[],this.edgeComponents=[],this.scale=1,this.isDragging=!1,this.dragThreshold=5,this.dragStartViewBoxX=0,this.dragStartViewBoxY=0,this.previousActiveNodeId=null,this.zoomMax=8e3,this.zoomMin=50,this.collapsedNodes=new Map,this.collapsedEdges=new Map,this.hasMoreChildren=new Map,this.currentAnimationId=0,this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null,this.resizeObserver=null,this.containerWidth=0,this.containerHeight=0,this._resizeRafId=0,this.ready=!1,this.direction=ta.RIGHT,this.nodeMap=new Map,this.definitionCache=new Map,this.edgeMap=new Map,this.violationMap=new Map,this.renderGraphMap=new Map,this.edgeComponentMap=new Map,this.nodeComponentMap=new Map,this.collapsedNodes=new Map,this.nodes=[],this.edges=[],this.nodeNodeBetweenLayers=`100`,this.nodeNode=`80`,this.edgeNodeBetweenLayers=`30`,this.edgeNode=`120`,this.bendEdges=!0,this.bendPoints=!0,this.nodeLimitExceeded=!1,this.nodeLimit=-1,this.equalizer=new ui,this.renderEqualizer=!0,this.equalizer.renderEqualizer=this.renderEqualizer,this.equalizer.nodeNodeBetweenLayers=parseInt(this.nodeNodeBetweenLayers),this.equalizer.nodeNode=parseInt(this.nodeNode),this.equalizer.edgeNodeBetweenLayers=parseInt(this.edgeNodeBetweenLayers),this.equalizer.edgeNode=parseInt(this.edgeNode),this.equalizer.bendEdges=this.bendEdges,this.equalizer.bendPoints=this.bendPoints,this.zoomX=null,this.zoomY=null,this.zoomW=null,this.zoomH=null,this.graphDependentWorker=ea.graphDependentWorkerFactory?ea.graphDependentWorkerFactory():new cne,this.elkLayoutWorker=ea.elkWorkerFactory?ea.elkWorkerFactory():new lne,this.elkLayoutWorker.onerror=e=>{console.error(`[explorer] ELK layout worker error:`,e)},this.expansionManager=new une({getNodeMap:()=>this.nodeMap,getGraphResponseNodes:()=>this.graphResponse?.nodes,buildGraph:()=>this.buildGraph(),moveToNode:e=>this.moveToNode(e),getActiveNode:()=>this.activeNode,setActiveNode:e=>{if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}if(this.activeNode=e,e&&this.renderGraphMap){let t=this.renderGraphMap.get(e.id);t&&(t.active=!0)}this.requestUpdate()},setPreviousActiveNodeId:e=>{this.previousActiveNodeId=e},getNodeScreenOffset:e=>this.getNodeScreenOffset(e),restoreNodeScreenPosition:(e,t)=>this.restoreNodeScreenPosition(e,t),preservePositions:()=>this.layoutFilterManager.preservePositions(this.graph)}),this.layoutFilterManager=new dne({getExpandedNodes:()=>this.expansionManager.expandedNodes,getVisibleChildrenCount:()=>this.expansionManager.visibleChildrenCount,getPathRevealNodes:()=>this.expansionManager.pathRevealNodes,getChildBatchSize:()=>this.expansionManager.CHILD_BATCH_SIZE}),this.explorerComponentFactory=new ane({getNodeMap:()=>this.nodeMap,getDefinitionCache:()=>this.definitionCache,getEdgeMap:()=>this.edgeMap}),this.boundZoomIn=this.zoomIn.bind(this),this.boundZoomOut=this.zoomOut.bind(this),this.boundRotate=this.rotate.bind(this),this.boundReset=this.reset.bind(this),this.boundEqualizerChanged=this.equalizerChanged.bind(this),this.boundEqualizerFiltered=this.equalizerFiltered.bind(this),this.boundDependentNodeClicked=this.dependentNodeClicked.bind(this),this.boundLoadMoreChildren=this.loadMoreChildrenClicked.bind(this),this.boundPovModeExit=this.handlePovModeExit.bind(this),this.boundGraphDependentMessage=e=>{this.toggleNodeVisibility(e.data.filteredNodes,e.data.filteredEdges,e.data.collapse)},this.equalizer.addEventListener(wn,this.boundZoomIn),this.equalizer.addEventListener(Tn,this.boundZoomOut),this.equalizer.addEventListener(En,this.boundRotate),this.equalizer.addEventListener(Dn,this.boundReset),this.equalizer.addEventListener(Mn,this.boundEqualizerChanged),this.equalizer.addEventListener(Nn,this.boundEqualizerFiltered),this.addEventListener(Pn,this.boundDependentNodeClicked),this.addEventListener(Fn,this.boundLoadMoreChildren),this.equalizer.addEventListener(In,this.boundPovModeExit),this.graphDependentWorker.onmessage=this.boundGraphDependentMessage}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.elkLayoutWorker?.terminate(),this.graphDependentWorker?.terminate(),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.equalizer.removeEventListener(wn,this.boundZoomIn),this.equalizer.removeEventListener(Tn,this.boundZoomOut),this.equalizer.removeEventListener(En,this.boundRotate),this.equalizer.removeEventListener(Dn,this.boundReset),this.equalizer.removeEventListener(Mn,this.boundEqualizerChanged),this.equalizer.removeEventListener(Nn,this.boundEqualizerFiltered),this.equalizer.removeEventListener(In,this.boundPovModeExit),this.removeEventListener(Pn,this.boundDependentNodeClicked),this.removeEventListener(Fn,this.boundLoadMoreChildren)}setupResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._resizeRafId),this._resizeRafId=requestAnimationFrame(()=>{let{width:e,height:t}=this.getBoundingClientRect();e!==0&&t!==0&&(Math.abs(e-this.containerWidth)<2&&Math.abs(t-this.containerHeight)<2||(this.containerWidth=e,this.containerHeight=t))})}),this.resizeObserver.observe(this)}updateViewBoxForContainer(){if(!this.svgItem||this.containerWidth===0||this.containerHeight===0)return;let e=this.svgItem.viewBox.baseVal,t=e.x+e.width/2,n=e.y+e.height/2,r=this.containerWidth/this.containerHeight,i=this.buildBaseViewBox().base+300,a,o;r>1?(o=i,a=i*r):(a=i,o=i/r),e.width=a,e.height=o,e.x=t-a/2,e.y=n-o/2,this.zoomW=a,this.zoomH=o,this.zoomX=e.x,this.zoomY=e.y}toggleNodeVisibility(e,t,n){e.forEach(e=>{if(!e?.id)return;let t=this.nodeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedNodes.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedNodes.delete(e.id)))}),t.forEach(e=>{if(!e?.id)return;let t=this.edgeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedEdges.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedEdges.delete(e.id)))}),this.requestUpdate()}dependentNodeClicked(e){let t=e.detail.node.id;this.toggleNodeExpansion(t)}loadMoreChildrenClicked(e){this.loadMoreChildren(e.detail.parentId)}enterPovMode(e,t){let n=this.expansionManager.saveState();this.savedExpandedNodes=n.expandedNodes,this.savedVisibleChildrenCount=n.visibleChildrenCount,this.povMode=!0,this.povFocusNodeId=e,this.povNode=t,this.povNodeId=e}exitPovMode(e=!0){this.savedExpandedNodes&&this.savedVisibleChildrenCount&&(this.expansionManager.restoreState({expandedNodes:this.savedExpandedNodes,visibleChildrenCount:this.savedVisibleChildrenCount}),this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null),this.graphResponse?.nodes?.forEach(e=>{e.dependency&&=!1}),this.graphResponse?.edges?.forEach(e=>{e.dependency&&=!1}),this.povMode=!1,this.povNode=null,this.equalizer.controls.povNode=null,e&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache())}handlePovModeExit(){this.exitPovMode(!0)}updateGraphResponse(e){this.graphResponse=e,this.graphMode=e.mode||(this.changeView?Ht.change:Ht.standard),this.changeView=this.graphMode===Ht.change,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.equalizer.graphResponse=e,this.equalizer.controls.searchComponent.graphResponse=e,this.violationMap.clear(),e.violations&&Object.entries(e.violations).forEach(([e,t])=>{this.violationMap.set(e,t)}),this.buildGraphAndRender().then(()=>{this.activeNode||this.centerOnRoot()})}rotate(){switch(this.direction){case ta.LEFT:this.direction=ta.UP;break;case ta.DOWN:this.direction=ta.LEFT;break;case ta.RIGHT:this.direction=ta.DOWN;break;case ta.UP:this.direction=ta.RIGHT}this.resetNodes(),this.buildGraphAndRender().then(()=>{this.activeNode&&this.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id}}))})}mouseMove(e){if(this.grabbed){let t=Math.sqrt((e.clientX-this.startX)**2+(e.clientY-this.startY)**2);!this.isDragging&&t>this.dragThreshold&&(this.isDragging=!0),this.isDragging&&requestAnimationFrame(()=>{let t=this.svgItem.viewBox.baseVal,n=(e.clientX-this.startX)*(t.width/this.svgItem.clientWidth),r=(e.clientY-this.startY)*(t.height/this.svgItem.clientHeight);t.x=this.dragStartViewBoxX-n,t.y=this.dragStartViewBoxY-r,this.zoomX=t.x,this.zoomY=t.y,this.zoomW=t.width,this.zoomH=t.height})}}mouseDown(e){this.grabbed=!0;let t=this.svgItem.viewBox.baseVal;this.startX=e.clientX,this.startY=e.clientY,this.dragStartViewBoxX=t.x,this.dragStartViewBoxY=t.y}mouseUp(){this.grabbed=!1,this.isDragging=!1}zoom(e){e=Math.abs(e)<.02?e/Math.abs(e)*.02:e;let[t,n,r,i]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],a=t+r/2,o=n+i/2,[s,c]=[r+r*e,i+i*e],l=a-s/2,u=o-c/2;s>=this.zoomMax||s<=this.zoomMin||(this.svgItem.setAttribute(`viewBox`,`${l} ${u} ${s} ${c}`),this.zoomX=l,this.zoomY=u,this.zoomW=s,this.zoomH=c)}zoomIn(){this.zoom(-.1)}zoomOut(){this.zoom(.1)}onWheel(e){e.preventDefault();let t=e.deltaY/1e3;t=Math.abs(t)<.02?.02*e.deltaY/Math.abs(e.deltaY):t;let n=new DOMPoint(e.clientX,e.clientY);n=n.matrixTransform(this.svgItem.getScreenCTM()?.inverse());let[r,i,a,o]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],[s,c]=[(n.x-r)/a,(n.y-i)/o],[l,u]=[a+a*t,o+o*t],d=n.x-s*l,f=n.y-c*u;l>=this.zoomMax||l<=this.zoomMin||Number.isNaN(d)||Number.isNaN(f)||Number.isNaN(l)||Number.isNaN(u)||requestAnimationFrame(()=>{this.zoomX=d,this.zoomY=f,this.zoomW=l,this.zoomH=u,this.svgItem.setAttribute(`viewBox`,`${d} ${f} ${l} ${u}`)})}equalizerFiltered(e){this.clearPathReveal(),this.graphResponse=e.detail.graph,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.extractEQPreferences(e);let t=e.detail.povMode;this.povNodeId=e.detail.povNodeId||null,t&&(this.povMode=!0),this.buildGraphAndRender().then(()=>{if(t&&this.povFocusNodeId){this.equalizer.controls.povNode=this.povNode;let e=this.graphResponse.nodes?.find(e=>e.id===this.povFocusNodeId);e&&this.moveToNode(e,!1)}else this.activeNode||this.centerOnRoot()})}extractEQPreferences(e){e.detail.spacing&&(e.detail.spacing.nodeNodeBetweenLayers&&(this.nodeNodeBetweenLayers=e.detail.spacing.nodeNodeBetweenLayers.toString()),e.detail.spacing.nodeNode&&(this.nodeNode=e.detail.spacing.nodeNode.toString()),e.detail.spacing.edgeNodeBetweenLayers&&(this.edgeNodeBetweenLayers=e.detail.spacing.edgeNodeBetweenLayers.toString()),e.detail.spacing.edgeNode&&(this.edgeNode=e.detail.spacing.edgeNode.toString()),this.bendEdges=!!e.detail.spacing.bendEdges,this.bendPoints=!!e.detail.spacing.bendPoints)}equalizerChanged(e){this.clearPathReveal(),e.detail.graph.nodes.length>0&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.graphResponse=e.detail.graph),this.extractEQPreferences(e),this.buildGraphAndRender().then(()=>{this.activeNode&&this._visible&&this.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id,first:!0}}))})}resetNodes(){this.graph.children?.forEach(e=>{let t=e;delete t.x,delete t.y}),this.graph.edges?.forEach(e=>{delete e.sections})}filterGraphByExpansion(e,t){return this.layoutFilterManager.filterGraphByExpansion(e,t,this.povMode)}preservePositions(){this.layoutFilterManager.preservePositions(this.graph)}applyPositionHints(e){this.layoutFilterManager.applyPositionHints(e)}toggleNodeExpansion(e){this.expansionManager.toggleNodeExpansion(e)}loadMoreChildren(e){this.expansionManager.loadMoreChildren(e)}isNodeExpanded(e){return this.expansionManager.isNodeExpanded(e)}isNodeCurrentlyVisible(e){return this.expansionManager.isNodeCurrentlyVisible(e)}invalidateChildrenCache(){this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache()}addToNodeMap(e){this.nodeMap.has(e.id)||this.nodeMap.set(e.id,e)}ensureNodesVisible(e){this.expansionManager.ensureNodesVisible(e)}revealPathToNode(e){this.expansionManager.revealPathToNode(e,this.povMode)}clearPathReveal(){this.expansionManager.clearPathReveal()}generateOptions(){return{"spacing.nodeNodeBetweenLayers":this.nodeNodeBetweenLayers,"spacing.nodeNode":this.nodeNode,"elk.nodeLabels.placement":`INSIDE V_CENTER H_RIGHT`,"elk.algorithm":`layered`,"elk.direction":this.direction,"org.eclipse.elk.edgeRouting":`ORTHOGONAL`,"elk.layered.unnecessaryBendpoints":`true`,"elk.layered.spacing.edgeNodeBetweenLayers":this.edgeNodeBetweenLayers,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment":`BALANCED`,"org.eclipse.elk.layered.cycleBreaking.strategy":`DEPTH_FIRST`,"nodePlacement.strategy":`BRANDES_KOEPF`,"org.eclipse.elk.spacing.edgeLabel":`0`,"org.eclipse.elk.spacing.edgeNode":this.edgeNode,"org.eclipse.elk.layered.edgeLabels.sideSelection":`ALWAYS_UP`,"org.eclipse.elk.spacing.portPort":`10`,"elk.interactive":`true`,"elk.interactiveLayout":`true`,"elk.layered.interactiveReferencePoint":`CENTER`,"elk.layered.crossingMinimization.semiInteractive":`true`,"elk.layered.considerModelOrder.strategy":`NODES_AND_EDGES`}}buildGraph(){let e=++this.layoutRequestId,t=this.generateOptions(),n=this.filterGraphByExpansion(this.graphResponse.nodes||[],this.graphResponse.edges||[]);this.hasMoreChildren=n.hasMoreChildren,this.applyPositionHints(n.nodes);let r={id:`root`,layoutOptions:t,children:n.nodes,edges:n.edges};return this.nodeMap.clear(),this.equalizer.graphResponse||(this.equalizer.graphResponse=this.graphResponse),new Promise((n,i)=>{let a=()=>{this.elkLayoutWorker.removeEventListener(`message`,o),this.elkLayoutWorker.removeEventListener(`error`,s)},o=t=>{t.data.requestId===e&&(a(),t.data.success?(this.graph=t.data.graph,this.readyGo(),n(this.graph)):i(Error(t.data.error)))},s=e=>{a(),i(Error(`Worker error: ${e.message}`))};this.elkLayoutWorker.addEventListener(`message`,o),this.elkLayoutWorker.addEventListener(`error`,s),this.elkLayoutWorker.postMessage({requestId:e,graph:r,layoutOptions:t})})}async buildGraphAndRender(){await this.buildGraph(),await this.updateComplete,await new Promise(e=>requestAnimationFrame(()=>e()))}buildNodes(){this.nodeMap.clear(),this.definitionCache.clear(),this.edgeMap.clear();let e=this.explorerComponentFactory.buildNodes({graph:this.graph,graphResponse:this.graphResponse,expandedNodes:this.expandedNodes,hasMoreChildren:this.hasMoreChildren,povMode:this.povMode,povNodeId:this.povNodeId,activeNode:this.activeNode,violationMap:this.violationMap,disablePovMode:this.disablePovMode,hideExamples:this.hideExamples,changeView:this.changeView,graphMode:this.graphMode});this.nodes=e.nodes,this.nodeComponents=e.nodeComponents,this.renderGraphMap=e.renderGraphMap,this.nodeComponentMap=e.nodeComponentMap}buildEdges(){let e=this.explorerComponentFactory.buildEdges({graph:this.graph,collapsedEdges:this.collapsedEdges,bendPoints:this.bendPoints,bendEdges:this.bendEdges,edgePathStyle:this.edgePathStyle,nodeLimitExceeded:this.nodeLimitExceeded,povMode:this.povMode},this.renderGraphMap);this.edges=e.edges,this.edgeComponents=e.edgeComponents,this.edgeComponentMap=e.edgeComponentMap}readyGo(){this.buildNodes(),this.buildEdges(),this.ready=!0,this.requestUpdate()}reset(){this.direction=ta.RIGHT;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}this.zoomH=n,this.zoomW=t,this.zoomX=-150,this.zoomY=-150,this.svgItem.setAttribute(`viewBox`,`-150 -150 ${t} ${n}`),this.resetNodes(),this.buildGraphAndRender().then(()=>{this.snapToRoot()})}snapToRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=Qi(this.direction,e,t);this.snapViewBox(n.x,n.y)}this.activeNode=e}}resetSelection(){if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}this.activeNode=void 0,this.previousActiveNodeId=null,this.requestUpdate()}centerOnRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=Qi(this.direction,e,t);this.animateViewBox(n.x,n.y,200)}this.activeNode=e}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}animateViewBox(e,t,n){let r=++this.currentAnimationId,i=this.svgItem.viewBox.baseVal,a=i.x,o=i.y,s=performance.now(),c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=this;function u(d){if(r!==l.currentAnimationId)return;let f=d-s,p=Math.min(f/n,1),m=c(p);i.x=a+(e-a)*m,i.y=o+(t-o)*m,l.zoomX=i.x,l.zoomY=i.y,p<1&&requestAnimationFrame(u)}requestAnimationFrame(u)}snapViewBox(e,t){this.currentAnimationId++;let n=this.svgItem.viewBox.baseVal;n.x=e,n.y=t,this.zoomX=e,this.zoomY=t,this.zoomW=n.width,this.zoomH=n.height}getNodeScreenOffset(e){let t=this.svgItem?.viewBox?.baseVal;if(!t)return null;let n=this.graph?.children?.find(t=>t.id===e);if(!n||n.x===void 0||n.y===void 0)return null;let r=n.width||0,i=n.height||0,a=n.x+r/2,o=n.y+i/2,s=t.x+t.width/2,c=t.y+t.height/2;return{x:a-s,y:o-c}}restoreNodeScreenPosition(e,t){let n=this.svgItem?.viewBox?.baseVal;if(!n)return;let r=this.graph?.children?.find(t=>t.id===e);if(!r||r.x===void 0||r.y===void 0)return;let i=r.width||0,a=r.height||0,o=r.x+i/2,s=r.y+a/2,c=o-t.x,l=s-t.y,u=c-n.width/2,d=l-n.height/2;this.snapViewBox(u,d)}moveToNode(e,t=!1,n=!1){if(this.svgItem&&this.graph?.children){let t=this.svgItem.viewBox.baseVal,r=this.graph.children.find(t=>t.id===e.id);if(r&&r.x!==void 0&&r.y!==void 0&&!r.filtered){let e=Qi(this.direction,r,t);n?this.snapViewBox(e.x,e.y):this.animateViewBox(e.x,e.y,200)}}}buildBaseViewBox(){let e=600,t=0;return this.graph.children?.forEach(()=>{e+=1,t+=20}),t>900&&(t=900),{base:e,offset:t}}render(){if(!this.ready)return T` + `}var cne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},lne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},une=class{constructor(e){this.childrenMapCache=null,this.expandedNodes=new Set([`root`]),this.visibleChildrenCount=new Map,this.pathRevealNodes=new Set,this.pathRevealTarget=null,this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null,this.CHILD_BATCH_SIZE=10,this.callbacks=e}toggleNodeExpansion(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.clearPathRevealDescendants(e);this.expandedNodes.has(e)?this.expandedNodes.delete(e):t||this.expandedNodes.add(e),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}loadMoreChildren(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE;this.visibleChildrenCount.set(e,t+this.CHILD_BATCH_SIZE),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}isNodeExpanded(e){return this.expandedNodes.has(e)}isNodeCurrentlyVisible(e){if(e===`root`)return!0;let t=this.callbacks.getNodeMap().get(e);if(!t)return!1;let n=t.parentId||`root`;if(!this.expandedNodes.has(n))return!1;if(!this.childrenMapCache)return!0;let r=this.childrenMapCache.get(n);if(!r)return!0;let i=this.visibleChildrenCount.get(n)||this.CHILD_BATCH_SIZE,a=r.findIndex(t=>t.id===e);return a>=0&&ae.id===t.id);if(r<0){n.push(t);let r=n.length;r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}else r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}}revealPathToNode(e,t){if(t)return;let n=this.callbacks.getNodeMap(),r=[],i=e;for(;i&&i!==`root`;){let e=n.get(i);if(!e||this.isNodeCurrentlyVisible(i)||this.pathRevealNodes.has(i))break;r.push(i),i=e.parentId||`root`}let a=n.get(e);if(r.length===0)a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a),this.callbacks.moveToNode(a));else{r.reverse();for(let e of r)this.pathRevealNodes.add(e);this.pathRevealTarget=e,a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a)),this.callbacks.buildGraph().then(()=>{a&&this.callbacks.moveToNode(a)})}}clearPathReveal(){this.pathRevealNodes.size>0&&(this.pathRevealNodes.clear(),this.pathRevealTarget=null)}clearPathRevealDescendants(e){if(this.pathRevealNodes.size===0)return!1;let t=this.callbacks.getNodeMap(),n=[];for(let r of this.pathRevealNodes){let i=r;for(;i&&i!==`root`;){let a=t.get(i);if(!a)break;if(a.parentId===e){n.push(r);break}i=a.parentId}}for(let e of n)this.pathRevealNodes.delete(e);return this.pathRevealTarget&&n.includes(this.pathRevealTarget)&&(this.pathRevealTarget=null),n.length>0}hasPathReveal(){return this.pathRevealNodes.size>0}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(){if(this.childrenMapCache)return;this.childrenMapCache=new Map;let e=this.callbacks.getGraphResponseNodes()||[];for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}getState(){return{expandedNodes:this.expandedNodes,visibleChildrenCount:this.visibleChildrenCount,pathRevealNodes:this.pathRevealNodes,pathRevealTarget:this.pathRevealTarget}}saveState(){return{expandedNodes:new Set(this.expandedNodes),visibleChildrenCount:new Map(this.visibleChildrenCount)}}restoreState(e){this.expandedNodes.clear();for(let t of e.expandedNodes)this.expandedNodes.add(t);this.visibleChildrenCount.clear();for(let[t,n]of e.visibleChildrenCount)this.visibleChildrenCount.set(t,n)}},dne=class{constructor(e){this.childrenMapCache=null,this.positionCache=new Map,this.callbacks=e}filterGraphByExpansion(e,t,n){let r=new Map,i=new Map,a=this.callbacks.getExpandedNodes(),o=this.callbacks.getVisibleChildrenCount(),s=this.callbacks.getPathRevealNodes(),c=this.callbacks.getChildBatchSize(),l=e.find(e=>e.id===`root`);if(l&&r.set(`root`,l),this.buildChildrenMapCache(e),n)for(let t of e)r.set(t.id,t);else{let e=[`root`],t=0;for(;ta&&i.set(n,t.length-a)}else if(s.size>0){let t=this.childrenMapCache.get(n)||[];for(let n of t)s.has(n.id)&&(r.set(n.id,n),e.push(n.id))}}}let u=t.filter(e=>!(!r.has(e.sources[0])||!r.has(e.targets[0])));return{nodes:Array.from(r.values()),edges:u,hasMoreChildren:i}}preservePositions(e){this.positionCache.clear(),e?.children?.forEach(e=>{e.x!==void 0&&e.y!==void 0&&this.positionCache.set(e.id,{x:e.x,y:e.y})})}applyPositionHints(e){for(let t of e){let e=this.positionCache.get(t.id);e&&(t.x=e.x,t.y=e.y)}}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(e){if(!this.childrenMapCache){this.childrenMapCache=new Map;for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}}clearPositionCache(){this.positionCache.clear()}getPositionCache(){return this.positionCache}},$i=.22,ea=.5;function fne(e){switch(e){case`LEFT`:return{x:.78,y:ea};case`UP`:return{x:ea,y:.78};case`DOWN`:return{x:ea,y:$i};default:return{x:$i,y:ea}}}function pne(e,t,n){let r=fne(e),i=(t.x||0)+(t.width||0)/2,a=(t.y||0)+(t.height||0)/2;return{x:i-n.width*r.x,y:a-n.height*r.y}}function mne(e,t){let n=(e.x||0)+(e.width||0)/2,r=(e.y||0)+(e.height||0)/2;return{x:n-t.width/2,y:r-t.height/2}}function ta(e,t,n){return t.id===`root`?pne(e,t,n):mne(t,n)}var na=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ra,ia;(function(e){e.UP=`UP`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`})(ia||={});var aa=ra=class extends oi{get expandedNodes(){return this.expansionManager.expandedNodes}get visibleChildrenCount(){return this.expansionManager.visibleChildrenCount}get pathRevealNodes(){return this.expansionManager.pathRevealNodes}get pathRevealTarget(){return this.expansionManager.pathRevealTarget}constructor(){super(),this.edgePathStyle=`d3`,this.embeddedMode=!1,this.disablePovMode=!1,this.hideExamples=!1,this.hideControls=!1,this.changeView=!1,this.graphMode=Ut.standard,this.povPreviousViewBox=null,this.povFocusNodeId=null,this.layoutRequestId=0,this.nodeComponents=[],this.edgeComponents=[],this.scale=1,this.isDragging=!1,this.dragThreshold=5,this.dragStartViewBoxX=0,this.dragStartViewBoxY=0,this.previousActiveNodeId=null,this.zoomMax=8e3,this.zoomMin=50,this.collapsedNodes=new Map,this.collapsedEdges=new Map,this.hasMoreChildren=new Map,this.currentAnimationId=0,this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null,this.resizeObserver=null,this.containerWidth=0,this.containerHeight=0,this._resizeRafId=0,this.ready=!1,this.direction=ia.RIGHT,this.nodeMap=new Map,this.definitionCache=new Map,this.edgeMap=new Map,this.violationMap=new Map,this.renderGraphMap=new Map,this.edgeComponentMap=new Map,this.nodeComponentMap=new Map,this.collapsedNodes=new Map,this.nodes=[],this.edges=[],this.nodeNodeBetweenLayers=`100`,this.nodeNode=`80`,this.edgeNodeBetweenLayers=`30`,this.edgeNode=`120`,this.bendEdges=!0,this.bendPoints=!0,this.nodeLimitExceeded=!1,this.nodeLimit=-1,this.equalizer=new ui,this.renderEqualizer=!0,this.equalizer.renderEqualizer=this.renderEqualizer,this.equalizer.nodeNodeBetweenLayers=parseInt(this.nodeNodeBetweenLayers),this.equalizer.nodeNode=parseInt(this.nodeNode),this.equalizer.edgeNodeBetweenLayers=parseInt(this.edgeNodeBetweenLayers),this.equalizer.edgeNode=parseInt(this.edgeNode),this.equalizer.bendEdges=this.bendEdges,this.equalizer.bendPoints=this.bendPoints,this.zoomX=null,this.zoomY=null,this.zoomW=null,this.zoomH=null,this.graphDependentWorker=ra.graphDependentWorkerFactory?ra.graphDependentWorkerFactory():new cne,this.elkLayoutWorker=ra.elkWorkerFactory?ra.elkWorkerFactory():new lne,this.elkLayoutWorker.onerror=e=>{console.error(`[explorer] ELK layout worker error:`,e)},this.expansionManager=new une({getNodeMap:()=>this.nodeMap,getGraphResponseNodes:()=>this.graphResponse?.nodes,buildGraph:()=>this.buildGraph(),moveToNode:e=>this.moveToNode(e),getActiveNode:()=>this.activeNode,setActiveNode:e=>{if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}if(this.activeNode=e,e&&this.renderGraphMap){let t=this.renderGraphMap.get(e.id);t&&(t.active=!0)}this.requestUpdate()},setPreviousActiveNodeId:e=>{this.previousActiveNodeId=e},getNodeScreenOffset:e=>this.getNodeScreenOffset(e),restoreNodeScreenPosition:(e,t)=>this.restoreNodeScreenPosition(e,t),preservePositions:()=>this.layoutFilterManager.preservePositions(this.graph)}),this.layoutFilterManager=new dne({getExpandedNodes:()=>this.expansionManager.expandedNodes,getVisibleChildrenCount:()=>this.expansionManager.visibleChildrenCount,getPathRevealNodes:()=>this.expansionManager.pathRevealNodes,getChildBatchSize:()=>this.expansionManager.CHILD_BATCH_SIZE}),this.explorerComponentFactory=new ane({getNodeMap:()=>this.nodeMap,getDefinitionCache:()=>this.definitionCache,getEdgeMap:()=>this.edgeMap}),this.boundZoomIn=this.zoomIn.bind(this),this.boundZoomOut=this.zoomOut.bind(this),this.boundRotate=this.rotate.bind(this),this.boundReset=this.reset.bind(this),this.boundEqualizerChanged=this.equalizerChanged.bind(this),this.boundEqualizerFiltered=this.equalizerFiltered.bind(this),this.boundDependentNodeClicked=this.dependentNodeClicked.bind(this),this.boundLoadMoreChildren=this.loadMoreChildrenClicked.bind(this),this.boundPovModeExit=this.handlePovModeExit.bind(this),this.boundGraphDependentMessage=e=>{this.toggleNodeVisibility(e.data.filteredNodes,e.data.filteredEdges,e.data.collapse)},this.equalizer.addEventListener(Tn,this.boundZoomIn),this.equalizer.addEventListener(En,this.boundZoomOut),this.equalizer.addEventListener(Dn,this.boundRotate),this.equalizer.addEventListener(On,this.boundReset),this.equalizer.addEventListener(Nn,this.boundEqualizerChanged),this.equalizer.addEventListener(Pn,this.boundEqualizerFiltered),this.addEventListener(Fn,this.boundDependentNodeClicked),this.addEventListener(In,this.boundLoadMoreChildren),this.equalizer.addEventListener(Ln,this.boundPovModeExit),this.graphDependentWorker.onmessage=this.boundGraphDependentMessage}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.elkLayoutWorker?.terminate(),this.graphDependentWorker?.terminate(),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.equalizer.removeEventListener(Tn,this.boundZoomIn),this.equalizer.removeEventListener(En,this.boundZoomOut),this.equalizer.removeEventListener(Dn,this.boundRotate),this.equalizer.removeEventListener(On,this.boundReset),this.equalizer.removeEventListener(Nn,this.boundEqualizerChanged),this.equalizer.removeEventListener(Pn,this.boundEqualizerFiltered),this.equalizer.removeEventListener(Ln,this.boundPovModeExit),this.removeEventListener(Fn,this.boundDependentNodeClicked),this.removeEventListener(In,this.boundLoadMoreChildren)}setupResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._resizeRafId),this._resizeRafId=requestAnimationFrame(()=>{let{width:e,height:t}=this.getBoundingClientRect();e!==0&&t!==0&&(Math.abs(e-this.containerWidth)<2&&Math.abs(t-this.containerHeight)<2||(this.containerWidth=e,this.containerHeight=t))})}),this.resizeObserver.observe(this)}updateViewBoxForContainer(){if(!this.svgItem||this.containerWidth===0||this.containerHeight===0)return;let e=this.svgItem.viewBox.baseVal,t=e.x+e.width/2,n=e.y+e.height/2,r=this.containerWidth/this.containerHeight,i=this.buildBaseViewBox().base+300,a,o;r>1?(o=i,a=i*r):(a=i,o=i/r),e.width=a,e.height=o,e.x=t-a/2,e.y=n-o/2,this.zoomW=a,this.zoomH=o,this.zoomX=e.x,this.zoomY=e.y}toggleNodeVisibility(e,t,n){e.forEach(e=>{if(!e?.id)return;let t=this.nodeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedNodes.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedNodes.delete(e.id)))}),t.forEach(e=>{if(!e?.id)return;let t=this.edgeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedEdges.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedEdges.delete(e.id)))}),this.requestUpdate()}dependentNodeClicked(e){let t=e.detail.node.id;this.toggleNodeExpansion(t)}loadMoreChildrenClicked(e){this.loadMoreChildren(e.detail.parentId)}enterPovMode(e,t){let n=this.expansionManager.saveState();this.savedExpandedNodes=n.expandedNodes,this.savedVisibleChildrenCount=n.visibleChildrenCount,this.povMode=!0,this.povFocusNodeId=e,this.povNode=t,this.povNodeId=e}exitPovMode(e=!0){this.savedExpandedNodes&&this.savedVisibleChildrenCount&&(this.expansionManager.restoreState({expandedNodes:this.savedExpandedNodes,visibleChildrenCount:this.savedVisibleChildrenCount}),this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null),this.graphResponse?.nodes?.forEach(e=>{e.dependency&&=!1}),this.graphResponse?.edges?.forEach(e=>{e.dependency&&=!1}),this.povMode=!1,this.povNode=null,this.equalizer.controls.povNode=null,e&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache())}handlePovModeExit(){this.exitPovMode(!0)}updateGraphResponse(e){this.graphResponse=e,this.graphMode=e.mode||(this.changeView?Ut.change:Ut.standard),this.changeView=this.graphMode===Ut.change,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.equalizer.graphResponse=e,this.equalizer.controls.searchComponent.graphResponse=e,this.violationMap.clear(),e.violations&&Object.entries(e.violations).forEach(([e,t])=>{this.violationMap.set(e,t)}),this.buildGraphAndRender().then(()=>{this.activeNode||this.centerOnRoot()})}rotate(){switch(this.direction){case ia.LEFT:this.direction=ia.UP;break;case ia.DOWN:this.direction=ia.LEFT;break;case ia.RIGHT:this.direction=ia.DOWN;break;case ia.UP:this.direction=ia.RIGHT}this.resetNodes(),this.buildGraphAndRender().then(()=>{this.activeNode&&this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id}}))})}mouseMove(e){if(this.grabbed){let t=Math.sqrt((e.clientX-this.startX)**2+(e.clientY-this.startY)**2);!this.isDragging&&t>this.dragThreshold&&(this.isDragging=!0),this.isDragging&&requestAnimationFrame(()=>{let t=this.svgItem.viewBox.baseVal,n=(e.clientX-this.startX)*(t.width/this.svgItem.clientWidth),r=(e.clientY-this.startY)*(t.height/this.svgItem.clientHeight);t.x=this.dragStartViewBoxX-n,t.y=this.dragStartViewBoxY-r,this.zoomX=t.x,this.zoomY=t.y,this.zoomW=t.width,this.zoomH=t.height})}}mouseDown(e){this.grabbed=!0;let t=this.svgItem.viewBox.baseVal;this.startX=e.clientX,this.startY=e.clientY,this.dragStartViewBoxX=t.x,this.dragStartViewBoxY=t.y}mouseUp(){this.grabbed=!1,this.isDragging=!1}zoom(e){e=Math.abs(e)<.02?e/Math.abs(e)*.02:e;let[t,n,r,i]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],a=t+r/2,o=n+i/2,[s,c]=[r+r*e,i+i*e],l=a-s/2,u=o-c/2;s>=this.zoomMax||s<=this.zoomMin||(this.svgItem.setAttribute(`viewBox`,`${l} ${u} ${s} ${c}`),this.zoomX=l,this.zoomY=u,this.zoomW=s,this.zoomH=c)}zoomIn(){this.zoom(-.1)}zoomOut(){this.zoom(.1)}onWheel(e){e.preventDefault();let t=e.deltaY/1e3;t=Math.abs(t)<.02?.02*e.deltaY/Math.abs(e.deltaY):t;let n=new DOMPoint(e.clientX,e.clientY);n=n.matrixTransform(this.svgItem.getScreenCTM()?.inverse());let[r,i,a,o]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],[s,c]=[(n.x-r)/a,(n.y-i)/o],[l,u]=[a+a*t,o+o*t],d=n.x-s*l,f=n.y-c*u;l>=this.zoomMax||l<=this.zoomMin||Number.isNaN(d)||Number.isNaN(f)||Number.isNaN(l)||Number.isNaN(u)||requestAnimationFrame(()=>{this.zoomX=d,this.zoomY=f,this.zoomW=l,this.zoomH=u,this.svgItem.setAttribute(`viewBox`,`${d} ${f} ${l} ${u}`)})}equalizerFiltered(e){this.clearPathReveal(),this.graphResponse=e.detail.graph,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.extractEQPreferences(e);let t=e.detail.povMode;this.povNodeId=e.detail.povNodeId||null,t&&(this.povMode=!0),this.buildGraphAndRender().then(()=>{if(t&&this.povFocusNodeId){this.equalizer.controls.povNode=this.povNode;let e=this.graphResponse.nodes?.find(e=>e.id===this.povFocusNodeId);e&&this.moveToNode(e,!1)}else this.activeNode||this.centerOnRoot()})}extractEQPreferences(e){e.detail.spacing&&(e.detail.spacing.nodeNodeBetweenLayers&&(this.nodeNodeBetweenLayers=e.detail.spacing.nodeNodeBetweenLayers.toString()),e.detail.spacing.nodeNode&&(this.nodeNode=e.detail.spacing.nodeNode.toString()),e.detail.spacing.edgeNodeBetweenLayers&&(this.edgeNodeBetweenLayers=e.detail.spacing.edgeNodeBetweenLayers.toString()),e.detail.spacing.edgeNode&&(this.edgeNode=e.detail.spacing.edgeNode.toString()),this.bendEdges=!!e.detail.spacing.bendEdges,this.bendPoints=!!e.detail.spacing.bendPoints)}equalizerChanged(e){this.clearPathReveal(),e.detail.graph.nodes.length>0&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.graphResponse=e.detail.graph),this.extractEQPreferences(e),this.buildGraphAndRender().then(()=>{this.activeNode&&this._visible&&this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id,first:!0}}))})}resetNodes(){this.graph.children?.forEach(e=>{let t=e;delete t.x,delete t.y}),this.graph.edges?.forEach(e=>{delete e.sections})}filterGraphByExpansion(e,t){return this.layoutFilterManager.filterGraphByExpansion(e,t,this.povMode)}preservePositions(){this.layoutFilterManager.preservePositions(this.graph)}applyPositionHints(e){this.layoutFilterManager.applyPositionHints(e)}toggleNodeExpansion(e){this.expansionManager.toggleNodeExpansion(e)}loadMoreChildren(e){this.expansionManager.loadMoreChildren(e)}isNodeExpanded(e){return this.expansionManager.isNodeExpanded(e)}isNodeCurrentlyVisible(e){return this.expansionManager.isNodeCurrentlyVisible(e)}invalidateChildrenCache(){this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache()}addToNodeMap(e){this.nodeMap.has(e.id)||this.nodeMap.set(e.id,e)}ensureNodesVisible(e){this.expansionManager.ensureNodesVisible(e)}revealPathToNode(e){this.expansionManager.revealPathToNode(e,this.povMode)}clearPathReveal(){this.expansionManager.clearPathReveal()}generateOptions(){return{"spacing.nodeNodeBetweenLayers":this.nodeNodeBetweenLayers,"spacing.nodeNode":this.nodeNode,"elk.nodeLabels.placement":`INSIDE V_CENTER H_RIGHT`,"elk.algorithm":`layered`,"elk.direction":this.direction,"org.eclipse.elk.edgeRouting":`ORTHOGONAL`,"elk.layered.unnecessaryBendpoints":`true`,"elk.layered.spacing.edgeNodeBetweenLayers":this.edgeNodeBetweenLayers,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment":`BALANCED`,"org.eclipse.elk.layered.cycleBreaking.strategy":`DEPTH_FIRST`,"nodePlacement.strategy":`BRANDES_KOEPF`,"org.eclipse.elk.spacing.edgeLabel":`0`,"org.eclipse.elk.spacing.edgeNode":this.edgeNode,"org.eclipse.elk.layered.edgeLabels.sideSelection":`ALWAYS_UP`,"org.eclipse.elk.spacing.portPort":`10`,"elk.interactive":`true`,"elk.interactiveLayout":`true`,"elk.layered.interactiveReferencePoint":`CENTER`,"elk.layered.crossingMinimization.semiInteractive":`true`,"elk.layered.considerModelOrder.strategy":`NODES_AND_EDGES`}}buildGraph(){let e=++this.layoutRequestId,t=this.generateOptions(),n=this.filterGraphByExpansion(this.graphResponse.nodes||[],this.graphResponse.edges||[]);this.hasMoreChildren=n.hasMoreChildren,this.applyPositionHints(n.nodes);let r={id:`root`,layoutOptions:t,children:n.nodes,edges:n.edges};return this.nodeMap.clear(),this.equalizer.graphResponse||(this.equalizer.graphResponse=this.graphResponse),new Promise((n,i)=>{let a=()=>{this.elkLayoutWorker.removeEventListener(`message`,o),this.elkLayoutWorker.removeEventListener(`error`,s)},o=t=>{t.data.requestId===e&&(a(),t.data.success?(this.graph=t.data.graph,this.readyGo(),n(this.graph)):i(Error(t.data.error)))},s=e=>{a(),i(Error(`Worker error: ${e.message}`))};this.elkLayoutWorker.addEventListener(`message`,o),this.elkLayoutWorker.addEventListener(`error`,s),this.elkLayoutWorker.postMessage({requestId:e,graph:r,layoutOptions:t})})}async buildGraphAndRender(){await this.buildGraph(),await this.updateComplete,await new Promise(e=>requestAnimationFrame(()=>e()))}buildNodes(){this.nodeMap.clear(),this.definitionCache.clear(),this.edgeMap.clear();let e=this.explorerComponentFactory.buildNodes({graph:this.graph,graphResponse:this.graphResponse,expandedNodes:this.expandedNodes,hasMoreChildren:this.hasMoreChildren,povMode:this.povMode,povNodeId:this.povNodeId,activeNode:this.activeNode,violationMap:this.violationMap,disablePovMode:this.disablePovMode,hideExamples:this.hideExamples,changeView:this.changeView,graphMode:this.graphMode});this.nodes=e.nodes,this.nodeComponents=e.nodeComponents,this.renderGraphMap=e.renderGraphMap,this.nodeComponentMap=e.nodeComponentMap}buildEdges(){let e=this.explorerComponentFactory.buildEdges({graph:this.graph,collapsedEdges:this.collapsedEdges,bendPoints:this.bendPoints,bendEdges:this.bendEdges,edgePathStyle:this.edgePathStyle,nodeLimitExceeded:this.nodeLimitExceeded,povMode:this.povMode},this.renderGraphMap);this.edges=e.edges,this.edgeComponents=e.edgeComponents,this.edgeComponentMap=e.edgeComponentMap}readyGo(){this.buildNodes(),this.buildEdges(),this.ready=!0,this.requestUpdate()}reset(){this.direction=ia.RIGHT;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}this.zoomH=n,this.zoomW=t,this.zoomX=-150,this.zoomY=-150,this.svgItem.setAttribute(`viewBox`,`-150 -150 ${t} ${n}`),this.resetNodes(),this.buildGraphAndRender().then(()=>{this.snapToRoot()})}snapToRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=ta(this.direction,e,t);this.snapViewBox(n.x,n.y)}this.activeNode=e}}resetSelection(){if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}this.activeNode=void 0,this.previousActiveNodeId=null,this.requestUpdate()}centerOnRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=ta(this.direction,e,t);this.animateViewBox(n.x,n.y,200)}this.activeNode=e}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}animateViewBox(e,t,n){let r=++this.currentAnimationId,i=this.svgItem.viewBox.baseVal,a=i.x,o=i.y,s=performance.now(),c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=this;function u(d){if(r!==l.currentAnimationId)return;let f=d-s,p=Math.min(f/n,1),m=c(p);i.x=a+(e-a)*m,i.y=o+(t-o)*m,l.zoomX=i.x,l.zoomY=i.y,p<1&&requestAnimationFrame(u)}requestAnimationFrame(u)}snapViewBox(e,t){this.currentAnimationId++;let n=this.svgItem.viewBox.baseVal;n.x=e,n.y=t,this.zoomX=e,this.zoomY=t,this.zoomW=n.width,this.zoomH=n.height}getNodeScreenOffset(e){let t=this.svgItem?.viewBox?.baseVal;if(!t)return null;let n=this.graph?.children?.find(t=>t.id===e);if(!n||n.x===void 0||n.y===void 0)return null;let r=n.width||0,i=n.height||0,a=n.x+r/2,o=n.y+i/2,s=t.x+t.width/2,c=t.y+t.height/2;return{x:a-s,y:o-c}}restoreNodeScreenPosition(e,t){let n=this.svgItem?.viewBox?.baseVal;if(!n)return;let r=this.graph?.children?.find(t=>t.id===e);if(!r||r.x===void 0||r.y===void 0)return;let i=r.width||0,a=r.height||0,o=r.x+i/2,s=r.y+a/2,c=o-t.x,l=s-t.y,u=c-n.width/2,d=l-n.height/2;this.snapViewBox(u,d)}moveToNode(e,t=!1,n=!1){if(this.svgItem&&this.graph?.children){let t=this.svgItem.viewBox.baseVal,r=this.graph.children.find(t=>t.id===e.id);if(r&&r.x!==void 0&&r.y!==void 0&&!r.filtered){let e=ta(this.direction,r,t);n?this.snapViewBox(e.x,e.y):this.animateViewBox(e.x,e.y,200)}}}buildBaseViewBox(){let e=600,t=0;return this.graph.children?.forEach(()=>{e+=1,t+=20}),t>900&&(t=900),{base:e,offset:t}}render(){if(!this.ready)return T`
loading explorer... @@ -3317,11 +3320,11 @@ @mousemove="${this.mouseMove}"> ${sne()} - ${Vt(this.edgeComponents,e=>e.edge.id,e=>e.render())} - ${Vt(this.nodeComponents,e=>e.id,e=>e.render())} + ${Ht(this.edgeComponents,e=>e.edge.id,e=>e.render())} + ${Ht(this.nodeComponents,e=>e.id,e=>e.render())} - `}};na.graphDependentWorkerFactory=null,na.elkWorkerFactory=null,na.styles=[hee,Wr],$i([Ot(`svg`)],na.prototype,`svgItem`,void 0),$i([Ot(`svg > g`)],na.prototype,`svgGroup`,void 0),$i([kt(`path`)],na.prototype,`paths`,void 0),$i([kt(`foreignObject`)],na.prototype,`foreignObjects`,void 0),$i([Tt()],na.prototype,`ready`,void 0),$i([wt()],na.prototype,`renderEqualizer`,void 0),$i([wt()],na.prototype,`edgePathStyle`,void 0),$i([wt({type:Boolean})],na.prototype,`embeddedMode`,void 0),$i([wt()],na.prototype,`graphResponse`,void 0),$i([wt({type:Boolean})],na.prototype,`disablePovMode`,void 0),$i([wt({type:Boolean})],na.prototype,`hideExamples`,void 0),$i([wt({type:Boolean})],na.prototype,`hideControls`,void 0),$i([wt({type:Boolean})],na.prototype,`changeView`,void 0),$i([wt()],na.prototype,`graphMode`,void 0),$i([wt()],na.prototype,`povMode`,void 0),$i([wt()],na.prototype,`povNodeId`,void 0),$i([wt()],na.prototype,`povNode`,void 0),$i([Tt()],na.prototype,`models`,void 0),na=ea=$i([Ct(`pb33f-explorer`)],na);var hne=xe` + `}};aa.graphDependentWorkerFactory=null,aa.elkWorkerFactory=null,aa.styles=[mee,Wr],na([kt(`svg`)],aa.prototype,`svgItem`,void 0),na([kt(`svg > g`)],aa.prototype,`svgGroup`,void 0),na([At(`path`)],aa.prototype,`paths`,void 0),na([At(`foreignObject`)],aa.prototype,`foreignObjects`,void 0),na([Et()],aa.prototype,`ready`,void 0),na([Tt()],aa.prototype,`renderEqualizer`,void 0),na([Tt()],aa.prototype,`edgePathStyle`,void 0),na([Tt({type:Boolean})],aa.prototype,`embeddedMode`,void 0),na([Tt()],aa.prototype,`graphResponse`,void 0),na([Tt({type:Boolean})],aa.prototype,`disablePovMode`,void 0),na([Tt({type:Boolean})],aa.prototype,`hideExamples`,void 0),na([Tt({type:Boolean})],aa.prototype,`hideControls`,void 0),na([Tt({type:Boolean})],aa.prototype,`changeView`,void 0),na([Tt()],aa.prototype,`graphMode`,void 0),na([Tt()],aa.prototype,`povMode`,void 0),na([Tt()],aa.prototype,`povNodeId`,void 0),na([Tt()],aa.prototype,`povNode`,void 0),na([Et()],aa.prototype,`models`,void 0),aa=ra=na([wt(`pb33f-explorer`)],aa);var hne=xe` :host { display: block; height: 100%; @@ -3441,13 +3444,13 @@ height: 100%; width: 100%; } -`,ra=Symbol(),ia=Symbol(),aa,oa=new Map,sa=class extends gn{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label=``,this.library=`default`}async resolveIcon(e,t){let n;if(t?.spriteSheet)return this.svg=T` +`,oa=Symbol(),sa=Symbol(),ca,la=new Map,ua=class extends _n{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label=``,this.library=`default`}async resolveIcon(e,t){let n;if(t?.spriteSheet)return this.svg=T` - `,this.svg;try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?ra:ia}catch{return ia}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if((t?.tagName)?.toLowerCase()!==`svg`)return ra;aa||=new DOMParser;let r=aa.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):ra}catch{return ra}}connectedCallback(){super.connectedCallback(),g(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),_(this)}getIconSource(){let e=v(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){var e;let{url:t,fromLibrary:n}=this.getIconSource(),r=n?v(this.library):void 0;if(!t){this.svg=null;return}let i=oa.get(t);if(i||(i=this.resolveIcon(t,r),oa.set(t,i)),!this.initialRender)return;let a=await i;if(a===ia&&oa.delete(t),t===this.getIconSource().url){if(uee(a)){if(this.svg=a,r){await this.updateComplete;let e=this.shadowRoot.querySelector(`[part='svg']`);typeof r.mutator==`function`&&e&&r.mutator(e)}}else switch(a){case ia:case ra:this.svg=null,this.emit(`sl-error`);break;default:this.svg=a.cloneNode(!0),(e=r?.mutator)==null||e.call(r,this.svg),this.emit(`sl-load`)}}}render(){return this.svg}};sa.styles=[mn,gne],w([Tt()],sa.prototype,`svg`,2),w([wt({reflect:!0})],sa.prototype,`name`,2),w([wt()],sa.prototype,`src`,2),w([wt()],sa.prototype,`label`,2),w([wt({reflect:!0})],sa.prototype,`library`,2),w([pn(`label`)],sa.prototype,`handleLabelChange`,1),w([pn([`name`,`src`,`library`])],sa.prototype,`setIcon`,1),sa.define(`sl-icon`);var ca=c(o(((e,t)=>{var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1,i=1,a=0;n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,i){i===void 0&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+this.Diff_Timeout*1e3);var o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e==t)return e?[new n.Diff(a,e)]:[];r===void 0&&(r=!0);var s=r,c=this.diff_commonPrefix(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=this.diff_commonSuffix(e,t);var u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);var d=this.diff_compute_(e,t,s,o);return l&&d.unshift(new n.Diff(a,l)),u&&d.push(new n.Diff(a,u)),this.diff_cleanupMerge(d),d},n.prototype.diff_compute_=function(e,t,o,s){var c;if(!e)return[new n.Diff(i,t)];if(!t)return[new n.Diff(r,e)];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,d=l.indexOf(u);if(d!=-1)return c=[new n.Diff(i,l.substring(0,d)),new n.Diff(a,u),new n.Diff(i,l.substring(d+u.length))],e.length>t.length&&(c[0][0]=c[2][0]=r),c;if(u.length==1)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var p=f[0],m=f[1],h=f[2],g=f[3],_=f[4],v=this.diff_main(p,h,o,s),y=this.diff_main(m,g,o,s);return v.concat([new n.Diff(a,_)],y)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,o){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var c=s.lineArray,l=this.diff_main(e,t,!1,o);this.diff_charsToLines_(l,c),this.diff_cleanupSemantic(l),l.push(new n.Diff(a,``));for(var u=0,d=0,f=0,p=``,m=``;u=1&&f>=1){l.splice(u-d-f,d+f),u=u-d-f;for(var h=this.diff_main(p,m,!1,o),g=h.length-1;g>=0;g--)l.splice(u,0,h[g]);u+=h.length}f=0,d=0,p=``,m=``}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,a){for(var o=e.length,s=t.length,c=Math.ceil((o+s)/2),l=c,u=2*c,d=Array(u),f=Array(u),p=0;pa);b++){for(var x=-b+g;x<=b-_;x+=2){for(var S=l+x,ee=x==-b||x!=b&&d[S-1]o)_+=2;else if(te>s)g+=2;else if(h){var ne=l+m-x;if(ne>=0&&ne=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}for(var re=-b+v;re<=b-y;re+=2){for(var ne=l+re,C=re==-b||re!=b&&f[ne-1]o)y+=2;else if(ie>s)v+=2;else if(!h){var S=l+m-re;if(S>=0&&S=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var a=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),c=t.substring(r),l=this.diff_main(a,o,!1,i),u=this.diff_main(s,c,!1,i);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};n[0]=``;function i(e){for(var t=``,i=0,o=-1,s=n.length;o`,this.svg;try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?oa:sa}catch{return sa}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if((t?.tagName)?.toLowerCase()!==`svg`)return oa;ca||=new DOMParser;let r=ca.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):oa}catch{return oa}}connectedCallback(){super.connectedCallback(),g(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),_(this)}getIconSource(){let e=v(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){var e;let{url:t,fromLibrary:n}=this.getIconSource(),r=n?v(this.library):void 0;if(!t){this.svg=null;return}let i=la.get(t);if(i||(i=this.resolveIcon(t,r),la.set(t,i)),!this.initialRender)return;let a=await i;if(a===sa&&la.delete(t),t===this.getIconSource().url){if(lee(a)){if(this.svg=a,r){await this.updateComplete;let e=this.shadowRoot.querySelector(`[part='svg']`);typeof r.mutator==`function`&&e&&r.mutator(e)}}else switch(a){case sa:case oa:this.svg=null,this.emit(`sl-error`);break;default:this.svg=a.cloneNode(!0),(e=r?.mutator)==null||e.call(r,this.svg),this.emit(`sl-load`)}}}render(){return this.svg}};ua.styles=[hn,gne],w([Et()],ua.prototype,`svg`,2),w([Tt({reflect:!0})],ua.prototype,`name`,2),w([Tt()],ua.prototype,`src`,2),w([Tt()],ua.prototype,`label`,2),w([Tt({reflect:!0})],ua.prototype,`library`,2),w([mn(`label`)],ua.prototype,`handleLabelChange`,1),w([mn([`name`,`src`,`library`])],ua.prototype,`setIcon`,1),ua.define(`sl-icon`);var da=c(o(((e,t)=>{var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1,i=1,a=0;n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,i){i===void 0&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+this.Diff_Timeout*1e3);var o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e==t)return e?[new n.Diff(a,e)]:[];r===void 0&&(r=!0);var s=r,c=this.diff_commonPrefix(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=this.diff_commonSuffix(e,t);var u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);var d=this.diff_compute_(e,t,s,o);return l&&d.unshift(new n.Diff(a,l)),u&&d.push(new n.Diff(a,u)),this.diff_cleanupMerge(d),d},n.prototype.diff_compute_=function(e,t,o,s){var c;if(!e)return[new n.Diff(i,t)];if(!t)return[new n.Diff(r,e)];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,d=l.indexOf(u);if(d!=-1)return c=[new n.Diff(i,l.substring(0,d)),new n.Diff(a,u),new n.Diff(i,l.substring(d+u.length))],e.length>t.length&&(c[0][0]=c[2][0]=r),c;if(u.length==1)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var p=f[0],m=f[1],h=f[2],g=f[3],_=f[4],v=this.diff_main(p,h,o,s),y=this.diff_main(m,g,o,s);return v.concat([new n.Diff(a,_)],y)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,o){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var c=s.lineArray,l=this.diff_main(e,t,!1,o);this.diff_charsToLines_(l,c),this.diff_cleanupSemantic(l),l.push(new n.Diff(a,``));for(var u=0,d=0,f=0,p=``,m=``;u=1&&f>=1){l.splice(u-d-f,d+f),u=u-d-f;for(var h=this.diff_main(p,m,!1,o),g=h.length-1;g>=0;g--)l.splice(u,0,h[g]);u+=h.length}f=0,d=0,p=``,m=``}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,a){for(var o=e.length,s=t.length,c=Math.ceil((o+s)/2),l=c,u=2*c,d=Array(u),f=Array(u),p=0;pa);b++){for(var x=-b+g;x<=b-_;x+=2){for(var S=l+x,ee=x==-b||x!=b&&d[S-1]o)_+=2;else if(te>s)g+=2;else if(h){var ne=l+m-x;if(ne>=0&&ne=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}for(var re=-b+v;re<=b-y;re+=2){for(var ne=l+re,C=re==-b||re!=b&&f[ne-1]o)y+=2;else if(ie>s)v+=2;else if(!h){var S=l+m-re;if(S>=0&&S=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var a=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),c=t.substring(r),l=this.diff_main(a,o,!1,i),u=this.diff_main(s,c,!1,i);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};n[0]=``;function i(e){for(var t=``,i=0,o=-1,s=n.length;or?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2=e.length?[s,c,l,u,o]:null}var o=a(n,r,Math.ceil(n.length/4)),s=a(n,r,Math.ceil(n.length/2)),c;if(!o&&!s)return null;c=s?o&&o[4].length>s[4].length?o:s:o;var l,u,d,f;e.length>t.length?(l=c[0],u=c[1],d=c[2],f=c[3]):(d=c[0],f=c[1],l=c[2],u=c[3]);var p=c[4];return[l,u,d,f,p]},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,o=[],s=0,c=null,l=0,u=0,d=0,f=0,p=0;l0?o[s-1]:-1,u=0,d=0,f=0,p=0,c=null,t=!0)),l++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l=_?(g>=m.length/2||g>=h.length/2)&&(e.splice(l,0,new n.Diff(a,h.substring(0,g))),e[l-1][1]=m.substring(0,m.length-g),e[l+1][1]=h.substring(g),l++):(_>=m.length/2||_>=h.length/2)&&(e.splice(l,0,new n.Diff(a,m.substring(0,_))),e[l-1][0]=i,e[l-1][1]=h.substring(0,h.length-_),e[l+1][0]=r,e[l+1][1]=m.substring(_),l++),l++}l++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),a=r.match(n.nonAlphaNumericRegex_),o=i.match(n.nonAlphaNumericRegex_),s=a&&r.match(n.whitespaceRegex_),c=o&&i.match(n.whitespaceRegex_),l=s&&r.match(n.linebreakRegex_),u=c&&i.match(n.linebreakRegex_),d=l&&e.match(n.blanklineEndRegex_),f=u&&t.match(n.blanklineStartRegex_);return d||f?5:l||u?4:a&&!s&&c?3:s||c?2:a||o?1:0}for(var r=1;r=p&&(p=m,u=i,d=o,f=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=d,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,o=[],s=0,c=null,l=0,u=!1,d=!1,f=!1,p=!1;l0?o[s-1]:-1,f=p=!1),t=!0)),l++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(a,``));for(var t=0,o=0,s=0,c=``,l=``,u;t1?(o!==0&&s!==0&&(u=this.diff_commonPrefix(l,c),u!==0&&(t-o-s>0&&e[t-o-s-1][0]==a?e[t-o-s-1][1]+=l.substring(0,u):(e.splice(0,0,new n.Diff(a,l.substring(0,u))),t++),l=l.substring(u),c=c.substring(u)),u=this.diff_commonSuffix(l,c),u!==0&&(e[t][1]=l.substring(l.length-u)+e[t][1],l=l.substring(0,l.length-u),c=c.substring(0,c.length-u))),t-=o+s,e.splice(t,o+s),c.length&&(e.splice(t,0,new n.Diff(r,c)),t++),l.length&&(e.splice(t,0,new n.Diff(i,l)),t++),t++):t!==0&&e[t-1][0]==a?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,s=0,o=0,c=``,l=``}e[e.length-1][1]===``&&e.pop();var d=!1;for(t=1;tt));c++)o=n,s=a;return e.length!=c&&e[c][0]===r?s:s+(t-o)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,o=//g,c=/\n/g,l=0;l`);switch(u){case i:t[l]=``+d+``;break;case r:t[l]=``+d+``;break;case a:t[l]=``+d+``}}return t.join(``)},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw Error(`Pattern too long for this browser.`);var r=this.match_alphabet_(t),i=this;function a(e,r){var a=e/t.length,o=Math.abs(n-r);return i.Match_Distance?a+o/i.Match_Distance:o?1:a}var o=this.Match_Threshold,s=e.indexOf(t,n);s!=-1&&(o=Math.min(a(0,s),o),s=e.lastIndexOf(t,n+t.length),s!=-1&&(o=Math.min(a(0,s),o)));var c=1<=m;_--){var v=r[e.charAt(_-1)];if(p===0?g[_]=(g[_+1]<<1|1)&v:g[_]=(g[_+1]<<1|1)&v|(f[_+1]|f[_])<<1|1|f[_+1],g[_]&c){var y=a(p,_-1);if(y<=o){if(o=y,s=_-1,s>n)m=Math.max(1,2*n-s);else break}}}if(a(p+1,n)>o)break;f=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(c),this.diff_cleanupEfficiency(c));else if(e&&typeof e==`object`&&t===void 0&&o===void 0)c=e,s=this.diff_text1(c);else if(typeof e==`string`&&t&&typeof t==`object`&&o===void 0)s=e,c=t;else if(typeof e==`string`&&typeof t==`string`&&o&&typeof o==`object`)s=e,c=o;else throw Error(`Unknown call format to patch_make.`);if(c.length===0)return[];for(var l=[],u=new n.patch_obj,d=0,f=0,p=0,m=s,h=s,g=0;g=2*this.Patch_Margin&&d&&(this.patch_addContext_(u,m),l.push(u),u=new n.patch_obj,d=0,m=h,f=p)}_!==i&&(f+=v.length),_!==r&&(p+=v.length)}return d&&(this.patch_addContext_(u,m),l.push(u)),l},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?(d=this.match_main(t,u.substring(0,this.Match_MaxBits),l),d!=-1&&(f=this.match_main(t,u.substring(u.length-this.Match_MaxBits),l+u.length-this.Match_MaxBits),(f==-1||d>=f)&&(d=-1))):d=this.match_main(t,u,l),d==-1)s[c]=!1,o-=e[c].length2-e[c].length1;else{s[c]=!0,o=d-l;var p=f==-1?t.substring(d,d+u.length):t.substring(d,f+this.Match_MaxBits);if(u==p)t=t.substring(0,d)+this.diff_text2(e[c].diffs)+t.substring(d+u.length);else{var m=this.diff_main(u,p,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(m)/u.length>this.Patch_DeleteThreshold)s[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var h=0,g,_=0;_s[0][1].length){var c=t-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],o.start1-=c,o.start2-=c,o.length1+=c,o.length2+=c}if(o=e[e.length-1],s=o.diffs,s.length==0||s[s.length-1][0]!=a)s.push(new n.Diff(a,r)),o.length1+=t,o.length2+=t;else if(t>s[s.length-1][1].length){var c=t-s[s.length-1][1].length;s[s.length-1][1]+=r.substring(0,c),o.length1+=c,o.length2+=c}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,o=0;o2*t?(d.length1+=m.length,c+=m.length,f=!1,d.diffs.push(new n.Diff(p,m)),s.diffs.shift()):(m=m.substring(0,t-d.length1-this.Patch_Margin),d.length1+=m.length,c+=m.length,p===a?(d.length2+=m.length,l+=m.length):f=!1,d.diffs.push(new n.Diff(p,m)),m==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(m.length))}u=this.diff_text2(d.diffs),u=u.substring(u.length-this.Patch_Margin);var h=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);h!==``&&(d.length1+=h.length,d.length2+=h.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===a?d.diffs[d.diffs.length-1][1]+=h:d.diffs.push(new n.Diff(a,h))),f||e.splice(++o,0,d)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n`;break;case 2:case 3:t=T` `;break;case 4:case 5:t=T` `}return T`${t}`}renderChangeType(e){let t=T``;switch(e.change){case 1:t=T`(MODIFIED)`;break;case 2:case 3:t=T`(ADDED)`;break;case 4:case 5:t=T`(REMOVED)`}return T`${t}`}renderBreaking(e){return e?T` @@ -3727,7 +3730,7 @@ color: var(--secondary-color); } -`,ua=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},da=class extends St{constructor(){super(),this.height=20,this.animateStripe=!1,this.speed=2,this._lastTime=performance.now(),this._currentOffset=0,this.warn=!1,this.danger=!1}connectedCallback(){super.connectedCallback(),this.colorAlt=`var(--background-color)`,this.colorMain=`var(--primary-color)`,this.warn&&(this.colorMain=`var(--warning-color)`),this.danger&&(this.colorMain=`var(--error-color)`),this.animateStripe&&(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this)))}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId)}updated(e){e.has(`animateStripe`)&&(this.animateStripe?(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))):this._animationFrameId&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0,this._currentOffset=0,this.requestUpdate()))}_updateAnimation(e){let t=e-this._lastTime;this._lastTime=e;let n=40/this.speed;this._currentOffset=(this._currentOffset+t/1e3*n)%40,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))}render(){let e=`rotate(45) translate(${this.animateStripe?this._currentOffset:0} 0)`;return T` +`,pa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ma=class extends Ct{constructor(){super(),this.height=20,this.animateStripe=!1,this.speed=2,this._lastTime=performance.now(),this._currentOffset=0,this.warn=!1,this.danger=!1}connectedCallback(){super.connectedCallback(),this.colorAlt=`var(--background-color)`,this.colorMain=`var(--primary-color)`,this.warn&&(this.colorMain=`var(--warning-color)`),this.danger&&(this.colorMain=`var(--error-color)`),this.animateStripe&&(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this)))}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId)}updated(e){e.has(`animateStripe`)&&(this.animateStripe?(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))):this._animationFrameId&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0,this._currentOffset=0,this.requestUpdate()))}_updateAnimation(e){let t=e-this._lastTime;this._lastTime=e;let n=40/this.speed;this._currentOffset=(this._currentOffset+t/1e3*n)%40,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))}render(){let e=`rotate(45) translate(${this.animateStripe?this._currentOffset:0} 0)`;return T` - `}};da.styles=xe` + `}};ma.styles=xe` :host { display: block; width: 100%; @@ -3757,7 +3760,7 @@ svg { display: block; } - `,ua([wt({type:Number})],da.prototype,`height`,void 0),ua([wt({type:Boolean})],da.prototype,`animateStripe`,void 0),ua([wt({type:Number})],da.prototype,`speed`,void 0),ua([wt({type:Boolean})],da.prototype,`warn`,void 0),ua([wt({type:Boolean})],da.prototype,`danger`,void 0),da=ua([Ct(`pb33f-warning-stripe`)],da);var vne=xe` + `,pa([Tt({type:Number})],ma.prototype,`height`,void 0),pa([Tt({type:Boolean})],ma.prototype,`animateStripe`,void 0),pa([Tt({type:Number})],ma.prototype,`speed`,void 0),pa([Tt({type:Boolean})],ma.prototype,`warn`,void 0),pa([Tt({type:Boolean})],ma.prototype,`danger`,void 0),ma=pa([wt(`pb33f-warning-stripe`)],ma);var vne=xe` :host { display: inline-flex; } @@ -3846,18 +3849,18 @@ box-shadow: 0 0 0 0 transparent; } } -`,fa=class extends gn{constructor(){super(...arguments),this.variant=`primary`,this.pill=!1,this.pulse=!1}render(){return T` +`,ha=class extends _n{constructor(){super(...arguments),this.variant=`primary`,this.pill=!1,this.pulse=!1}render(){return T` - `}};fa.styles=[mn,vne],w([wt({reflect:!0})],fa.prototype,`variant`,2),w([wt({type:Boolean,reflect:!0})],fa.prototype,`pill`,2),w([wt({type:Boolean,reflect:!0})],fa.prototype,`pulse`,2),fa.define(`sl-badge`);var pa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ma=class extends St{constructor(){super(...arguments),this.iconSize=Xr.medium}formatLabel(e){return e?e.replace(/([a-z])([A-Z])/g,`$1 $2`).toUpperCase():``}render(){return T` + `}};ha.styles=[hn,vne],w([Tt({reflect:!0})],ha.prototype,`variant`,2),w([Tt({type:Boolean,reflect:!0})],ha.prototype,`pill`,2),w([Tt({type:Boolean,reflect:!0})],ha.prototype,`pulse`,2),ha.define(`sl-badge`);var ga=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_a=class extends Ct{constructor(){super(...arguments),this.iconSize=Xr.medium}formatLabel(e){return e?e.replace(/([a-z])([A-Z])/g,`$1 $2`).toUpperCase():``}render(){return T` ${this.formatLabel(this.icon)} - `}};ma.styles=xe` + `}};_a.styles=xe` :host { display: inline-flex; align-items: center; @@ -3878,7 +3881,7 @@ margin-left: 10px; padding-top: 4px; } - `,pa([wt()],ma.prototype,`icon`,void 0),pa([wt()],ma.prototype,`iconSize`,void 0),ma=pa([Ct(`pb33f-model-badge`)],ma);var ha=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ga=class extends la{constructor(e){super(),this.diff=new ca.default,this.showDiff=!0,e&&(this.changes=e),this.renderChangeCountBar=!0,this.addPadding=!1,this.renderBreakingBar=!0,this.renderMeta=!1}toggleDiff(){this.showDiff=!this.showDiff}renderChange(e){let t=T``;e.context&&(e.context.originalLine&&e.context.originalLine===e.context.newLine&&(t=T` + `,ga([Tt()],_a.prototype,`icon`,void 0),ga([Tt()],_a.prototype,`iconSize`,void 0),_a=ga([wt(`pb33f-model-badge`)],_a);var va=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ya=class extends fa{constructor(e){super(),this.diff=new da.default,this.showDiff=!0,e&&(this.changes=e),this.renderChangeCountBar=!0,this.addPadding=!1,this.renderBreakingBar=!0,this.renderMeta=!1}toggleDiff(){this.showDiff=!this.showDiff}renderChange(e){let t=T``;e.context&&(e.context.originalLine&&e.context.originalLine===e.context.newLine&&(t=T` ${e.change==1?T` @@ -4046,7 +4049,7 @@ ${e}
${t} -
`}};ga.styles=[_ne,Rn],ha([wt()],ga.prototype,`changes`,void 0),ha([wt({type:Boolean})],ga.prototype,`addPadding`,void 0),ha([wt({type:Boolean})],ga.prototype,`renderBreakingBar`,void 0),ha([wt({type:Boolean})],ga.prototype,`renderMeta`,void 0),ha([Tt()],ga.prototype,`showDiff`,void 0),ha([Tt()],ga.prototype,`renderChangeCountBar`,void 0),ga=ha([Ct(`pb33f-changes-component`)],ga);var _a=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},va=class extends St{constructor(){super(...arguments),this.changes=[],this.panelHidden=!0}_flashTab(){let e=this.shadowRoot?.querySelector(`.collapse-tab`);e&&(e.addEventListener(`animationend`,()=>e.classList.remove(`flashing`),{once:!0}),e.classList.add(`flashing`))}_onCollapseClick(){this._flashTab(),this.dispatchEvent(new CustomEvent(`explorer-change-panel-toggled`,{bubbles:!0,composed:!0,detail:{hidden:!this.panelHidden}}))}render(){return T` +
`}};ya.styles=[_ne,zn],va([Tt()],ya.prototype,`changes`,void 0),va([Tt({type:Boolean})],ya.prototype,`addPadding`,void 0),va([Tt({type:Boolean})],ya.prototype,`renderBreakingBar`,void 0),va([Tt({type:Boolean})],ya.prototype,`renderMeta`,void 0),va([Et()],ya.prototype,`showDiff`,void 0),va([Et()],ya.prototype,`renderChangeCountBar`,void 0),ya=va([wt(`pb33f-changes-component`)],ya);var ba=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xa=class extends Ct{constructor(){super(...arguments),this.changes=[],this.panelHidden=!0}_flashTab(){let e=this.shadowRoot?.querySelector(`.collapse-tab`);e&&(e.addEventListener(`animationend`,()=>e.classList.remove(`flashing`),{once:!0}),e.classList.add(`flashing`))}_onCollapseClick(){this._flashTab(),this.dispatchEvent(new CustomEvent(`explorer-change-panel-toggled`,{bubbles:!0,composed:!0,detail:{hidden:!this.panelHidden}}))}render(){return T`
${this.panelHidden?ct:T`
@@ -4070,7 +4073,7 @@
- `}};va.styles=[hne],_a([wt({type:Array})],va.prototype,`changes`,void 0),_a([wt({type:Boolean,attribute:`panel-hidden`,reflect:!0})],va.prototype,`panelHidden`,void 0),va=_a([Ct(`pb33f-explorer-change-panel`)],va);var yne=xe` + `}};xa.styles=[hne],ba([Tt({type:Array})],xa.prototype,`changes`,void 0),ba([Tt({type:Boolean,attribute:`panel-hidden`,reflect:!0})],xa.prototype,`panelHidden`,void 0),xa=ba([wt(`pb33f-explorer-change-panel`)],xa);var yne=xe` :host { display: flex; @@ -4192,7 +4195,7 @@ background: var(--secondary-color-lowalpha); padding: var(--global-padding); } -`,ya=xe` +`,Sa=xe` ::-webkit-scrollbar { width: 8px; height: 8px; @@ -4206,7 +4209,7 @@ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background: var(--secondary-color-lowalpha); } -`,ba=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xa=class extends la{constructor(){super()}getChangeValue(e){return e.new?T`${e.property}: +`,Ca=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wa=class extends fa{constructor(){super()}getChangeValue(e){return e.new?T`${e.property}: ${e.new.length>100?e.new.slice(0,70)+`...`:e.new}`:e.original?T`${e.property}: ${e.original.length>100?e.original.slice(0,70)+`...`:e.original}`:T`${e.property}`}render(){return T`
@@ -4223,7 +4226,7 @@
${this.renderBreaking(e.breaking)}
${t}
`})} -
`}};xa.styles=[yne,bne],ba([wt()],xa.prototype,`changes`,void 0),xa=ba([Ct(`pb33f-change-list`)],xa);var xne=xe` + `}};wa.styles=[yne,bne],Ca([Tt()],wa.prototype,`changes`,void 0),wa=Ca([wt(`pb33f-change-list`)],wa);var Ta=xe` :host { display: block; outline: 0; @@ -4375,7 +4378,7 @@ outline: dashed 1px SelectedItem; } } -`,Sne=xe` +`,Ea=xe` :host { display: inline-block; } @@ -4493,22 +4496,22 @@ color: var(--sl-input-required-content-color); margin-inline-start: var(--sl-input-required-content-offset); } -`,Sa=class extends gn{constructor(){super(...arguments),this.formControlController=new $t(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new tn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit(`sl-change`)}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T` +`,Da=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new nn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit(`sl-change`)}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T`
- `}};Sa.styles=[mn,qt,Sne],Sa.dependencies={"sl-icon":sa},w([Ot(`input[type="checkbox"]`)],Sa.prototype,`input`,2),w([Tt()],Sa.prototype,`hasFocus`,2),w([wt()],Sa.prototype,`title`,2),w([wt()],Sa.prototype,`name`,2),w([wt()],Sa.prototype,`value`,2),w([wt({reflect:!0})],Sa.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Sa.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],Sa.prototype,`checked`,2),w([wt({type:Boolean,reflect:!0})],Sa.prototype,`indeterminate`,2),w([Kt(`checked`)],Sa.prototype,`defaultChecked`,2),w([wt({reflect:!0})],Sa.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],Sa.prototype,`required`,2),w([wt({attribute:`help-text`})],Sa.prototype,`helpText`,2),w([pn(`disabled`,{waitUntilFirstUpdate:!0})],Sa.prototype,`handleDisabledChange`,1),w([pn([`checked`,`indeterminate`],{waitUntilFirstUpdate:!0})],Sa.prototype,`handleStateChange`,1);var Ca=xe` + `}};Da.styles=[hn,Jt,Ea],Da.dependencies={"sl-icon":ua},w([kt(`input[type="checkbox"]`)],Da.prototype,`input`,2),w([Et()],Da.prototype,`hasFocus`,2),w([Tt()],Da.prototype,`title`,2),w([Tt()],Da.prototype,`name`,2),w([Tt()],Da.prototype,`value`,2),w([Tt({reflect:!0})],Da.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`checked`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`indeterminate`,2),w([qt(`checked`)],Da.prototype,`defaultChecked`,2),w([Tt({reflect:!0})],Da.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`required`,2),w([Tt({attribute:`help-text`})],Da.prototype,`helpText`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Da.prototype,`handleDisabledChange`,1),w([mn([`checked`,`indeterminate`],{waitUntilFirstUpdate:!0})],Da.prototype,`handleStateChange`,1);var Oa=xe` :host { --track-width: 2px; --track-color: rgb(128 128 128 / 25%); @@ -4608,15 +4611,15 @@ stroke-dasharray: 0.05em, 3em; } } -`,wa=class extends gn{constructor(){super(...arguments),this.localize=new fn(this)}render(){return T` +`,ka=class extends _n{constructor(){super(...arguments),this.localize=new pn(this)}render(){return T` - `}};wa.styles=[mn,Ca];var Ta=new Map,Ea=new WeakMap;function Cne(e){return e??{keyframes:[],options:{duration:0}}}function Da(e,t){return t.toLowerCase()===`rtl`?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function Oa(e,t){Ta.set(e,Cne(t))}function ka(e,t,n){let r=Ea.get(e);if(r?.[t])return Da(r[t],n.dir);let i=Ta.get(t);return i?Da(i,n.dir):{keyframes:[],options:{duration:0}}}function Aa(e,t,n){return new Promise(r=>{if(n?.duration===1/0)throw Error(`Promise-based animations must be finite.`);let i=e.animate(t,se(oe({},n),{duration:Tne()?0:n.duration}));i.addEventListener(`cancel`,r,{once:!0}),i.addEventListener(`finish`,r,{once:!0})})}function wne(e){return e=e.toString().toLowerCase(),e.indexOf(`ms`)>-1?parseFloat(e):e.indexOf(`s`)>-1?parseFloat(e)*1e3:parseFloat(e)}function Tne(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function ja(e){return Promise.all(e.getAnimations().map(e=>new Promise(t=>{e.cancel(),requestAnimationFrame(t)})))}function Ene(e,t){return e.map(e=>se(oe({},e),{height:e.height===`auto`?`${t}px`:e.height}))}function Dne(e,t,n){return e?t(e):n?.(e)}var Ma=class e extends gn{constructor(){super(...arguments),this.localize=new fn(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute(`role`)===`treeitem`}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`treeitem`),this.setAttribute(`tabindex`,`-1`),this.isNestedItem()&&(this.slot=`children`)}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?`auto`:`0`,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit(`sl-collapse`),await ja(this.childrenContainer);let{keyframes:e,options:t}=ka(this,`tree-item.collapse`,{dir:this.localize.dir()});await Aa(this.childrenContainer,Ene(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.hidden=!0,this.emit(`sl-after-collapse`)}isNestedItem(){let t=this.parentElement;return!!t&&e.isTreeItem(t)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has(`selected`)&&!e.has(`indeterminate`)&&(this.indeterminate=!1)}async animateExpand(){this.emit(`sl-expand`),await ja(this.childrenContainer),this.childrenContainer.hidden=!1;let{keyframes:e,options:t}=ka(this,`tree-item.expand`,{dir:this.localize.dir()});await Aa(this.childrenContainer,Ene(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.style.height=`auto`,this.emit(`sl-after-expand`)}handleLoadingChange(){this.setAttribute(`aria-busy`,this.loading?`true`:`false`),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`)}handleSelectedChange(){this.setAttribute(`aria-selected`,this.selected?`true`:`false`)}handleExpandedChange(){this.isLeaf?this.removeAttribute(`aria-expanded`):this.setAttribute(`aria-expanded`,this.expanded?`true`:`false`)}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit(`sl-lazy-load`)):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit(`sl-lazy-change`)}getChildrenItems({includeDisabled:t=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(n=>e.isTreeItem(n)&&(t||!n.disabled)):[]}render(){let e=this.localize.dir()===`rtl`,t=!this.loading&&(!this.isLeaf||this.lazy);return T` + `}};ka.styles=[hn,Oa];var Aa=new Map,xne=new WeakMap;function Sne(e){return e??{keyframes:[],options:{duration:0}}}function Cne(e,t){return t.toLowerCase()===`rtl`?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function ja(e,t){Aa.set(e,Sne(t))}function Ma(e,t,n){let r=xne.get(e);if(r?.[t])return Cne(r[t],n.dir);let i=Aa.get(t);return i?Cne(i,n.dir):{keyframes:[],options:{duration:0}}}function Na(e,t,n){return new Promise(r=>{if(n?.duration===1/0)throw Error(`Promise-based animations must be finite.`);let i=e.animate(t,se(oe({},n),{duration:Tne()?0:n.duration}));i.addEventListener(`cancel`,r,{once:!0}),i.addEventListener(`finish`,r,{once:!0})})}function wne(e){return e=e.toString().toLowerCase(),e.indexOf(`ms`)>-1?parseFloat(e):e.indexOf(`s`)>-1?parseFloat(e)*1e3:parseFloat(e)}function Tne(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Pa(e){return Promise.all(e.getAnimations().map(e=>new Promise(t=>{e.cancel(),requestAnimationFrame(t)})))}function Ene(e,t){return e.map(e=>se(oe({},e),{height:e.height===`auto`?`${t}px`:e.height}))}function Dne(e,t,n){return e?t(e):n?.(e)}var Fa=class e extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute(`role`)===`treeitem`}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`treeitem`),this.setAttribute(`tabindex`,`-1`),this.isNestedItem()&&(this.slot=`children`)}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?`auto`:`0`,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit(`sl-collapse`),await Pa(this.childrenContainer);let{keyframes:e,options:t}=Ma(this,`tree-item.collapse`,{dir:this.localize.dir()});await Na(this.childrenContainer,Ene(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.hidden=!0,this.emit(`sl-after-collapse`)}isNestedItem(){let t=this.parentElement;return!!t&&e.isTreeItem(t)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has(`selected`)&&!e.has(`indeterminate`)&&(this.indeterminate=!1)}async animateExpand(){this.emit(`sl-expand`),await Pa(this.childrenContainer),this.childrenContainer.hidden=!1;let{keyframes:e,options:t}=Ma(this,`tree-item.expand`,{dir:this.localize.dir()});await Na(this.childrenContainer,Ene(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.style.height=`auto`,this.emit(`sl-after-expand`)}handleLoadingChange(){this.setAttribute(`aria-busy`,this.loading?`true`:`false`),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`)}handleSelectedChange(){this.setAttribute(`aria-selected`,this.selected?`true`:`false`)}handleExpandedChange(){this.isLeaf?this.removeAttribute(`aria-expanded`):this.setAttribute(`aria-expanded`,this.expanded?`true`:`false`)}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit(`sl-lazy-load`)):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit(`sl-lazy-change`)}getChildrenItems({includeDisabled:t=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(n=>e.isTreeItem(n)&&(t||!n.disabled)):[]}render(){let e=this.localize.dir()===`rtl`,t=!this.loading&&(!this.isLeaf||this.lazy);return T`
- `}};Ma.styles=[mn,xne],Ma.dependencies={"sl-checkbox":Sa,"sl-icon":sa,"sl-spinner":wa},w([Tt()],Ma.prototype,`indeterminate`,2),w([Tt()],Ma.prototype,`isLeaf`,2),w([Tt()],Ma.prototype,`loading`,2),w([Tt()],Ma.prototype,`selectable`,2),w([wt({type:Boolean,reflect:!0})],Ma.prototype,`expanded`,2),w([wt({type:Boolean,reflect:!0})],Ma.prototype,`selected`,2),w([wt({type:Boolean,reflect:!0})],Ma.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],Ma.prototype,`lazy`,2),w([Ot(`slot:not([name])`)],Ma.prototype,`defaultSlot`,2),w([Ot(`slot[name=children]`)],Ma.prototype,`childrenSlot`,2),w([Ot(`.tree-item__item`)],Ma.prototype,`itemElement`,2),w([Ot(`.tree-item__children`)],Ma.prototype,`childrenContainer`,2),w([Ot(`.tree-item__expand-button slot`)],Ma.prototype,`expandButtonSlot`,2),w([pn(`loading`,{waitUntilFirstUpdate:!0})],Ma.prototype,`handleLoadingChange`,1),w([pn(`disabled`)],Ma.prototype,`handleDisabledChange`,1),w([pn(`selected`)],Ma.prototype,`handleSelectedChange`,1),w([pn(`expanded`,{waitUntilFirstUpdate:!0})],Ma.prototype,`handleExpandedChange`,1),w([pn(`expanded`,{waitUntilFirstUpdate:!0})],Ma.prototype,`handleExpandAnimation`,1),w([pn(`lazy`,{waitUntilFirstUpdate:!0})],Ma.prototype,`handleLazyChange`,1);var Na=Ma;Oa(`tree-item.expand`,{keyframes:[{height:`0`,opacity:`0`,overflow:`hidden`},{height:`auto`,opacity:`1`,overflow:`hidden`}],options:{duration:250,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}}),Oa(`tree-item.collapse`,{keyframes:[{height:`auto`,opacity:`1`,overflow:`hidden`},{height:`0`,opacity:`0`,overflow:`hidden`}],options:{duration:200,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}});var One=xe` + `}};Fa.styles=[hn,Ta],Fa.dependencies={"sl-checkbox":Da,"sl-icon":ua,"sl-spinner":ka},w([Et()],Fa.prototype,`indeterminate`,2),w([Et()],Fa.prototype,`isLeaf`,2),w([Et()],Fa.prototype,`loading`,2),w([Et()],Fa.prototype,`selectable`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`expanded`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`selected`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`lazy`,2),w([kt(`slot:not([name])`)],Fa.prototype,`defaultSlot`,2),w([kt(`slot[name=children]`)],Fa.prototype,`childrenSlot`,2),w([kt(`.tree-item__item`)],Fa.prototype,`itemElement`,2),w([kt(`.tree-item__children`)],Fa.prototype,`childrenContainer`,2),w([kt(`.tree-item__expand-button slot`)],Fa.prototype,`expandButtonSlot`,2),w([mn(`loading`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleLoadingChange`,1),w([mn(`disabled`)],Fa.prototype,`handleDisabledChange`,1),w([mn(`selected`)],Fa.prototype,`handleSelectedChange`,1),w([mn(`expanded`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleExpandedChange`,1),w([mn(`expanded`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleExpandAnimation`,1),w([mn(`lazy`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleLazyChange`,1);var Ia=Fa;ja(`tree-item.expand`,{keyframes:[{height:`0`,opacity:`0`,overflow:`hidden`},{height:`auto`,opacity:`1`,overflow:`hidden`}],options:{duration:250,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}}),ja(`tree-item.collapse`,{keyframes:[{height:`auto`,opacity:`1`,overflow:`hidden`},{height:`0`,opacity:`0`,overflow:`hidden`}],options:{duration:200,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}});var One=xe` :host { /* * These are actually used by tree item, but we define them here so they can more easily be set and all tree items @@ -4691,7 +4694,7 @@ */ font-size: 0; } -`;function Pa(e,t,n){return(e=>Object.is(e,-0)?0:e)(en?n:e)}function Fa(e,t=!1){function n(e){let t=e.getChildrenItems({includeDisabled:!1});if(t.length){let n=t.every(e=>e.selected),r=t.every(e=>!e.selected&&!e.indeterminate);e.selected=n,e.indeterminate=!n&&!r}}function r(e){let t=e.parentElement;Na.isTreeItem(t)&&(n(t),r(t))}function i(e){for(let n of e.getChildrenItems())n.selected=t?e.selected||n.selected:!n.disabled&&e.selected,i(n);t&&n(e)}i(e),r(e)}var Ia=class extends gn{constructor(){super(),this.selection=`single`,this.clickTarget=null,this.localize=new fn(this),this.initTreeItem=e=>{e.selectable=this.selection===`multiple`,[`expand`,`collapse`].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(t=>{let n=e.querySelector(`[slot="${t}-icon"]`),r=this.getExpandButtonIcon(t);r&&(n===null?e.append(r):n.hasAttribute(`data-default`)&&n.replaceWith(r))})},this.handleTreeChanged=e=>{for(let t of e){let e=[...t.addedNodes].filter(Na.isTreeItem),n=[...t.removedNodes].filter(Na.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&n.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{let t=e.relatedTarget;(!t||!this.contains(t))&&(this.tabIndex=0)},this.handleFocusIn=e=>{let t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),Na.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut),this.addEventListener(`sl-lazy-change`,this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tree`),this.setAttribute(`tabindex`,`0`),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}getExpandButtonIcon(e){let t=(e===`expand`?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){let n=t.cloneNode(!0);return[n,...n.querySelectorAll(`[id]`)].forEach(e=>e.removeAttribute(`id`)),n.setAttribute(`data-default`,``),n.slot=`${e}-icon`,n}return null}selectItem(e){let t=[...this.selectedItems];if(this.selection===`multiple`)e.selected=!e.selected,e.lazy&&(e.expanded=!0),Fa(e);else if(this.selection===`single`||e.isLeaf){let t=this.getAllTreeItems();for(let n of t)n.selected=n===e}else this.selection===`leaf`&&(e.expanded=!e.expanded);let n=this.selectedItems;(t.length!==n.length||n.some(e=>!t.includes(e)))&&Promise.all(n.map(e=>e.updateComplete)).then(()=>{this.emit(`sl-selection-change`,{detail:{selection:n}})})}getAllTreeItems(){return[...this.querySelectorAll(`sl-tree-item`)]}focusItem(e){e?.focus()}handleKeyDown(e){if(![`ArrowDown`,`ArrowUp`,`ArrowRight`,`ArrowLeft`,`Home`,`End`,`Enter`,` `].includes(e.key)||e.composedPath().some(e=>[`input`,`textarea`].includes((e?.tagName)?.toLowerCase())))return;let t=this.getFocusableItems(),n=this.localize.dir()===`ltr`,r=this.localize.dir()===`rtl`;if(t.length>0){e.preventDefault();let i=t.findIndex(e=>e.matches(`:focus`)),a=t[i],o=e=>{let n=t[Pa(e,0,t.length-1)];this.focusItem(n)},s=e=>{a.expanded=e};e.key===`ArrowDown`?o(i+1):e.key===`ArrowUp`?o(i-1):n&&e.key===`ArrowRight`||r&&e.key===`ArrowLeft`?!a||a.disabled||a.expanded||a.isLeaf&&!a.lazy?o(i+1):s(!0):n&&e.key===`ArrowLeft`||r&&e.key===`ArrowRight`?!a||a.disabled||a.isLeaf||!a.expanded?o(i-1):s(!1):e.key===`Home`?o(0):e.key===`End`?o(t.length-1):(e.key===`Enter`||e.key===` `)&&(a.disabled||this.selectItem(a))}}handleClick(e){let t=e.target,n=t.closest(`sl-tree-item`),r=e.composedPath().some(e=>(e?.classList)?.contains(`tree-item__expand-button`));n&&!n.disabled&&t===this.clickTarget&&(r?n.expanded=!n.expanded:this.selectItem(n))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){let e=this.selection===`multiple`,t=this.getAllTreeItems();this.setAttribute(`aria-multiselectable`,e?`true`:`false`);for(let n of t)n.selectable=e;e&&(await this.updateComplete,[...this.querySelectorAll(`:scope > sl-tree-item`)].forEach(e=>Fa(e,!0)))}get selectedItems(){return this.getAllTreeItems().filter(e=>e.selected)}getFocusableItems(){let e=this.getAllTreeItems(),t=new Set;return e.filter(e=>{if(e.disabled)return!1;let n=e.parentElement?.closest(`[role=treeitem]`);return n&&(!n.expanded||n.loading||t.has(n))&&t.add(e),!t.has(e)})}render(){return T` +`;function La(e,t,n){return(e=>Object.is(e,-0)?0:e)(en?n:e)}function Ra(e,t=!1){function n(e){let t=e.getChildrenItems({includeDisabled:!1});if(t.length){let n=t.every(e=>e.selected),r=t.every(e=>!e.selected&&!e.indeterminate);e.selected=n,e.indeterminate=!n&&!r}}function r(e){let t=e.parentElement;Ia.isTreeItem(t)&&(n(t),r(t))}function i(e){for(let n of e.getChildrenItems())n.selected=t?e.selected||n.selected:!n.disabled&&e.selected,i(n);t&&n(e)}i(e),r(e)}var za=class extends _n{constructor(){super(),this.selection=`single`,this.clickTarget=null,this.localize=new pn(this),this.initTreeItem=e=>{e.selectable=this.selection===`multiple`,[`expand`,`collapse`].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(t=>{let n=e.querySelector(`[slot="${t}-icon"]`),r=this.getExpandButtonIcon(t);r&&(n===null?e.append(r):n.hasAttribute(`data-default`)&&n.replaceWith(r))})},this.handleTreeChanged=e=>{for(let t of e){let e=[...t.addedNodes].filter(Ia.isTreeItem),n=[...t.removedNodes].filter(Ia.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&n.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{let t=e.relatedTarget;(!t||!this.contains(t))&&(this.tabIndex=0)},this.handleFocusIn=e=>{let t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),Ia.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut),this.addEventListener(`sl-lazy-change`,this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tree`),this.setAttribute(`tabindex`,`0`),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}getExpandButtonIcon(e){let t=(e===`expand`?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){let n=t.cloneNode(!0);return[n,...n.querySelectorAll(`[id]`)].forEach(e=>e.removeAttribute(`id`)),n.setAttribute(`data-default`,``),n.slot=`${e}-icon`,n}return null}selectItem(e){let t=[...this.selectedItems];if(this.selection===`multiple`)e.selected=!e.selected,e.lazy&&(e.expanded=!0),Ra(e);else if(this.selection===`single`||e.isLeaf){let t=this.getAllTreeItems();for(let n of t)n.selected=n===e}else this.selection===`leaf`&&(e.expanded=!e.expanded);let n=this.selectedItems;(t.length!==n.length||n.some(e=>!t.includes(e)))&&Promise.all(n.map(e=>e.updateComplete)).then(()=>{this.emit(`sl-selection-change`,{detail:{selection:n}})})}getAllTreeItems(){return[...this.querySelectorAll(`sl-tree-item`)]}focusItem(e){e?.focus()}handleKeyDown(e){if(![`ArrowDown`,`ArrowUp`,`ArrowRight`,`ArrowLeft`,`Home`,`End`,`Enter`,` `].includes(e.key)||e.composedPath().some(e=>[`input`,`textarea`].includes((e?.tagName)?.toLowerCase())))return;let t=this.getFocusableItems(),n=this.localize.dir()===`ltr`,r=this.localize.dir()===`rtl`;if(t.length>0){e.preventDefault();let i=t.findIndex(e=>e.matches(`:focus`)),a=t[i],o=e=>{let n=t[La(e,0,t.length-1)];this.focusItem(n)},s=e=>{a.expanded=e};e.key===`ArrowDown`?o(i+1):e.key===`ArrowUp`?o(i-1):n&&e.key===`ArrowRight`||r&&e.key===`ArrowLeft`?!a||a.disabled||a.expanded||a.isLeaf&&!a.lazy?o(i+1):s(!0):n&&e.key===`ArrowLeft`||r&&e.key===`ArrowRight`?!a||a.disabled||a.isLeaf||!a.expanded?o(i-1):s(!1):e.key===`Home`?o(0):e.key===`End`?o(t.length-1):(e.key===`Enter`||e.key===` `)&&(a.disabled||this.selectItem(a))}}handleClick(e){let t=e.target,n=t.closest(`sl-tree-item`),r=e.composedPath().some(e=>(e?.classList)?.contains(`tree-item__expand-button`));n&&!n.disabled&&t===this.clickTarget&&(r?n.expanded=!n.expanded:this.selectItem(n))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){let e=this.selection===`multiple`,t=this.getAllTreeItems();this.setAttribute(`aria-multiselectable`,e?`true`:`false`);for(let n of t)n.selectable=e;e&&(await this.updateComplete,[...this.querySelectorAll(`:scope > sl-tree-item`)].forEach(e=>Ra(e,!0)))}get selectedItems(){return this.getAllTreeItems().filter(e=>e.selected)}getFocusableItems(){let e=this.getAllTreeItems(),t=new Set;return e.filter(e=>{if(e.disabled)return!1;let n=e.parentElement?.closest(`[role=treeitem]`);return n&&(!n.expanded||n.loading||t.has(n))&&t.add(e),!t.has(e)})}render(){return T` - `}};Ia.styles=[mn,One],w([Ot(`slot:not([name])`)],Ia.prototype,`defaultSlot`,2),w([Ot(`slot[name=expand-icon]`)],Ia.prototype,`expandedIconSlot`,2),w([Ot(`slot[name=collapse-icon]`)],Ia.prototype,`collapsedIconSlot`,2),w([wt()],Ia.prototype,`selection`,2),w([pn(`selection`)],Ia.prototype,`handleSelectionChange`,1),Ia.define(`sl-tree`),Na.define(`sl-tree-item`);var kne=xe` + `}};za.styles=[hn,One],w([kt(`slot:not([name])`)],za.prototype,`defaultSlot`,2),w([kt(`slot[name=expand-icon]`)],za.prototype,`expandedIconSlot`,2),w([kt(`slot[name=collapse-icon]`)],za.prototype,`collapsedIconSlot`,2),w([Tt()],za.prototype,`selection`,2),w([mn(`selection`)],za.prototype,`handleSelectionChange`,1),za.define(`sl-tree`),Ia.define(`sl-tree-item`);var kne=xe` sl-tree { --indent-guide-width: 1px; --indent-guide-color: var(--secondary-color); @@ -4810,21 +4813,21 @@ sl-tree-item.no-changes[selected]::part(expand-button) { opacity: 1; } -`,Ane={[E.DOCUMENT]:{showOnLeaf:!0,showOnBranch:!0},[E.PATHS]:{showOnLeaf:!0,showOnBranch:!0},[E.COMPONENTS]:{showOnLeaf:!0,showOnBranch:!0},[E.INFO]:{showOnLeaf:!0,showOnBranch:!0},[E.CONTACT]:{showOnLeaf:!0,showOnBranch:!0},[E.LICENSE]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVERS]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVER]:{showOnLeaf:!0,showOnBranch:!0},[E.TAGS]:{showOnLeaf:!0,showOnBranch:!0},[E.TAG]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEMES]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEME]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOKS]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOK]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTERNAL_DOCS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLE]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLES]:{showOnLeaf:!0,showOnBranch:!0},[E.LINK]:{showOnLeaf:!0,showOnBranch:!0},[E.LINKS]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACK]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACKS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSIONS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSION]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FILE]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FOLDER]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY]:{showOnLeaf:!0,showOnBranch:!0},[E.PARAMETERS]:{showOnLeaf:!0,showOnBranch:!0},[E.HEADERS]:{showOnLeaf:!0,showOnBranch:!0},[E.RESPONSES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODIES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODY]:{showOnLeaf:!0,showOnBranch:!0},[E.PATH_ITEMS]:{showOnLeaf:!0,showOnBranch:!0},[E.SCHEMAS]:{showOnLeaf:!0,showOnBranch:!0}};function jne(e,t,n,r){let i=r[e];return i?i.onlyWithIssues?n:t?i.showOnLeaf:i.showOnBranch:!1}var La=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ra,za=new Set([E.DOCUMENT,E.INFO,E.CONTACT,E.LICENSE,E.TAGS,E.SERVERS,E.PATHS,E.COMPONENTS,E.SECURITY_SCHEMES,E.WEBHOOKS,E.SCHEMAS,E.PARAMETERS,E.HEADERS,E.RESPONSES,E.REQUEST_BODIES,E.CALLBACKS,E.LINKS,E.EXAMPLES,E.EXTENSIONS,E.PATH_ITEMS,E.EXTERNAL_DOCS,E.SECURITY,E.OPERATIONS,E.ROLODEX_FOLDER]),Ba=Ra=class extends St{static renderFileIcon(e,t){return T``}constructor(){super(),this.iconConfig=Ane,this.isBundled=!1,this._childRenderLimit=50,this.selectedNodes=[],this.isRolodex=!1,this.filteredNodes=new Map,this.pendingNavigationId=``,this.pendingNavigationPath=``,this.nodesWithChanges=new Map,this.expand=!1,this.expandedNodes=new Map,this.changesEnabled=!1,this.treeChanged=!1,this.childrenRendered=new Set,this.showAllChildren=new Set}disconnectedCallback(){super.disconnectedCallback(),this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout)}showMoreChildren(e){this.showAllChildren.add(e),this.requestUpdate()}nodeClicked(e,t=[],n){this.dispatchEvent(new CustomEvent(Sn,{bubbles:!0,composed:!0,detail:{nodeId:e,changes:t,source:n}}))}rolodexClicked(e,t=``,n=[]){this.dispatchEvent(new CustomEvent(xee,{bubbles:!0,composed:!0,detail:{nodeId:e,path:t,changes:n}}))}openNode(e){if(this.nodeMap.get(e)){let t=this.nodeMap.get(e);t&&(this.expandedNodes.set(t.id,t),this.childrenRendered.add(t.id),this.openNode(t.parentId),this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(t.id)}`)[0]?.setAttribute(`expanded`,`true`)),this.requestUpdate()}else{let t=this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(e)}`)[0];if(t){t.setAttribute(`expanded`,`true`),this.childrenRendered.add(e);let n=t.getAttribute(`data-parentid`);n&&this.openNode(n),this.requestUpdate();return}}}willUpdate(e){(e.has(`node`)||e.has(`nodeMap`))&&(this.childrenRendered.clear(),this.expandedNodes.forEach((e,t)=>{this.childrenRendered.add(t)}),this.showAllChildren.clear())}updated(){if(this.pendingNavigationId!=``&&this.explorerClicked(this.pendingNavigationId),this.pendingNavigationPath&&this.pendingNavigationPath!=``){let e=this.pendingNavigationPath;this.openNodeByPath(e)}}openNodeByPath(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);if(n){let r=null;for(let t=0;t{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})}),t&&this.isRolodex)){let t=r.id.replace(`model-`,``);(this.currentId!==t||this.currentPath!==e)&&(this.currentId=t,this.currentPath=e,this.selectedNodes=[r],this.rolodexClicked(t,e,[]))}}}explorerClicked(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);n?this.pendingNavigationId!=``&&(e=this.pendingNavigationId,this.pendingNavigationId=``):this.pendingNavigationId=e;let r=null;for(let t=0;t{this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout),this.pendingExplorerTimeout=window.setTimeout(()=>{let n=this.renderRoot?.querySelector(`sl-tree-item#model-${CSS.escape(e)}`);n&&(n.selected=!0,t&&n.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`}))},50)});return}}r&&t&&requestAnimationFrame(()=>{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})})}collapse(e,t){e.stopPropagation(),t.treeExpanded=!1,this.expandedNodes.delete(t.id)}expanded(e,t){e.stopPropagation(),t.treeExpanded=!0,this.expandedNodes.set(t.id,t),this.childrenRendered.has(t.id)||(this.childrenRendered.add(t.id),this.requestUpdate())}renderLabel(e,t=!1){if(t)return T`${e.label}`;switch(e.type){case E.ROLODEX_FILE:return T`${e.label}`;case E.RESPONSE:return T`${e.label}`;case E.OPERATION:let t=e.instance?.operationId;return T` - ${t?T`${t}`:``}`;case E.PATH_ITEM:return T` - `;default:return T`${e.label}`}}buildTree(e,t){let n=[],r=e.label?.toLowerCase()===`document`,i=r||this.expand||this.childrenRendered.has(e.id);if(e.nodes&&i){let r=[];for(let t=0;t0){if(e.type===E.PATH_ITEM){let e=r.filter(e=>e.type===E.OPERATION),t=r.filter(e=>e.type===E.PARAMETER||e.type===E.PARAMETERS),n=r.filter(e=>e.type!==E.OPERATION&&e.type!==E.PARAMETER&&e.type!==E.PARAMETERS);r=t.concat(e).concat(n)}else r.sort((e,t)=>e.keyLine-t.keyLine);let i=this.showAllChildren.has(e.id),a=i?r.length:this._childRenderLimit,o=Math.min(r.length,a);for(let e=0;ethis._childRenderLimit){let t=r.length-this._childRenderLimit;n.push(T` +`,Ane={[E.DOCUMENT]:{showOnLeaf:!0,showOnBranch:!0},[E.PATHS]:{showOnLeaf:!0,showOnBranch:!0},[E.CHANNEL]:{showOnLeaf:!0,showOnBranch:!0},[E.CHANNELS]:{showOnLeaf:!0,showOnBranch:!0},[E.COMPONENTS]:{showOnLeaf:!0,showOnBranch:!0},[E.INFO]:{showOnLeaf:!0,showOnBranch:!0},[E.CONTACT]:{showOnLeaf:!0,showOnBranch:!0},[E.LICENSE]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVERS]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVER]:{showOnLeaf:!0,showOnBranch:!0},[E.TAGS]:{showOnLeaf:!0,showOnBranch:!0},[E.TAG]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEMES]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEME]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOKS]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOK]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTERNAL_DOCS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLE]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLES]:{showOnLeaf:!0,showOnBranch:!0},[E.LINK]:{showOnLeaf:!0,showOnBranch:!0},[E.LINKS]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACK]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACKS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSIONS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSION]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FILE]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FOLDER]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY]:{showOnLeaf:!0,showOnBranch:!0},[E.PARAMETERS]:{showOnLeaf:!0,showOnBranch:!0},[E.HEADERS]:{showOnLeaf:!0,showOnBranch:!0},[E.RESPONSES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODIES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODY]:{showOnLeaf:!0,showOnBranch:!0},[E.PATH_ITEMS]:{showOnLeaf:!0,showOnBranch:!0},[E.SCHEMAS]:{showOnLeaf:!0,showOnBranch:!0}};function Ba(e,t,n,r){let i=r[e];return i?i.onlyWithIssues?n:t?i.showOnLeaf:i.showOnBranch:!1}var Va=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ha,Ua=new Set([E.DOCUMENT,E.INFO,E.CONTACT,E.LICENSE,E.TAGS,E.SERVERS,E.PATHS,E.COMPONENTS,E.SECURITY_SCHEMES,E.WEBHOOKS,E.SCHEMAS,E.PARAMETERS,E.HEADERS,E.RESPONSES,E.REQUEST_BODIES,E.CALLBACKS,E.LINKS,E.EXAMPLES,E.EXTENSIONS,E.PATH_ITEMS,E.EXTERNAL_DOCS,E.SECURITY,E.OPERATIONS,E.ROLODEX_FOLDER]),Wa=Ha=class extends Ct{static renderFileIcon(e,t){return T``}constructor(){super(),this.iconConfig=Ane,this.isBundled=!1,this._childRenderLimit=50,this.selectedNodes=[],this.isRolodex=!1,this.filteredNodes=new Map,this.pendingNavigationId=``,this.pendingNavigationPath=``,this.nodesWithChanges=new Map,this.expand=!1,this.expandedNodes=new Map,this.changesEnabled=!1,this.treeChanged=!1,this.childrenRendered=new Set,this.showAllChildren=new Set}disconnectedCallback(){super.disconnectedCallback(),this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout)}showMoreChildren(e){this.showAllChildren.add(e),this.requestUpdate()}nodeClicked(e,t=[],n){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:e,changes:t,source:n}}))}rolodexClicked(e,t=``,n=[]){this.dispatchEvent(new CustomEvent(bee,{bubbles:!0,composed:!0,detail:{nodeId:e,path:t,changes:n}}))}openNode(e){if(this.nodeMap.get(e)){let t=this.nodeMap.get(e);t&&(this.expandedNodes.set(t.id,t),this.childrenRendered.add(t.id),this.openNode(t.parentId),this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(t.id)}`)[0]?.setAttribute(`expanded`,`true`)),this.requestUpdate()}else{let t=this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(e)}`)[0];if(t){t.setAttribute(`expanded`,`true`),this.childrenRendered.add(e);let n=t.getAttribute(`data-parentid`);n&&this.openNode(n),this.requestUpdate();return}}}willUpdate(e){(e.has(`node`)||e.has(`nodeMap`))&&(this.childrenRendered.clear(),this.expandedNodes.forEach((e,t)=>{this.childrenRendered.add(t)}),this.showAllChildren.clear())}updated(){if(this.pendingNavigationId!=``&&this.explorerClicked(this.pendingNavigationId),this.pendingNavigationPath&&this.pendingNavigationPath!=``){let e=this.pendingNavigationPath;this.openNodeByPath(e)}}openNodeByPath(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);if(n){let r=null;for(let t=0;t{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})}),t&&this.isRolodex)){let t=r.id.replace(`model-`,``);(this.currentId!==t||this.currentPath!==e)&&(this.currentId=t,this.currentPath=e,this.selectedNodes=[r],this.rolodexClicked(t,e,[]))}}}explorerClicked(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);n?this.pendingNavigationId!=``&&(e=this.pendingNavigationId,this.pendingNavigationId=``):this.pendingNavigationId=e;let r=null;for(let t=0;t{this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout),this.pendingExplorerTimeout=window.setTimeout(()=>{let n=this.renderRoot?.querySelector(`sl-tree-item#model-${CSS.escape(e)}`);n&&(n.selected=!0,t&&n.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`}))},50)});return}}r&&t&&requestAnimationFrame(()=>{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})})}collapse(e,t){e.stopPropagation(),t.treeExpanded=!1,this.expandedNodes.delete(t.id)}expanded(e,t){e.stopPropagation(),t.treeExpanded=!0,this.expandedNodes.set(t.id,t),this.childrenRendered.has(t.id)||(this.childrenRendered.add(t.id),this.requestUpdate())}renderLabel(e,t=!1){if(t)return T`${e.label}`;switch(e.type){case E.ROLODEX_FILE:return T`${e.label}`;case E.RESPONSE:return T`${e.label}`;case E.OPERATION:let t=e.instance?.operationId;return T` + ${hi(e.label,e.instance)}${t?T`${t}`:``}`;case E.PATH_ITEM:return T` + `;default:return T`${e.label}`}}buildTree(e,t){let n=[],r=e.type===E.DOCUMENT,i=r||this.expand||this.childrenRendered.has(e.id);if(e.nodes&&i){let r=[];for(let t=0;t0){if(e.type===E.PATH_ITEM){let e=r.filter(e=>e.type===E.OPERATION),t=r.filter(e=>e.type===E.PARAMETER||e.type===E.PARAMETERS),n=r.filter(e=>e.type!==E.OPERATION&&e.type!==E.PARAMETER&&e.type!==E.PARAMETERS);r=t.concat(e).concat(n)}else r.sort((e,t)=>e.keyLine-t.keyLine);let i=this.showAllChildren.has(e.id),a=i?r.length:this._childRenderLimit,o=Math.min(r.length,a);for(let e=0;ethis._childRenderLimit){let t=r.length-this._childRenderLimit;n.push(T` Show ${t} more items... - `)}}}let a=e.treeExpanded;e.label.toLowerCase()==`document`&&(a=!0),this.expandedNodes&&this.expandedNodes.get(e.id)&&(a=!0);let o=Zr.primary,s=this.filteredNodes.size>0&&!this.filteredNodes.get(e.id);if(e.type===E.RESPONSE)switch(ki(parseInt(e.label))){case`http400`:o=Zr.warning;break;case`http500`:o=Zr.error;break;default:o=Zr.font}e.type===E.ROLODEX_FILE&&(o=Zr.secondary),s&&(o=Zr.filtered);let c=T``,l=T``,u=T``,d=!1,f=this.nodeMap.get(e.id);if(f){let e=Gt(f,this.violationMap);e.warnings>0&&(c=T` + `)}}}let a=e.treeExpanded;r&&(a=!0),this.expandedNodes&&this.expandedNodes.get(e.id)&&(a=!0);let o=Zr.primary,s=this.filteredNodes.size>0&&!this.filteredNodes.get(e.id);if(e.type===E.RESPONSE)switch(Mi(parseInt(e.label))){case`http400`:o=Zr.warning;break;case`http500`:o=Zr.error;break;default:o=Zr.font}e.type===E.ROLODEX_FILE&&(o=Zr.secondary),s&&(o=Zr.filtered);let c=T``,l=T``,u=T``,d=!1,f=this.nodeMap.get(e.id);if(f){let e=Kt(f,this.violationMap);e.warnings>0&&(c=T` ${e.warnings}`),e.errors>0&&(l=T` - ${e.errors}`),d=e.warnings>0||e.errors>0}e.label?.toLowerCase()===`document`&&this.isBundled&&(u=T`BUNDLED`);let p=!e.nodes||e.nodes.length===0,m=jne(e.type,p,d,this.iconConfig),h=m?T` + ${e.errors}`),d=e.warnings>0||e.errors>0}e.label?.toLowerCase()===`document`&&this.isBundled&&(u=T`BUNDLED`);let p=!e.nodes||e.nodes.length===0,m=Ba(e.type,p,d,this.iconConfig),h=m?T` `:T``;if(m&&e.openapi)h=T` `;else if(m&&!e.label.endsWith(`.json`)&&!e.label.endsWith(`.yaml`)&&!e.label.endsWith(`.yml`)&&e.label.includes(`.`)){let t=e.label.split(`.`).pop();if(t){let e=Ra.ICON_TYPE_MAP[t];e&&(h=Ra.renderFileIcon(e,o))}}let g=T``,_=e.timeline&&e.timeline.length>0;if(_){this.nodesWithChanges.set(e.id,e);let{additions:t,removals:n,modifications:r,breaking:i}=Wt(e.timeline);g=T`${i>0?T` `:T``} + color=${o}>`;else if(m&&e.type!==E.CHANNEL&&e.type!==E.CHANNELS&&!e.label.endsWith(`.json`)&&!e.label.endsWith(`.yaml`)&&!e.label.endsWith(`.yml`)&&e.label.includes(`.`)){let t=e.label.split(`.`).pop();if(t){let e=Ha.ICON_TYPE_MAP[t];e&&(h=Ha.renderFileIcon(e,o))}}let g=T``,_=e.timeline&&e.timeline.length>0;if(_){this.nodesWithChanges.set(e.id,e);let{additions:t,removals:n,modifications:r,breaking:i}=Gt(e.timeline);g=T`${i>0?T` `:T``} ${t>0?T` ${t>1?T`${t}`:T``} @@ -4851,7 +4854,7 @@ data-path="${e.path?e.path:e.nodePath}">
${h} -
+
${s?T`${this.renderLabel(e,s)} @@ -4867,15 +4870,15 @@ ${e} - `}};Ba.styles=[kne,Gr,Rn],Ba.ICON_TYPE_MAP={[E.JS]:E.JS,[E.GO]:E.GO,[E.TS]:E.TS,[E.CS]:E.CS,[E.C]:E.C,[E.CPP]:E.CPP,[E.PHP]:E.PHP,[E.PY]:E.PY,[E.HTML]:E.HTML,[E.MD]:E.MD,[E.JAVA]:E.JAVA,[E.RS]:E.RS,[E.ZIG]:E.ZIG,[E.RB]:E.RB},La([wt()],Ba.prototype,`node`,void 0),La([wt()],Ba.prototype,`filteredNodes`,void 0),La([wt({type:Boolean})],Ba.prototype,`expand`,void 0),La([wt({type:Boolean})],Ba.prototype,`changesEnabled`,void 0),La([wt()],Ba.prototype,`isRolodex`,void 0),La([wt()],Ba.prototype,`nodeMap`,void 0),La([wt()],Ba.prototype,`violationMap`,void 0),La([wt({type:Object})],Ba.prototype,`iconConfig`,void 0),La([wt({type:Boolean})],Ba.prototype,`isBundled`,void 0),Ba=Ra=La([Ct(`pb33f-model-tree`)],Ba);function Va(e){return e+.5|0}var Ha=(e,t,n)=>Math.max(Math.min(e,n),t);function Ua(e){return Ha(Va(e*2.55),0,255)}function Wa(e){return Ha(Va(e*255),0,255)}function Ga(e){return Ha(Va(e/2.55)/100,0,1)}function Ka(e){return Ha(Va(e*100),0,100)}var qa={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ja=[...`0123456789ABCDEF`],Mne=e=>Ja[e&15],Nne=e=>Ja[(e&240)>>4]+Ja[e&15],Ya=e=>(e&240)>>4==(e&15),Pne=e=>Ya(e.r)&&Ya(e.g)&&Ya(e.b)&&Ya(e.a);function Fne(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&qa[e[1]]*17,g:255&qa[e[2]]*17,b:255&qa[e[3]]*17,a:t===5?qa[e[4]]*17:255}:(t===7||t===9)&&(n={r:qa[e[1]]<<4|qa[e[2]],g:qa[e[3]]<<4|qa[e[4]],b:qa[e[5]]<<4|qa[e[6]],a:t===9?qa[e[7]]<<4|qa[e[8]]:255})),n}var Ine=(e,t)=>e<255?t(e):``;function Lne(e){var t=Pne(e)?Mne:Nne;return e?`#`+t(e.r)+t(e.g)+t(e.b)+Ine(e.a,t):void 0}var Rne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Xa(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function zne(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function Bne(e,t,n){let r=Xa(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Vne(e,t,n,r,i){return e===i?(t-n)/r+(t.5?l/(2-i-a):l/(i+a),s=Vne(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function Qa(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Wa)}function $a(e,t,n){return Qa(Xa,e,t,n)}function Hne(e,t,n){return Qa(Bne,e,t,n)}function Une(e,t,n){return Qa(zne,e,t,n)}function eo(e){return(e%360+360)%360}function Wne(e){let t=Rne.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Ua(+t[5]):Wa(+t[5]));let i=eo(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?Hne(i,a,o):t[1]===`hsv`?Une(i,a,o):$a(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Gne(e,t){var n=Za(e);n[0]=eo(n[0]+t),n=$a(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Kne(e){if(!e)return;let t=Za(e),n=t[0],r=Ka(t[1]),i=Ka(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ga(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var to={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},no={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function qne(){let e={},t=Object.keys(no),n=Object.keys(to),r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return e}var ro;function Jne(e){ro||(ro=qne(),ro.transparent=[0,0,0,0]);let t=ro[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Yne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Xne(e){let t=Yne.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?Ua(e):Ha(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?Ua(r):Ha(r,0,255)),i=255&(t[4]?Ua(i):Ha(i,0,255)),a=255&(t[6]?Ua(a):Ha(a,0,255)),{r,g:i,b:a,a:n}}}function Zne(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ga(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var io=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,ao=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Qne(e,t,n){let r=ao(Ga(e.r)),i=ao(Ga(e.g)),a=ao(Ga(e.b));return{r:Wa(io(r+n*(ao(Ga(t.r))-r))),g:Wa(io(i+n*(ao(Ga(t.g))-i))),b:Wa(io(a+n*(ao(Ga(t.b))-a))),a:e.a+n*(t.a-e.a)}}function oo(e,t,n){if(e){let r=Za(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=$a(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function so(e,t){return e&&Object.assign(t||{},e)}function co(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Wa(e[3]))):(t=so(e,{r:0,g:0,b:0,a:1}),t.a=Wa(t.a)),t}function lo(e){return e.charAt(0)===`r`?Xne(e):Wne(e)}var uo=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=co(t):n===`string`&&(r=Fne(t)||Jne(t)||lo(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=so(this._rgb);return e&&(e.a=Ga(e.a)),e}set rgb(e){this._rgb=co(e)}rgbString(){return this._valid?Zne(this._rgb):void 0}hexString(){return this._valid?Lne(this._rgb):void 0}hslString(){return this._valid?Kne(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=Qne(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=Wa(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=Va(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return oo(this._rgb,2,e),this}darken(e){return oo(this._rgb,2,-e),this}saturate(e){return oo(this._rgb,1,e),this}desaturate(e){return oo(this._rgb,1,-e),this}rotate(e){return Gne(this._rgb,e),this}};function fo(){}var $ne=(()=>{let e=0;return()=>e++})();function po(e){return e==null}function mo(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function ho(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function go(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function _o(e,t){return go(e)?e:t}function vo(e,t){return e===void 0?t:e}var ere=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,yo=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function bo(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function xo(e,t,n,r){let i,a,o;if(mo(e)){if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function rre(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function ire(e){let t=rre(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function Oo(e,t){return(Do[t]||(Do[t]=ire(t)))(e)}function ko(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ao=e=>e!==void 0,jo=e=>typeof e==`function`,Mo=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function are(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var No=Math.PI,Po=2*No,ore=Po+No,Fo=1/0,sre=No/180,Io=No/2,Lo=No/4,Ro=No*2/3,zo=Math.log10,Bo=Math.sign;function Vo(e,t,n){return Math.abs(e-t)e-t).pop(),t}function lre(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Uo(e){return!lre(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function ure(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Wo(e,t,n){let r,i,a;for(r=0,i=e.length;rc&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function es(e,t,n){n||=(n=>e[n]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var ts=(e,t,n,r)=>es(e,n,r?r=>{let i=e[r][t];return ie[r][t]es(e,n,r=>e[r][t]>=n);function mre(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{let n=`_onData`+ko(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})}))}function rs(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(ns.forEach(t=>{delete e[t]}),delete e._chartjs)}function is(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var as=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function os(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,as.call(window,()=>{r=!1,e.apply(t,n)}))}}function gre(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var ss=e=>e===`start`?`left`:e===`end`?`right`:`center`,cs=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,_re=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;function ls(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(ts(c,u,d).lo,n?r:ts(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!po(e[s.axis]));i-=Math.max(0,e)}i=Qo(i,0,r-1)}if(m){let e=Math.max(ts(c,o.axis,f,!0).hi+1,n?0:ts(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!po(e[s.axis]));e+=Math.max(0,t)}a=Qo(e,i,r)-i}else a=r-i}return{start:i,count:a}}function us(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var ds=e=>e===0||e===1,fs=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*Po/n)),ps=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*Po/n)+1,ms={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Io)+1,easeOutSine:e=>Math.sin(e*Io),easeInOutSine:e=>-.5*(Math.cos(No*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>ds(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ds(e)?e:fs(e,.075,.3),easeOutElastic:e=>ds(e)?e:ps(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return ds(e)?e:e<.5?.5*fs(e*2,t,n):.5+.5*ps(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-ms.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?ms.easeInBounce(e*2)*.5:ms.easeOutBounce(e*2-1)*.5+.5};function hs(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function gs(e){return hs(e)?e:new uo(e)}function _s(e){return hs(e)?e:new uo(e).saturate(.5).darken(.1).hexString()}var vre=[`x`,`y`,`borderWidth`,`radius`,`tension`],yre=[`color`,`borderColor`,`backgroundColor`];function bre(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:yre},numbers:{type:`number`,properties:vre}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function xre(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var vs=new Map;function Sre(e,t){t||={};let n=e+JSON.stringify(t),r=vs.get(n);return r||(r=new Intl.NumberFormat(e,t),vs.set(n,r)),r}function ys(e,t,n){return Sre(t,n).format(e)}var bs={values(e){return mo(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=Cre(e,n)}let o=zo(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),ys(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(zo(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?bs.numeric.call(this,e,t,n):``}};function Cre(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var xs={formatters:bs};function wre(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:xs.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var Ss=Object.create(null),Cs=Object.create(null);function ws(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>_s(t.backgroundColor),this.hoverBorderColor=(e,t)=>_s(t.borderColor),this.hoverColor=(e,t)=>_s(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Ts(this,e,t)}get(e){return ws(this,e)}describe(e,t){return Ts(Cs,e,t)}override(e,t){return Ts(Ss,e,t)}route(e,t,n,r){let i=ws(this,e),a=ws(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return ho(e)?Object.assign({},t,e):vo(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[bre,xre,wre]);function Tre(e){return!e||po(e.size)||po(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Ds(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Ere(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;cn.length){for(c=0;c0&&e.stroke()}}function Ms(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,kre(e,a),c=0;c+e||0;function Ls(e,t){let n={},r=ho(t),i=r?Object.keys(t):t,a=ho(e)?r?n=>vo(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=Fre(a(e));return n}function Rs(e){return Ls(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function zs(e){return Ls(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function Bs(e){let t=Rs(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Vs(e,t){e||={},t||=Es.font;let n=vo(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=vo(e.style,t.style);r&&!(``+r).match(Nre)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:vo(e.family,t.family),lineHeight:Pre(vo(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:vo(e.weight,t.weight),string:``};return i.string=Tre(i),i}function Hs(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;an&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Us(e,t){return Object.assign(Object.create(e),t)}function Ws(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=$s(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>Ws([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return Js(n,r,()=>Qs(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return ec(e).includes(t)},ownKeys(e){return ec(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function Gs(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ks(e,r),setContext:t=>Gs(e,t,n,r),override:i=>Gs(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return Js(e,t,()=>Rre(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function Ks(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:jo(n)?n:()=>n,isIndexable:jo(r)?r:()=>r}}var Lre=(e,t)=>e?e+ko(t):t,qs=(e,t)=>ho(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Js(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function Rre(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return jo(s)&&o.isScriptable(t)&&(s=zre(t,s,e,n)),mo(s)&&s.length&&(s=Bre(t,s,e,o.isIndexable)),qs(t,s)&&(s=Gs(s,i,a&&a[t],o)),s}function zre(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),qs(e,c)&&(c=Xs(i._scopes,i,e,c)),c}function Bre(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(ho(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=Xs(r,i,e,c);t.push(Gs(n,a,o&&o[e],s))}}return t}function Ys(e,t,n){return jo(e)?e(t,n):e}var Vre=(e,t)=>e===!0?t:typeof e==`string`?Oo(t,e):void 0;function Hre(e,t,n,r,i){for(let a of t){let t=Vre(n,a);if(t){e.add(t);let a=Ys(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function Xs(e,t,n,r){let i=t._rootScopes,a=Ys(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=Zs(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=Zs(s,o,a,c,r),c===null)?!1:Ws(Array.from(s),[``],i,a,()=>Ure(t,n,r))}function Zs(e,t,n,r,i){for(;n;)n=Hre(e,t,n,r,i);return n}function Ure(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return mo(i)&&ho(n)?n:i||{}}function Qs(e,t,n,r){let i;for(let a of t)if(i=$s(Lre(a,e),n),i!==void 0)return qs(e,i)?Xs(n,r,e,i):i}function $s(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function ec(e){let t=e._keys;return t||=e._keys=Wre(e._scopes),t}function Wre(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function tc(e,t,n,r){let{iScale:i}=e,{key:a=`r`}=this._parsing,o=Array(r),s,c,l,u;for(s=0,c=r;ste===`x`?`y`:`x`;function Kre(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=Yo(a,i),c=Yo(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function qre(e,t,n){let r=e.length,i,a,o,s,c,l=nc(e,0);for(let u=0;u!e.skip)),t.cubicInterpolationMode===`monotone`)Yre(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function Qre(e,t){return cc(e).getPropertyValue(t)}var $re=[`top`,`right`,`bottom`,`left`];function lc(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=$re[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var eie=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function tie(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(eie(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function uc(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=cc(n),a=i.boxSizing===`border-box`,o=lc(i,`padding`),s=lc(i,`border`,`width`),{x:c,y:l,box:u}=tie(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function nie(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&oc(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=cc(a),s=lc(o,`border`,`width`),c=lc(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=sc(o.maxWidth,a,`clientWidth`),i=sc(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||Fo,maxHeight:i||Fo}}var dc=e=>Math.round(e*10)/10;function rie(e,t,n,r){let i=cc(e),a=lc(i,`margin`),o=sc(i.maxWidth,e,`clientWidth`)||Fo,s=sc(i.maxHeight,e,`clientHeight`)||Fo,c=nie(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=lc(i,`border`,`width`),t=lc(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=dc(Math.min(l,o,c.maxWidth)),u=dc(Math.min(u,s,c.maxHeight)),l&&!u&&(u=dc(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=dc(Math.floor(u*r))),{width:l,height:u}}function fc(e,t,n){let r=t||1,i=dc(e.height*r),a=dc(e.width*r);e.height=dc(e.height),e.width=dc(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var iie=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};ac()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function pc(e,t){let n=Qre(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function mc(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function aie(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r===`middle`?n<.5?e.y:t.y:r===`after`?n<1?e.y:t.y:n>0?t.y:e.y}}function oie(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=mc(e,i,n),s=mc(i,a,n),c=mc(a,t,n);return mc(mc(o,s,n),mc(s,c,n),n)}var sie=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},cie=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function hc(e,t,n){return e?sie(t,n):cie()}function gc(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function _c(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function vc(e){return e===`angle`?{between:Zo,compare:dre,normalize:Xo}:{between:$o,compare:(e,t)=>e-t,normalize:e=>e}}function yc({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function lie(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=vc(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;fc(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),ee=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&ee()&&(m.push(yc({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(yc({start:g,end:d,loop:f,count:o,style:p})),m}function xc(e,t){let n=[],r=e.segments;for(let i=0;ii&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function die(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function fie(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=uie(n,i,a,r);return r===!0?Sc(e,[{start:o,end:s,loop:a}],n,t):Sc(e,die(n,o,sr({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,as.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},Oc=`transparent`,hie={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=gs(e||Oc),i=r.valid&&gs(t||Oc);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},kc=class{constructor(e,t,n,r){let i=t[n];r=Hs([e.to,r,i,e.from]);let a=Hs([e.from,i,r]);this._active=!0,this._fn=e.fn||hie[e.type||typeof a],this._easing=ms[e.easing]||ms.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Hs([e.to,t,r,e.from]),this._from=Hs([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;this._active=i!==o&&(a||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)):(this._target[r]=o,this._notify(!0))}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e{let i=e[r];if(!ho(i))return;let a={};for(let e of t)a[e]=i[e];(mo(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=_ie(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&gie(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u){if(d&&u.active()){u.update(d,l,o);continue}u.cancel()}!d||!d.duration?e[c]=l:(i[c]=u=new kc(d,e,c,l),r.push(u))}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return Dc.add(this._chart,n),!0}};function gie(e,t){let n=[],r=Object.keys(t);for(let t=0;t0||!n&&t<0)return i.index}return null}function Lc(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=bie(a,o,r),d=t.length,f;for(let e=0;en[e].axis===t).shift()}function Cie(e,t){return Us(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function zc(e,t,n){return Us(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Bc(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var Vc=e=>e===`reset`||e===`none`,Hc=(e,t)=>t?e:Object.assign({},e),wie=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Nc(n,!0),values:null},Uc=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Fc(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&Bc(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=vo(n.xAxisID,Rc(e,`x`)),a=t.yAxisID=vo(n.yAxisID,Rc(e,`y`)),o=t.rAxisID=vo(n.rAxisID,Rc(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&rs(this._data,this),e._stacked&&Bc(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(ho(t)){let e=this._cachedMeta;this._data=yie(t,e)}else if(n!==t){if(n){rs(n,this);let e=this._cachedMeta;Bc(e),e._parsed=[]}t&&Object.isExtensible(t)&&hre(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=Fc(t.vScale,t),t.stack!==n.stack&&(r=!0,Bc(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(Lc(this,t._parsed),t._stacked=Fc(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length||n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=mo(r[e])?this.parseArrayData(n,r,e,t):ho(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]t||u=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r=0&&ethis.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(Hc(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new Ac(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||Vc(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){Vc(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Vc(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;oe-t))}return e._cache.$bar}function Eie(e){let t=e.iScale,n=Tie(t,e.type),r=t._length,i,a,o,s,c=()=>{o!==32767&&o!==-32768&&(Ao(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function Wc(e,t,n,r){return mo(e)?kie(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Gc(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l=n?1:-1):Bo(e)}function jie(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.basee.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(po(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[vo(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),c=a._custom;return{label:n[e]||``,value:`(`+o+`, `+s+(c?`, `+c:``)+`)`}}update(e){let t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(t,r),l=a.axis,u=o.axis;for(let d=t;dZo(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>Zo(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(Io,u,f),_=m(No,l,d),v=m(No+Io,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var $c=class extends Uc{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}},cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(ho(n[e])){let{key:e=`value`}=this._parsing;i=t=>+Oo(n[t],e)}let a,o;for(a=e,o=e+t;a0&&!isNaN(e)?Math.abs(e)/t*Po:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=ys(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r0&&this.getParsed(t-1);for(let n=0;n=_){v.skip=!0;continue}let b=this.getParsed(n),x=po(b[f]),S=v[d]=a.getPixelForValue(b[d],n),ee=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(ee)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},tl=class extends Uc{static id=`polarArea`;static defaults={dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:`number`,properties:[`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`]}},indexAxis:`r`,startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((t,i)=>{let a=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:`radialLinear`,angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=ys(t._parsed[e].r,n.options.locale);return{label:r[e]||``,value:i}}parseObjectData(e,t,n,r){return tc.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){let e=this._cachedMeta,t={min:1/0,max:-1/0};return e.data.forEach((e,n)=>{let r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(rt.max&&(t.max=r))}),t}_updateRadius(){let e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*No,d=u,f,p=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Go(this.resolveDataElementOptions(e,t).angle||n):0}},Pie=Object.freeze({__proto__:null,BarController:Xc,BubbleController:Zc,DoughnutController:$c,LineController:el,PieController:class extends $c{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}},PolarAreaController:tl,RadarController:class extends Uc{static id=`radar`;static defaults={datasetElementType:`line`,dataElementType:`point`,indexAxis:`r`,showLine:!0,elements:{line:{fill:`start`}}};static overrides={aspectRatio:1,scales:{r:{type:`radialLinear`}}};getLabelAndValue(e){let t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:``+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return tc.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,e!==`resize`){let t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);let a={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){let i=this._cachedMeta.rScale,a=r===`reset`;for(let o=t;o0&&this.getParsed(t-1);for(let l=t;l0&&Math.abs(n[f]-v[f])>g,h&&(m.parsed=n,m.raw=c.data[l]),d&&(m.options=u||this.resolveDataElementOptions(l,t.active?`active`:r)),_||this.updateElement(t,l,m,r),v=n}this.updateSharedOptions(u,r,l)}getMaxOverflow(){let e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}let n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;let i=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,a)/2}}});function nl(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var Fie={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return nl()}parse(){return nl()}format(){return nl()}add(){return nl()}diff(){return nl()}startOf(){return nl()}endOf(){return nl()}}};function Iie(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?pre:ts;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!po(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!po(e[t.axis]));r.hi+=Math.max(0,o)}return r}if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function rl(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var zie={evaluateInteractionItems:rl,modes:{index(e,t,n,r){let i=uc(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?il(e,i,a,r,o):ol(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=uc(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?il(e,i,a,r,o):ol(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;ee.pos===t)}function Vie(e,t){return e.filter(e=>Bie.indexOf(e.pos)===-1&&e.box.axis===t)}function ll(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function ul(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;ne.box.fullSize),!0),r=ll(cl(t,`left`),!0),i=ll(cl(t,`right`)),a=ll(cl(t,`top`),!0),o=ll(cl(t,`bottom`)),s=Vie(t,`x`),c=Vie(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:cl(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function Wie(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function fl(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Gie(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!ho(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&fl(o,a.getPadding());let s=Math.max(0,t.outerWidth-Wie(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Wie(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Kie(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function qie(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function pl(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);fl(f,Bs(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Hie(c.concat(l),d);pl(s.fullSize,p,d,m),pl(c,p,d,m),pl(l,p,d,m)&&pl(c,p,d,m),Kie(p),hl(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,hl(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},xo(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},Jie=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},Yie=class extends Jie{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},_l=`$chartjs`,Xie={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},Zie=e=>e===null||e===``;function Qie(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[_l]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,Zie(i)){let t=pc(e,`width`);t!==void 0&&(e.width=t)}if(Zie(r)){if(e.style.height===``)e.height=e.width/(t||2);else{let t=pc(e,`height`);t!==void 0&&(e.height=t)}}return e}var $ie=iie?{passive:!0}:!1;function eae(e,t,n){e&&e.addEventListener(t,n,$ie)}function tae(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,$ie)}function nae(e,t){let n=Xie[e.type]||e.type,{x:r,y:i}=uc(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function vl(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function rae(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=vl(n.addedNodes,r),t&&=!vl(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function iae(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=vl(n.removedNodes,r),t&&=!vl(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var yl=new Map,aae=0;function oae(){let e=window.devicePixelRatio;e!==aae&&(aae=e,yl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function sae(e,t){yl.size||window.addEventListener(`resize`,oae),yl.set(e,t)}function cae(e){yl.delete(e),yl.size||window.removeEventListener(`resize`,oae)}function lae(e,t,n){let r=e.canvas,i=r&&oc(r);if(!i)return;let a=os((e,t)=>{let r=i.clientWidth;n(e,t),r{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;(n!==0||r!==0)&&a(n,r)});return o.observe(i),sae(e,a),o}function bl(e,t,n){n&&n.disconnect(),t===`resize`&&cae(e)}function xl(e,t,n){let r=e.canvas,i=os(t=>{e.ctx!==null&&n(nae(t,e))},e);return eae(r,t,i),i}var Sl=class extends Jie{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(Qie(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[_l])return!1;let n=t[_l].initial;[`height`,`width`].forEach(e=>{let r=n[e];po(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[_l],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:rae,detach:iae,resize:lae}[t]||xl)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:bl,detach:bl,resize:bl}[t]||tae)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return rie(e,t,n,r)}isAttached(e){let t=e&&oc(e);return!!(t&&t.isConnected)}};function Cl(e){return!ac()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?Yie:Sl}var wl=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Uo(this.x)&&Uo(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function Tl(e,t){let n=e.options.ticks,r=El(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?Ol(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return kl(t,l,a,o/i),l;let u=Dl(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(Al(t,l,u,po(r)?0:s-r,s),e=0,n=o-1;ei)return t}return Math.max(i,1)}function Ol(e){let t=[],n,r;for(n=0,r=e.length;ne===`left`?`right`:e===`right`?`left`:e,Nl=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,Pl=(e,t)=>Math.min(t||e,e);function Fl(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;ao+s)))return c}function Ll(e,t){xo(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;in?n:t,n=r&&t>n?t:n,{min:_o(t,_o(n,t)),max:_o(n,_o(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){bo(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Ire(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=Qo(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-Rl(e.grid)-t.padding-zl(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=Ko(Math.min(Math.asin(Qo((l.highest.height+6)/o,-1,1)),Math.asin(Qo(s/c,-1,1))-Math.asin(Qo(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){bo(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){bo(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=zl(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=Rl(i)+a):(e.height=this.maxHeight,e.width=Rl(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=Go(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){bo(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t({width:a[e]||0,height:o[e]||0});return{first:ee(0),last:ee(t-1),widest:ee(x),highest:ee(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return fre(this._alignToPixels?Os(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&eo*r?o/n:s/r:s*r0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=Rl(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Os(n,e,p)},g,_,v,y,b,x,S,ee,te,ne,C,re;if(a===`top`)g=h(this.bottom),x=this.bottom-u,ee=g-m,ne=h(e.top)+m,re=e.bottom;else if(a===`bottom`)g=h(this.top),ne=e.top,re=h(e.bottom)-m,x=g+m,ee=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,te=h(e.left)+m,C=e.right;else if(a===`right`)g=h(this.left),te=e.left,C=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(ho(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}ne=e.top,re=e.bottom,x=g+m,ee=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(ho(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,te=e.left,C=e.right}let ie=vo(r.ticks.maxTicksLimit,l),ae=Math.max(1,Math.ceil(l/ie));for(_=0;_0&&(a-=r/2)}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:te,textOffset:re,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:ie,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-Go(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);Es.route(a,i,c,s)})}function Ul(e){return`id`in e&&`defaults`in e}var Wl=new class{constructor(){this.controllers=new Hl(Uc,`datasets`,!0),this.elements=new Hl(wl,`elements`),this.plugins=new Hl(Object,`plugins`),this.scales=new Hl(Vl,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):xo(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=ko(e);bo(n[`before`+r],[],n),t[e](n),bo(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;te.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function Kl(e){let t={},n=[],r=Object.keys(Wl.plugins.items);for(let e=0;e1&&Yl(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Zl(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function yae(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return Zl(e,`x`,n[0])||Zl(e,`y`,n[0])}return{}}function bae(e,t){let n=Ss[e.type]||{scales:{}},r=t.scales||{},i=Jl(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!ho(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=Xl(t,o,yae(t,e),Es.scales[o.type]),c=_ae(s,i),l=n.scales||{};a[t]=Eo(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||Jl(i,t),s=(Ss[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=gae(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),Eo(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];Eo(t,[Es.scales[t.type],Es.scale])}),a}function Ql(e){let t=e.options||={};t.plugins=vo(t.plugins,{}),t.scales=bae(e,t)}function $l(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function xae(e){return e||={},e.data=$l(e.data),Ql(e),e}var eu=new Map,tu=new Set;function nu(e,t){let n=eu.get(e);return n||(n=t(),eu.set(e,n),tu.add(n)),n}var ru=(e,t,n)=>{let r=Oo(t,n);r!==void 0&&e.add(r)},Sae=class{constructor(e){this._config=xae(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=$l(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),Ql(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return nu(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return nu(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return nu(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return nu(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>ru(s,e,t))),t.forEach(e=>ru(s,r,e)),t.forEach(e=>ru(s,Ss[i]||{},e)),t.forEach(e=>ru(s,Es,e)),t.forEach(e=>ru(s,Cs,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),tu.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,Ss[t]||{},Es.datasets[t]||{},{type:t},Es,Cs]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=iu(this._resolverCache,e,r),s=a;if(Cae(a,t)){i.$shared=!1,n=jo(n)?n():n;let t=this.createResolver(e,n,o);s=Gs(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=iu(this._resolverCache,e,n);return ho(t)?Gs(i,t,void 0,r):i}};function iu(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:Ws(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var au=e=>ho(e)&&Object.getOwnPropertyNames(e).some(t=>jo(e[t]));function Cae(e,t){let{isScriptable:n,isIndexable:r}=Ks(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(jo(o)||au(o))||a&&mo(o))return!0}return!1}var wae=`4.5.1`,Tae=[`top`,`bottom`,`left`,`right`,`chartArea`];function ou(e,t){return e===`top`||e===`bottom`||Tae.indexOf(e)===-1&&t===`x`}function su(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function cu(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),bo(n&&n.onComplete,[e],t)}function lu(e){let t=e.chart,n=t.options.animation;bo(n&&n.onProgress,[e],t)}function uu(e){return ac()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var du={},fu=e=>{let t=uu(e);return Object.values(du).filter(e=>e.canvas===t).pop()};function pu(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function Eae(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var mu=class{static defaults=Es;static instances=du;static overrides=Ss;static registry=Wl;static version=wae;static getChart=fu;static register(...e){Wl.add(...e),hu()}static unregister(...e){Wl.remove(...e),hu()}constructor(e,t){let n=this.config=new Sae(t),r=uu(e),i=fu(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(Cl(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;this.id=$ne(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Gl,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=gre(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],du[this.id]=this,!o||!s?console.error(`Failed to create chart: can't acquire context from the given item`):(Dc.listen(this,`complete`,cu),Dc.listen(this,`progress`,lu),this._initialize(),this.attached&&this.update())}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return po(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Wl}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():fc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return ks(this.canvas,this.ctx),this}stop(){return Dc.stop(this),this}resize(e,t){Dc.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,fc(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),bo(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){xo(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=Xl(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),xo(i,t=>{let i=t.options,a=i.id,o=Xl(a,i),s=vo(i.type,t.dtype);(i.position===void 0||ou(i.position,o)!==ou(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(Wl.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),xo(r,(e,t)=>{e||delete n[t]}),xo(n,e=>{gl.configure(this,e,e.options),gl.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(su(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){xo(this.scales,e=>{gl.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!Mo(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)pu(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;ee.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;gl.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],xo(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=Ec(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Ns(t,r),e.controller.draw(),r&&Ps(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return Ms(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=zie.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=Us(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Ao(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Dc.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};xo(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){xo(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},xo(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});So(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=are(e),c=Eae(e,this._lastEvent,n,s);n&&(this._lastEvent=null,bo(i.onHover,[e,o,this],this),s&&bo(i.onClick,[e,o,this],this));let l=!So(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function hu(){return xo(mu.instances,e=>e._plugins.invalidate())}function Dae(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,Xo(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,Xo(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*Xo(r-n));if(u===`round`)e.arc(i,a,t,n-No/2,r+No/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+No/2)+i,c=-o*Math.sin(n+No/2)+a,l=o*Math.cos(r+No/2)+i,u=o*Math.sin(r+No/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function Oae(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+Io,r-Io),e.closePath(),e.clip()}function kae(e){return Ls(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function Aae(e,t,n,r){let i=kae(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return Qo(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Qo(i.innerStart,0,o),innerEnd:Qo(i.innerEnd,0,o)}}function gu(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function _u(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/No)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=Aae(t,f,d,_-g),S=d-v,ee=d-y,te=g+v/S,ne=_-y/ee,C=f+b,re=f+x,ie=g+b/C,ae=_-x/re;if(e.beginPath(),a){let t=(te+ne)/2;if(e.arc(o,s,d,te,t),e.arc(o,s,d,t,ne),y>0){let t=gu(ee,ne,o,s);e.arc(t.x,t.y,y,ne,_+Io)}let n=gu(re,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=gu(re,ae,o,s);e.arc(t.x,t.y,x,_+Io,ae+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=gu(C,ie,o,s);e.arc(t.x,t.y,b,ie+Math.PI,g-Io)}let i=gu(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=gu(S,te,o,s);e.arc(t.x,t.y,v,g-Io,te)}}else{e.moveTo(o,s);let t=Math.cos(te)*d+o,n=Math.sin(te)*d+s;e.lineTo(t,n);let r=Math.cos(ne)*d+o,i=Math.sin(ne)*d+s;e.lineTo(r,i)}e.closePath()}function jae(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){_u(e,t,n,r,c,i);for(let t=0;t=No&&p===0&&u!==`miter`&&Dae(e,t,h),a||(_u(e,t,n,r,h,i),e.stroke())}var vu=class extends wl{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=Jo(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=vo(l,o-a),f=Zo(r,a,o)&&a!==o,p=d>=Po||f,m=$o(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>Po?Math.floor(n/Po):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(No,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,jae(e,this,s,i,a),Mae(e,this,s,i,a),e.restore()}};function yu(e,t,n=t){e.lineCap=vo(n.borderCapStyle,t.borderCapStyle),e.setLineDash(vo(n.borderDash,t.borderDash)),e.lineDashOffset=vo(n.borderDashOffset,t.borderDashOffset),e.lineJoin=vo(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=vo(n.borderWidth,t.borderWidth),e.strokeStyle=vo(n.borderColor,t.borderColor)}function Nae(e,t,n){e.lineTo(n.x,n.y)}function Pae(e){return e.stepped?Dre:e.tension||e.cubicInterpolationMode===`monotone`?Ore:Nae}function bu(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=is&&a>s;return{count:r,start:c,loop:t.loop,ilen:l(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(ng&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function xu(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Iae:Fae}function Lae(e){return e.stepped?aie:e.tension||e.cubicInterpolationMode===`monotone`?oie:mc}function Rae(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),yu(e,t.options),e.stroke(i)}function Su(e,t,n,r){let{segments:i,options:a}=t,o=xu(t);for(let s of i)yu(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var zae=typeof Path2D==`function`;function Bae(e,t,n,r){zae&&!t.options.segment?Rae(e,t,n,r):Su(e,t,n,r)}var Cu=class extends wl{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;Zre(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=fie(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=xc(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=Lae(n),c,l;for(c=0,l=a.length;ce.replace(`rgb(`,`rgba(`).replace(`)`,`, 0.5)`));function ju(e){return ku[e%ku.length]}function Mu(e){return Au[e%Au.length]}function Jae(e,t){return e.borderColor=ju(t),e.backgroundColor=Mu(t),++t}function Yae(e,t){return e.backgroundColor=e.data.map(()=>ju(t++)),t}function Xae(e,t){return e.backgroundColor=e.data.map(()=>Mu(t++)),t}function Zae(e){let t=0;return(n,r)=>{let i=e.getDatasetMeta(r).controller;i instanceof $c?t=Yae(n,t):i instanceof tl?t=Xae(n,t):i&&(t=Jae(n,t))}}function Nu(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function Qae(e){return e&&(e.borderColor||e.backgroundColor)}function $ae(){return Es.borderColor!==`rgba(0,0,0,0.1)`||Es.backgroundColor!==`rgba(0,0,0,0.1)`}var eoe={id:`colors`,defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;let{data:{datasets:r},options:i}=e.config,{elements:a}=i,o=Nu(r)||Qae(i)||a&&Nu(a)||$ae();if(!n.forceOverride&&o)return;let s=Zae(e);r.forEach(s)}};function toe(e,t,n,r,i){let a=i.samples||r;if(a>=n)return e.slice(t,t+n);let o=[],s=(n-2)/(a-2),c=0,l=t+n-1,u=t,d,f,p,m,h;for(o[c++]=e[u],d=0;dp&&(p=m,f=e[a],h=a);o[c++]=f,u=h}return o[c++]=e[l],o}function noe(e,t,n,r){let i=0,a=0,o,s,c,l,u,d,f,p,m,h,g=[],_=t+n-1,v=e[t].x,y=e[_].x-v;for(o=t;oh&&(h=l,f=o),i=(a*i+s.x)/++a;else{let n=o-1;if(!po(d)&&!po(f)){let t=Math.min(d,f),r=Math.max(d,f);t!==p&&t!==n&&g.push({...e[t],x:i}),r!==p&&r!==n&&g.push({...e[r],x:i})}o>0&&n!==p&&g.push(e[n]),g.push(s),u=t,a=0,m=h=l,d=f=p=o}}return g}function Pu(e){if(e._decimated){let t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Fu(e){e.data.datasets.forEach(e=>{Pu(e)})}function roe(e,t){let n=t.length,r=0,i,{iScale:a}=e,{min:o,max:s,minDefined:c,maxDefined:l}=a.getUserBounds();return c&&(r=Qo(ts(t,a.axis,o).lo,0,n-1)),i=l?Qo(ts(t,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}var ioe={id:`decimation`,defaults:{algorithm:`min-max`,enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){Fu(e);return}let r=e.width;e.data.datasets.forEach((t,i)=>{let{_data:a,indexAxis:o}=t,s=e.getDatasetMeta(i),c=a||t.data;if(Hs([o,e.options.indexAxis])===`y`||!s.controller.supportsDecimation)return;let l=e.scales[s.xAxisID];if(l.type!==`linear`&&l.type!==`time`||e.options.parsing)return;let{start:u,count:d}=roe(s,c);if(d<=(n.threshold||4*r)){Pu(t);return}po(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}}));let f;switch(n.algorithm){case`lttb`:f=toe(c,u,d,r,n);break;case`min-max`:f=noe(c,u,d,r);break;default:throw Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=f})},destroy(e){Fu(e)}};function aoe(e,t,n){let r=e.segments,i=e.points,a=t.points,o=[];for(let e of r){let{start:r,end:s}=e;s=Lu(r,s,i);let c=Iu(n,i[r],i[s],e.loop);if(!t.segments){o.push({source:e,target:c,start:i[r],end:i[s]});continue}let l=xc(t,c);for(let t of l){let r=Iu(n,a[t.start],a[t.end],t.loop),s=bc(e,i,r);for(let e of s)o.push({source:e,target:t,start:{[n]:soe(c,r,`start`,Math.max)},end:{[n]:soe(c,r,`end`,Math.min)}})}}return o}function Iu(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e===`angle`&&(i=Xo(i),a=Xo(a)),{property:e,start:i,end:a}}function ooe(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:e,end:t})=>{t=Lu(e,t,i);let o=i[e],s=i[t];r===null?n!==null&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y})):(a.push({x:o.x,y:r}),a.push({x:s.x,y:r}))}),a}function Lu(e,t,n){for(;t>e;t--){let e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function soe(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function coe(e,t){let n=[],r=!1;return mo(e)?(r=!0,n=e):n=ooe(e,t),n.length?new Cu({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function loe(e){return e&&e.fill!==!1}function uoe(e,t,n){let r=e[t].fill,i=[t],a;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!go(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function doe(e,t,n){let r=hoe(e);if(ho(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return go(i)&&Math.floor(i)===i?foe(r[0],t,i,n):[`origin`,`start`,`end`,`stack`,`shape`].indexOf(r)>=0&&r}function foe(e,t,n,r){return(e===`-`||e===`+`)&&(n=t+n),n===t||n<0||n>=r?!1:n}function poe(e,t){let n=null;return e===`start`?n=t.bottom:e===`end`?n=t.top:ho(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function moe(e,t,n){let r;return r=e===`start`?n:e===`end`?t.options.reverse?t.min:t.max:ho(e)?e.value:t.getBaseValue(),r}function hoe(e){let t=e.options,n=t.fill,r=vo(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?`origin`:r}function goe(e){let{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=_oe(t,n);s.push(coe({x:null,y:t.bottom},r));for(let e=0;e=0;--t){let n=i[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&n.fill&&Ru(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!==`beforeDatasetsDraw`)return;let r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){let n=r[t].$filler;loe(n)&&Ru(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;loe(r)&&n.drawTime===`beforeDatasetDraw`&&Ru(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:`beforeDatasetDraw`}},Aoe=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},joe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,Moe=class extends wl{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=bo(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=Vs(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Aoe(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=Noe(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=hc(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=cs(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=cs(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=cs(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=cs(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Ns(e,this),this._draw(),Ps(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=Es.color,s=hc(e.rtl,this.left,this.width),c=Vs(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=Aoe(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=vo(n.lineWidth,1);if(r.fillStyle=vo(n.fillStyle,o),r.lineCap=vo(n.lineCap,`butt`),r.lineDashOffset=vo(n.lineDashOffset,0),r.lineJoin=vo(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=vo(n.strokeStyle,o),r.setLineDash(vo(n.lineDash,[])),a.usePointStyle){let o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},c=s.xPlus(e,p/2),l=t+d;js(r,o,c,l,a.pointStyleWidth&&p)}else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=zs(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?Is(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){Fs(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:cs(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:cs(i,this.top+y+l,this.bottom-t[0].height),line:0},gc(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,ee=f.y;s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(ee=f.y+=b,f.line++,S=f.x=cs(i,this.left+l,this.right-n[f.line])):u>0&&ee+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,ee=f.y=cs(i,this.top+y+l,this.bottom-t[f.line].height));let te=s.x(S);if(g(te,ee,o),S=_re(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),ee,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=Ioe(o,e)+l}else f.y+=b}),_c(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=Vs(t.font),r=Bs(t.padding);if(!t.display)return;let i=hc(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=cs(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+cs(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=cs(o,u,u+d);a.textAlign=i.textAlign(ss(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Fs(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=Vs(e.font),n=Bs(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if($o(e,this.left,this.right)&&$o(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ne.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function Foe(e,t,n){let r=e;return typeof t.text!=`string`&&(r=Ioe(t,n)),r}function Ioe(e,t){return t*(e.text?e.text.length:0)}function Loe(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var Roe={id:`legend`,_element:Moe,start(e,t,n){let r=e.legend=new Moe({ctx:e.ctx,options:n,chart:e});gl.configure(e,r,n),gl.addBox(e,r)},stop(e){gl.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;gl.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=Bs(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},Hu=class extends wl{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=mo(n.text)?n.text.length:1;this._padding=Bs(n.padding);let i=r*Vs(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=cs(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=cs(o,r,t),s=No*-.5):(l=i-e,u=cs(o,t,r),s=No*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=Vs(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);Fs(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:ss(t.align),textBaseline:`middle`,translation:[i,a]})}};function zoe(e,t){let n=new Hu({ctx:e.ctx,options:t,chart:e});gl.configure(e,n,t),gl.addBox(e,n),e.titleBlock=n}var Boe={id:`title`,_element:Hu,start(e,t,n){zoe(e,n)},stop(e){let t=e.titleBlock;gl.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;gl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},Uu=new WeakMap,Voe={id:`subtitle`,start(e,t,n){let r=new Hu({ctx:e.ctx,options:n,chart:e});gl.configure(e,r,n),gl.addBox(e,r),Uu.set(e,r)},stop(e){gl.removeBox(e,Uu.get(e)),Uu.delete(e)},beforeUpdate(e,t,n){let r=Uu.get(e);gl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`normal`},fullSize:!0,padding:0,position:`top`,text:``,weight:1500},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},Wu={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;te+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;aMath.max(Math.min(e,n),t);function qa(e){return Ka(Ga(e*2.55),0,255)}function Ja(e){return Ka(Ga(e*255),0,255)}function Ya(e){return Ka(Ga(e/2.55)/100,0,1)}function Xa(e){return Ka(Ga(e*100),0,100)}var Za={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Qa=[...`0123456789ABCDEF`],jne=e=>Qa[e&15],Mne=e=>Qa[(e&240)>>4]+Qa[e&15],$a=e=>(e&240)>>4==(e&15),Nne=e=>$a(e.r)&&$a(e.g)&&$a(e.b)&&$a(e.a);function Pne(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&Za[e[1]]*17,g:255&Za[e[2]]*17,b:255&Za[e[3]]*17,a:t===5?Za[e[4]]*17:255}:(t===7||t===9)&&(n={r:Za[e[1]]<<4|Za[e[2]],g:Za[e[3]]<<4|Za[e[4]],b:Za[e[5]]<<4|Za[e[6]],a:t===9?Za[e[7]]<<4|Za[e[8]]:255})),n}var Fne=(e,t)=>e<255?t(e):``;function Ine(e){var t=Nne(e)?jne:Mne;return e?`#`+t(e.r)+t(e.g)+t(e.b)+Fne(e.a,t):void 0}var Lne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function eo(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Rne(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function zne(e,t,n){let r=eo(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function to(e,t,n,r,i){return e===i?(t-n)/r+(t.5?l/(2-i-a):l/(i+a),s=to(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function ro(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ja)}function io(e,t,n){return ro(eo,e,t,n)}function Bne(e,t,n){return ro(zne,e,t,n)}function Vne(e,t,n){return ro(Rne,e,t,n)}function ao(e){return(e%360+360)%360}function Hne(e){let t=Lne.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?qa(+t[5]):Ja(+t[5]));let i=ao(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?Bne(i,a,o):t[1]===`hsv`?Vne(i,a,o):io(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function oo(e,t){var n=no(e);n[0]=ao(n[0]+t),n=io(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Une(e){if(!e)return;let t=no(e),n=t[0],r=Xa(t[1]),i=Xa(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ya(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var so={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},co={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function Wne(){let e={},t=Object.keys(co),n=Object.keys(so),r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return e}var lo;function Gne(e){lo||(lo=Wne(),lo.transparent=[0,0,0,0]);let t=lo[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Kne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function qne(e){let t=Kne.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?qa(e):Ka(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?qa(r):Ka(r,0,255)),i=255&(t[4]?qa(i):Ka(i,0,255)),a=255&(t[6]?qa(a):Ka(a,0,255)),{r,g:i,b:a,a:n}}}function Jne(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ya(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var uo=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,fo=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function po(e,t,n){let r=fo(Ya(e.r)),i=fo(Ya(e.g)),a=fo(Ya(e.b));return{r:Ja(uo(r+n*(fo(Ya(t.r))-r))),g:Ja(uo(i+n*(fo(Ya(t.g))-i))),b:Ja(uo(a+n*(fo(Ya(t.b))-a))),a:e.a+n*(t.a-e.a)}}function mo(e,t,n){if(e){let r=no(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=io(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function ho(e,t){return e&&Object.assign(t||{},e)}function go(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ja(e[3]))):(t=ho(e,{r:0,g:0,b:0,a:1}),t.a=Ja(t.a)),t}function Yne(e){return e.charAt(0)===`r`?qne(e):Hne(e)}var _o=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=go(t):n===`string`&&(r=Pne(t)||Gne(t)||Yne(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=ho(this._rgb);return e&&(e.a=Ya(e.a)),e}set rgb(e){this._rgb=go(e)}rgbString(){return this._valid?Jne(this._rgb):void 0}hexString(){return this._valid?Ine(this._rgb):void 0}hslString(){return this._valid?Une(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=po(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=Ja(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=Ga(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return mo(this._rgb,2,e),this}darken(e){return mo(this._rgb,2,-e),this}saturate(e){return mo(this._rgb,1,e),this}desaturate(e){return mo(this._rgb,1,-e),this}rotate(e){return oo(this._rgb,e),this}};function vo(){}var Xne=(()=>{let e=0;return()=>e++})();function yo(e){return e==null}function bo(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function xo(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function So(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function Co(e,t){return So(e)?e:t}function wo(e,t){return e===void 0?t:e}var Zne=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,To=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function Eo(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function Do(e,t,n,r){let i,a,o;if(bo(e)){if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function ere(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function tre(e){let t=ere(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function Po(e,t){return(No[t]||(No[t]=tre(t)))(e)}function Fo(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Io=e=>e!==void 0,Lo=e=>typeof e==`function`,Ro=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function nre(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var zo=Math.PI,Bo=2*zo,Vo=Bo+zo,Ho=1/0,rre=zo/180,Uo=zo/2,Wo=zo/4,Go=zo*2/3,Ko=Math.log10,qo=Math.sign;function Jo(e,t,n){return Math.abs(e-t)e-t).pop(),t}function are(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Xo(e){return!are(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function ore(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Zo(e,t,n){let r,i,a;for(r=0,i=e.length;rc&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ss(e,t,n){n||=(n=>e[n]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var cs=(e,t,n,r)=>ss(e,n,r?r=>{let i=e[r][t];return ie[r][t]ss(e,n,r=>e[r][t]>=n);function ure(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{let n=`_onData`+Fo(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})}))}function us(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(ls.forEach(t=>{delete e[t]}),delete e._chartjs)}function ds(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var fs=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function ps(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,fs.call(window,()=>{r=!1,e.apply(t,n)}))}}function fre(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var ms=e=>e===`start`?`left`:e===`end`?`right`:`center`,hs=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,pre=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;function gs(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(cs(c,u,d).lo,n?r:cs(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!yo(e[s.axis]));i-=Math.max(0,e)}i=as(i,0,r-1)}if(m){let e=Math.max(cs(c,o.axis,f,!0).hi+1,n?0:cs(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!yo(e[s.axis]));e+=Math.max(0,t)}a=as(e,i,r)-i}else a=r-i}return{start:i,count:a}}function _s(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var vs=e=>e===0||e===1,ys=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*Bo/n)),bs=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*Bo/n)+1,xs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Uo)+1,easeOutSine:e=>Math.sin(e*Uo),easeInOutSine:e=>-.5*(Math.cos(zo*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>vs(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>vs(e)?e:ys(e,.075,.3),easeOutElastic:e=>vs(e)?e:bs(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return vs(e)?e:e<.5?.5*ys(e*2,t,n):.5+.5*bs(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-xs.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?xs.easeInBounce(e*2)*.5:xs.easeOutBounce(e*2-1)*.5+.5};function Ss(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function Cs(e){return Ss(e)?e:new _o(e)}function ws(e){return Ss(e)?e:new _o(e).saturate(.5).darken(.1).hexString()}var mre=[`x`,`y`,`borderWidth`,`radius`,`tension`],hre=[`color`,`borderColor`,`backgroundColor`];function gre(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:hre},numbers:{type:`number`,properties:mre}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function _re(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Ts=new Map;function vre(e,t){t||={};let n=e+JSON.stringify(t),r=Ts.get(n);return r||(r=new Intl.NumberFormat(e,t),Ts.set(n,r)),r}function Es(e,t,n){return vre(t,n).format(e)}var Ds={values(e){return bo(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=yre(e,n)}let o=Ko(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),Es(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(Ko(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Ds.numeric.call(this,e,t,n):``}};function yre(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Os={formatters:Ds};function bre(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Os.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var ks=Object.create(null),As=Object.create(null);function js(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>ws(t.backgroundColor),this.hoverBorderColor=(e,t)=>ws(t.borderColor),this.hoverColor=(e,t)=>ws(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Ms(this,e,t)}get(e){return js(this,e)}describe(e,t){return Ms(As,e,t)}override(e,t){return Ms(ks,e,t)}route(e,t,n,r){let i=js(this,e),a=js(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return xo(e)?Object.assign({},t,e):wo(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[gre,_re,bre]);function xre(e){return!e||yo(e.size)||yo(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Ps(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Sre(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;cn.length){for(c=0;c0&&e.stroke()}}function zs(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,Tre(e,a),c=0;c+e||0;function Ws(e,t){let n={},r=xo(t),i=r?Object.keys(t):t,a=xo(e)?r?n=>wo(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=jre(a(e));return n}function Gs(e){return Ws(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function Ks(e){return Ws(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function qs(e){let t=Gs(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Js(e,t){e||={},t||=Ns.font;let n=wo(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=wo(e.style,t.style);r&&!(``+r).match(kre)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:wo(e.family,t.family),lineHeight:Are(wo(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:wo(e.weight,t.weight),string:``};return i.string=xre(i),i}function Ys(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;an&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Xs(e,t){return Object.assign(Object.create(e),t)}function Zs(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=ac(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>Zs([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return tc(n,r,()=>Bre(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return oc(e).includes(t)},ownKeys(e){return oc(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function Qs(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:$s(e,r),setContext:t=>Qs(e,t,n,r),override:i=>Qs(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return tc(e,t,()=>Pre(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function $s(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Lo(n)?n:()=>n,isIndexable:Lo(r)?r:()=>r}}var Nre=(e,t)=>e?e+Fo(t):t,ec=(e,t)=>xo(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function tc(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function Pre(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return Lo(s)&&o.isScriptable(t)&&(s=Fre(t,s,e,n)),bo(s)&&s.length&&(s=Ire(t,s,e,o.isIndexable)),ec(t,s)&&(s=Qs(s,i,a&&a[t],o)),s}function Fre(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),ec(e,c)&&(c=rc(i._scopes,i,e,c)),c}function Ire(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(xo(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=rc(r,i,e,c);t.push(Qs(n,a,o&&o[e],s))}}return t}function nc(e,t,n){return Lo(e)?e(t,n):e}var Lre=(e,t)=>e===!0?t:typeof e==`string`?Po(t,e):void 0;function Rre(e,t,n,r,i){for(let a of t){let t=Lre(n,a);if(t){e.add(t);let a=nc(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function rc(e,t,n,r){let i=t._rootScopes,a=nc(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=ic(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=ic(s,o,a,c,r),c===null)?!1:Zs(Array.from(s),[``],i,a,()=>zre(t,n,r))}function ic(e,t,n,r,i){for(;n;)n=Rre(e,t,n,r,i);return n}function zre(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return bo(i)&&xo(n)?n:i||{}}function Bre(e,t,n,r){let i;for(let a of t)if(i=ac(Nre(a,e),n),i!==void 0)return ec(e,i)?rc(n,r,e,i):i}function ac(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function oc(e){let t=e._keys;return t||=e._keys=Vre(e._scopes),t}function Vre(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function sc(e,t,n,r){let{iScale:i}=e,{key:a=`r`}=this._parsing,o=Array(r),s,c,l,u;for(s=0,c=r;ste===`x`?`y`:`x`;function Ure(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=ns(a,i),c=ns(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function Wre(e,t,n){let r=e.length,i,a,o,s,c,l=cc(e,0);for(let u=0;u!e.skip)),t.cubicInterpolationMode===`monotone`)Kre(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function Yre(e,t){return mc(e).getPropertyValue(t)}var Xre=[`top`,`right`,`bottom`,`left`];function hc(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=Xre[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var Zre=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Qre(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(Zre(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function gc(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=mc(n),a=i.boxSizing===`border-box`,o=hc(i,`padding`),s=hc(i,`border`,`width`),{x:c,y:l,box:u}=Qre(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function $re(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&fc(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=mc(a),s=hc(o,`border`,`width`),c=hc(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=pc(o.maxWidth,a,`clientWidth`),i=pc(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||Ho,maxHeight:i||Ho}}var _c=e=>Math.round(e*10)/10;function eie(e,t,n,r){let i=mc(e),a=hc(i,`margin`),o=pc(i.maxWidth,e,`clientWidth`)||Ho,s=pc(i.maxHeight,e,`clientHeight`)||Ho,c=$re(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=hc(i,`border`,`width`),t=hc(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=_c(Math.min(l,o,c.maxWidth)),u=_c(Math.min(u,s,c.maxHeight)),l&&!u&&(u=_c(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=_c(Math.floor(u*r))),{width:l,height:u}}function vc(e,t,n){let r=t||1,i=_c(e.height*r),a=_c(e.width*r);e.height=_c(e.height),e.width=_c(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var tie=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};dc()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function yc(e,t){let n=Yre(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bc(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function nie(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r===`middle`?n<.5?e.y:t.y:r===`after`?n<1?e.y:t.y:n>0?t.y:e.y}}function rie(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=bc(e,i,n),s=bc(i,a,n),c=bc(a,t,n);return bc(bc(o,s,n),bc(s,c,n),n)}var iie=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},aie=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function xc(e,t,n){return e?iie(t,n):aie()}function Sc(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function Cc(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function wc(e){return e===`angle`?{between:is,compare:sre,normalize:rs}:{between:os,compare:(e,t)=>e-t,normalize:e=>e}}function Tc({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function oie(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=wc(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;fc(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),ee=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&ee()&&(m.push(Tc({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(Tc({start:g,end:d,loop:f,count:o,style:p})),m}function Dc(e,t){let n=[],r=e.segments;for(let i=0;ii&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function sie(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function cie(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=Oc(n,i,a,r);return r===!0?kc(e,[{start:o,end:s,loop:a}],n,t):kc(e,sie(n,o,sr({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,fs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},Lc=`transparent`,lie={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=Cs(e||Lc),i=r.valid&&Cs(t||Lc);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},uie=class{constructor(e,t,n,r){let i=t[n];r=Ys([e.to,r,i,e.from]);let a=Ys([e.from,i,r]);this._active=!0,this._fn=e.fn||lie[e.type||typeof a],this._easing=xs[e.easing]||xs.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Ys([e.to,t,r,e.from]),this._from=Ys([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;this._active=i!==o&&(a||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)):(this._target[r]=o,this._notify(!0))}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e{let i=e[r];if(!xo(i))return;let a={};for(let e of t)a[e]=i[e];(bo(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=die(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&zc(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u){if(d&&u.active()){u.update(d,l,o);continue}u.cancel()}!d||!d.duration?e[c]=l:(i[c]=u=new uie(d,e,c,l),r.push(u))}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return Ic.add(this._chart,n),!0}};function zc(e,t){let n=[],r=Object.keys(t);for(let t=0;t0||!n&&t<0)return i.index}return null}function Kc(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Wc(a,o,r),d=t.length,f;for(let e=0;en[e].axis===t).shift()}function _ie(e,t){return Xs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function Jc(e,t,n){return Xs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Yc(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var Xc=e=>e===`reset`||e===`none`,Zc=(e,t)=>t?e:Object.assign({},e),vie=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Vc(n,!0),values:null},Qc=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Uc(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&Yc(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=wo(n.xAxisID,qc(e,`x`)),a=t.yAxisID=wo(n.yAxisID,qc(e,`y`)),o=t.rAxisID=wo(n.rAxisID,qc(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&us(this._data,this),e._stacked&&Yc(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(xo(t)){let e=this._cachedMeta;this._data=mie(t,e)}else if(n!==t){if(n){us(n,this);let e=this._cachedMeta;Yc(e),e._parsed=[]}t&&Object.isExtensible(t)&&dre(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=Uc(t.vScale,t),t.stack!==n.stack&&(r=!0,Yc(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(Kc(this,t._parsed),t._stacked=Uc(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length||n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=bo(r[e])?this.parseArrayData(n,r,e,t):xo(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]t||u=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r=0&&ethis.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(Zc(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new Rc(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||Xc(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){Xc(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Xc(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;oe-t))}return e._cache.$bar}function bie(e){let t=e.iScale,n=yie(t,e.type),r=t._length,i,a,o,s,c=()=>{o!==32767&&o!==-32768&&(Io(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function $c(e,t,n,r){return bo(e)?Cie(e,t,n,r):t[n.axis]=n.parse(e,r),t}function el(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l=n?1:-1):qo(e)}function Tie(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.basee.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(yo(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[wo(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),c=a._custom;return{label:n[e]||``,value:`(`+o+`, `+s+(c?`, `+c:``)+`)`}}update(e){let t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(t,r),l=a.axis,u=o.axis;for(let d=t;dis(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>is(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(Uo,u,f),_=m(zo,l,d),v=m(zo+Uo,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var cl=class extends Qc{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}},cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(xo(n[e])){let{key:e=`value`}=this._parsing;i=t=>+Po(n[t],e)}let a,o;for(a=e,o=e+t;a0&&!isNaN(e)?Math.abs(e)/t*Bo:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Es(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r0&&this.getParsed(t-1);for(let n=0;n=_){v.skip=!0;continue}let b=this.getParsed(n),x=yo(b[f]),S=v[d]=a.getPixelForValue(b[d],n),ee=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(ee)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},kie=class extends Qc{static id=`polarArea`;static defaults={dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:`number`,properties:[`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`]}},indexAxis:`r`,startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((t,i)=>{let a=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:`radialLinear`,angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Es(t._parsed[e].r,n.options.locale);return{label:r[e]||``,value:i}}parseObjectData(e,t,n,r){return sc.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){let e=this._cachedMeta,t={min:1/0,max:-1/0};return e.data.forEach((e,n)=>{let r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(rt.max&&(t.max=r))}),t}_updateRadius(){let e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*zo,d=u,f,p=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Qo(this.resolveDataElementOptions(e,t).angle||n):0}},Aie=Object.freeze({__proto__:null,BarController:ol,BubbleController:sl,DoughnutController:cl,LineController:Oie,PieController:class extends cl{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}},PolarAreaController:kie,RadarController:class extends Qc{static id=`radar`;static defaults={datasetElementType:`line`,dataElementType:`point`,indexAxis:`r`,showLine:!0,elements:{line:{fill:`start`}}};static overrides={aspectRatio:1,scales:{r:{type:`radialLinear`}}};getLabelAndValue(e){let t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:``+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return sc.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,e!==`resize`){let t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);let a={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){let i=this._cachedMeta.rScale,a=r===`reset`;for(let o=t;o0&&this.getParsed(t-1);for(let l=t;l0&&Math.abs(n[f]-v[f])>g,h&&(m.parsed=n,m.raw=c.data[l]),d&&(m.options=u||this.resolveDataElementOptions(l,t.active?`active`:r)),_||this.updateElement(t,l,m,r),v=n}this.updateSharedOptions(u,r,l)}getMaxOverflow(){let e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}let n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;let i=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,a)/2}}});function ll(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var jie={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return ll()}parse(){return ll()}format(){return ll()}add(){return ll()}diff(){return ll()}startOf(){return ll()}endOf(){return ll()}}};function ul(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?lre:cs;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!yo(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!yo(e[t.axis]));r.hi+=Math.max(0,o)}return r}if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function dl(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Fie={evaluateInteractionItems:dl,modes:{index(e,t,n,r){let i=gc(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?fl(e,i,a,r,o):ml(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=gc(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?fl(e,i,a,r,o):ml(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;ee.pos===t)}function _l(e,t){return e.filter(e=>hl.indexOf(e.pos)===-1&&e.box.axis===t)}function vl(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function Iie(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;ne.box.fullSize),!0),r=vl(gl(t,`left`),!0),i=vl(gl(t,`right`)),a=vl(gl(t,`top`),!0),o=vl(gl(t,`bottom`)),s=_l(t,`x`),c=_l(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:gl(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function Bie(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Vie(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function yl(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!xo(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&Vie(o,a.getPadding());let s=Math.max(0,t.outerWidth-Bie(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Bie(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Hie(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function bl(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function xl(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Vie(f,qs(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Rie(c.concat(l),d);xl(s.fullSize,p,d,m),xl(c,p,d,m),xl(l,p,d,m)&&xl(c,p,d,m),Hie(p),Uie(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,Uie(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Do(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},Wie=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},Gie=class extends Wie{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},wl=`$chartjs`,Kie={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},qie=e=>e===null||e===``;function Jie(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[wl]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,qie(i)){let t=yc(e,`width`);t!==void 0&&(e.width=t)}if(qie(r)){if(e.style.height===``)e.height=e.width/(t||2);else{let t=yc(e,`height`);t!==void 0&&(e.height=t)}}return e}var Yie=tie?{passive:!0}:!1;function Xie(e,t,n){e&&e.addEventListener(t,n,Yie)}function Zie(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Yie)}function Qie(e,t){let n=Kie[e.type]||e.type,{x:r,y:i}=gc(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function Tl(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function $ie(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Tl(n.addedNodes,r),t&&=!Tl(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function eae(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Tl(n.removedNodes,r),t&&=!Tl(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var El=new Map,Dl=0;function Ol(){let e=window.devicePixelRatio;e!==Dl&&(Dl=e,El.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function kl(e,t){El.size||window.addEventListener(`resize`,Ol),El.set(e,t)}function Al(e){El.delete(e),El.size||window.removeEventListener(`resize`,Ol)}function jl(e,t,n){let r=e.canvas,i=r&&fc(r);if(!i)return;let a=ps((e,t)=>{let r=i.clientWidth;n(e,t),r{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;(n!==0||r!==0)&&a(n,r)});return o.observe(i),kl(e,a),o}function Ml(e,t,n){n&&n.disconnect(),t===`resize`&&Al(e)}function tae(e,t,n){let r=e.canvas,i=ps(t=>{e.ctx!==null&&n(Qie(t,e))},e);return Xie(r,t,i),i}var Nl=class extends Wie{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(Jie(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[wl])return!1;let n=t[wl].initial;[`height`,`width`].forEach(e=>{let r=n[e];yo(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[wl],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:$ie,detach:eae,resize:jl}[t]||tae)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:Ml,detach:Ml,resize:Ml}[t]||Zie)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return eie(e,t,n,r)}isAttached(e){let t=e&&fc(e);return!!(t&&t.isConnected)}};function Pl(e){return!dc()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?Gie:Nl}var Fl=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Xo(this.x)&&Xo(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function Il(e,t){let n=e.options.ticks,r=Ll(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?zl(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return Bl(t,l,a,o/i),l;let u=Rl(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(Vl(t,l,u,yo(r)?0:s-r,s),e=0,n=o-1;ei)return t}return Math.max(i,1)}function zl(e){let t=[],n,r;for(n=0,r=e.length;ne===`left`?`right`:e===`right`?`left`:e,Wl=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,Gl=(e,t)=>Math.min(t||e,e);function Kl(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;ao+s)))return c}function nae(e,t){Do(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;in?n:t,n=r&&t>n?t:n,{min:Co(t,Co(n,t)),max:Co(n,Co(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Eo(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Mre(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=as(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-Jl(e.grid)-t.padding-Yl(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=$o(Math.min(Math.asin(as((l.highest.height+6)/o,-1,1)),Math.asin(as(s/c,-1,1))-Math.asin(as(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){Eo(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Eo(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=Yl(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=Jl(i)+a):(e.height=this.maxHeight,e.width=Jl(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=Qo(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Eo(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t({width:a[e]||0,height:o[e]||0});return{first:ee(0),last:ee(t-1),widest:ee(x),highest:ee(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return cre(this._alignToPixels?Fs(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&eo*r?o/n:s/r:s*r0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=Jl(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Fs(n,e,p)},g,_,v,y,b,x,S,ee,te,ne,C,re;if(a===`top`)g=h(this.bottom),x=this.bottom-u,ee=g-m,ne=h(e.top)+m,re=e.bottom;else if(a===`bottom`)g=h(this.top),ne=e.top,re=h(e.bottom)-m,x=g+m,ee=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,te=h(e.left)+m,C=e.right;else if(a===`right`)g=h(this.left),te=e.left,C=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(xo(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}ne=e.top,re=e.bottom,x=g+m,ee=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(xo(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,te=e.left,C=e.right}let ie=wo(r.ticks.maxTicksLimit,l),ae=Math.max(1,Math.ceil(l/ie));for(_=0;_0&&(a-=r/2)}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:te,textOffset:re,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:ie,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-Qo(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);Ns.route(a,i,c,s)})}function ru(e){return`id`in e&&`defaults`in e}var iu=new class{constructor(){this.controllers=new eu(Qc,`datasets`,!0),this.elements=new eu(Fl,`elements`),this.plugins=new eu(Object,`plugins`),this.scales=new eu($l,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):Do(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=Fo(e);Eo(n[`before`+r],[],n),t[e](n),Eo(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;te.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function iae(e){let t={},n=[],r=Object.keys(iu.plugins.items);for(let e=0;e1&&su(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function lu(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function uae(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return lu(e,`x`,n[0])||lu(e,`y`,n[0])}return{}}function dae(e,t){let n=ks[e.type]||{scales:{}},r=t.scales||{},i=ou(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!xo(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=cu(t,o,uae(t,e),Ns.scales[o.type]),c=cae(s,i),l=n.scales||{};a[t]=Mo(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||ou(i,t),s=(ks[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=sae(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),Mo(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];Mo(t,[Ns.scales[t.type],Ns.scale])}),a}function uu(e){let t=e.options||={};t.plugins=wo(t.plugins,{}),t.scales=dae(e,t)}function du(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function fu(e){return e||={},e.data=du(e.data),uu(e),e}var pu=new Map,mu=new Set;function hu(e,t){let n=pu.get(e);return n||(n=t(),pu.set(e,n),mu.add(n)),n}var gu=(e,t,n)=>{let r=Po(t,n);r!==void 0&&e.add(r)},fae=class{constructor(e){this._config=fu(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=du(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),uu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return hu(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return hu(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return hu(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return hu(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>gu(s,e,t))),t.forEach(e=>gu(s,r,e)),t.forEach(e=>gu(s,ks[i]||{},e)),t.forEach(e=>gu(s,Ns,e)),t.forEach(e=>gu(s,As,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),mu.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,ks[t]||{},Ns.datasets[t]||{},{type:t},Ns,As]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=_u(this._resolverCache,e,r),s=a;if(vu(a,t)){i.$shared=!1,n=Lo(n)?n():n;let t=this.createResolver(e,n,o);s=Qs(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=_u(this._resolverCache,e,n);return xo(t)?Qs(i,t,void 0,r):i}};function _u(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:Zs(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var pae=e=>xo(e)&&Object.getOwnPropertyNames(e).some(t=>Lo(e[t]));function vu(e,t){let{isScriptable:n,isIndexable:r}=$s(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(Lo(o)||pae(o))||a&&bo(o))return!0}return!1}var yu=`4.5.1`,bu=[`top`,`bottom`,`left`,`right`,`chartArea`];function xu(e,t){return e===`top`||e===`bottom`||bu.indexOf(e)===-1&&t===`x`}function Su(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Cu(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),Eo(n&&n.onComplete,[e],t)}function wu(e){let t=e.chart,n=t.options.animation;Eo(n&&n.onProgress,[e],t)}function Tu(e){return dc()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Eu={},Du=e=>{let t=Tu(e);return Object.values(Eu).filter(e=>e.canvas===t).pop()};function mae(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function hae(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var Ou=class{static defaults=Ns;static instances=Eu;static overrides=ks;static registry=iu;static version=yu;static getChart=Du;static register(...e){iu.add(...e),ku()}static unregister(...e){iu.remove(...e),ku()}constructor(e,t){let n=this.config=new fae(t),r=Tu(e),i=Du(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(Pl(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;this.id=Xne(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new rae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=fre(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],Eu[this.id]=this,!o||!s?console.error(`Failed to create chart: can't acquire context from the given item`):(Ic.listen(this,`complete`,Cu),Ic.listen(this,`progress`,wu),this._initialize(),this.attached&&this.update())}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return yo(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return iu}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():vc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return Is(this.canvas,this.ctx),this}stop(){return Ic.stop(this),this}resize(e,t){Ic.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,vc(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),Eo(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Do(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=cu(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),Do(i,t=>{let i=t.options,a=i.id,o=cu(a,i),s=wo(i.type,t.dtype);(i.position===void 0||xu(i.position,o)!==xu(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(iu.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),Do(r,(e,t)=>{e||delete n[t]}),Do(n,e=>{Cl.configure(this,e,e.options),Cl.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(Su(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Do(this.scales,e=>{Cl.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!Ro(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)mae(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;ee.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;Cl.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Do(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=Fc(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Bs(t,r),e.controller.draw(),r&&Vs(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return zs(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Fie.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=Xs(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Io(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Ic.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Do(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){Do(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},Do(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});Oo(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=nre(e),c=hae(e,this._lastEvent,n,s);n&&(this._lastEvent=null,Eo(i.onHover,[e,o,this],this),s&&Eo(i.onClick,[e,o,this],this));let l=!Oo(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function ku(){return Do(Ou.instances,e=>e._plugins.invalidate())}function gae(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,rs(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,rs(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*rs(r-n));if(u===`round`)e.arc(i,a,t,n-zo/2,r+zo/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+zo/2)+i,c=-o*Math.sin(n+zo/2)+a,l=o*Math.cos(r+zo/2)+i,u=o*Math.sin(r+zo/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function _ae(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+Uo,r-Uo),e.closePath(),e.clip()}function vae(e){return Ws(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function yae(e,t,n,r){let i=vae(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return as(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:as(i.innerStart,0,o),innerEnd:as(i.innerEnd,0,o)}}function Au(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function ju(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/zo)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=yae(t,f,d,_-g),S=d-v,ee=d-y,te=g+v/S,ne=_-y/ee,C=f+b,re=f+x,ie=g+b/C,ae=_-x/re;if(e.beginPath(),a){let t=(te+ne)/2;if(e.arc(o,s,d,te,t),e.arc(o,s,d,t,ne),y>0){let t=Au(ee,ne,o,s);e.arc(t.x,t.y,y,ne,_+Uo)}let n=Au(re,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=Au(re,ae,o,s);e.arc(t.x,t.y,x,_+Uo,ae+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=Au(C,ie,o,s);e.arc(t.x,t.y,b,ie+Math.PI,g-Uo)}let i=Au(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=Au(S,te,o,s);e.arc(t.x,t.y,v,g-Uo,te)}}else{e.moveTo(o,s);let t=Math.cos(te)*d+o,n=Math.sin(te)*d+s;e.lineTo(t,n);let r=Math.cos(ne)*d+o,i=Math.sin(ne)*d+s;e.lineTo(r,i)}e.closePath()}function bae(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){ju(e,t,n,r,c,i);for(let t=0;t=zo&&p===0&&u!==`miter`&&gae(e,t,h),a||(ju(e,t,n,r,h,i),e.stroke())}var Sae=class extends Fl{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=ts(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=wo(l,o-a),f=is(r,a,o)&&a!==o,p=d>=Bo||f,m=os(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>Bo?Math.floor(n/Bo):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(zo,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,bae(e,this,s,i,a),xae(e,this,s,i,a),e.restore()}};function Mu(e,t,n=t){e.lineCap=wo(n.borderCapStyle,t.borderCapStyle),e.setLineDash(wo(n.borderDash,t.borderDash)),e.lineDashOffset=wo(n.borderDashOffset,t.borderDashOffset),e.lineJoin=wo(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=wo(n.borderWidth,t.borderWidth),e.strokeStyle=wo(n.borderColor,t.borderColor)}function Cae(e,t,n){e.lineTo(n.x,n.y)}function wae(e){return e.stepped?Cre:e.tension||e.cubicInterpolationMode===`monotone`?wre:Cae}function Nu(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=is&&a>s;return{count:r,start:c,loop:t.loop,ilen:l(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(ng&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function Pu(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Eae:Tae}function Dae(e){return e.stepped?nie:e.tension||e.cubicInterpolationMode===`monotone`?rie:bc}function Oae(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Mu(e,t.options),e.stroke(i)}function kae(e,t,n,r){let{segments:i,options:a}=t,o=Pu(t);for(let s of i)Mu(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var Aae=typeof Path2D==`function`;function jae(e,t,n,r){Aae&&!t.options.segment?Oae(e,t,n,r):kae(e,t,n,r)}var Fu=class extends Fl{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;Jre(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=cie(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=Dc(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=Dae(n),c,l;for(c=0,l=a.length;ce.replace(`rgb(`,`rgba(`).replace(`)`,`, 0.5)`));function Uu(e){return Vu[e%Vu.length]}function Wu(e){return Hu[e%Hu.length]}function zae(e,t){return e.borderColor=Uu(t),e.backgroundColor=Wu(t),++t}function Bae(e,t){return e.backgroundColor=e.data.map(()=>Uu(t++)),t}function Vae(e,t){return e.backgroundColor=e.data.map(()=>Wu(t++)),t}function Hae(e){let t=0;return(n,r)=>{let i=e.getDatasetMeta(r).controller;i instanceof cl?t=Bae(n,t):i instanceof kie?t=Vae(n,t):i&&(t=zae(n,t))}}function Gu(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function Uae(e){return e&&(e.borderColor||e.backgroundColor)}function Wae(){return Ns.borderColor!==`rgba(0,0,0,0.1)`||Ns.backgroundColor!==`rgba(0,0,0,0.1)`}var Gae={id:`colors`,defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;let{data:{datasets:r},options:i}=e.config,{elements:a}=i,o=Gu(r)||Uae(i)||a&&Gu(a)||Wae();if(!n.forceOverride&&o)return;let s=Hae(e);r.forEach(s)}};function Kae(e,t,n,r,i){let a=i.samples||r;if(a>=n)return e.slice(t,t+n);let o=[],s=(n-2)/(a-2),c=0,l=t+n-1,u=t,d,f,p,m,h;for(o[c++]=e[u],d=0;dp&&(p=m,f=e[a],h=a);o[c++]=f,u=h}return o[c++]=e[l],o}function qae(e,t,n,r){let i=0,a=0,o,s,c,l,u,d,f,p,m,h,g=[],_=t+n-1,v=e[t].x,y=e[_].x-v;for(o=t;oh&&(h=l,f=o),i=(a*i+s.x)/++a;else{let n=o-1;if(!yo(d)&&!yo(f)){let t=Math.min(d,f),r=Math.max(d,f);t!==p&&t!==n&&g.push({...e[t],x:i}),r!==p&&r!==n&&g.push({...e[r],x:i})}o>0&&n!==p&&g.push(e[n]),g.push(s),u=t,a=0,m=h=l,d=f=p=o}}return g}function Ku(e){if(e._decimated){let t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function qu(e){e.data.datasets.forEach(e=>{Ku(e)})}function Jae(e,t){let n=t.length,r=0,i,{iScale:a}=e,{min:o,max:s,minDefined:c,maxDefined:l}=a.getUserBounds();return c&&(r=as(cs(t,a.axis,o).lo,0,n-1)),i=l?as(cs(t,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}var Yae={id:`decimation`,defaults:{algorithm:`min-max`,enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){qu(e);return}let r=e.width;e.data.datasets.forEach((t,i)=>{let{_data:a,indexAxis:o}=t,s=e.getDatasetMeta(i),c=a||t.data;if(Ys([o,e.options.indexAxis])===`y`||!s.controller.supportsDecimation)return;let l=e.scales[s.xAxisID];if(l.type!==`linear`&&l.type!==`time`||e.options.parsing)return;let{start:u,count:d}=Jae(s,c);if(d<=(n.threshold||4*r)){Ku(t);return}yo(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}}));let f;switch(n.algorithm){case`lttb`:f=Kae(c,u,d,r,n);break;case`min-max`:f=qae(c,u,d,r);break;default:throw Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=f})},destroy(e){qu(e)}};function Xae(e,t,n){let r=e.segments,i=e.points,a=t.points,o=[];for(let e of r){let{start:r,end:s}=e;s=Yu(r,s,i);let c=Ju(n,i[r],i[s],e.loop);if(!t.segments){o.push({source:e,target:c,start:i[r],end:i[s]});continue}let l=Dc(t,c);for(let t of l){let r=Ju(n,a[t.start],a[t.end],t.loop),s=Ec(e,i,r);for(let e of s)o.push({source:e,target:t,start:{[n]:Qae(c,r,`start`,Math.max)},end:{[n]:Qae(c,r,`end`,Math.min)}})}}return o}function Ju(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e===`angle`&&(i=rs(i),a=rs(a)),{property:e,start:i,end:a}}function Zae(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:e,end:t})=>{t=Yu(e,t,i);let o=i[e],s=i[t];r===null?n!==null&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y})):(a.push({x:o.x,y:r}),a.push({x:s.x,y:r}))}),a}function Yu(e,t,n){for(;t>e;t--){let e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Qae(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function $ae(e,t){let n=[],r=!1;return bo(e)?(r=!0,n=e):n=Zae(e,t),n.length?new Fu({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function eoe(e){return e&&e.fill!==!1}function toe(e,t,n){let r=e[t].fill,i=[t],a;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!So(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function noe(e,t,n){let r=ooe(e);if(xo(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return So(i)&&Math.floor(i)===i?roe(r[0],t,i,n):[`origin`,`start`,`end`,`stack`,`shape`].indexOf(r)>=0&&r}function roe(e,t,n,r){return(e===`-`||e===`+`)&&(n=t+n),n===t||n<0||n>=r?!1:n}function ioe(e,t){let n=null;return e===`start`?n=t.bottom:e===`end`?n=t.top:xo(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function aoe(e,t,n){let r;return r=e===`start`?n:e===`end`?t.options.reverse?t.min:t.max:xo(e)?e.value:t.getBaseValue(),r}function ooe(e){let t=e.options,n=t.fill,r=wo(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?`origin`:r}function soe(e){let{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=coe(t,n);s.push($ae({x:null,y:t.bottom},r));for(let e=0;e=0;--t){let n=i[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&n.fill&&Xu(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!==`beforeDatasetsDraw`)return;let r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){let n=r[t].$filler;eoe(n)&&Xu(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;eoe(r)&&n.drawTime===`beforeDatasetDraw`&&Xu(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:`beforeDatasetDraw`}},Soe=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Coe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,woe=class extends Fl{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=Eo(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=Js(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Soe(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=Toe(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=xc(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=hs(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=hs(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=hs(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=hs(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Bs(e,this),this._draw(),Vs(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=Ns.color,s=xc(e.rtl,this.left,this.width),c=Js(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=Soe(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=wo(n.lineWidth,1);if(r.fillStyle=wo(n.fillStyle,o),r.lineCap=wo(n.lineCap,`butt`),r.lineDashOffset=wo(n.lineDashOffset,0),r.lineJoin=wo(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=wo(n.strokeStyle,o),r.setLineDash(wo(n.lineDash,[])),a.usePointStyle){let o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},c=s.xPlus(e,p/2),l=t+d;Rs(r,o,c,l,a.pointStyleWidth&&p)}else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=Ks(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?Us(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){Hs(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:hs(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:hs(i,this.top+y+l,this.bottom-t[0].height),line:0},Sc(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,ee=f.y;s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(ee=f.y+=b,f.line++,S=f.x=hs(i,this.left+l,this.right-n[f.line])):u>0&&ee+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,ee=f.y=hs(i,this.top+y+l,this.bottom-t[f.line].height));let te=s.x(S);if(g(te,ee,o),S=pre(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),ee,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=Ooe(o,e)+l}else f.y+=b}),Cc(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=Js(t.font),r=qs(t.padding);if(!t.display)return;let i=xc(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=hs(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+hs(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=hs(o,u,u+d);a.textAlign=i.textAlign(ms(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Hs(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=Js(e.font),n=qs(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(os(e,this.left,this.right)&&os(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ne.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function Doe(e,t,n){let r=e;return typeof t.text!=`string`&&(r=Ooe(t,n)),r}function Ooe(e,t){return t*(e.text?e.text.length:0)}function koe(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var Aoe={id:`legend`,_element:woe,start(e,t,n){let r=e.legend=new woe({ctx:e.ctx,options:n,chart:e});Cl.configure(e,r,n),Cl.addBox(e,r)},stop(e){Cl.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;Cl.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=qs(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},$u=class extends Fl{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=bo(n.text)?n.text.length:1;this._padding=qs(n.padding);let i=r*Js(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=hs(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=hs(o,r,t),s=zo*-.5):(l=i-e,u=hs(o,t,r),s=zo*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=Js(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);Hs(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:ms(t.align),textBaseline:`middle`,translation:[i,a]})}};function joe(e,t){let n=new $u({ctx:e.ctx,options:t,chart:e});Cl.configure(e,n,t),Cl.addBox(e,n),e.titleBlock=n}var Moe={id:`title`,_element:$u,start(e,t,n){joe(e,n)},stop(e){let t=e.titleBlock;Cl.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;Cl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},ed=new WeakMap,Noe={id:`subtitle`,start(e,t,n){let r=new $u({ctx:e.ctx,options:n,chart:e});Cl.configure(e,r,n),Cl.addBox(e,r),ed.set(e,r)},stop(e){Cl.removeBox(e,ed.get(e)),ed.delete(e)},beforeUpdate(e,t,n){let r=ed.get(e);Cl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`normal`},fullSize:!0,padding:0,position:`top`,text:``,weight:1500},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},td={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;te+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;a-1?e.split(` -`):e}function Hoe(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Uoe(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=Vs(t.bodyFont),l=Vs(t.titleFont),u=Vs(t.footerFont),d=a.length,f=i.length,p=r.length,m=Bs(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,xo(e.title,y),n.font=c.string,xo(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,xo(r,e=>{xo(e.before,y),xo(e.lines,y),xo(e.after,y)}),v=0,n.font=u.string,xo(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function Woe(e,t){let{y:n,height:r}=t;return ne.height-r/2?`bottom`:`center`}function Goe(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function Koe(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),Goe(l,e,t,n)&&(l=`center`),l}function qoe(e,t,n){let r=n.yAlign||t.yAlign||Woe(e,n);return{xAlign:n.xAlign||t.xAlign||Koe(e,t,n,r),yAlign:r}}function Joe(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function Yoe(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:r-=t===`bottom`?i+n:i/2,r}function Xoe(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=zs(o),m=Joe(t,s),h=Yoe(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:Qo(m,0,r.width-t.width),y:Qo(h,0,r.height-t.height)}}function qu(e,t,n){let r=Bs(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function Zoe(e){return Gu([],Ku(e))}function Qoe(e,t,n){return Us(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function $oe(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var ese={beforeTitle:fo,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex{let t={before:[],lines:[],after:[]},i=$oe(n,e);Gu(t.before,Ku(Ju(i,`beforeLabel`,this,e))),Gu(t.lines,Ju(i,`label`,this,e)),Gu(t.after,Ku(Ju(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return Zoe(Ju(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=Ju(n,`beforeFooter`,this,e),i=Ju(n,`footer`,this,e),a=Ju(n,`afterFooter`,this,e),o=[];return o=Gu(o,Ku(r)),o=Gu(o,Ku(i)),o=Gu(o,Ku(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;se.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),xo(o,t=>{let n=$oe(e.callbacks,t);r.push(Ju(n,`labelColor`,this,t)),i.push(Ju(n,`labelPointStyle`,this,t)),a.push(Ju(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=Wu[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=Uoe(this,n),o=Object.assign({},e,t),s=qoe(this.chart,n,o),c=Xoe(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=zs(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=hc(n.rtl,this.x,this.width);for(e.x=qu(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=Vs(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;se!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Is(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Is(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=Vs(n.bodyFont),d=u.lineHeight,f=0,p=hc(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=qu(this,h,n),t.fillStyle=n.bodyColor,xo(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=Wu[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=Uoe(this,e),o=Object.assign({},n,this._size),s=qoe(t,e,o),c=Xoe(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=Bs(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),gc(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),_c(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!So(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!So(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=Wu[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},nse=Object.freeze({__proto__:null,Colors:eoe,Decimation:ioe,Filler:Vu,Legend:Roe,SubTitle:Voe,Title:Boe,Tooltip:{id:`tooltip`,_element:tse,positioners:Wu,afterInit(e,t,n){n&&(e.tooltip=new tse({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:ese},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]}}),rse=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function ise(e,t,n,r){let i=e.indexOf(t);return i===-1?rse(e,t,n,r):i===e.lastIndexOf(t)?i:n}var ase=(e,t)=>e===null?null:Qo(Math.round(e),0,t);function ose(e){let t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function cse(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!po(a),_=!po(o),v=!po(c),y=(h-m)/(u+1),b=Ho((h-m)/p/f)*f,x,S,ee,te;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];te=Math.ceil(h/b)-Math.floor(m/b),te>p&&(b=Ho(te*b/p/f)*f),po(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,ee=Math.ceil(h/b)*b):(S=m,ee=h),g&&_&&i&&ure((o-a)/i,b/1e3)?(te=Math.round(Math.min((o-a)/b,l)),b=(o-a)/te,S=a,ee=o):v?(S=g?a:S,ee=_?o:ee,te=c-1,b=(ee-S)/te):(te=(ee-S)/b,te=Vo(te,Math.round(te),b/1e3)?Math.round(te):Math.ceil(te));let ne=Math.max(qo(b),qo(S));x=10**(po(s)?ne:s),S=Math.round(S*x)/x,ee=Math.round(ee*x)/x;let C=0;for(g&&(d&&S!==a?(n.push({value:a}),So)break;n.push({value:e})}return _&&d&&ee!==o?n.length&&Vo(n[n.length-1].value,o,Yu(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||ee===o)&&n.push({value:ee}),n}function Yu(e,t,{horizontal:n,minRotation:r}){let i=Go(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var Xu=class extends Vl{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return po(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=Bo(r),t=Bo(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=cse({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Wo(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return ys(e,this.chart.options.locale,this.options.ticks.format)}},lse=class extends Xu{static id=`linear`;static defaults={ticks:{callback:xs.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=go(e)?e:0,this.max=go(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Go(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},Zu=e=>Math.floor(zo(e)),Qu=(e,t)=>10**(Zu(e)+t);function $u(e){return e/10**Zu(e)==1}function ed(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function use(e,t){let n=Zu(t-e);for(;ed(e,t,n)>10;)n++;for(;ed(e,t,n)<10;)n--;return Math.min(n,Zu(e))}function dse(e,{min:t,max:n}){t=_o(e.min,t);let r=[],i=Zu(t),a=use(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=_o(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=_o(e.max,f);return r.push({value:p,major:$u(p),significand:d}),r}var fse=class extends Vl{static id=`logarithmic`;static defaults={ticks:{callback:xs.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=Xu.prototype.parse.apply(this,[e,t]);if(n===0)this._zero=!0;else return go(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=go(e)?Math.max(0,e):null,this.max=go(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!go(this._userMin)&&(this.min=e===Qu(this.min,0)?Qu(this.min,-1):Qu(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(Qu(n,-1)),a(Qu(r,1)))),n<=0&&i(Qu(r,-1)),r<=0&&a(Qu(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=dse({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Wo(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:ys(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=zo(e),this._valueRange=zo(this.max)-zo(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(zo(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}};function td(e){let t=e.ticks;if(t.display&&e.display){let e=Bs(t.backdropPadding);return vo(t.font&&t.font.size,Es.font.size)+e.height}return 0}function pse(e,t,n){return n=mo(n)?n:[n],{w:Ere(e,t.string,n),h:n.length*t.lineHeight}}function nd(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function mse(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?No/a:0;for(let c=0;ct.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function id(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Ko(Xo(c.angle+Io))),u=vse(c.y,s.h,l),d=gse(l),f=_se(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function hse(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Ms({x:n,y:r},t)||Ms({x:n,y:a},t)||Ms({x:i,y:r},t)||Ms({x:i,y:a},t))}function ad(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:td(a)/2,additionalAngle:o?No/i:0},l;for(let a=0;a270||n<90)&&(e-=t),e}function yse(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!po(s)){let n=zs(t.borderRadius),c=Bs(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Is(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function bse(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));yse(n,a,t);let o=Vs(a.font),{x:s,y:c,textAlign:l}=t;Fs(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function od(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Po);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a{let n=bo(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?mse(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Po/(this._pointLabels.length||1),n=this.options.startAngle||0;return Xo(e*t+Go(n))}getDistanceFromCenterForValue(e){if(po(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(po(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);xse(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;a&&i&&(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=Vs(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=Bs(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}Fs(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}},cd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},ld=Object.keys(cd);function ud(e,t){return e-t}function dd(e,t){if(po(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),go(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Uo(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function fd(e,t,n,r){let i=ld.length;for(let a=ld.indexOf(e);a=ld.indexOf(n);a--){let n=ld[a];if(cd[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return ld[n?ld.indexOf(n):0]}function md(e){for(let t=ld.indexOf(e)+1,n=ld.length;t=t?n[r]:n[i];e[a]=!0}}function gd(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function _d(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=Qo(t,0,a),n=Qo(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||fd(i.minUnit,t,n,this._getLabelCapacity(t)),o=vo(r.ticks.stepSize,1),s=a===`week`&&i.isoWeekday,c=Uo(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return bo(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=ts(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=ts(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}var bd=class extends vd{static id=`timeseries`;static defaults=vd.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=yd(t,this.min),this._tableRange=yd(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;ae-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(yd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return yd(this._table,n*this._tableRange+this._minPos,!0)}},xd=[Pie,qae,nse,Object.freeze({__proto__:null,CategoryScale:sse,LinearScale:lse,LogarithmicScale:fse,RadialLinearScale:sd,TimeScale:vd,TimeSeriesScale:bd})];mu.register(...xd);var Sd=mu,Cd={size:15,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},wd={size:10,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},Cse={size:12,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},Td={size:15,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`bold`,style:`normal`},wse={size:25,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,weight:`bold`,style:`normal`,lineHeight:3},Tse=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ed=class extends St{constructor(){super(),this.currentTheme=`dark`,this._themeHandler=()=>{this.readColors(),this.currentTheme=Ese()}}readColors(){let e=getComputedStyle(this);this.primary=e.getPropertyValue(`--primary-color`).trim(),this.secondary=e.getPropertyValue(`--secondary-color`).trim(),this.tertiary=e.getPropertyValue(`--tertiary-color`).trim(),this.background=e.getPropertyValue(`--background-color`).trim(),this.error=e.getPropertyValue(`--error-color`).trim(),this.ok=e.getPropertyValue(`--terminal-text`).trim(),this.warn=e.getPropertyValue(`--warn-color`).trim(),this.color1=e.getPropertyValue(`--chart-color1`).trim(),this.color2=e.getPropertyValue(`--chart-color2`).trim(),this.color3=e.getPropertyValue(`--chart-color3`).trim(),this.color4=e.getPropertyValue(`--chart-color4`).trim(),this.color5=e.getPropertyValue(`--chart-color5`).trim()}firstUpdated(){this.readColors(),this.currentTheme=Ese(),this.font=Cd,this.smallFont=wd,this.mediumFont=Cse,this.titleFont=wse,this.fontBold=Td,window.addEventListener(qr,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(qr,this._themeHandler)}};Tse([Tt()],Ed.prototype,`currentTheme`,void 0);function Ese(){let e=document.documentElement.getAttribute(`theme`);return e===`light`?`light`:e===`tektronix`?`tektronix`:`dark`}var Dse=[`#f83aff`,`rgba(98, 196, 255, 1)`,`rgba(248,58,255,0.47)`,`rgba(98, 196, 255, 0.8)`,`rgba(248,58,255,0.2)`,`rgba(98, 196, 255, 0.5)`],Ose=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.4)`,`rgba(0, 0, 0, 0.25)`,`rgba(0, 0, 0, 0.15)`,`rgba(0, 0, 0, 0.08)`,`rgba(0, 0, 0, 0.5)`],kse=[`#33ff33`,`rgba(102, 255, 102, 0.8)`,`rgba(51, 255, 51, 0.47)`,`rgba(102, 255, 102, 0.6)`,`rgba(51, 255, 51, 0.25)`,`rgba(102, 255, 102, 0.4)`],O=[`#f83aff`,`#00FF00`,`#787878`],Ase=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.35)`,`rgba(0, 0, 0, 0.15)`],jse=[`#33ff33`,`#66ff66`,`#1a991a`],Mse=[`#ff246b`,`rgba(98, 196, 255, 1)`],Dd=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.25)`],Nse=[`#66ff66`,`#1a991a`],Od=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kd=class extends Ed{constructor(){super(),this._prevDatasets=``,this._prevLabels=``,this.colors=Dse,this.width=300,this.height=300,this.id=crypto.randomUUID(),this.firstRun=!0}dataChanged(){let e=JSON.stringify(this.datasets?.map(e=>e.data)),t=JSON.stringify(this.labels);return e!==this._prevDatasets||t!==this._prevLabels?(this._prevDatasets=e,this._prevLabels=t,!0):!1}refresh(){this.chart.update()}firstUpdated(){super.firstUpdated()}updated(e){if(!(!this.chart||e.has(`changesChart`)||e.has(`breakingChanges`)||e.has(`currentTheme`)||this.dataChanged()))return;this.chart&&this.chart.destroy();let t=this.currentTheme;this.colors=this.changesChart?t===`tektronix`?jse:t===`light`?Ase:O:this.breakingChanges?t===`tektronix`?Nse:t===`light`?Dd:Mse:t===`tektronix`?kse:t===`light`?Ose:Dse,this.datasets.forEach(e=>{e.backgroundColor=this.colors,e.borderColor=this.background});let n=!1;this.title&&(n=!0);let r=this.firstRun?1e3:250;this.chart=new Sd(this.shadowRoot?.querySelector(`#chart-`+this.id),{type:`doughnut`,data:{labels:this.labels,datasets:this.datasets},options:{animation:{duration:r},responsive:!0,maintainAspectRatio:!1,layout:{autoPadding:!1,padding:{top:0,bottom:0}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:n,text:this.title,font:this.titleFont,color:this.primary,align:`center`},legend:{display:this.showLegend,position:`right`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,generateLabels:e=>{let t=e.data;if(t.labels&&t.datasets.length){let e=t.datasets[0].backgroundColor||[];return t.labels.map((t,n)=>({text:t,fillStyle:e[n]||this.secondary,strokeStyle:e[n]||this.secondary,fontColor:e[n]||this.secondary,hidden:!1,index:n}))}return[]}}}}}}),this.firstRun=!1}render(){return T` +`):e}function Poe(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Foe(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=Js(t.bodyFont),l=Js(t.titleFont),u=Js(t.footerFont),d=a.length,f=i.length,p=r.length,m=qs(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,Do(e.title,y),n.font=c.string,Do(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,Do(r,e=>{Do(e.before,y),Do(e.lines,y),Do(e.after,y)}),v=0,n.font=u.string,Do(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function Ioe(e,t){let{y:n,height:r}=t;return ne.height-r/2?`bottom`:`center`}function Loe(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function Roe(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),Loe(l,e,t,n)&&(l=`center`),l}function zoe(e,t,n){let r=n.yAlign||t.yAlign||Ioe(e,n);return{xAlign:n.xAlign||t.xAlign||Roe(e,t,n,r),yAlign:r}}function id(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function Boe(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:r-=t===`bottom`?i+n:i/2,r}function Voe(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ks(o),m=id(t,s),h=Boe(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:as(m,0,r.width-t.width),y:as(h,0,r.height-t.height)}}function ad(e,t,n){let r=qs(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function Hoe(e){return nd([],rd(e))}function Uoe(e,t,n){return Xs(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function Woe(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Goe={beforeTitle:vo,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex{let t={before:[],lines:[],after:[]},i=Woe(n,e);nd(t.before,rd(od(i,`beforeLabel`,this,e))),nd(t.lines,od(i,`label`,this,e)),nd(t.after,rd(od(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return Hoe(od(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=od(n,`beforeFooter`,this,e),i=od(n,`footer`,this,e),a=od(n,`afterFooter`,this,e),o=[];return o=nd(o,rd(r)),o=nd(o,rd(i)),o=nd(o,rd(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;se.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),Do(o,t=>{let n=Woe(e.callbacks,t);r.push(od(n,`labelColor`,this,t)),i.push(od(n,`labelPointStyle`,this,t)),a.push(od(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=td[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=Foe(this,n),o=Object.assign({},e,t),s=zoe(this.chart,n,o),c=Voe(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=Ks(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=xc(n.rtl,this.x,this.width);for(e.x=ad(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=Js(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;se!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Us(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Us(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=Js(n.bodyFont),d=u.lineHeight,f=0,p=xc(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=ad(this,h,n),t.fillStyle=n.bodyColor,Do(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=td[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=Foe(this,e),o=Object.assign({},n,this._size),s=zoe(t,e,o),c=Voe(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=qs(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),Sc(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),Cc(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!Oo(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!Oo(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=td[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},qoe=Object.freeze({__proto__:null,Colors:Gae,Decimation:Yae,Filler:xoe,Legend:Aoe,SubTitle:Noe,Title:Moe,Tooltip:{id:`tooltip`,_element:Koe,positioners:td,afterInit(e,t,n){n&&(e.tooltip=new Koe({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:Goe},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]}}),Joe=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Yoe(e,t,n,r){let i=e.indexOf(t);return i===-1?Joe(e,t,n,r):i===e.lastIndexOf(t)?i:n}var Xoe=(e,t)=>e===null?null:as(Math.round(e),0,t);function Zoe(e){let t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function $oe(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!yo(a),_=!yo(o),v=!yo(c),y=(h-m)/(u+1),b=Yo((h-m)/p/f)*f,x,S,ee,te;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];te=Math.ceil(h/b)-Math.floor(m/b),te>p&&(b=Yo(te*b/p/f)*f),yo(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,ee=Math.ceil(h/b)*b):(S=m,ee=h),g&&_&&i&&ore((o-a)/i,b/1e3)?(te=Math.round(Math.min((o-a)/b,l)),b=(o-a)/te,S=a,ee=o):v?(S=g?a:S,ee=_?o:ee,te=c-1,b=(ee-S)/te):(te=(ee-S)/b,te=Jo(te,Math.round(te),b/1e3)?Math.round(te):Math.ceil(te));let ne=Math.max(es(b),es(S));x=10**(yo(s)?ne:s),S=Math.round(S*x)/x,ee=Math.round(ee*x)/x;let C=0;for(g&&(d&&S!==a?(n.push({value:a}),So)break;n.push({value:e})}return _&&d&&ee!==o?n.length&&Jo(n[n.length-1].value,o,sd(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||ee===o)&&n.push({value:ee}),n}function sd(e,t,{horizontal:n,minRotation:r}){let i=Qo(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var cd=class extends $l{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return yo(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=qo(r),t=qo(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=$oe({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Zo(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Es(e,this.chart.options.locale,this.options.ticks.format)}},ese=class extends cd{static id=`linear`;static defaults={ticks:{callback:Os.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=So(e)?e:0,this.max=So(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Qo(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},ld=e=>Math.floor(Ko(e)),ud=(e,t)=>10**(ld(e)+t);function dd(e){return e/10**ld(e)==1}function fd(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function tse(e,t){let n=ld(t-e);for(;fd(e,t,n)>10;)n++;for(;fd(e,t,n)<10;)n--;return Math.min(n,ld(e))}function nse(e,{min:t,max:n}){t=Co(e.min,t);let r=[],i=ld(t),a=tse(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=Co(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=Co(e.max,f);return r.push({value:p,major:dd(p),significand:d}),r}var rse=class extends $l{static id=`logarithmic`;static defaults={ticks:{callback:Os.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=cd.prototype.parse.apply(this,[e,t]);if(n===0)this._zero=!0;else return So(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=So(e)?Math.max(0,e):null,this.max=So(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!So(this._userMin)&&(this.min=e===ud(this.min,0)?ud(this.min,-1):ud(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(ud(n,-1)),a(ud(r,1)))),n<=0&&i(ud(r,-1)),r<=0&&a(ud(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=nse({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Zo(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:Es(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Ko(e),this._valueRange=Ko(this.max)-Ko(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ko(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}};function pd(e){let t=e.ticks;if(t.display&&e.display){let e=qs(t.backdropPadding);return wo(t.font&&t.font.size,Ns.font.size)+e.height}return 0}function md(e,t,n){return n=bo(n)?n:[n],{w:Sre(e,t.string,n),h:n.length*t.lineHeight}}function hd(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function ise(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?zo/a:0;for(let c=0;ct.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function ase(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round($o(rs(c.angle+Uo))),u=use(c.y,s.h,l),d=cse(l),f=lse(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function ose(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(zs({x:n,y:r},t)||zs({x:n,y:a},t)||zs({x:i,y:r},t)||zs({x:i,y:a},t))}function sse(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:pd(a)/2,additionalAngle:o?zo/i:0},l;for(let a=0;a270||n<90)&&(e-=t),e}function dse(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!yo(s)){let n=Ks(t.borderRadius),c=qs(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Us(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function fse(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));dse(n,a,t);let o=Js(a.font),{x:s,y:c,textAlign:l}=t;Hs(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function _d(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Bo);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a{let n=Eo(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?ise(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Bo/(this._pointLabels.length||1),n=this.options.startAngle||0;return rs(e*t+Qo(n))}getDistanceFromCenterForValue(e){if(yo(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(yo(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);pse(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;a&&i&&(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=Js(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=qs(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}Hs(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}},yd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bd=Object.keys(yd);function xd(e,t){return e-t}function Sd(e,t){if(yo(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),So(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Xo(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function Cd(e,t,n,r){let i=bd.length;for(let a=bd.indexOf(e);a=bd.indexOf(n);a--){let n=bd[a];if(yd[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return bd[n?bd.indexOf(n):0]}function hse(e){for(let t=bd.indexOf(e)+1,n=bd.length;t=t?n[r]:n[i];e[a]=!0}}function Ed(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function Dd(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=as(t,0,a),n=as(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||Cd(i.minUnit,t,n,this._getLabelCapacity(t)),o=wo(r.ticks.stepSize,1),s=a===`week`&&i.isoWeekday,c=Xo(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return Eo(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=cs(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=cs(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}var Ad=class extends Od{static id=`timeseries`;static defaults=Od.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=kd(t,this.min),this._tableRange=kd(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;ae-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(kd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return kd(this._table,n*this._tableRange+this._minPos,!0)}},jd=[Aie,Rae,qoe,Object.freeze({__proto__:null,CategoryScale:Qoe,LinearScale:ese,LogarithmicScale:rse,RadialLinearScale:vd,TimeScale:Od,TimeSeriesScale:Ad})];Ou.register(...jd);var Md=Ou,Nd={size:15,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},gse={size:10,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},_se={size:12,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},vse={size:15,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`bold`,style:`normal`},yse={size:25,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,weight:`bold`,style:`normal`,lineHeight:3},bse=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pd=class extends Ct{constructor(){super(),this.currentTheme=`dark`,this._themeHandler=()=>{this.readColors(),this.currentTheme=xse()}}readColors(){let e=getComputedStyle(this);this.primary=e.getPropertyValue(`--primary-color`).trim(),this.secondary=e.getPropertyValue(`--secondary-color`).trim(),this.tertiary=e.getPropertyValue(`--tertiary-color`).trim(),this.background=e.getPropertyValue(`--background-color`).trim(),this.error=e.getPropertyValue(`--error-color`).trim(),this.ok=e.getPropertyValue(`--terminal-text`).trim(),this.warn=e.getPropertyValue(`--warn-color`).trim(),this.color1=e.getPropertyValue(`--chart-color1`).trim(),this.color2=e.getPropertyValue(`--chart-color2`).trim(),this.color3=e.getPropertyValue(`--chart-color3`).trim(),this.color4=e.getPropertyValue(`--chart-color4`).trim(),this.color5=e.getPropertyValue(`--chart-color5`).trim()}firstUpdated(){this.readColors(),this.currentTheme=xse(),this.font=Nd,this.smallFont=gse,this.mediumFont=_se,this.titleFont=yse,this.fontBold=vse,window.addEventListener(qr,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(qr,this._themeHandler)}};bse([Et()],Pd.prototype,`currentTheme`,void 0);function xse(){let e=document.documentElement.getAttribute(`theme`);return e===`light`?`light`:e===`tektronix`?`tektronix`:`dark`}var O=[`#f83aff`,`rgba(98, 196, 255, 1)`,`rgba(248,58,255,0.47)`,`rgba(98, 196, 255, 0.8)`,`rgba(248,58,255,0.2)`,`rgba(98, 196, 255, 0.5)`],Sse=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.4)`,`rgba(0, 0, 0, 0.25)`,`rgba(0, 0, 0, 0.15)`,`rgba(0, 0, 0, 0.08)`,`rgba(0, 0, 0, 0.5)`],Cse=[`#33ff33`,`rgba(102, 255, 102, 0.8)`,`rgba(51, 255, 51, 0.47)`,`rgba(102, 255, 102, 0.6)`,`rgba(51, 255, 51, 0.25)`,`rgba(102, 255, 102, 0.4)`],wse=[`#f83aff`,`#00FF00`,`#787878`],Fd=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.35)`,`rgba(0, 0, 0, 0.15)`],Tse=[`#33ff33`,`#66ff66`,`#1a991a`],Id=[`#ff246b`,`rgba(98, 196, 255, 1)`],Ese=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.25)`],Dse=[`#66ff66`,`#1a991a`],Ld=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rd=class extends Pd{constructor(){super(),this._prevDatasets=``,this._prevLabels=``,this.colors=O,this.width=300,this.height=300,this.id=crypto.randomUUID(),this.firstRun=!0}dataChanged(){let e=JSON.stringify(this.datasets?.map(e=>e.data)),t=JSON.stringify(this.labels);return e!==this._prevDatasets||t!==this._prevLabels?(this._prevDatasets=e,this._prevLabels=t,!0):!1}refresh(){this.chart.update()}firstUpdated(){super.firstUpdated()}updated(e){if(!(!this.chart||e.has(`changesChart`)||e.has(`breakingChanges`)||e.has(`currentTheme`)||this.dataChanged()))return;this.chart&&this.chart.destroy();let t=this.currentTheme;this.colors=this.changesChart?t===`tektronix`?Tse:t===`light`?Fd:wse:this.breakingChanges?t===`tektronix`?Dse:t===`light`?Ese:Id:t===`tektronix`?Cse:t===`light`?Sse:O,this.datasets.forEach(e=>{e.backgroundColor=this.colors,e.borderColor=this.background});let n=!1;this.title&&(n=!0);let r=this.firstRun?1e3:250;this.chart=new Md(this.shadowRoot?.querySelector(`#chart-`+this.id),{type:`doughnut`,data:{labels:this.labels,datasets:this.datasets},options:{animation:{duration:r},responsive:!0,maintainAspectRatio:!1,layout:{autoPadding:!1,padding:{top:0,bottom:0}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:n,text:this.title,font:this.titleFont,color:this.primary,align:`center`},legend:{display:this.showLegend,position:`right`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,generateLabels:e=>{let t=e.data;if(t.labels&&t.datasets.length){let e=t.datasets[0].backgroundColor||[];return t.labels.map((t,n)=>({text:t,fillStyle:e[n]||this.secondary,strokeStyle:e[n]||this.secondary,fontColor:e[n]||this.secondary,hidden:!1,index:n}))}return[]}}}}}}),this.firstRun=!1}render(){return T` - `}};Od([wt()],kd.prototype,`title`,void 0),Od([wt()],kd.prototype,`datasets`,void 0),Od([wt()],kd.prototype,`labels`,void 0),Od([wt({type:Number})],kd.prototype,`width`,void 0),Od([wt({type:Number})],kd.prototype,`height`,void 0),Od([wt({type:Boolean})],kd.prototype,`changesChart`,void 0),Od([wt({type:Boolean})],kd.prototype,`showLegend`,void 0),Od([wt({type:Boolean})],kd.prototype,`breakingChanges`,void 0),kd=Od([Ct(`pb33f-doughnut-chart`)],kd);var Ad=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jd=class extends Ed{constructor(){super(),this.title=`chart`,this.legend=!1,this.height=458,this.smallTitle=!1,this.stepSize=1,this.chartType=`line`}computeSuggestedMax(){if(!this.datasets||this.datasets.length===0)return;let e=0;for(let t of this.datasets)if(t.data)for(let n of t.data)n>e&&(e=n);return Math.ceil(e*1.1)}updateChart(){this.chart&&this.chart.data&&this.datasets&&this.datasets.length>0&&(this.chart.data.labels=this.labels,this.chart.data.datasets=this.datasets,this.chart.update())}buildChart(){let e=this.titleFont;this.smallTitle&&(e=this.fontBold),this.chart&&this.chart.destroy(),this.chart=new Sd(this.shadowRoot?.querySelector(`#chart`),{type:this.chartType,data:{labels:this.labels,datasets:this.datasets},options:{responsive:!0,maintainAspectRatio:!1,elements:{point:{borderColor:this.secondary,backgroundColor:this.secondary,pointStyle:`rect`,radius:4}},scales:{x:{ticks:{font:this.smallFont,color:this.secondary},border:{color:this.secondary}},y:{min:0,suggestedMax:this.computeSuggestedMax(),ticks:{stepSize:this.stepSize,font:this.font,color:this.secondary},border:{color:this.secondary}}},layout:{autoPadding:!1,padding:{top:20,bottom:20}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:!0,text:this.title,font:e,color:this.primary,align:`start`},legend:{display:this.legend,position:`bottom`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,pointStyle:`line`,boxHeight:1}}}}})}connectedCallback(){super.connectedCallback(),!this.chart&&this.hasUpdated&&this.updateComplete.then(()=>this.buildChart())}disconnectedCallback(){super.disconnectedCallback(),this.chart&&=(this.chart.destroy(),null)}resize(){this.chart?.resize()}firstUpdated(){super.firstUpdated(),this.buildChart()}updated(e){e.has(`currentTheme`)&&this.chart&&this.buildChart()}render(){return T` + `}};Ld([Tt()],Rd.prototype,`title`,void 0),Ld([Tt()],Rd.prototype,`datasets`,void 0),Ld([Tt()],Rd.prototype,`labels`,void 0),Ld([Tt({type:Number})],Rd.prototype,`width`,void 0),Ld([Tt({type:Number})],Rd.prototype,`height`,void 0),Ld([Tt({type:Boolean})],Rd.prototype,`changesChart`,void 0),Ld([Tt({type:Boolean})],Rd.prototype,`showLegend`,void 0),Ld([Tt({type:Boolean})],Rd.prototype,`breakingChanges`,void 0),Rd=Ld([wt(`pb33f-doughnut-chart`)],Rd);var zd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bd=class extends Pd{constructor(){super(),this.title=`chart`,this.legend=!1,this.height=458,this.smallTitle=!1,this.stepSize=1,this.chartType=`line`}computeSuggestedMax(){if(!this.datasets||this.datasets.length===0)return;let e=0;for(let t of this.datasets)if(t.data)for(let n of t.data)n>e&&(e=n);return Math.ceil(e*1.1)}updateChart(){this.chart&&this.chart.data&&this.datasets&&this.datasets.length>0&&(this.chart.data.labels=this.labels,this.chart.data.datasets=this.datasets,this.chart.update())}buildChart(){let e=this.titleFont;this.smallTitle&&(e=this.fontBold),this.chart&&this.chart.destroy(),this.chart=new Md(this.shadowRoot?.querySelector(`#chart`),{type:this.chartType,data:{labels:this.labels,datasets:this.datasets},options:{responsive:!0,maintainAspectRatio:!1,elements:{point:{borderColor:this.secondary,backgroundColor:this.secondary,pointStyle:`rect`,radius:4}},scales:{x:{ticks:{font:this.smallFont,color:this.secondary},border:{color:this.secondary}},y:{min:0,suggestedMax:this.computeSuggestedMax(),ticks:{stepSize:this.stepSize,font:this.font,color:this.secondary},border:{color:this.secondary}}},layout:{autoPadding:!1,padding:{top:20,bottom:20}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:!0,text:this.title,font:e,color:this.primary,align:`start`},legend:{display:this.legend,position:`bottom`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,pointStyle:`line`,boxHeight:1}}}}})}connectedCallback(){super.connectedCallback(),!this.chart&&this.hasUpdated&&this.updateComplete.then(()=>this.buildChart())}disconnectedCallback(){super.disconnectedCallback(),this.chart&&=(this.chart.destroy(),null)}resize(){this.chart?.resize()}firstUpdated(){super.firstUpdated(),this.buildChart()}updated(e){e.has(`currentTheme`)&&this.chart&&this.buildChart()}render(){return T`
- `}};jd.styles=xe` + `}};Bd.styles=xe` :host { display: block; width: 100%; @@ -4883,7 +4886,7 @@ .chart-container { position: relative; width: 100%; - }`,Ad([wt()],jd.prototype,`title`,void 0),Ad([wt()],jd.prototype,`datasets`,void 0),Ad([wt()],jd.prototype,`labels`,void 0),Ad([wt({type:Boolean})],jd.prototype,`legend`,void 0),Ad([wt({type:Boolean})],jd.prototype,`smallTitle`,void 0),Ad([wt({type:Number})],jd.prototype,`height`,void 0),Ad([wt({type:Number})],jd.prototype,`width`,void 0),Ad([wt({type:Number})],jd.prototype,`stepSize`,void 0),Ad([wt()],jd.prototype,`chartType`,void 0),jd=Ad([Ct(`pb33f-chart`)],jd);var Md=xe` + }`,zd([Tt()],Bd.prototype,`title`,void 0),zd([Tt()],Bd.prototype,`datasets`,void 0),zd([Tt()],Bd.prototype,`labels`,void 0),zd([Tt({type:Boolean})],Bd.prototype,`legend`,void 0),zd([Tt({type:Boolean})],Bd.prototype,`smallTitle`,void 0),zd([Tt({type:Number})],Bd.prototype,`height`,void 0),zd([Tt({type:Number})],Bd.prototype,`width`,void 0),zd([Tt({type:Number})],Bd.prototype,`stepSize`,void 0),zd([Tt()],Bd.prototype,`chartType`,void 0),Bd=zd([wt(`pb33f-chart`)],Bd);var Vd=xe` .timeline-item { display: flex; padding-top: 5px; @@ -5025,7 +5028,7 @@ } -`,Nd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pd=class extends St{constructor(){super(),this.large=!1,this.selected=!1,this.hideScore=!1}render(){T``;let e=T` +`,Hd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ud=class extends Ct{constructor(){super(),this.large=!1,this.selected=!1,this.hideScore=!1}render(){T``;let e=T` `,t=!1;this.specSummary.breakingChanges&&this.specSummary.breakingChanges>0&&(e=T` ${this.specSummary.breakingChanges} `,t=!0);let n=T` @@ -5081,7 +5084,7 @@
`}
- `}additionalWidth(e){return e?e>=1e5?this.large?`sext-large`:`sext`:e>=1e4?this.large?`quint-large`:`quint`:e>=1e3?this.large?`quad-large`:`quad`:e>=100?this.large?`triple-large`:`triple`:`no`+e:`gip`}};Pd.styles=[Md,Rn],Nd([wt()],Pd.prototype,`specSummary`,void 0),Nd([wt()],Pd.prototype,`large`,void 0),Nd([wt()],Pd.prototype,`selected`,void 0),Nd([wt({type:Boolean})],Pd.prototype,`hideScore`,void 0),Pd=Nd([Ct(`pb33f-spec-summary-timeline-item`)],Pd);var Fd=xe` + `}additionalWidth(e){return e?e>=1e5?this.large?`sext-large`:`sext`:e>=1e4?this.large?`quint-large`:`quint`:e>=1e3?this.large?`quad-large`:`quad`:e>=100?this.large?`triple-large`:`triple`:`no`+e:`gip`}};Ud.styles=[Vd,zn],Hd([Tt()],Ud.prototype,`specSummary`,void 0),Hd([Tt()],Ud.prototype,`large`,void 0),Hd([Tt()],Ud.prototype,`selected`,void 0),Hd([Tt({type:Boolean})],Ud.prototype,`hideScore`,void 0),Ud=Hd([wt(`pb33f-spec-summary-timeline-item`)],Ud);var Wd=xe` pb33f-timeline-item { width: 100%; @@ -5138,7 +5141,7 @@ } } -`,Id=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ld=class extends St{constructor(){super(),this.skinny=!1}render(){return T` +`,Gd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kd=class extends Ct{constructor(){super(),this.skinny=!1}render(){return T`
@@ -5146,7 +5149,7 @@
- `}};Ld.styles=Fd,Id([wt({type:Boolean})],Ld.prototype,`skinny`,void 0),Ld=Id([Ct(`pb33f-timeline`)],Ld);var Rd=xe` + `}};Kd.styles=Wd,Gd([Tt({type:Boolean})],Kd.prototype,`skinny`,void 0),Kd=Gd([wt(`pb33f-timeline`)],Kd);var qd=xe` :host { display: flex; position: relative; @@ -5254,7 +5257,7 @@ } -`,zd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bd=class extends St{constructor(){super(),this.skinny=!1}render(){return this.skinny?T` +`,Jd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yd=class extends Ct{constructor(){super(),this.skinny=!1}render(){return this.skinny?T`
@@ -5276,7 +5279,7 @@
-
`}};Bd.styles=Rd,zd([wt({type:Boolean})],Bd.prototype,`skinny`,void 0),Bd=zd([Ct(`pb33f-timeline-item`)],Bd);var Vd=xe` +
`}};Yd.styles=qd,Jd([Tt({type:Boolean})],Yd.prototype,`skinny`,void 0),Yd=Jd([wt(`pb33f-timeline-item`)],Yd);var Ose=xe` a, a:visited, a:active { text-decoration: none; color: var(--primary-color); @@ -5399,7 +5402,7 @@ to { opacity: 0; } - }`,Hd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ud=class extends St{constructor(){super(),this.name=`pb33f`,this.url=`https://pb33f.io`,this.wide=!1,this.fluid=!1}render(){return T` + }`,Xd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zd=class extends Ct{constructor(){super(),this.name=`pb33f`,this.url=`https://pb33f.io`,this.wide=!1,this.fluid=!1}render(){return T`
`}};Ud.styles=Vd,Hd([wt()],Ud.prototype,`name`,void 0),Hd([wt()],Ud.prototype,`url`,void 0),Hd([wt({type:Boolean})],Ud.prototype,`wide`,void 0),Hd([wt({type:Boolean})],Ud.prototype,`fluid`,void 0),Ud=Hd([Ct(`pb33f-header`)],Ud);var Pse=xe` + `}};Zd.styles=Ose,Xd([Tt()],Zd.prototype,`name`,void 0),Xd([Tt()],Zd.prototype,`url`,void 0),Xd([Tt({type:Boolean})],Zd.prototype,`wide`,void 0),Xd([Tt({type:Boolean})],Zd.prototype,`fluid`,void 0),Zd=Xd([wt(`pb33f-header`)],Zd);var Qd=xe` footer { padding: var(--footer-padding); width: 100vw; @@ -5433,11 +5436,11 @@ font-weight: normal; color: var(--font-color-sub2); } -`,Wd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fse=`https://pb33f.io`,Gd=`princess b33f heavy industries`,Kd=class extends St{constructor(){super(),this.url=Fse,this.linkTitle=Gd,this.build=``,this.fluid=!1}render(){let e=this.linkTitle||`princess b33f heavy industries`;return T` +`,$d=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ef=`https://pb33f.io`,tf=`princess b33f heavy industries`,nf=class extends Ct{constructor(){super(),this.url=ef,this.linkTitle=tf,this.build=``,this.fluid=!1}render(){let e=this.linkTitle||`princess b33f heavy industries`;return T`
${e} ${this.build?T`${this.build}`:``} -
`}};Kd.styles=[Pse,yi],Wd([wt()],Kd.prototype,`build`,void 0),Wd([wt()],Kd.prototype,`url`,void 0),Wd([wt({attribute:`link-title`})],Kd.prototype,`linkTitle`,void 0),Wd([wt({type:Boolean,reflect:!0})],Kd.prototype,`fluid`,void 0),Kd=Wd([Ct(`pb33f-footer`)],Kd);var qd=xe` + `}};nf.styles=[Qd,Si],$d([Tt()],nf.prototype,`build`,void 0),$d([Tt()],nf.prototype,`url`,void 0),$d([Tt({attribute:`link-title`})],nf.prototype,`linkTitle`,void 0),$d([Tt({type:Boolean,reflect:!0})],nf.prototype,`fluid`,void 0),nf=$d([wt(`pb33f-footer`)],nf);var kse=xe` :host { display: inline-flex; @@ -5455,7 +5458,7 @@ text-shadow: 0 0 8px rgba(51, 255, 51, 0.6); } -`,Jd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yd=`tektronix`,Xd=`pb33f-theme`,Zd=`pb33f-base-theme`,Qd=class extends St{constructor(){super(...arguments),this.baseTheme=`dark`,this.tektronixActive=!1}get activeTheme(){return this.tektronixActive?Yd:this.baseTheme}connectedCallback(){super.connectedCallback();let e=localStorage.getItem(Xd);if(e===`tektronix`){this.tektronixActive=!0;let e=localStorage.getItem(Zd);this.baseTheme=e===`light`?`light`:`dark`}else this.tektronixActive=!1,this.baseTheme=e===`light`?`light`:`dark`;this.applyTheme()}applyTheme(){let e=this.activeTheme;localStorage.setItem(Xd,e),localStorage.setItem(Zd,this.baseTheme);let t=document.querySelector(`html`);t&&(t.setAttribute(`theme`,e),e===`light`?t.classList.remove(`sl-theme-dark`):t.classList.add(`sl-theme-dark`))}dispatchThemeChange(){window.dispatchEvent(new CustomEvent(qr,{detail:{theme:this.activeTheme}}))}toggleTheme(){this.baseTheme=this.baseTheme===`dark`?`light`:`dark`,this.tektronixActive&&=!1,this.applyTheme(),this.dispatchThemeChange()}toggleTektronix(){this.tektronixActive=!this.tektronixActive,this.applyTheme(),this.dispatchThemeChange()}render(){let e=this.baseTheme===`dark`?`sun`:`moon`,t=this.baseTheme===`dark`?`Switch to Roger Mode (light)`:`Switch to PB33F Mode (dark)`,n=this.tektronixActive?`Disable Tektronix 4010 Mode`:`Enable Tektronix 4010 Mode`;return T` +`,rf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ase=`tektronix`,af=`pb33f-theme`,of=`pb33f-base-theme`,sf=class extends Ct{constructor(){super(...arguments),this.baseTheme=`dark`,this.tektronixActive=!1}get activeTheme(){return this.tektronixActive?Ase:this.baseTheme}connectedCallback(){super.connectedCallback();let e=localStorage.getItem(af);if(e===`tektronix`){this.tektronixActive=!0;let e=localStorage.getItem(of);this.baseTheme=e===`light`?`light`:`dark`}else this.tektronixActive=!1,this.baseTheme=e===`light`?`light`:`dark`;this.applyTheme()}applyTheme(){let e=this.activeTheme;localStorage.setItem(af,e),localStorage.setItem(of,this.baseTheme);let t=document.querySelector(`html`);t&&(t.setAttribute(`theme`,e),e===`light`?t.classList.remove(`sl-theme-dark`):t.classList.add(`sl-theme-dark`))}dispatchThemeChange(){window.dispatchEvent(new CustomEvent(qr,{detail:{theme:this.activeTheme}}))}toggleTheme(){this.baseTheme=this.baseTheme===`dark`?`light`:`dark`,this.tektronixActive&&=!1,this.applyTheme(),this.dispatchThemeChange()}toggleTektronix(){this.tektronixActive=!this.tektronixActive,this.applyTheme(),this.dispatchThemeChange()}render(){let e=this.baseTheme===`dark`?`sun`:`moon`,t=this.baseTheme===`dark`?`Switch to Roger Mode (light)`:`Switch to PB33F Mode (dark)`,n=this.tektronixActive?`Disable Tektronix 4010 Mode`:`Enable Tektronix 4010 Mode`;return T` - `}};Qd.styles=[qd,Rn],Jd([Tt()],Qd.prototype,`baseTheme`,void 0),Jd([Tt()],Qd.prototype,`tektronixActive`,void 0),Qd=Jd([Ct(`pb33f-theme-switcher`)],Qd);function $d(e){switch(e.toLowerCase()){case`get`:return`success`;case`post`:return`primary`;case`put`:return`primary`;case`delete`:return`danger`;case`patch`:return`warning`;case`query`:return`primary`;default:return`neutral`}}var ef=xe` + `}};sf.styles=[kse,zn],rf([Et()],sf.prototype,`baseTheme`,void 0),rf([Et()],sf.prototype,`tektronixActive`,void 0),sf=rf([wt(`pb33f-theme-switcher`)],sf);function jse(e){switch(e.toLowerCase()){case`get`:return`success`;case`post`:return`primary`;case`put`:return`primary`;case`delete`:return`danger`;case`patch`:return`warning`;case`query`:return`primary`;default:return`neutral`}}var Mse=xe` :host { --http-get-color: var(--terminal-text); --http-get-border-color: var(--ok-color-lowalpha); @@ -5607,11 +5610,11 @@ --http-trace-color: #6b7280; --http-query-color: #2563eb; } -`,tf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ise={GET:`GET`,POST:`POST`,PUT:`PUT`,DELETE:`DEL`,PATCH:`PAT`,OPTIONS:`OPT`,HEAD:`HEAD`,TRACE:`TRC`,QUERY:`QRY`},nf=class extends St{constructor(){super(),this.mode=``,this.lower=!1,this.method=`GET`}render(){if(this.mode===`nav-naked`){let e=this.method.toUpperCase(),t=Ise[e]??e;return T`${t}`}let e=`medium`;this.large&&(e=`large`),this.tiny&&(e=`small`),this.micro&&(e=`small`);let t=this.method.toLowerCase(),n=this.micro?`method ${e} micro ${t}`:`method ${e} ${t}`;return T` - =0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nse={GET:`GET`,POST:`POST`,PUT:`PUT`,DELETE:`DEL`,PATCH:`PAT`,OPTIONS:`OPT`,HEAD:`HEAD`,TRACE:`TRC`,QUERY:`QRY`},lf=class extends Ct{constructor(){super(),this.mode=``,this.lower=!1,this.method=`GET`}render(){if(this.mode===`nav-naked`){let e=this.method.toUpperCase(),t=Nse[e]??e;return T`${t}`}let e=`medium`;this.large&&(e=`large`),this.tiny&&(e=`small`),this.micro&&(e=`small`);let t=this.method.toLowerCase(),n=this.micro?`method ${e} micro ${t}`:`method ${e} ${t}`;return T` + ${this.lower?this.method.toLowerCase():this.method.toUpperCase()} - `}};nf.styles=ef,tf([wt()],nf.prototype,`method`,void 0),tf([wt({type:Boolean})],nf.prototype,`lower`,void 0),tf([wt({type:Boolean})],nf.prototype,`large`,void 0),tf([wt({type:Boolean})],nf.prototype,`tiny`,void 0),tf([wt({type:Boolean})],nf.prototype,`micro`,void 0),tf([wt({reflect:!0})],nf.prototype,`mode`,void 0),nf=tf([Ct(`pb33f-http-method`)],nf);var Lse=xe` + `}};lf.styles=Mse,cf([Tt()],lf.prototype,`method`,void 0),cf([Tt({type:Boolean})],lf.prototype,`lower`,void 0),cf([Tt({type:Boolean})],lf.prototype,`large`,void 0),cf([Tt({type:Boolean})],lf.prototype,`tiny`,void 0),cf([Tt({type:Boolean})],lf.prototype,`micro`,void 0),cf([Tt({reflect:!0})],lf.prototype,`mode`,void 0),lf=cf([wt(`pb33f-http-method`)],lf);var uf=xe` :host { color: var(--font-color); font-family: var(--font-stack), monospace; @@ -5650,7 +5653,7 @@ .nowrap { display: inline-block; } -`,rf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},af=class extends St{constructor(){super(),this.path=`/`,this.nowrap=!1}replaceBrackets(){let e=/\{([\w$.#/]+)\}/g,t=this.nowrap?` nowrap`:``,n=this.formatSlashes(this.path).replace(e,(e,n)=>`{${n}}`);return this.nowrap?T`
${Pt(n)}
`:T`${Pt(n)}`}formatSlashes(e){return e.replaceAll(`/`,`/`)}render(){return T`${this.replaceBrackets()}`}};af.styles=Lse,rf([wt()],af.prototype,`path`,void 0),rf([wt({type:Boolean})],af.prototype,`nowrap`,void 0),af=rf([Ct(`pb33f-render-operation-path`)],af);var of=xe` +`,df=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ff=class extends Ct{constructor(){super(),this.path=`/`,this.nowrap=!1}replaceBrackets(){let e=/\{([\w$.#/]+)\}/g,t=this.nowrap?` nowrap`:``,n=this.formatSlashes(this.path).replace(e,(e,n)=>`{${n}}`);return this.nowrap?T`
${Ft(n)}
`:T`${Ft(n)}`}formatSlashes(e){return e.replaceAll(`/`,`/`)}render(){return T`${this.replaceBrackets()}`}};ff.styles=uf,df([Tt()],ff.prototype,`path`,void 0),df([Tt({type:Boolean})],ff.prototype,`nowrap`,void 0),ff=df([wt(`pb33f-render-operation-path`)],ff);var pf=xe` :host { color: var(--font-color); font-family: var(--font-stack), monospace; @@ -5742,7 +5745,7 @@ -`,sf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cf=/(\{)([\w.\-_$:]+)(})|(:)([\w.\-_$:]+)/g,lf=/(\[)(["']?)([\w${}:.\-_/\\]+)(['"]?)(])/g,uf=class extends St{constructor(){super(),this.path=`/`,this.selected=!1,this.chars=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`}replaceBrackets(e){let t,n=e;for(;(t=cf.exec(e))!==null;)t.forEach((e,t)=>{e!==void 0&&(t===1||t===4)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&(t===2||t===5)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&t===3&&(n=n.replaceAll(e,``+e+``))});return n}breakPath(){if(!this.path)return T`{no path}`;let e=this.path.split(`.`);e.length>0&&e[0]==`$`&&(e=e.slice(1,e.length));let t=e.join(`.`),n=t,r=new Map,i;for(;(i=lf.exec(n))!==null;){let e=df(lf.lastIndex-i.index,this.chars);r.set(e,i),t=t.substring(0,i.index)+e+t.substring(lf.lastIndex)}t=t.replaceAll(`.`,`.`),r.forEach((e,n)=>{let r=[];e[1]!==void 0&&r.push(``+e[1]+``),e[2]!==void 0&&r.push(e[2]),e[3]!==void 0&&r.push(``+this.replaceBrackets(e[3])+``),e[4]!==void 0&&r.push(e[4]),e[5]!==void 0&&r.push(``+e[5]+``);let i=r.join(``);t=t.replaceAll(n,i)});let a=t;return a=a.replaceAll(`$`,`$`),a===``&&(a=`{no path available}`),T`${Pt(a.toString())}`}render(){return T`${this.breakPath()}`}};uf.styles=of,sf([wt()],uf.prototype,`path`,void 0),sf([wt({type:Boolean})],uf.prototype,`selected`,void 0),uf=sf([Ct(`pb33f-render-json-path`)],uf);function df(e,t){let n=``;for(let r=e;r>0;--r)n+=t[Math.floor(Math.random()*t.length)];return n}function ff(e,t,n,r,i){if(e&&e.nodes){for(let a of e.nodes)if(!t.has(a)){let e=r.get(a);if(!e)continue;t.set(a,e);let o=i.get(a);if(o)for(let e of o)n.has(e.id)||n.set(e.id,e);ff(e,t,n,r,i)}}}function pf(e,t){typeof e==`function`?e(t):e.handleEvent(t)}var mf=class{constructor(){this.onmessage=null,this.onerror=null,this.messageListeners=new Set,this.errorListeners=new Set,this.terminated=!1}postMessage(e){queueMicrotask(()=>this.handleRequest(e))}addEventListener(e,t){t&&(e===`message`&&this.messageListeners.add(t),e===`error`&&this.errorListeners.add(t))}removeEventListener(e,t){t&&(e===`message`&&this.messageListeners.delete(t),e===`error`&&this.errorListeners.delete(t))}terminate(){this.terminated=!0,this.messageListeners.clear(),this.errorListeners.clear(),this.onmessage=null,this.onerror=null}handleRequest(e){if(!this.terminated&&e.dependentNode)try{let t=e.dependentNode,n=e.nodes??[],r=e.edges??[],i=new Map,a=new Map,o=new Map,s=new Map;n.forEach(e=>s.set(e.id,e)),r.forEach(e=>{e.targets.forEach(t=>{o.has(t)||o.set(t,[]),o.get(t).push(e)})}),ff(t,i,a,s,o);let c=new MessageEvent(`message`,{data:{filteredNodes:i,filteredEdges:a,collapse:e.collapse}});this.onmessage?.(c);for(let e of this.messageListeners)pf(e,c)}catch(e){let t=e instanceof Error?e.message:`Unknown error`,n=new ErrorEvent(`error`,{message:t});this.onerror?.(n);for(let e of this.errorListeners)pf(e,n)}}};function hf(){return new mf}var gf=xe` +`,mf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hf=/(\{)([\w.\-_$:]+)(})|(:)([\w.\-_$:]+)/g,gf=/(\[)(["']?)([\w${}:.\-_/\\]+)(['"]?)(])/g,_f=class extends Ct{constructor(){super(),this.path=`/`,this.selected=!1,this.chars=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`}replaceBrackets(e){let t,n=e;for(;(t=hf.exec(e))!==null;)t.forEach((e,t)=>{e!==void 0&&(t===1||t===4)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&(t===2||t===5)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&t===3&&(n=n.replaceAll(e,``+e+``))});return n}breakPath(){if(!this.path)return T`{no path}`;let e=this.path.split(`.`);e.length>0&&e[0]==`$`&&(e=e.slice(1,e.length));let t=e.join(`.`),n=t,r=new Map,i;for(;(i=gf.exec(n))!==null;){let e=vf(gf.lastIndex-i.index,this.chars);r.set(e,i),t=t.substring(0,i.index)+e+t.substring(gf.lastIndex)}t=t.replaceAll(`.`,`.`),r.forEach((e,n)=>{let r=[];e[1]!==void 0&&r.push(``+e[1]+``),e[2]!==void 0&&r.push(e[2]),e[3]!==void 0&&r.push(``+this.replaceBrackets(e[3])+``),e[4]!==void 0&&r.push(e[4]),e[5]!==void 0&&r.push(``+e[5]+``);let i=r.join(``);t=t.replaceAll(n,i)});let a=t;return a=a.replaceAll(`$`,`$`),a===``&&(a=`{no path available}`),T`${Ft(a.toString())}`}render(){return T`${this.breakPath()}`}};_f.styles=pf,mf([Tt()],_f.prototype,`path`,void 0),mf([Tt({type:Boolean})],_f.prototype,`selected`,void 0),_f=mf([wt(`pb33f-render-json-path`)],_f);function vf(e,t){let n=``;for(let r=e;r>0;--r)n+=t[Math.floor(Math.random()*t.length)];return n}function yf(e,t,n,r,i){if(e&&e.nodes){for(let a of e.nodes)if(!t.has(a)){let e=r.get(a);if(!e)continue;t.set(a,e);let o=i.get(a);if(o)for(let e of o)n.has(e.id)||n.set(e.id,e);yf(e,t,n,r,i)}}}function bf(e,t){typeof e==`function`?e(t):e.handleEvent(t)}var xf=class{constructor(){this.onmessage=null,this.onerror=null,this.messageListeners=new Set,this.errorListeners=new Set,this.terminated=!1}postMessage(e){queueMicrotask(()=>this.handleRequest(e))}addEventListener(e,t){t&&(e===`message`&&this.messageListeners.add(t),e===`error`&&this.errorListeners.add(t))}removeEventListener(e,t){t&&(e===`message`&&this.messageListeners.delete(t),e===`error`&&this.errorListeners.delete(t))}terminate(){this.terminated=!0,this.messageListeners.clear(),this.errorListeners.clear(),this.onmessage=null,this.onerror=null}handleRequest(e){if(!this.terminated&&e.dependentNode)try{let t=e.dependentNode,n=e.nodes??[],r=e.edges??[],i=new Map,a=new Map,o=new Map,s=new Map;n.forEach(e=>s.set(e.id,e)),r.forEach(e=>{e.targets.forEach(t=>{o.has(t)||o.set(t,[]),o.get(t).push(e)})}),yf(t,i,a,s,o);let c=new MessageEvent(`message`,{data:{filteredNodes:i,filteredEdges:a,collapse:e.collapse}});this.onmessage?.(c);for(let e of this.messageListeners)bf(e,c)}catch(e){let t=e instanceof Error?e.message:`Unknown error`,n=new ErrorEvent(`error`,{message:t});this.onerror?.(n);for(let e of this.errorListeners)bf(e,n)}}};function Sf(){return new xf}var Cf=xe` .change-card { border-bottom: 1px dashed var(--secondary-color-dimmer); background: var(--background-color); @@ -5933,7 +5936,7 @@ .line-content .gi { color: var(--terminal-text); font-family: var(--font-stack-bold), monospace; } .line-content .ge { text-decoration: underline; } .line-content .gh, .line-content .gu { font-family: var(--font-stack-bold), monospace; } -`,_f=[gf,ya,xe` +`,Pse=[Cf,Sa,xe` :host { display: block; overflow: hidden; @@ -6102,11 +6105,11 @@ background: var(--secondary-color); color: var(--background-color); } -`],vf=10,yf=500,bf=1,xf=2,Sf=3,Cf=4,wf=5;function Tf(e,t,n,r,i,a=vf){let o=Ef(t),s=Ef(n);return(e||[]).map((e,t)=>{let n=zse(e),c=Nf(e,o,s,r||{},i||{},a);return{key:`${e.path||`change`}:${e.property||`property`}:${e.change}:${t}`,title:`${zf(e.change)}: ${e.property||`changed item`}`,path:e.path,breaking:!!e.breaking,valueBlocks:n,contextBlocks:c}})}function Ef(e){if(!e)return[];let t=e.split(` -`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Df(e){return{start:e,end:e}}function Rse(e,t){if(t<=0||e.length===0||t>e.length)return{start:t,end:t};let n=t-1,r=Uf(e[n]),i=n;for(let t=n-1;t>=0;t--){let n=e[t];if(!Wf(n)&&Uf(n)e.length)return{start:t,end:t};let n=t-1,r=kf(e,n,n,Uf(e[n]));return{start:t,end:Math.max(t,r+1)}}function kf(e,t,n,r){let i=t;for(let a=t+1;ar)i=a;else break}for(;i>n&&Wf(e[i]);)i--;if(i+10;){if(Vf(e,n,r))return Of(e,n);let t=Hse(e,n,r);if(t>0)return Of(e,t);let i=Use(e,n);if(i<=0||i===n)break;n=i}}return Rse(e,t)}function zse(e){let t=Ff(e),n=If(e);switch(e.change){case xf:case Sf:return jf(`Added Value`,`added`,n);case Cf:case wf:return jf(`Removed Value`,`removed`,t);case bf:{let e=[];return t&&e.push({title:`Original Value`,tone:`removed`,lines:Mf(t)}),n&&e.push({title:`Modified Value`,tone:`added`,lines:Mf(n)}),e}default:return[]}}function jf(e,t,n){return n?[{title:e,tone:t,lines:Mf(n)}]:[]}function Mf(e){let t=e.split(` -`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Nf(e,t,n,r,i,a=vf){let o=[],s=e.context?.originalLine||0,c=e.context?.newLine||0,l=Rf(e);switch(e.change){case xf:case Sf:c>0&&o.push(Pf(`Modified Context`,`added`,n,i,Af(n,c,e),a));break;case Cf:case wf:s>0&&o.push(Pf(`Original Context`,`removed`,t,r,Af(t,s,e),a));break;case bf:s>0&&o.push(Pf(`Original Context`,`removed`,t,r,l?Af(t,s,e):Df(s),a)),c>0&&o.push(Pf(`Modified Context`,`added`,n,i,l?Af(n,c,e):Df(c),a))}return o}function Pf(e,t,n,r,i,a=vf){let o=Math.max(1,i.start-a),s=Math.min(n.length,i.end+a),c=[];for(let e=o;e<=s;e++)c.push({lineNum:e,content:n[e-1]||``,highlightedContent:r[e],emphasis:e===i.start?`primary`:e>i.start&&e<=i.end?`range`:`normal`});return{title:e,tone:t,lines:c}}function Ff(e){return e.originalEncoded?e.originalEncoded:Lf(e.original)}function If(e){return e.newEncoded?e.newEncoded:Lf(e.new)}function Lf(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Rf(e){return Ff(e).includes(` -`)||If(e).includes(` -`)}function zf(e){switch(e){case xf:case Sf:return`Added`;case Cf:case wf:return`Removed`;case bf:default:return`Modified`}}function Bse(e){return e>=bf&&e<=wf}function Vse(e){let t=new Set,n=[],r=e=>{let r=Bf(e);r&&!t.has(r)&&(t.add(r),n.push(r))};return r(e.property||``),r(Ff(e)),r(If(e)),n}function Bf(e){return e.trim().replace(/,$/,``).trim().replace(/^['"]|['"]$/g,``).trim().toLowerCase()}function Vf(e,t,n){if(t<=0||t>e.length||n.length===0)return!1;let r=Hf(e[t-1]);return r?n.includes(r):!1}function Hse(e,t,n){if(t<=0||t>e.length||n.length===0)return 0;let r=t-1,i=Uf(e[r]),a=-1;for(let t=r+1;te.length)return 0;let n=t-1,r=Uf(e[n]);for(let t=n-1;t>=0;t--)if(!Wf(e[t])&&Uf(e[t])0?e.slice(0,n):e)}let n=t.indexOf(`:`);return n>0?Bf(t.slice(0,n)):t[0]===`{`||t[0]===`}`||t[0]===`[`||t[0]===`]`?null:Bf(t)}function Uf(e){for(let t=0;t{let n=If(e),c=zf(e,o,s,r||{},i||{},a);return{key:`${e.path||`change`}:${e.property||`property`}:${e.change}:${t}`,title:`${Rse(e.change)}: ${e.property||`changed item`}`,path:e.path,breaking:!!e.breaking,valueBlocks:n,contextBlocks:c}})}function jf(e){if(!e)return[];let t=e.split(` +`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Mf(e){return{start:e,end:e}}function Ise(e,t){if(t<=0||e.length===0||t>e.length)return{start:t,end:t};let n=t-1,r=Jf(e[n]),i=n;for(let t=n-1;t>=0;t--){let n=e[t];if(!Yf(n)&&Jf(n)e.length)return{start:t,end:t};let n=t-1,r=Pf(e,n,n,Jf(e[n]));return{start:t,end:Math.max(t,r+1)}}function Pf(e,t,n,r){let i=t;for(let a=t+1;ar)i=a;else break}for(;i>n&&Yf(e[i]);)i--;if(i+10;){if(Gf(e,n,r))return Nf(e,n);let t=Kf(e,n,r);if(t>0)return Nf(e,t);let i=qf(e,n);if(i<=0||i===n)break;n=i}}return Ise(e,t)}function If(e){let t=Vf(e),n=Hf(e);switch(e.change){case Ef:case Df:return Lf(`Added Value`,`added`,n);case Of:case kf:return Lf(`Removed Value`,`removed`,t);case Tf:{let e=[];return t&&e.push({title:`Original Value`,tone:`removed`,lines:Rf(t)}),n&&e.push({title:`Modified Value`,tone:`added`,lines:Rf(n)}),e}default:return[]}}function Lf(e,t,n){return n?[{title:e,tone:t,lines:Rf(n)}]:[]}function Rf(e){let t=e.split(` +`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function zf(e,t,n,r,i,a=wf){let o=[],s=e.context?.originalLine||0,c=e.context?.newLine||0,l=Lse(e);switch(e.change){case Ef:case Df:c>0&&o.push(Bf(`Modified Context`,`added`,n,i,Ff(n,c,e),a));break;case Of:case kf:s>0&&o.push(Bf(`Original Context`,`removed`,t,r,Ff(t,s,e),a));break;case Tf:s>0&&o.push(Bf(`Original Context`,`removed`,t,r,l?Ff(t,s,e):Mf(s),a)),c>0&&o.push(Bf(`Modified Context`,`added`,n,i,l?Ff(n,c,e):Mf(c),a))}return o}function Bf(e,t,n,r,i,a=wf){let o=Math.max(1,i.start-a),s=Math.min(n.length,i.end+a),c=[];for(let e=o;e<=s;e++)c.push({lineNum:e,content:n[e-1]||``,highlightedContent:r[e],emphasis:e===i.start?`primary`:e>i.start&&e<=i.end?`range`:`normal`});return{title:e,tone:t,lines:c}}function Vf(e){return e.originalEncoded?e.originalEncoded:Uf(e.original)}function Hf(e){return e.newEncoded?e.newEncoded:Uf(e.new)}function Uf(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Lse(e){return Vf(e).includes(` +`)||Hf(e).includes(` +`)}function Rse(e){switch(e){case Ef:case Df:return`Added`;case Of:case kf:return`Removed`;case Tf:default:return`Modified`}}function zse(e){return e>=Tf&&e<=kf}function Bse(e){let t=new Set,n=[],r=e=>{let r=Wf(e);r&&!t.has(r)&&(t.add(r),n.push(r))};return r(e.property||``),r(Vf(e)),r(Hf(e)),n}function Wf(e){return e.trim().replace(/,$/,``).trim().replace(/^['"]|['"]$/g,``).trim().toLowerCase()}function Gf(e,t,n){if(t<=0||t>e.length||n.length===0)return!1;let r=Vse(e[t-1]);return r?n.includes(r):!1}function Kf(e,t,n){if(t<=0||t>e.length||n.length===0)return 0;let r=t-1,i=Jf(e[r]),a=-1;for(let t=r+1;te.length)return 0;let n=t-1,r=Jf(e[n]);for(let t=n-1;t>=0;t--)if(!Yf(e[t])&&Jf(e[t])0?e.slice(0,n):e)}let n=t.indexOf(`:`);return n>0?Wf(t.slice(0,n)):t[0]===`{`||t[0]===`}`||t[0]===`[`||t[0]===`]`?null:Wf(t)}function Jf(e){for(let t=0;tnull,qf=class extends gn{constructor(){super(...arguments),this.isCollapsed=!1,this.localize=new fn(this),this.positionBeforeCollapsing=0,this.position=50,this.vertical=!1,this.disabled=!1,this.snapValue=``,this.snapFunction=Kf,this.snapThreshold=12}toSnapFunction(e){let t=e.split(` `);return({pos:n,size:r,snapThreshold:i,isRtl:a,vertical:o})=>{let s=n,c=1/0;return t.forEach(t=>{let l;if(t.startsWith(`repeat(`)){let t=e.substring(7,e.length-1),i=t.endsWith(`%`),s=Number.parseFloat(t),c=i?s/100*r:s;l=Math.round((a&&!o?r-n:n)/c)*c}else l=t.endsWith(`%`)?Number.parseFloat(t)/100*r:Number.parseFloat(t);a&&!o&&(l=r-l);let u=Math.abs(n-l);u<=i&&uthis.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()===`rtl`;this.disabled||(e.cancelable&&e.preventDefault(),Kse(this,{onMove:(e,n)=>{let r=this.vertical?n:e;this.primary===`end`&&(r=this.size-r),r=this.snapFunction({pos:r,size:this.size,snapThreshold:this.snapThreshold,isRtl:t,vertical:this.vertical})??r,this.position=Pa(this.pixelsToPercentage(r),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`].includes(e.key)){let t=this.position,n=(e.shiftKey?10:1)*(this.primary===`end`?-1:1);if(e.preventDefault(),(e.key===`ArrowLeft`&&!this.vertical||e.key===`ArrowUp`&&this.vertical)&&(t-=n),(e.key===`ArrowRight`&&!this.vertical||e.key===`ArrowDown`&&this.vertical)&&(t+=n),e.key===`Home`&&(t=this.primary===`end`?100:0),e.key===`End`&&(t=this.primary===`end`?0:100),e.key===`Enter`){if(this.isCollapsed)t=this.positionBeforeCollapsing,this.isCollapsed=!1;else{let e=this.position;t=0,requestAnimationFrame(()=>{this.isCollapsed=!0,this.positionBeforeCollapsing=e})}}this.position=Pa(t,0,100)}}handleResize(e){let{width:t,height:n}=e[0].contentRect;this.size=this.vertical?n:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.positionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.isCollapsed=!1,this.positionBeforeCollapsing=0,this.positionInPixels=this.percentageToPixels(this.position),this.emit(`sl-reposition`)}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?`gridTemplateRows`:`gridTemplateColumns`,t=this.vertical?`gridTemplateColumns`:`gridTemplateRows`,n=this.localize.dir()===`rtl`,r=` +`;function Use(e,t){function n(n){let r=e.getBoundingClientRect(),i=e.ownerDocument.defaultView,a=r.left+i.scrollX,o=r.top+i.scrollY,s=n.pageX-a,c=n.pageY-o;t?.onMove&&t.onMove(s,c)}function r(){document.removeEventListener(`pointermove`,n),document.removeEventListener(`pointerup`,r),t?.onStop&&t.onStop()}document.addEventListener(`pointermove`,n,{passive:!0}),document.addEventListener(`pointerup`,r),t?.initialEvent instanceof PointerEvent&&n(t.initialEvent)}var Qf=()=>null,$f=class extends _n{constructor(){super(...arguments),this.isCollapsed=!1,this.localize=new pn(this),this.positionBeforeCollapsing=0,this.position=50,this.vertical=!1,this.disabled=!1,this.snapValue=``,this.snapFunction=Qf,this.snapThreshold=12}toSnapFunction(e){let t=e.split(` `);return({pos:n,size:r,snapThreshold:i,isRtl:a,vertical:o})=>{let s=n,c=1/0;return t.forEach(t=>{let l;if(t.startsWith(`repeat(`)){let t=e.substring(7,e.length-1),i=t.endsWith(`%`),s=Number.parseFloat(t),c=i?s/100*r:s;l=Math.round((a&&!o?r-n:n)/c)*c}else l=t.endsWith(`%`)?Number.parseFloat(t)/100*r:Number.parseFloat(t);a&&!o&&(l=r-l);let u=Math.abs(n-l);u<=i&&uthis.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()===`rtl`;this.disabled||(e.cancelable&&e.preventDefault(),Use(this,{onMove:(e,n)=>{let r=this.vertical?n:e;this.primary===`end`&&(r=this.size-r),r=this.snapFunction({pos:r,size:this.size,snapThreshold:this.snapThreshold,isRtl:t,vertical:this.vertical})??r,this.position=La(this.pixelsToPercentage(r),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`].includes(e.key)){let t=this.position,n=(e.shiftKey?10:1)*(this.primary===`end`?-1:1);if(e.preventDefault(),(e.key===`ArrowLeft`&&!this.vertical||e.key===`ArrowUp`&&this.vertical)&&(t-=n),(e.key===`ArrowRight`&&!this.vertical||e.key===`ArrowDown`&&this.vertical)&&(t+=n),e.key===`Home`&&(t=this.primary===`end`?100:0),e.key===`End`&&(t=this.primary===`end`?0:100),e.key===`Enter`){if(this.isCollapsed)t=this.positionBeforeCollapsing,this.isCollapsed=!1;else{let e=this.position;t=0,requestAnimationFrame(()=>{this.isCollapsed=!0,this.positionBeforeCollapsing=e})}}this.position=La(t,0,100)}}handleResize(e){let{width:t,height:n}=e[0].contentRect;this.size=this.vertical?n:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.positionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.isCollapsed=!1,this.positionBeforeCollapsing=0,this.positionInPixels=this.percentageToPixels(this.position),this.emit(`sl-reposition`)}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?`gridTemplateRows`:`gridTemplateColumns`,t=this.vertical?`gridTemplateColumns`:`gridTemplateRows`,n=this.localize.dir()===`rtl`,r=` clamp( 0%, clamp( @@ -6197,7 +6200,7 @@ - `}};Jf.styles=[mn,Jse],w([Ot(`slot`)],Jf.prototype,`defaultSlot`,2),w([Tt()],Jf.prototype,`disableRole`,2),w([wt()],Jf.prototype,`label`,2);function Yf(e){let t=`sl-button, sl-radio-button`;return e.closest(t)??e.querySelector(t)}var Xf=class extends gn{constructor(){super(...arguments),this.formControlController=new $t(this),this.hasSlotController=new tn(this,`help-text`,`label`),this.customValidityMessage=``,this.hasButtonGroup=!1,this.errorMessage=``,this.defaultValue=``,this.label=``,this.helpText=``,this.name=`option`,this.value=``,this.size=`medium`,this.form=``,this.required=!1}get validity(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?_ee:en:vee}get validationMessage(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?this.validationInput.validationMessage:``:this.customValidityMessage}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll(`sl-radio, sl-radio-button`)]}handleRadioClick(e){let t=e.target.closest(`sl-radio, sl-radio-button`),n=this.getAllRadios(),r=this.value;t&&!t.disabled&&(this.value=t.value,n.forEach(e=>e.checked=e===t),this.value!==r&&(this.emit(`sl-change`),this.emit(`sl-input`)))}handleKeyDown(e){if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,` `].includes(e.key))return;let t=this.getAllRadios().filter(e=>!e.disabled),n=t.find(e=>e.checked)??t[0],r=e.key===` `?0:[`ArrowUp`,`ArrowLeft`].includes(e.key)?-1:1,i=this.value,a=t.indexOf(n)+r;a<0&&(a=t.length-1),a>t.length-1&&(a=0),this.getAllRadios().forEach(e=>{e.checked=!1,this.hasButtonGroup||e.setAttribute(`tabindex`,`-1`)}),this.value=t[a].value,t[a].checked=!0,this.hasButtonGroup?t[a].shadowRoot.querySelector(`button`).focus():(t[a].setAttribute(`tabindex`,`0`),t[a].focus()),this.value!==i&&(this.emit(`sl-change`),this.emit(`sl-input`)),e.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){let e=this.getAllRadios();if(await Promise.all(e.map(async e=>{await e.updateComplete,e.checked=e.value===this.value,e.size=this.size})),this.hasButtonGroup=e.some(e=>e.tagName.toLowerCase()===`sl-radio-button`),e.length>0&&!e.some(e=>e.checked)){if(this.hasButtonGroup){let t=e[0].shadowRoot?.querySelector(`button`);t&&t.setAttribute(`tabindex`,`0`)}else e[0].setAttribute(`tabindex`,`0`)}if(this.hasButtonGroup){let e=this.shadowRoot?.querySelector(`sl-button-group`);e&&(e.disableRole=!0)}}syncRadios(){customElements.get(`sl-radio`)&&customElements.get(`sl-radio-button`)?this.syncRadioElements():(customElements.get(`sl-radio`)?this.syncRadioElements():customElements.whenDefined(`sl-radio`).then(()=>this.syncRadios()),customElements.get(`sl-radio-button`)?this.syncRadioElements():customElements.whenDefined(`sl-radio-button`).then(()=>this.syncRadios()))}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let e=this.required&&!this.value,t=this.customValidityMessage!==``;return e||t?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?``:this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),e}setCustomValidity(e=``){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){let t=this.getAllRadios(),n=t.find(e=>e.checked),r=t.find(e=>!e.disabled),i=n||r;i&&i.focus(e)}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=T` + `}};np.styles=[hn,tp],w([kt(`slot`)],np.prototype,`defaultSlot`,2),w([Et()],np.prototype,`disableRole`,2),w([Tt()],np.prototype,`label`,2);function rp(e){let t=`sl-button, sl-radio-button`;return e.closest(t)??e.querySelector(t)}var ip=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this),this.hasSlotController=new nn(this,`help-text`,`label`),this.customValidityMessage=``,this.hasButtonGroup=!1,this.errorMessage=``,this.defaultValue=``,this.label=``,this.helpText=``,this.name=`option`,this.value=``,this.size=`medium`,this.form=``,this.required=!1}get validity(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?gee:tn:_ee}get validationMessage(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?this.validationInput.validationMessage:``:this.customValidityMessage}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll(`sl-radio, sl-radio-button`)]}handleRadioClick(e){let t=e.target.closest(`sl-radio, sl-radio-button`),n=this.getAllRadios(),r=this.value;t&&!t.disabled&&(this.value=t.value,n.forEach(e=>e.checked=e===t),this.value!==r&&(this.emit(`sl-change`),this.emit(`sl-input`)))}handleKeyDown(e){if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,` `].includes(e.key))return;let t=this.getAllRadios().filter(e=>!e.disabled),n=t.find(e=>e.checked)??t[0],r=e.key===` `?0:[`ArrowUp`,`ArrowLeft`].includes(e.key)?-1:1,i=this.value,a=t.indexOf(n)+r;a<0&&(a=t.length-1),a>t.length-1&&(a=0),this.getAllRadios().forEach(e=>{e.checked=!1,this.hasButtonGroup||e.setAttribute(`tabindex`,`-1`)}),this.value=t[a].value,t[a].checked=!0,this.hasButtonGroup?t[a].shadowRoot.querySelector(`button`).focus():(t[a].setAttribute(`tabindex`,`0`),t[a].focus()),this.value!==i&&(this.emit(`sl-change`),this.emit(`sl-input`)),e.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){let e=this.getAllRadios();if(await Promise.all(e.map(async e=>{await e.updateComplete,e.checked=e.value===this.value,e.size=this.size})),this.hasButtonGroup=e.some(e=>e.tagName.toLowerCase()===`sl-radio-button`),e.length>0&&!e.some(e=>e.checked)){if(this.hasButtonGroup){let t=e[0].shadowRoot?.querySelector(`button`);t&&t.setAttribute(`tabindex`,`0`)}else e[0].setAttribute(`tabindex`,`0`)}if(this.hasButtonGroup){let e=this.shadowRoot?.querySelector(`sl-button-group`);e&&(e.disableRole=!0)}}syncRadios(){customElements.get(`sl-radio`)&&customElements.get(`sl-radio-button`)?this.syncRadioElements():(customElements.get(`sl-radio`)?this.syncRadioElements():customElements.whenDefined(`sl-radio`).then(()=>this.syncRadios()),customElements.get(`sl-radio-button`)?this.syncRadioElements():customElements.whenDefined(`sl-radio-button`).then(()=>this.syncRadios()))}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let e=this.required&&!this.value,t=this.customValidityMessage!==``;return e||t?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?``:this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),e}setCustomValidity(e=``){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){let t=this.getAllRadios(),n=t.find(e=>e.checked),r=t.find(e=>!e.disabled),i=n||r;i&&i.focus(e)}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=T` `;return T`
${this.helpText}
- `}};Xf.styles=[mn,qt,qse],Xf.dependencies={"sl-button-group":Jf},w([Ot(`slot:not([name])`)],Xf.prototype,`defaultSlot`,2),w([Ot(`.radio-group__validation-input`)],Xf.prototype,`validationInput`,2),w([Tt()],Xf.prototype,`hasButtonGroup`,2),w([Tt()],Xf.prototype,`errorMessage`,2),w([Tt()],Xf.prototype,`defaultValue`,2),w([wt()],Xf.prototype,`label`,2),w([wt({attribute:`help-text`})],Xf.prototype,`helpText`,2),w([wt()],Xf.prototype,`name`,2),w([wt({reflect:!0})],Xf.prototype,`value`,2),w([wt({reflect:!0})],Xf.prototype,`size`,2),w([wt({reflect:!0})],Xf.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],Xf.prototype,`required`,2),w([pn(`size`,{waitUntilFirstUpdate:!0})],Xf.prototype,`handleSizeChange`,1),w([pn(`value`)],Xf.prototype,`handleValueChange`,1),Xf.define(`sl-radio-group`);var Zf=xe` + `}};ip.styles=[hn,Jt,ep],ip.dependencies={"sl-button-group":np},w([kt(`slot:not([name])`)],ip.prototype,`defaultSlot`,2),w([kt(`.radio-group__validation-input`)],ip.prototype,`validationInput`,2),w([Et()],ip.prototype,`hasButtonGroup`,2),w([Et()],ip.prototype,`errorMessage`,2),w([Et()],ip.prototype,`defaultValue`,2),w([Tt()],ip.prototype,`label`,2),w([Tt({attribute:`help-text`})],ip.prototype,`helpText`,2),w([Tt()],ip.prototype,`name`,2),w([Tt({reflect:!0})],ip.prototype,`value`,2),w([Tt({reflect:!0})],ip.prototype,`size`,2),w([Tt({reflect:!0})],ip.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],ip.prototype,`required`,2),w([mn(`size`,{waitUntilFirstUpdate:!0})],ip.prototype,`handleSizeChange`,1),w([mn(`value`)],ip.prototype,`handleValueChange`,1),ip.define(`sl-radio-group`);var ap=xe` :host { display: inline-block; position: relative; @@ -6910,8 +6913,8 @@ :host([data-sl-button-group__button][checked]) { z-index: 2; } -`,Yse=xe` - ${Zf} +`,Wse=xe` + ${ap} .button__prefix, .button__suffix, @@ -6934,16 +6937,16 @@ opacity: 0; z-index: -1; } -`,Qf=Symbol.for(``),Xse=e=>{if(e?.r===Qf)return e?._$litStatic$},$f=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:Qf}),ep=new Map,tp=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l{if(e?.r===op)return e?._$litStatic$},cp=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:op}),lp=new Map,up=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l
- `}};np.styles=[mn,Yse],w([Ot(`.button`)],np.prototype,`input`,2),w([Ot(`.hidden-input`)],np.prototype,`hiddenInput`,2),w([Tt()],np.prototype,`hasFocus`,2),w([wt({type:Boolean,reflect:!0})],np.prototype,`checked`,2),w([wt()],np.prototype,`value`,2),w([wt({type:Boolean,reflect:!0})],np.prototype,`disabled`,2),w([wt({reflect:!0})],np.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],np.prototype,`pill`,2),w([pn(`disabled`,{waitUntilFirstUpdate:!0})],np.prototype,`handleDisabledChange`,1),np.define(`sl-radio-button`);var rp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ip=Object.freeze({type:`spacer`,content:``}),ap=20,op=20,sp=`pb33f-diff-view-mode`;function cp(e){return e===`side-by-side`||e===`unified`}var lp=class extends St{constructor(){super(...arguments),this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.selectedChanges=[],this.contentMode=`file`,this.viewMode=`side-by-side`,this._cachedFocusedSections=[],this.cachedLeft=[],this.cachedRight=[],this.cachedUnified=[],this.originalLineToIndex=new Map,this.modifiedLineToIndex=new Map,this.dmp=(()=>{let e=new ca.default;return e.Diff_Timeout=5,e})(),this._highlightTimer=0,this._highlightedElement=null,this._panels=[],this._scrollListeners=[],this._resizeObserver=null,this._rafId=0,this._scrollDirty=!1,this._syncing=!1,this._rendering=!1,this._renderStart=[0,0],this._renderEnd=[0,0],this._viewportHeight=[0,0],this._lastScrollTop=0,this._pendingJump=[0,0]}connectedCallback(){super.connectedCallback(),this.restoreStoredViewMode()}willUpdate(e){e.has(`selectedChanges`)&&(this.contentMode=this.hasSelection?`change`:`file`);let t=e.has(`originalSpec`)||e.has(`modifiedSpec`);t?this.recomputeDiffs():(e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&this._applyHighlights(),(t||e.has(`selectedChanges`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedFocusedSections=[])}updated(e){super.updated(e);let t=e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`);if(e.has(`contentMode`)&&this.contentMode===`change`&&this._teardownScrolling(),this.contentMode===`file`&&(e.has(`contentMode`)||e.has(`viewMode`)||e.has(`originalSpec`)||e.has(`modifiedSpec`))){let t=e.has(`contentMode`)&&e.get(`contentMode`)===`change`;this.updateComplete.then(()=>{requestAnimationFrame(()=>{let e=0,n=0;if(t&&this.selectedChanges.length>0){let t=this.selectedChanges.find(e=>e.context?.originalLine>0||e.context?.newLine>0);t&&(e=t.context?.originalLine||0,n=t.context?.newLine||0)}this._setupScrolling(e,n)})})}else this.contentMode===`file`&&t&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this._panels.length>0&&this._markDirty()})})}disconnectedCallback(){super.disconnectedCallback(),this._teardownScrolling(),this._highlightTimer&&=(clearTimeout(this._highlightTimer),0)}restoreStoredViewMode(){try{let e=localStorage.getItem(sp);cp(e)&&(this.viewMode=e)}catch{}}setViewMode(e){this.viewMode=e;try{localStorage.setItem(sp,e)}catch{}}get hasSelection(){return Array.isArray(this.selectedChanges)&&this.selectedChanges.length>0}recomputeDiffs(){let e=this.dmp.diff_linesToChars_(this.originalSpec,this.modifiedSpec),t=this.dmp.diff_main(e.chars1,e.chars2,!1);this.dmp.diff_charsToLines_(t,e.lineArray);let n=[],r=[],i=[],a=this.originalHighlighted||{},o=this.modifiedHighlighted||{},s=new Map,c=new Map,l=1,u=1;for(let[e,d]of t){let t=d.split(` -`);t[t.length-1]===``&&t.pop();for(let d of t)if(e===0){let e=n.length,t={type:`equal`,content:d,highlightedContent:a[l]||o[u],originalLineNum:l,modifiedLineNum:u};n.push(t),r.push(t),i.push(t),s.set(l,e),c.set(u,e),l++,u++}else if(e===-1){let e=n.length,t={type:`removed`,content:d,highlightedContent:a[l],originalLineNum:l};n.push(t),r.push(ip),i.push(t),s.set(l,e),l++}else if(e===1){let e=r.length,t={type:`added`,content:d,highlightedContent:o[u],modifiedLineNum:u};r.push(t),n.push(ip),i.push(t),c.set(u,e),u++}}this.cachedLeft=n,this.cachedRight=r,this.cachedUnified=i,this.originalLineToIndex=s,this.modifiedLineToIndex=c,this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_applyHighlights(){let e=this.originalHighlighted||{},t=this.modifiedHighlighted||{};for(let n of this.cachedLeft)n.type!==`spacer`&&(n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));for(let n of this.cachedRight)n.type!==`spacer`&&(n.modifiedLineNum?n.highlightedContent=t[n.modifiedLineNum]:n.originalLineNum&&(n.highlightedContent=e[n.originalLineNum]));for(let n of this.cachedUnified)n.type!==`spacer`&&(n.originalLineNum&&n.modifiedLineNum?n.highlightedContent=e[n.originalLineNum]||t[n.modifiedLineNum]:n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_setupScrolling(e=0,t=0){this._teardownScrolling(),this._renderStart=[-1,-1],this._renderEnd=[-1,-1],this._lastScrollTop=0,this._pendingJump=[e,t];let n=Array.from(this.renderRoot.querySelectorAll(`.diff-panel`));if(this._panels=n,n.length){for(let e of n)e.scrollTop=0;this._resizeObserver=new ResizeObserver(()=>{this._markDirty()});for(let e=0;e{this._rendering||this._syncing||(this._lastScrollTop=t.scrollTop,this.viewMode===`side-by-side`&&n.length===2&&(this._syncing=!0,n[1-e].scrollTop=this._lastScrollTop,this._syncing=!1),this._markDirty())};t.addEventListener(`scroll`,r,{passive:!0}),this._scrollListeners.push(()=>t.removeEventListener(`scroll`,r))}this._markDirty()}}_teardownScrolling(){for(let e of this._scrollListeners)e();this._scrollListeners=[],this._resizeObserver?.disconnect(),this._resizeObserver=null,this._rafId&&=(cancelAnimationFrame(this._rafId),0),this._scrollDirty=!1,this._panels=[]}_markDirty(){this._scrollDirty||(this._scrollDirty=!0,this._rafId=requestAnimationFrame(()=>{this._scrollDirty=!1,this._rafId=0,this._updateAllPanels()}))}_updateAllPanels(){let e=this._lastScrollTop;for(let t=0;t0||this._pendingJump[1]>0){let[e,t]=this._pendingJump;this._pendingJump=[0,0],requestAnimationFrame(()=>this.scrollToLine(e,t))}}_getLinesForPanel(e){return this.viewMode===`unified`?this.cachedUnified:e===0?this.cachedLeft:this.cachedRight}_getSideForPanel(e){return this.viewMode===`unified`?`unified`:e===0?`left`:`right`}_renderRange(e,t,n,r,i,a){let o=e.querySelector(`.scroll-pad-top`),s=e.querySelector(`.visible-lines`),c=e.querySelector(`.scroll-pad-bottom`);if(!o||!s||!c)return;this._highlightedElement&&=null,this._rendering=!0;let l=e.scrollTop;o.style.height=`${n*ap}px`,c.style.height=`${(i-r)*ap}px`;let u=document.createDocumentFragment();for(let e=n;e0&&(n=this.originalLineToIndex.get(e)??-1),n<0&&t&&t>0&&(n=this.modifiedLineToIndex.get(t)??-1),n<0)return;let r=this._panels[0];if(!r)return;let i=this._viewportHeight[0]||r.clientHeight,a=Math.max(0,n*ap-i/2+ap/2);r.scrollTop=a,this._panels.length>1&&(this._panels[1].scrollTop=a),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)));let o=this._findScrollTarget(e,t);o&&(this._highlightTimer&&=(clearTimeout(this._highlightTimer),0),this._highlightedElement&&=(this._highlightedElement.classList.remove(`highlight`),null),o.classList.add(`highlight`),this._highlightedElement=o,this._highlightTimer=window.setTimeout(()=>{o?.classList.remove(`highlight`),this._highlightedElement=null,this._highlightTimer=0},2e3))}_findScrollTarget(e,t){if(this.viewMode===`side-by-side`&&this._panels.length>1){if(e>0){let t=this._panels[0].querySelector(`[data-original-line="${e}"]`);if(t)return t}if(t&&t>0){let e=this._panels[1].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(t&&t>0){let e=this._panels[0].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(e>0){let t=this._panels[1].querySelector(`[data-original-line="${e}"]`);if(t)return t}return null}let n=this._panels[0];if(!n)return null;if(e>0){let t=n.querySelector(`[data-original-line="${e}"]`);if(t)return t}return t&&t>0?n.querySelector(`[data-modified-line="${t}"]`):null}renderControls(){return T` + `}};dp.styles=[hn,Wse],w([kt(`.button`)],dp.prototype,`input`,2),w([kt(`.hidden-input`)],dp.prototype,`hiddenInput`,2),w([Et()],dp.prototype,`hasFocus`,2),w([Tt({type:Boolean,reflect:!0})],dp.prototype,`checked`,2),w([Tt()],dp.prototype,`value`,2),w([Tt({type:Boolean,reflect:!0})],dp.prototype,`disabled`,2),w([Tt({reflect:!0})],dp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],dp.prototype,`pill`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],dp.prototype,`handleDisabledChange`,1),dp.define(`sl-radio-button`);var fp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pp=Object.freeze({type:`spacer`,content:``}),mp=20,hp=20,gp=`pb33f-diff-view-mode`;function _p(e){return e===`side-by-side`||e===`unified`}var vp=class extends Ct{constructor(){super(...arguments),this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.selectedChanges=[],this.contentMode=`file`,this.viewMode=`side-by-side`,this._cachedFocusedSections=[],this.cachedLeft=[],this.cachedRight=[],this.cachedUnified=[],this.originalLineToIndex=new Map,this.modifiedLineToIndex=new Map,this.dmp=(()=>{let e=new da.default;return e.Diff_Timeout=5,e})(),this._highlightTimer=0,this._highlightedElement=null,this._panels=[],this._scrollListeners=[],this._resizeObserver=null,this._rafId=0,this._scrollDirty=!1,this._syncing=!1,this._rendering=!1,this._renderStart=[0,0],this._renderEnd=[0,0],this._viewportHeight=[0,0],this._lastScrollTop=0,this._pendingJump=[0,0]}connectedCallback(){super.connectedCallback(),this.restoreStoredViewMode()}willUpdate(e){e.has(`selectedChanges`)&&(this.contentMode=this.hasSelection?`change`:`file`);let t=e.has(`originalSpec`)||e.has(`modifiedSpec`);t?this.recomputeDiffs():(e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&this._applyHighlights(),(t||e.has(`selectedChanges`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedFocusedSections=[])}updated(e){super.updated(e);let t=e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`);if(e.has(`contentMode`)&&this.contentMode===`change`&&this._teardownScrolling(),this.contentMode===`file`&&(e.has(`contentMode`)||e.has(`viewMode`)||e.has(`originalSpec`)||e.has(`modifiedSpec`))){let t=e.has(`contentMode`)&&e.get(`contentMode`)===`change`;this.updateComplete.then(()=>{requestAnimationFrame(()=>{let e=0,n=0;if(t&&this.selectedChanges.length>0){let t=this.selectedChanges.find(e=>e.context?.originalLine>0||e.context?.newLine>0);t&&(e=t.context?.originalLine||0,n=t.context?.newLine||0)}this._setupScrolling(e,n)})})}else this.contentMode===`file`&&t&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this._panels.length>0&&this._markDirty()})})}disconnectedCallback(){super.disconnectedCallback(),this._teardownScrolling(),this._highlightTimer&&=(clearTimeout(this._highlightTimer),0)}restoreStoredViewMode(){try{let e=localStorage.getItem(gp);_p(e)&&(this.viewMode=e)}catch{}}setViewMode(e){this.viewMode=e;try{localStorage.setItem(gp,e)}catch{}}get hasSelection(){return Array.isArray(this.selectedChanges)&&this.selectedChanges.length>0}recomputeDiffs(){let e=this.dmp.diff_linesToChars_(this.originalSpec,this.modifiedSpec),t=this.dmp.diff_main(e.chars1,e.chars2,!1);this.dmp.diff_charsToLines_(t,e.lineArray);let n=[],r=[],i=[],a=this.originalHighlighted||{},o=this.modifiedHighlighted||{},s=new Map,c=new Map,l=1,u=1;for(let[e,d]of t){let t=d.split(` +`);t[t.length-1]===``&&t.pop();for(let d of t)if(e===0){let e=n.length,t={type:`equal`,content:d,highlightedContent:a[l]||o[u],originalLineNum:l,modifiedLineNum:u};n.push(t),r.push(t),i.push(t),s.set(l,e),c.set(u,e),l++,u++}else if(e===-1){let e=n.length,t={type:`removed`,content:d,highlightedContent:a[l],originalLineNum:l};n.push(t),r.push(pp),i.push(t),s.set(l,e),l++}else if(e===1){let e=r.length,t={type:`added`,content:d,highlightedContent:o[u],modifiedLineNum:u};r.push(t),n.push(pp),i.push(t),c.set(u,e),u++}}this.cachedLeft=n,this.cachedRight=r,this.cachedUnified=i,this.originalLineToIndex=s,this.modifiedLineToIndex=c,this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_applyHighlights(){let e=this.originalHighlighted||{},t=this.modifiedHighlighted||{};for(let n of this.cachedLeft)n.type!==`spacer`&&(n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));for(let n of this.cachedRight)n.type!==`spacer`&&(n.modifiedLineNum?n.highlightedContent=t[n.modifiedLineNum]:n.originalLineNum&&(n.highlightedContent=e[n.originalLineNum]));for(let n of this.cachedUnified)n.type!==`spacer`&&(n.originalLineNum&&n.modifiedLineNum?n.highlightedContent=e[n.originalLineNum]||t[n.modifiedLineNum]:n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_setupScrolling(e=0,t=0){this._teardownScrolling(),this._renderStart=[-1,-1],this._renderEnd=[-1,-1],this._lastScrollTop=0,this._pendingJump=[e,t];let n=Array.from(this.renderRoot.querySelectorAll(`.diff-panel`));if(this._panels=n,n.length){for(let e of n)e.scrollTop=0;this._resizeObserver=new ResizeObserver(()=>{this._markDirty()});for(let e=0;e{this._rendering||this._syncing||(this._lastScrollTop=t.scrollTop,this.viewMode===`side-by-side`&&n.length===2&&(this._syncing=!0,n[1-e].scrollTop=this._lastScrollTop,this._syncing=!1),this._markDirty())};t.addEventListener(`scroll`,r,{passive:!0}),this._scrollListeners.push(()=>t.removeEventListener(`scroll`,r))}this._markDirty()}}_teardownScrolling(){for(let e of this._scrollListeners)e();this._scrollListeners=[],this._resizeObserver?.disconnect(),this._resizeObserver=null,this._rafId&&=(cancelAnimationFrame(this._rafId),0),this._scrollDirty=!1,this._panels=[]}_markDirty(){this._scrollDirty||(this._scrollDirty=!0,this._rafId=requestAnimationFrame(()=>{this._scrollDirty=!1,this._rafId=0,this._updateAllPanels()}))}_updateAllPanels(){let e=this._lastScrollTop;for(let t=0;t0||this._pendingJump[1]>0){let[e,t]=this._pendingJump;this._pendingJump=[0,0],requestAnimationFrame(()=>this.scrollToLine(e,t))}}_getLinesForPanel(e){return this.viewMode===`unified`?this.cachedUnified:e===0?this.cachedLeft:this.cachedRight}_getSideForPanel(e){return this.viewMode===`unified`?`unified`:e===0?`left`:`right`}_renderRange(e,t,n,r,i,a){let o=e.querySelector(`.scroll-pad-top`),s=e.querySelector(`.visible-lines`),c=e.querySelector(`.scroll-pad-bottom`);if(!o||!s||!c)return;this._highlightedElement&&=null,this._rendering=!0;let l=e.scrollTop;o.style.height=`${n*mp}px`,c.style.height=`${(i-r)*mp}px`;let u=document.createDocumentFragment();for(let e=n;e0&&(n=this.originalLineToIndex.get(e)??-1),n<0&&t&&t>0&&(n=this.modifiedLineToIndex.get(t)??-1),n<0)return;let r=this._panels[0];if(!r)return;let i=this._viewportHeight[0]||r.clientHeight,a=Math.max(0,n*mp-i/2+mp/2);r.scrollTop=a,this._panels.length>1&&(this._panels[1].scrollTop=a),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)));let o=this._findScrollTarget(e,t);o&&(this._highlightTimer&&=(clearTimeout(this._highlightTimer),0),this._highlightedElement&&=(this._highlightedElement.classList.remove(`highlight`),null),o.classList.add(`highlight`),this._highlightedElement=o,this._highlightTimer=window.setTimeout(()=>{o?.classList.remove(`highlight`),this._highlightedElement=null,this._highlightTimer=0},2e3))}_findScrollTarget(e,t){if(this.viewMode===`side-by-side`&&this._panels.length>1){if(e>0){let t=this._panels[0].querySelector(`[data-original-line="${e}"]`);if(t)return t}if(t&&t>0){let e=this._panels[1].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(t&&t>0){let e=this._panels[0].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(e>0){let t=this._panels[1].querySelector(`[data-original-line="${e}"]`);if(t)return t}return null}let n=this._panels[0];if(!n)return null;if(e>0){let t=n.querySelector(`[data-original-line="${e}"]`);if(t)return t}return t&&t>0?n.querySelector(`[data-modified-line="${t}"]`):null}renderControls(){return T`
${this.hasSelection?T` `:ct}
- `}renderFocusedDiff(){!this._cachedFocusedSections.length&&this.selectedChanges.length&&(this._cachedFocusedSections=Tf(this.selectedChanges,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{}));let e=this._cachedFocusedSections;if(!e.length)return T` + `}renderFocusedDiff(){!this._cachedFocusedSections.length&&this.selectedChanges.length&&(this._cachedFocusedSections=Af(this.selectedChanges,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{}));let e=this._cachedFocusedSections;if(!e.length)return T` ${this.renderControls()}
No focused changes available
`;let t=[],n=[];for(let r of e){let e=T` @@ -7052,7 +7055,7 @@
- `}};lp.styles=_f,rp([wt()],lp.prototype,`originalSpec`,void 0),rp([wt()],lp.prototype,`modifiedSpec`,void 0),rp([wt({type:Object})],lp.prototype,`originalHighlighted`,void 0),rp([wt({type:Object})],lp.prototype,`modifiedHighlighted`,void 0),rp([wt({type:Array})],lp.prototype,`selectedChanges`,void 0),rp([Tt()],lp.prototype,`contentMode`,void 0),rp([Tt()],lp.prototype,`viewMode`,void 0),lp=rp([Ct(`pb33f-diff-viewer`)],lp);var up=xe` + `}};vp.styles=Pse,fp([Tt()],vp.prototype,`originalSpec`,void 0),fp([Tt()],vp.prototype,`modifiedSpec`,void 0),fp([Tt({type:Object})],vp.prototype,`originalHighlighted`,void 0),fp([Tt({type:Object})],vp.prototype,`modifiedHighlighted`,void 0),fp([Tt({type:Array})],vp.prototype,`selectedChanges`,void 0),fp([Et()],vp.prototype,`contentMode`,void 0),fp([Et()],vp.prototype,`viewMode`,void 0),vp=fp([wt(`pb33f-diff-viewer`)],vp);var Gse=xe` :host { display: block; } @@ -7079,7 +7082,7 @@ .change-card { padding-bottom: var(--global-padding); } -`,dp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fp=class extends St{constructor(){super(...arguments),this.changes=[],this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.compact=!1,this._cachedSections=null}willUpdate(e){(e.has(`changes`)||e.has(`originalSpec`)||e.has(`modifiedSpec`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedSections=null)}_getSections(){return this._cachedSections===null?this.changes.length?(this._cachedSections=Tf(this.changes,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{},this.compact?5:void 0),this._cachedSections):[]:this._cachedSections}renderValueBlock(e){return T` +`,yp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bp=class extends Ct{constructor(){super(...arguments),this.changes=[],this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.compact=!1,this._cachedSections=null}willUpdate(e){(e.has(`changes`)||e.has(`originalSpec`)||e.has(`modifiedSpec`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedSections=null)}_getSections(){return this._cachedSections===null?this.changes.length?(this._cachedSections=Af(this.changes,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{},this.compact?5:void 0),this._cachedSections):[]:this._cachedSections}renderValueBlock(e){return T`
${this.compact?ct:T`
${e.title}
`}
@@ -7090,7 +7093,7 @@
${r} ${i} - ${e.highlightedContent?Pt(e.highlightedContent):e.content} + ${e.highlightedContent?Ft(e.highlightedContent):e.content}
`}renderContextBlock(e){return T`
@@ -7123,7 +7126,7 @@ `})}
- `:ct}};fp.styles=[gf,up],dp([wt({type:Array})],fp.prototype,`changes`,void 0),dp([wt()],fp.prototype,`originalSpec`,void 0),dp([wt()],fp.prototype,`modifiedSpec`,void 0),dp([wt({type:Object})],fp.prototype,`originalHighlighted`,void 0),dp([wt({type:Object})],fp.prototype,`modifiedHighlighted`,void 0),dp([wt({type:Boolean})],fp.prototype,`compact`,void 0),fp=dp([Ct(`pb33f-focused-diff-panel`)],fp);var Zse=[ya,xe` + `:ct}};bp.styles=[Cf,Gse],yp([Tt({type:Array})],bp.prototype,`changes`,void 0),yp([Tt()],bp.prototype,`originalSpec`,void 0),yp([Tt()],bp.prototype,`modifiedSpec`,void 0),yp([Tt({type:Object})],bp.prototype,`originalHighlighted`,void 0),yp([Tt({type:Object})],bp.prototype,`modifiedHighlighted`,void 0),yp([Tt({type:Boolean})],bp.prototype,`compact`,void 0),bp=yp([wt(`pb33f-focused-diff-panel`)],bp);var Kse=[Sa,xe` :host { display: flex; flex-direction: column; @@ -7943,7 +7946,7 @@ padding-bottom: var(--global-padding); border-bottom: 1px dashed var(--hrcolor); } -`];function pp(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Qse=xe` +`];function xp(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Sp=xe` :host { --indicator-color: var(--sl-color-primary-600); --track-color: var(--sl-color-neutral-200); @@ -8177,11 +8180,11 @@ .tab-group--end ::slotted(sl-tab-panel) { --padding: 0 var(--sl-spacing-medium); } -`,$se=xe` +`,qse=xe` :host { display: contents; } -`,mp=class extends gn{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>{this.emit(`sl-resize`,{detail:{entries:e}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){let e=this.shadowRoot.querySelector(`slot`);if(e!==null){let t=e.assignedElements({flatten:!0});this.observedElements.forEach(e=>this.resizeObserver.unobserve(e)),this.observedElements=[],t.forEach(e=>{this.resizeObserver.observe(e),this.observedElements.push(e)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return T` `}};mp.styles=[mn,$se],w([wt({type:Boolean,reflect:!0})],mp.prototype,`disabled`,2),w([pn(`disabled`,{waitUntilFirstUpdate:!0})],mp.prototype,`handleDisabledChange`,1);function hp(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}function ece(e,t,n=`vertical`,r=`smooth`){let i=hp(e,t),a=i.top+t.scrollTop,o=i.left+t.scrollLeft,s=t.scrollLeft,c=t.scrollLeft+t.offsetWidth,l=t.scrollTop,u=t.scrollTop+t.offsetHeight;(n===`horizontal`||n===`both`)&&(oc&&t.scrollTo({left:o-t.offsetWidth+e.clientWidth,behavior:r})),(n===`vertical`||n===`both`)&&(au&&t.scrollTo({top:a-t.offsetHeight+e.clientHeight,behavior:r}))}var tce=xe` +`,Cp=class extends _n{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>{this.emit(`sl-resize`,{detail:{entries:e}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){let e=this.shadowRoot.querySelector(`slot`);if(e!==null){let t=e.assignedElements({flatten:!0});this.observedElements.forEach(e=>this.resizeObserver.unobserve(e)),this.observedElements=[],t.forEach(e=>{this.resizeObserver.observe(e),this.observedElements.push(e)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return T` `}};Cp.styles=[hn,qse],w([Tt({type:Boolean,reflect:!0})],Cp.prototype,`disabled`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Cp.prototype,`handleDisabledChange`,1);function Jse(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}function Yse(e,t,n=`vertical`,r=`smooth`){let i=Jse(e,t),a=i.top+t.scrollTop,o=i.left+t.scrollLeft,s=t.scrollLeft,c=t.scrollLeft+t.offsetWidth,l=t.scrollTop,u=t.scrollTop+t.offsetHeight;(n===`horizontal`||n===`both`)&&(oc&&t.scrollTo({left:o-t.offsetWidth+e.clientWidth,behavior:r})),(n===`vertical`||n===`both`)&&(au&&t.scrollTo({top:a-t.offsetHeight+e.clientHeight,behavior:r}))}var Xse=xe` :host { display: inline-block; color: var(--sl-color-neutral-600); @@ -8228,17 +8231,17 @@ .icon-button__icon { pointer-events: none; } -`,gp=class extends gn{constructor(){super(...arguments),this.hasFocus=!1,this.label=``,this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){let e=!!this.href,t=e?$f`a`:$f`button`;return tp` +`,wp=class extends _n{constructor(){super(...arguments),this.hasFocus=!1,this.label=``,this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){let e=!!this.href,t=e?cp`a`:cp`button`;return up` <${t} part="base" - class=${_n({"icon-button":!0,"icon-button--disabled":!e&&this.disabled,"icon-button--focused":this.hasFocus})} - ?disabled=${vn(e?void 0:this.disabled)} - type=${vn(e?void 0:`button`)} - href=${vn(e?this.href:void 0)} - target=${vn(e?this.target:void 0)} - download=${vn(e?this.download:void 0)} - rel=${vn(e&&this.target?`noreferrer noopener`:void 0)} - role=${vn(e?void 0:`button`)} + class=${vn({"icon-button":!0,"icon-button--disabled":!e&&this.disabled,"icon-button--focused":this.hasFocus})} + ?disabled=${yn(e?void 0:this.disabled)} + type=${yn(e?void 0:`button`)} + href=${yn(e?this.href:void 0)} + target=${yn(e?this.target:void 0)} + download=${yn(e?this.download:void 0)} + rel=${yn(e&&this.target?`noreferrer noopener`:void 0)} + role=${yn(e?void 0:`button`)} aria-disabled=${this.disabled?`true`:`false`} aria-label="${this.label}" tabindex=${this.disabled?`-1`:`0`} @@ -8248,16 +8251,16 @@ > - `}};gp.styles=[mn,tce],gp.dependencies={"sl-icon":sa},w([Ot(`.icon-button`)],gp.prototype,`button`,2),w([Tt()],gp.prototype,`hasFocus`,2),w([wt()],gp.prototype,`name`,2),w([wt()],gp.prototype,`library`,2),w([wt()],gp.prototype,`src`,2),w([wt()],gp.prototype,`href`,2),w([wt()],gp.prototype,`target`,2),w([wt()],gp.prototype,`download`,2),w([wt()],gp.prototype,`label`,2),w([wt({type:Boolean,reflect:!0})],gp.prototype,`disabled`,2);var _p=class extends gn{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new fn(this),this.hasScrollControls=!1,this.shouldHideScrollStartButton=!1,this.shouldHideScrollEndButton=!1,this.placement=`top`,this.activation=`auto`,this.noScrollControls=!1,this.fixedScrollControls=!1,this.scrollOffset=1}connectedCallback(){let e=Promise.all([customElements.whenDefined(`sl-tab`),customElements.whenDefined(`sl-tab-panel`)]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{let t=e.filter(({target:e})=>{if(e===this)return!0;if(e.closest(`sl-tab-group`)!==this)return!1;let t=e.tagName.toLowerCase();return t===`sl-tab`||t===`sl-tab-panel`});if(t.length!==0){if(t.some(e=>![`aria-labelledby`,`aria-controls`].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),t.some(e=>e.attributeName===`disabled`))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName===`active`)){let e=t.filter(e=>e.attributeName===`active`&&e.target.tagName.toLowerCase()===`sl-tab`).map(e=>e.target).find(e=>e.active);e&&this.setActiveTab(e)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:[`active`,`disabled`,`name`,`panel`],childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then(()=>{new IntersectionObserver((e,t)=>{e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.getActiveTab()??this.tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector(`slot[name="nav"]`).assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(e=>e.tagName.toLowerCase()===`sl-tab-panel`)}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){let t=e.target.closest(`sl-tab`);t?.closest(`sl-tab-group`)===this&&t!==null&&this.setActiveTab(t,{scrollBehavior:`smooth`})}handleKeyDown(e){let t=e.target.closest(`sl-tab`);if(t?.closest(`sl-tab-group`)===this&&([`Enter`,` `].includes(e.key)&&t!==null&&(this.setActiveTab(t,{scrollBehavior:`smooth`}),e.preventDefault()),[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key))){let t=this.tabs.find(e=>e.matches(`:focus`)),n=this.localize.dir()===`rtl`,r=null;if(t?.tagName.toLowerCase()===`sl-tab`){if(e.key===`Home`)r=this.focusableTabs[0];else if(e.key===`End`)r=this.focusableTabs[this.focusableTabs.length-1];else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowRight`:`ArrowLeft`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowUp`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`backward`)}else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowLeft`:`ArrowRight`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowDown`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`forward`)}if(!r)return;r.tabIndex=0,r.focus({preventScroll:!0}),this.activation===`auto`?this.setActiveTab(r,{scrollBehavior:`smooth`}):this.tabs.forEach(e=>{e.tabIndex=e===r?0:-1}),[`top`,`bottom`].includes(this.placement)&&ece(r,this.nav,`horizontal`),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:`smooth`})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:`smooth`})}setActiveTab(e,t){if(t=oe({emitEvents:!0,scrollBehavior:`auto`},t),e!==this.activeTab&&!e.disabled){let n=this.activeTab;this.activeTab=e,this.tabs.forEach(e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1}),this.panels.forEach(e=>e.active=e.name===this.activeTab?.panel),this.syncIndicator(),[`top`,`bottom`].includes(this.placement)&&ece(this.activeTab,this.nav,`horizontal`,t.scrollBehavior),t.emitEvents&&(n&&this.emit(`sl-tab-hide`,{detail:{name:n.panel}}),this.emit(`sl-tab-show`,{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(e=>{let t=this.panels.find(t=>t.name===e.panel);t&&(e.setAttribute(`aria-controls`,t.getAttribute(`id`)),t.setAttribute(`aria-labelledby`,e.getAttribute(`id`)))})}repositionIndicator(){let e=this.getActiveTab();if(!e)return;let t=e.clientWidth,n=e.clientHeight,r=this.localize.dir()===`rtl`,i=this.getAllTabs(),a=i.slice(0,i.indexOf(e)).reduce((e,t)=>({left:e.left+t.clientWidth,top:e.top+t.clientHeight}),{left:0,top:0});switch(this.placement){case`top`:case`bottom`:this.indicator.style.width=`${t}px`,this.indicator.style.height=`auto`,this.indicator.style.translate=r?`${-1*a.left}px`:`${a.left}px`;break;case`start`:case`end`:this.indicator.style.width=`auto`,this.indicator.style.height=`${n}px`,this.indicator.style.translate=`0 ${a.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(e=>!e.disabled),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(e,t){let n=null,r=t===`forward`?1:-1,i=e+r;for(;e=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return this.localize.dir()===`rtl`?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.hasScrollControls=!this.noScrollControls&&[`top`,`bottom`].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display=`block`,this.repositionIndicator()):this.indicator.style.display=`none`}show(e){let t=this.tabs.find(t=>t.panel===e);t&&this.setActiveTab(t,{scrollBehavior:`smooth`})}render(){let e=this.localize.dir()===`rtl`;return T` + `}};wp.styles=[hn,Xse],wp.dependencies={"sl-icon":ua},w([kt(`.icon-button`)],wp.prototype,`button`,2),w([Et()],wp.prototype,`hasFocus`,2),w([Tt()],wp.prototype,`name`,2),w([Tt()],wp.prototype,`library`,2),w([Tt()],wp.prototype,`src`,2),w([Tt()],wp.prototype,`href`,2),w([Tt()],wp.prototype,`target`,2),w([Tt()],wp.prototype,`download`,2),w([Tt()],wp.prototype,`label`,2),w([Tt({type:Boolean,reflect:!0})],wp.prototype,`disabled`,2);var Tp=class extends _n{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new pn(this),this.hasScrollControls=!1,this.shouldHideScrollStartButton=!1,this.shouldHideScrollEndButton=!1,this.placement=`top`,this.activation=`auto`,this.noScrollControls=!1,this.fixedScrollControls=!1,this.scrollOffset=1}connectedCallback(){let e=Promise.all([customElements.whenDefined(`sl-tab`),customElements.whenDefined(`sl-tab-panel`)]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{let t=e.filter(({target:e})=>{if(e===this)return!0;if(e.closest(`sl-tab-group`)!==this)return!1;let t=e.tagName.toLowerCase();return t===`sl-tab`||t===`sl-tab-panel`});if(t.length!==0){if(t.some(e=>![`aria-labelledby`,`aria-controls`].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),t.some(e=>e.attributeName===`disabled`))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName===`active`)){let e=t.filter(e=>e.attributeName===`active`&&e.target.tagName.toLowerCase()===`sl-tab`).map(e=>e.target).find(e=>e.active);e&&this.setActiveTab(e)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:[`active`,`disabled`,`name`,`panel`],childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then(()=>{new IntersectionObserver((e,t)=>{e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.getActiveTab()??this.tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector(`slot[name="nav"]`).assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(e=>e.tagName.toLowerCase()===`sl-tab-panel`)}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){let t=e.target.closest(`sl-tab`);t?.closest(`sl-tab-group`)===this&&t!==null&&this.setActiveTab(t,{scrollBehavior:`smooth`})}handleKeyDown(e){let t=e.target.closest(`sl-tab`);if(t?.closest(`sl-tab-group`)===this&&([`Enter`,` `].includes(e.key)&&t!==null&&(this.setActiveTab(t,{scrollBehavior:`smooth`}),e.preventDefault()),[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key))){let t=this.tabs.find(e=>e.matches(`:focus`)),n=this.localize.dir()===`rtl`,r=null;if(t?.tagName.toLowerCase()===`sl-tab`){if(e.key===`Home`)r=this.focusableTabs[0];else if(e.key===`End`)r=this.focusableTabs[this.focusableTabs.length-1];else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowRight`:`ArrowLeft`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowUp`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`backward`)}else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowLeft`:`ArrowRight`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowDown`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`forward`)}if(!r)return;r.tabIndex=0,r.focus({preventScroll:!0}),this.activation===`auto`?this.setActiveTab(r,{scrollBehavior:`smooth`}):this.tabs.forEach(e=>{e.tabIndex=e===r?0:-1}),[`top`,`bottom`].includes(this.placement)&&Yse(r,this.nav,`horizontal`),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:`smooth`})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:`smooth`})}setActiveTab(e,t){if(t=oe({emitEvents:!0,scrollBehavior:`auto`},t),e!==this.activeTab&&!e.disabled){let n=this.activeTab;this.activeTab=e,this.tabs.forEach(e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1}),this.panels.forEach(e=>e.active=e.name===this.activeTab?.panel),this.syncIndicator(),[`top`,`bottom`].includes(this.placement)&&Yse(this.activeTab,this.nav,`horizontal`,t.scrollBehavior),t.emitEvents&&(n&&this.emit(`sl-tab-hide`,{detail:{name:n.panel}}),this.emit(`sl-tab-show`,{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(e=>{let t=this.panels.find(t=>t.name===e.panel);t&&(e.setAttribute(`aria-controls`,t.getAttribute(`id`)),t.setAttribute(`aria-labelledby`,e.getAttribute(`id`)))})}repositionIndicator(){let e=this.getActiveTab();if(!e)return;let t=e.clientWidth,n=e.clientHeight,r=this.localize.dir()===`rtl`,i=this.getAllTabs(),a=i.slice(0,i.indexOf(e)).reduce((e,t)=>({left:e.left+t.clientWidth,top:e.top+t.clientHeight}),{left:0,top:0});switch(this.placement){case`top`:case`bottom`:this.indicator.style.width=`${t}px`,this.indicator.style.height=`auto`,this.indicator.style.translate=r?`${-1*a.left}px`:`${a.left}px`;break;case`start`:case`end`:this.indicator.style.width=`auto`,this.indicator.style.height=`${n}px`,this.indicator.style.translate=`0 ${a.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(e=>!e.disabled),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(e,t){let n=null,r=t===`forward`?1:-1,i=e+r;for(;e=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return this.localize.dir()===`rtl`?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.hasScrollControls=!this.noScrollControls&&[`top`,`bottom`].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display=`block`,this.repositionIndicator()):this.indicator.style.display=`none`}show(e){let t=this.tabs.find(t=>t.panel===e);t&&this.setActiveTab(t,{scrollBehavior:`smooth`})}render(){let e=this.localize.dir()===`rtl`;return T`
@@ -8266,7 +8269,7 @@
- `}};_p.styles=[mn,Qse],_p.dependencies={"sl-icon-button":gp,"sl-resize-observer":mp},w([Ot(`.tab-group`)],_p.prototype,`tabGroup`,2),w([Ot(`.tab-group__body`)],_p.prototype,`body`,2),w([Ot(`.tab-group__nav`)],_p.prototype,`nav`,2),w([Ot(`.tab-group__indicator`)],_p.prototype,`indicator`,2),w([Tt()],_p.prototype,`hasScrollControls`,2),w([Tt()],_p.prototype,`shouldHideScrollStartButton`,2),w([Tt()],_p.prototype,`shouldHideScrollEndButton`,2),w([wt()],_p.prototype,`placement`,2),w([wt()],_p.prototype,`activation`,2),w([wt({attribute:`no-scroll-controls`,type:Boolean})],_p.prototype,`noScrollControls`,2),w([wt({attribute:`fixed-scroll-controls`,type:Boolean})],_p.prototype,`fixedScrollControls`,2),w([Et({passive:!0})],_p.prototype,`updateScrollButtons`,1),w([pn(`noScrollControls`,{waitUntilFirstUpdate:!0})],_p.prototype,`updateScrollControls`,1),w([pn(`placement`,{waitUntilFirstUpdate:!0})],_p.prototype,`syncIndicator`,1),_p.define(`sl-tab-group`);var nce=(e,t)=>{let n=0;return function(...r){window.clearTimeout(n),n=window.setTimeout(()=>{e.call(this,...r)},t)}},vp=(e,t,n)=>{let r=e[t];e[t]=function(...e){r.call(this,...e),n.call(this,r,...e)}};(()=>{if(typeof window<`u`&&!(`onscrollend`in window)){let e=new Set,t=new WeakMap,n=t=>{for(let n of t.changedTouches)e.add(n.identifier)},r=t=>{for(let n of t.changedTouches)e.delete(n.identifier)};document.addEventListener(`touchstart`,n,!0),document.addEventListener(`touchend`,r,!0),document.addEventListener(`touchcancel`,r,!0),vp(EventTarget.prototype,`addEventListener`,function(n,r){if(r!==`scrollend`)return;let i=nce(()=>{e.size?i():this.dispatchEvent(new Event(`scrollend`))},100);n.call(this,`scroll`,i,{passive:!0}),t.set(this,i)}),vp(EventTarget.prototype,`removeEventListener`,function(e,n){if(n!==`scrollend`)return;let r=t.get(this);r&&e.call(this,`scroll`,r,{passive:!0})})}})();var rce=xe` + `}};Tp.styles=[hn,Sp],Tp.dependencies={"sl-icon-button":wp,"sl-resize-observer":Cp},w([kt(`.tab-group`)],Tp.prototype,`tabGroup`,2),w([kt(`.tab-group__body`)],Tp.prototype,`body`,2),w([kt(`.tab-group__nav`)],Tp.prototype,`nav`,2),w([kt(`.tab-group__indicator`)],Tp.prototype,`indicator`,2),w([Et()],Tp.prototype,`hasScrollControls`,2),w([Et()],Tp.prototype,`shouldHideScrollStartButton`,2),w([Et()],Tp.prototype,`shouldHideScrollEndButton`,2),w([Tt()],Tp.prototype,`placement`,2),w([Tt()],Tp.prototype,`activation`,2),w([Tt({attribute:`no-scroll-controls`,type:Boolean})],Tp.prototype,`noScrollControls`,2),w([Tt({attribute:`fixed-scroll-controls`,type:Boolean})],Tp.prototype,`fixedScrollControls`,2),w([Dt({passive:!0})],Tp.prototype,`updateScrollButtons`,1),w([mn(`noScrollControls`,{waitUntilFirstUpdate:!0})],Tp.prototype,`updateScrollControls`,1),w([mn(`placement`,{waitUntilFirstUpdate:!0})],Tp.prototype,`syncIndicator`,1),Tp.define(`sl-tab-group`);var Zse=(e,t)=>{let n=0;return function(...r){window.clearTimeout(n),n=window.setTimeout(()=>{e.call(this,...r)},t)}},Ep=(e,t,n)=>{let r=e[t];e[t]=function(...e){r.call(this,...e),n.call(this,r,...e)}};(()=>{if(typeof window<`u`&&!(`onscrollend`in window)){let e=new Set,t=new WeakMap,n=t=>{for(let n of t.changedTouches)e.add(n.identifier)},r=t=>{for(let n of t.changedTouches)e.delete(n.identifier)};document.addEventListener(`touchstart`,n,!0),document.addEventListener(`touchend`,r,!0),document.addEventListener(`touchcancel`,r,!0),Ep(EventTarget.prototype,`addEventListener`,function(n,r){if(r!==`scrollend`)return;let i=Zse(()=>{e.size?i():this.dispatchEvent(new Event(`scrollend`))},100);n.call(this,`scroll`,i,{passive:!0}),t.set(this,i)}),Ep(EventTarget.prototype,`removeEventListener`,function(e,n){if(n!==`scrollend`)return;let r=t.get(this);r&&e.call(this,`scroll`,r,{passive:!0})})}})();var Dp=xe` :host { --padding: 0; @@ -8317,12 +8320,12 @@ display: block; padding: var(--padding); } -`,ice=0,yp=class extends gn{constructor(){super(...arguments),this.attrId=++ice,this.componentId=`sl-tab-panel-${this.attrId}`,this.name=``,this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute(`role`,`tabpanel`)}handleActiveChange(){this.setAttribute(`aria-hidden`,this.active?`false`:`true`)}render(){return T` +`,Qse=0,Op=class extends _n{constructor(){super(...arguments),this.attrId=++Qse,this.componentId=`sl-tab-panel-${this.attrId}`,this.name=``,this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute(`role`,`tabpanel`)}handleActiveChange(){this.setAttribute(`aria-hidden`,this.active?`false`:`true`)}render(){return T` - `}};yp.styles=[mn,rce],w([wt({reflect:!0})],yp.prototype,`name`,2),w([wt({type:Boolean,reflect:!0})],yp.prototype,`active`,2),w([pn(`active`)],yp.prototype,`handleActiveChange`,1),yp.define(`sl-tab-panel`);var bp=xe` + `}};Op.styles=[hn,Dp],w([Tt({reflect:!0})],Op.prototype,`name`,2),w([Tt({type:Boolean,reflect:!0})],Op.prototype,`active`,2),w([mn(`active`)],Op.prototype,`handleActiveChange`,1),Op.define(`sl-tab-panel`);var $se=xe` :host { display: inline-block; } @@ -8387,10 +8390,10 @@ outline-offset: -3px; } } -`,ace=0,xp=class extends gn{constructor(){super(...arguments),this.localize=new fn(this),this.attrId=++ace,this.componentId=`sl-tab-${this.attrId}`,this.panel=``,this.active=!1,this.closable=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tab`)}handleCloseClick(e){e.stopPropagation(),this.emit(`sl-close`)}handleActiveChange(){this.setAttribute(`aria-selected`,this.active?`true`:`false`)}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.tabIndex=this.disabled&&!this.active?-1:0}render(){return this.id=this.id.length>0?this.id:this.componentId,T` +`,kp=0,Ap=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.attrId=++kp,this.componentId=`sl-tab-${this.attrId}`,this.panel=``,this.active=!1,this.closable=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tab`)}handleCloseClick(e){e.stopPropagation(),this.emit(`sl-close`)}handleActiveChange(){this.setAttribute(`aria-selected`,this.active?`true`:`false`)}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.tabIndex=this.disabled&&!this.active?-1:0}render(){return this.id=this.id.length>0?this.id:this.componentId,T`
${this.closable?T` @@ -8406,7 +8409,7 @@ > `:``}
- `}};xp.styles=[mn,bp],xp.dependencies={"sl-icon-button":gp},w([Ot(`.tab`)],xp.prototype,`tab`,2),w([wt({reflect:!0})],xp.prototype,`panel`,2),w([wt({type:Boolean,reflect:!0})],xp.prototype,`active`,2),w([wt({type:Boolean,reflect:!0})],xp.prototype,`closable`,2),w([wt({type:Boolean,reflect:!0})],xp.prototype,`disabled`,2),w([wt({type:Number,reflect:!0})],xp.prototype,`tabIndex`,2),w([pn(`active`)],xp.prototype,`handleActiveChange`,1),w([pn(`disabled`)],xp.prototype,`handleDisabledChange`,1),xp.define(`sl-tab`);var oce=xe` + `}};Ap.styles=[hn,$se],Ap.dependencies={"sl-icon-button":wp},w([kt(`.tab`)],Ap.prototype,`tab`,2),w([Tt({reflect:!0})],Ap.prototype,`panel`,2),w([Tt({type:Boolean,reflect:!0})],Ap.prototype,`active`,2),w([Tt({type:Boolean,reflect:!0})],Ap.prototype,`closable`,2),w([Tt({type:Boolean,reflect:!0})],Ap.prototype,`disabled`,2),w([Tt({type:Number,reflect:!0})],Ap.prototype,`tabIndex`,2),w([mn(`active`)],Ap.prototype,`handleActiveChange`,1),w([mn(`disabled`)],Ap.prototype,`handleDisabledChange`,1),Ap.define(`sl-tab`);var ece=xe` :host { --max-width: 20rem; --hide-delay: 0ms; @@ -8458,14 +8461,14 @@ user-select: none; -webkit-user-select: none; } -`;function Sp(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}var Cp=class extends gn{constructor(){super(),this.localize=new fn(this),this.content=``,this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger=`hover focus`,this.hoist=!1,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger(`hover`)){let e=wne(getComputedStyle(this).getPropertyValue(`--show-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}},this.handleMouseOut=()=>{if(this.hasTrigger(`hover`)){let e=wne(getComputedStyle(this).getPropertyValue(`--hide-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}},this.addEventListener(`blur`,this.handleBlur,!0),this.addEventListener(`focus`,this.handleFocus,!0),this.addEventListener(`click`,this.handleClick),this.addEventListener(`mouseover`,this.handleMouseOver),this.addEventListener(`mouseout`,this.handleMouseOut)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}async handleOpenChange(){var e,t;if(this.open){if(this.disabled)return;this.emit(`sl-show`),`CloseWatcher`in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener(`keydown`,this.handleDocumentKeyDown),await ja(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:n}=ka(this,`tooltip.show`,{dir:this.localize.dir()});await Aa(this.popup.popup,t,n),this.popup.reposition(),this.emit(`sl-after-show`)}else{this.emit(`sl-hide`),(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await ja(this.body);let{keyframes:e,options:n}=ka(this,`tooltip.hide`,{dir:this.localize.dir()});await Aa(this.popup.popup,e,n),this.popup.active=!1,this.body.hidden=!0,this.emit(`sl-after-hide`)}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Sp(this,`sl-after-show`)}async hide(){if(this.open)return this.open=!1,Sp(this,`sl-after-hide`)}render(){return T` +`;function tce(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}var jp=class extends _n{constructor(){super(),this.localize=new pn(this),this.content=``,this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger=`hover focus`,this.hoist=!1,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger(`hover`)){let e=wne(getComputedStyle(this).getPropertyValue(`--show-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}},this.handleMouseOut=()=>{if(this.hasTrigger(`hover`)){let e=wne(getComputedStyle(this).getPropertyValue(`--hide-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}},this.addEventListener(`blur`,this.handleBlur,!0),this.addEventListener(`focus`,this.handleFocus,!0),this.addEventListener(`click`,this.handleClick),this.addEventListener(`mouseover`,this.handleMouseOver),this.addEventListener(`mouseout`,this.handleMouseOut)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}async handleOpenChange(){var e,t;if(this.open){if(this.disabled)return;this.emit(`sl-show`),`CloseWatcher`in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener(`keydown`,this.handleDocumentKeyDown),await Pa(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:n}=Ma(this,`tooltip.show`,{dir:this.localize.dir()});await Na(this.popup.popup,t,n),this.popup.reposition(),this.emit(`sl-after-show`)}else{this.emit(`sl-hide`),(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await Pa(this.body);let{keyframes:e,options:n}=Ma(this,`tooltip.hide`,{dir:this.localize.dir()});await Na(this.popup.popup,e,n),this.popup.active=!1,this.body.hidden=!0,this.emit(`sl-after-hide`)}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,tce(this,`sl-after-show`)}async hide(){if(this.open)return this.open=!1,tce(this,`sl-after-hide`)}render(){return T` ${this.content}
- `}};Cp.styles=[mn,oce],Cp.dependencies={"sl-popup":Ur},w([Ot(`slot:not([name])`)],Cp.prototype,`defaultSlot`,2),w([Ot(`.tooltip__body`)],Cp.prototype,`body`,2),w([Ot(`sl-popup`)],Cp.prototype,`popup`,2),w([wt()],Cp.prototype,`content`,2),w([wt()],Cp.prototype,`placement`,2),w([wt({type:Boolean,reflect:!0})],Cp.prototype,`disabled`,2),w([wt({type:Number})],Cp.prototype,`distance`,2),w([wt({type:Boolean,reflect:!0})],Cp.prototype,`open`,2),w([wt({type:Number})],Cp.prototype,`skidding`,2),w([wt()],Cp.prototype,`trigger`,2),w([wt({type:Boolean})],Cp.prototype,`hoist`,2),w([pn(`open`,{waitUntilFirstUpdate:!0})],Cp.prototype,`handleOpenChange`,1),w([pn([`content`,`distance`,`hoist`,`placement`,`skidding`])],Cp.prototype,`handleOptionsChange`,1),w([pn(`disabled`)],Cp.prototype,`handleDisabledChange`,1),Oa(`tooltip.show`,{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:`ease`}}),Oa(`tooltip.hide`,{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:`ease`}}),Cp.define(`sl-tooltip`);var sce=[{max:276e4,value:6e4,unit:`minute`},{max:72e6,value:36e5,unit:`hour`},{max:5184e5,value:864e5,unit:`day`},{max:24192e5,value:6048e5,unit:`week`},{max:28512e6,value:2592e6,unit:`month`},{max:1/0,value:31536e6,unit:`year`}],wp=class extends gn{constructor(){super(...arguments),this.localize=new fn(this),this.isoTime=``,this.relativeTime=``,this.date=new Date,this.format=`long`,this.numeric=`auto`,this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){let e=new Date,t=new Date(this.date);if(isNaN(t.getMilliseconds()))return this.relativeTime=``,this.isoTime=``,``;let n=t.getTime()-e.getTime(),{unit:r,value:i}=sce.find(e=>Math.abs(n)this.requestUpdate(),e)}return T` `}};w([Tt()],wp.prototype,`isoTime`,2),w([Tt()],wp.prototype,`relativeTime`,2),w([wt()],wp.prototype,`date`,2),w([wt()],wp.prototype,`format`,2),w([wt()],wp.prototype,`numeric`,2),w([wt({type:Boolean})],wp.prototype,`sync`,2);function cce(e){let t={second:1e3,minute:6e4,hour:36e5,day:864e5}[e];return t-Date.now()%t}wp.define(`sl-relative-time`);var Tp=class extends gn{constructor(){super(...arguments),this.localize=new fn(this),this.value=0,this.type=`decimal`,this.noGrouping=!1,this.currency=`USD`,this.currencyDisplay=`symbol`}render(){return isNaN(this.value)?``:this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};w([wt({type:Number})],Tp.prototype,`value`,2),w([wt()],Tp.prototype,`type`,2),w([wt({attribute:`no-grouping`,type:Boolean})],Tp.prototype,`noGrouping`,2),w([wt()],Tp.prototype,`currency`,2),w([wt({attribute:`currency-display`})],Tp.prototype,`currencyDisplay`,2),w([wt({attribute:`minimum-integer-digits`,type:Number})],Tp.prototype,`minimumIntegerDigits`,2),w([wt({attribute:`minimum-fraction-digits`,type:Number})],Tp.prototype,`minimumFractionDigits`,2),w([wt({attribute:`maximum-fraction-digits`,type:Number})],Tp.prototype,`maximumFractionDigits`,2),w([wt({attribute:`minimum-significant-digits`,type:Number})],Tp.prototype,`minimumSignificantDigits`,2),w([wt({attribute:`maximum-significant-digits`,type:Number})],Tp.prototype,`maximumSignificantDigits`,2),Tp.define(`sl-format-number`),gp.define(`sl-icon-button`);var lce=xe` + `}};jp.styles=[hn,ece],jp.dependencies={"sl-popup":Ur},w([kt(`slot:not([name])`)],jp.prototype,`defaultSlot`,2),w([kt(`.tooltip__body`)],jp.prototype,`body`,2),w([kt(`sl-popup`)],jp.prototype,`popup`,2),w([Tt()],jp.prototype,`content`,2),w([Tt()],jp.prototype,`placement`,2),w([Tt({type:Boolean,reflect:!0})],jp.prototype,`disabled`,2),w([Tt({type:Number})],jp.prototype,`distance`,2),w([Tt({type:Boolean,reflect:!0})],jp.prototype,`open`,2),w([Tt({type:Number})],jp.prototype,`skidding`,2),w([Tt()],jp.prototype,`trigger`,2),w([Tt({type:Boolean})],jp.prototype,`hoist`,2),w([mn(`open`,{waitUntilFirstUpdate:!0})],jp.prototype,`handleOpenChange`,1),w([mn([`content`,`distance`,`hoist`,`placement`,`skidding`])],jp.prototype,`handleOptionsChange`,1),w([mn(`disabled`)],jp.prototype,`handleDisabledChange`,1),ja(`tooltip.show`,{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:`ease`}}),ja(`tooltip.hide`,{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:`ease`}}),jp.define(`sl-tooltip`);var Mp=[{max:276e4,value:6e4,unit:`minute`},{max:72e6,value:36e5,unit:`hour`},{max:5184e5,value:864e5,unit:`day`},{max:24192e5,value:6048e5,unit:`week`},{max:28512e6,value:2592e6,unit:`month`},{max:1/0,value:31536e6,unit:`year`}],Np=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.isoTime=``,this.relativeTime=``,this.date=new Date,this.format=`long`,this.numeric=`auto`,this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){let e=new Date,t=new Date(this.date);if(isNaN(t.getMilliseconds()))return this.relativeTime=``,this.isoTime=``,``;let n=t.getTime()-e.getTime(),{unit:r,value:i}=Mp.find(e=>Math.abs(n)this.requestUpdate(),e)}return T` `}};w([Et()],Np.prototype,`isoTime`,2),w([Et()],Np.prototype,`relativeTime`,2),w([Tt()],Np.prototype,`date`,2),w([Tt()],Np.prototype,`format`,2),w([Tt()],Np.prototype,`numeric`,2),w([Tt({type:Boolean})],Np.prototype,`sync`,2);function nce(e){let t={second:1e3,minute:6e4,hour:36e5,day:864e5}[e];return t-Date.now()%t}Np.define(`sl-relative-time`);var Pp=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.value=0,this.type=`decimal`,this.noGrouping=!1,this.currency=`USD`,this.currencyDisplay=`symbol`}render(){return isNaN(this.value)?``:this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};w([Tt({type:Number})],Pp.prototype,`value`,2),w([Tt()],Pp.prototype,`type`,2),w([Tt({attribute:`no-grouping`,type:Boolean})],Pp.prototype,`noGrouping`,2),w([Tt()],Pp.prototype,`currency`,2),w([Tt({attribute:`currency-display`})],Pp.prototype,`currencyDisplay`,2),w([Tt({attribute:`minimum-integer-digits`,type:Number})],Pp.prototype,`minimumIntegerDigits`,2),w([Tt({attribute:`minimum-fraction-digits`,type:Number})],Pp.prototype,`minimumFractionDigits`,2),w([Tt({attribute:`maximum-fraction-digits`,type:Number})],Pp.prototype,`maximumFractionDigits`,2),w([Tt({attribute:`minimum-significant-digits`,type:Number})],Pp.prototype,`minimumSignificantDigits`,2),w([Tt({attribute:`maximum-significant-digits`,type:Number})],Pp.prototype,`maximumSignificantDigits`,2),Pp.define(`sl-format-number`),wp.define(`sl-icon-button`);var rce=xe` :host { display: inline-block; } @@ -8596,10 +8599,10 @@ .tag--pill { border-radius: var(--sl-border-radius-pill); } -`,Ep=class extends gn{constructor(){super(...arguments),this.localize=new fn(this),this.variant=`neutral`,this.size=`medium`,this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit(`sl-remove`)}render(){return T` +`,Fp=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.variant=`neutral`,this.size=`medium`,this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit(`sl-remove`)}render(){return T` @@ -8616,7 +8619,7 @@ > `:``} - `}};Ep.styles=[mn,lce],Ep.dependencies={"sl-icon-button":gp},w([wt({reflect:!0})],Ep.prototype,`variant`,2),w([wt({reflect:!0})],Ep.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Ep.prototype,`pill`,2),w([wt({type:Boolean})],Ep.prototype,`removable`,2),Ep.define(`sl-tag`);var uce=xe` + `}};Fp.styles=[hn,rce],Fp.dependencies={"sl-icon-button":wp},w([Tt({reflect:!0})],Fp.prototype,`variant`,2),w([Tt({reflect:!0})],Fp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Fp.prototype,`pill`,2),w([Tt({type:Boolean})],Fp.prototype,`removable`,2),Fp.define(`sl-tag`);var ice=xe` :host { display: block; } @@ -8902,10 +8905,10 @@ .input--no-spin-buttons input[type='number'] { -moz-appearance: textfield; } -`,Dp=class extends gn{constructor(){super(...arguments),this.formControlController=new $t(this,{assumeInteractionOn:[`sl-blur`,`sl-input`]}),this.hasSlotController=new tn(this,`help-text`,`label`),this.localize=new fn(this),this.hasFocus=!1,this.title=``,this.__numberInput=Object.assign(document.createElement(`input`),{type:`number`}),this.__dateInput=Object.assign(document.createElement(`input`),{type:`date`}),this.type=`text`,this.name=``,this.value=``,this.defaultValue=``,this.size=`medium`,this.filled=!1,this.pill=!1,this.label=``,this.helpText=``,this.clearable=!1,this.disabled=!1,this.placeholder=``,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form=``,this.required=!1,this.spellcheck=!0}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(e){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=e,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(e){this.__numberInput.valueAsNumber=e,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleChange(){this.value=this.input.value,this.emit(`sl-change`)}handleClearClick(e){e.preventDefault(),this.value!==``&&(this.value=``,this.emit(`sl-clear`),this.emit(`sl-input`),this.emit(`sl-change`)),this.input.focus()}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleKeyDown(e){let t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key===`Enter`&&!t&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,n=`none`){this.input.setSelectionRange(e,t,n)}setRangeText(e,t,n,r=`preserve`){let i=t??this.input.selectionStart,a=n??this.input.selectionEnd;this.input.setRangeText(e,i,a,r),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){`showPicker`in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value==`number`||this.value.length>0);return T` +`,Ip=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{assumeInteractionOn:[`sl-blur`,`sl-input`]}),this.hasSlotController=new nn(this,`help-text`,`label`),this.localize=new pn(this),this.hasFocus=!1,this.title=``,this.__numberInput=Object.assign(document.createElement(`input`),{type:`number`}),this.__dateInput=Object.assign(document.createElement(`input`),{type:`date`}),this.type=`text`,this.name=``,this.value=``,this.defaultValue=``,this.size=`medium`,this.filled=!1,this.pill=!1,this.label=``,this.helpText=``,this.clearable=!1,this.disabled=!1,this.placeholder=``,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form=``,this.required=!1,this.spellcheck=!0}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(e){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=e,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(e){this.__numberInput.valueAsNumber=e,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleChange(){this.value=this.input.value,this.emit(`sl-change`)}handleClearClick(e){e.preventDefault(),this.value!==``&&(this.value=``,this.emit(`sl-clear`),this.emit(`sl-input`),this.emit(`sl-change`)),this.input.focus()}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleKeyDown(e){let t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key===`Enter`&&!t&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,n=`none`){this.input.setSelectionRange(e,t,n)}setRangeText(e,t,n,r=`preserve`){let i=t??this.input.selectionStart,a=n??this.input.selectionEnd;this.input.setRangeText(e,i,a,r),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){`showPicker`in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value==`number`||this.value.length>0);return T`
- `}};Dp.styles=[mn,qt,uce],Dp.dependencies={"sl-icon":sa},w([Ot(`.input__control`)],Dp.prototype,`input`,2),w([Tt()],Dp.prototype,`hasFocus`,2),w([wt()],Dp.prototype,`title`,2),w([wt({reflect:!0})],Dp.prototype,`type`,2),w([wt()],Dp.prototype,`name`,2),w([wt()],Dp.prototype,`value`,2),w([Kt()],Dp.prototype,`defaultValue`,2),w([wt({reflect:!0})],Dp.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Dp.prototype,`filled`,2),w([wt({type:Boolean,reflect:!0})],Dp.prototype,`pill`,2),w([wt()],Dp.prototype,`label`,2),w([wt({attribute:`help-text`})],Dp.prototype,`helpText`,2),w([wt({type:Boolean})],Dp.prototype,`clearable`,2),w([wt({type:Boolean,reflect:!0})],Dp.prototype,`disabled`,2),w([wt()],Dp.prototype,`placeholder`,2),w([wt({type:Boolean,reflect:!0})],Dp.prototype,`readonly`,2),w([wt({attribute:`password-toggle`,type:Boolean})],Dp.prototype,`passwordToggle`,2),w([wt({attribute:`password-visible`,type:Boolean})],Dp.prototype,`passwordVisible`,2),w([wt({attribute:`no-spin-buttons`,type:Boolean})],Dp.prototype,`noSpinButtons`,2),w([wt({reflect:!0})],Dp.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],Dp.prototype,`required`,2),w([wt()],Dp.prototype,`pattern`,2),w([wt({type:Number})],Dp.prototype,`minlength`,2),w([wt({type:Number})],Dp.prototype,`maxlength`,2),w([wt()],Dp.prototype,`min`,2),w([wt()],Dp.prototype,`max`,2),w([wt()],Dp.prototype,`step`,2),w([wt()],Dp.prototype,`autocapitalize`,2),w([wt()],Dp.prototype,`autocorrect`,2),w([wt()],Dp.prototype,`autocomplete`,2),w([wt({type:Boolean})],Dp.prototype,`autofocus`,2),w([wt()],Dp.prototype,`enterkeyhint`,2),w([wt({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Dp.prototype,`spellcheck`,2),w([wt()],Dp.prototype,`inputmode`,2),w([pn(`disabled`,{waitUntilFirstUpdate:!0})],Dp.prototype,`handleDisabledChange`,1),w([pn(`step`,{waitUntilFirstUpdate:!0})],Dp.prototype,`handleStepChange`,1),w([pn(`value`,{waitUntilFirstUpdate:!0})],Dp.prototype,`handleValueChange`,1),Dp.define(`sl-input`);var Op=class extends gn{constructor(){super(...arguments),this.formControlController=new $t(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new tn(this,`[default]`,`prefix`,`suffix`),this.localize=new fn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:en}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?$f`a`:$f`button`;return tp` + `}};Ip.styles=[hn,Jt,ice],Ip.dependencies={"sl-icon":ua},w([kt(`.input__control`)],Ip.prototype,`input`,2),w([Et()],Ip.prototype,`hasFocus`,2),w([Tt()],Ip.prototype,`title`,2),w([Tt({reflect:!0})],Ip.prototype,`type`,2),w([Tt()],Ip.prototype,`name`,2),w([Tt()],Ip.prototype,`value`,2),w([qt()],Ip.prototype,`defaultValue`,2),w([Tt({reflect:!0})],Ip.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`filled`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`pill`,2),w([Tt()],Ip.prototype,`label`,2),w([Tt({attribute:`help-text`})],Ip.prototype,`helpText`,2),w([Tt({type:Boolean})],Ip.prototype,`clearable`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`disabled`,2),w([Tt()],Ip.prototype,`placeholder`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`readonly`,2),w([Tt({attribute:`password-toggle`,type:Boolean})],Ip.prototype,`passwordToggle`,2),w([Tt({attribute:`password-visible`,type:Boolean})],Ip.prototype,`passwordVisible`,2),w([Tt({attribute:`no-spin-buttons`,type:Boolean})],Ip.prototype,`noSpinButtons`,2),w([Tt({reflect:!0})],Ip.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`required`,2),w([Tt()],Ip.prototype,`pattern`,2),w([Tt({type:Number})],Ip.prototype,`minlength`,2),w([Tt({type:Number})],Ip.prototype,`maxlength`,2),w([Tt()],Ip.prototype,`min`,2),w([Tt()],Ip.prototype,`max`,2),w([Tt()],Ip.prototype,`step`,2),w([Tt()],Ip.prototype,`autocapitalize`,2),w([Tt()],Ip.prototype,`autocorrect`,2),w([Tt()],Ip.prototype,`autocomplete`,2),w([Tt({type:Boolean})],Ip.prototype,`autofocus`,2),w([Tt()],Ip.prototype,`enterkeyhint`,2),w([Tt({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Ip.prototype,`spellcheck`,2),w([Tt()],Ip.prototype,`inputmode`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleDisabledChange`,1),w([mn(`step`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleStepChange`,1),w([mn(`value`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleValueChange`,1),Ip.define(`sl-input`);var Lp=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new nn(this,`[default]`,`prefix`,`suffix`),this.localize=new pn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:tn}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?cp`a`:cp`button`;return up` <${t} part="base" - class=${_n({button:!0,"button--default":this.variant==="default","button--primary":this.variant===`primary`,"button--success":this.variant===`success`,"button--neutral":this.variant===`neutral`,"button--warning":this.variant===`warning`,"button--danger":this.variant===`danger`,"button--text":this.variant===`text`,"button--small":this.size===`small`,"button--medium":this.size===`medium`,"button--large":this.size===`large`,"button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()===`rtl`,"button--has-label":this.hasSlotController.test(`[default]`),"button--has-prefix":this.hasSlotController.test(`prefix`),"button--has-suffix":this.hasSlotController.test(`suffix`)})} - ?disabled=${vn(e?void 0:this.disabled)} - type=${vn(e?void 0:this.type)} + class=${vn({button:!0,"button--default":this.variant==="default","button--primary":this.variant===`primary`,"button--success":this.variant===`success`,"button--neutral":this.variant===`neutral`,"button--warning":this.variant===`warning`,"button--danger":this.variant===`danger`,"button--text":this.variant===`text`,"button--small":this.size===`small`,"button--medium":this.size===`medium`,"button--large":this.size===`large`,"button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()===`rtl`,"button--has-label":this.hasSlotController.test(`[default]`),"button--has-prefix":this.hasSlotController.test(`prefix`),"button--has-suffix":this.hasSlotController.test(`suffix`)})} + ?disabled=${yn(e?void 0:this.disabled)} + type=${yn(e?void 0:this.type)} title=${this.title} - name=${vn(e?void 0:this.name)} - value=${vn(e?void 0:this.value)} - href=${vn(e&&!this.disabled?this.href:void 0)} - target=${vn(e?this.target:void 0)} - download=${vn(e?this.download:void 0)} - rel=${vn(e?this.rel:void 0)} - role=${vn(e?void 0:`button`)} + name=${yn(e?void 0:this.name)} + value=${yn(e?void 0:this.value)} + href=${yn(e&&!this.disabled?this.href:void 0)} + target=${yn(e?this.target:void 0)} + download=${yn(e?this.download:void 0)} + rel=${yn(e?this.rel:void 0)} + role=${yn(e?void 0:`button`)} aria-disabled=${this.disabled?`true`:`false`} tabindex=${this.disabled?`-1`:`0`} @blur=${this.handleBlur} @@ -9033,10 +9036,10 @@ - ${this.caret?tp` `:``} - ${this.loading?tp``:``} + ${this.caret?up` `:``} + ${this.loading?up``:``} - `}};Op.styles=[mn,Zf],Op.dependencies={"sl-icon":sa,"sl-spinner":wa},w([Ot(`.button`)],Op.prototype,`button`,2),w([Tt()],Op.prototype,`hasFocus`,2),w([Tt()],Op.prototype,`invalid`,2),w([wt()],Op.prototype,`title`,2),w([wt({reflect:!0})],Op.prototype,`variant`,2),w([wt({reflect:!0})],Op.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`caret`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`loading`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`outline`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`pill`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`circle`,2),w([wt()],Op.prototype,`type`,2),w([wt()],Op.prototype,`name`,2),w([wt()],Op.prototype,`value`,2),w([wt()],Op.prototype,`href`,2),w([wt()],Op.prototype,`target`,2),w([wt()],Op.prototype,`rel`,2),w([wt()],Op.prototype,`download`,2),w([wt()],Op.prototype,`form`,2),w([wt({attribute:`formaction`})],Op.prototype,`formAction`,2),w([wt({attribute:`formenctype`})],Op.prototype,`formEnctype`,2),w([wt({attribute:`formmethod`})],Op.prototype,`formMethod`,2),w([wt({attribute:`formnovalidate`,type:Boolean})],Op.prototype,`formNoValidate`,2),w([wt({attribute:`formtarget`})],Op.prototype,`formTarget`,2),w([pn(`disabled`,{waitUntilFirstUpdate:!0})],Op.prototype,`handleDisabledChange`,1),Op.define(`sl-button`);var dce=xe` + `}};Lp.styles=[hn,ap],Lp.dependencies={"sl-icon":ua,"sl-spinner":ka},w([kt(`.button`)],Lp.prototype,`button`,2),w([Et()],Lp.prototype,`hasFocus`,2),w([Et()],Lp.prototype,`invalid`,2),w([Tt()],Lp.prototype,`title`,2),w([Tt({reflect:!0})],Lp.prototype,`variant`,2),w([Tt({reflect:!0})],Lp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`caret`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`loading`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`outline`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`pill`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`circle`,2),w([Tt()],Lp.prototype,`type`,2),w([Tt()],Lp.prototype,`name`,2),w([Tt()],Lp.prototype,`value`,2),w([Tt()],Lp.prototype,`href`,2),w([Tt()],Lp.prototype,`target`,2),w([Tt()],Lp.prototype,`rel`,2),w([Tt()],Lp.prototype,`download`,2),w([Tt()],Lp.prototype,`form`,2),w([Tt({attribute:`formaction`})],Lp.prototype,`formAction`,2),w([Tt({attribute:`formenctype`})],Lp.prototype,`formEnctype`,2),w([Tt({attribute:`formmethod`})],Lp.prototype,`formMethod`,2),w([Tt({attribute:`formnovalidate`,type:Boolean})],Lp.prototype,`formNoValidate`,2),w([Tt({attribute:`formtarget`})],Lp.prototype,`formTarget`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Lp.prototype,`handleDisabledChange`,1),Lp.define(`sl-button`);var Rp=xe` :host { display: inline-block; } @@ -9201,21 +9204,21 @@ background-color: ButtonText; } } -`,kp=class extends gn{constructor(){super(...arguments),this.formControlController=new $t(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new tn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T` +`,zp=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new nn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T`
- `}};kp.styles=[mn,qt,dce],w([Ot(`input[type="checkbox"]`)],kp.prototype,`input`,2),w([Tt()],kp.prototype,`hasFocus`,2),w([wt()],kp.prototype,`title`,2),w([wt()],kp.prototype,`name`,2),w([wt()],kp.prototype,`value`,2),w([wt({reflect:!0})],kp.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],kp.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],kp.prototype,`checked`,2),w([Kt(`checked`)],kp.prototype,`defaultChecked`,2),w([wt({reflect:!0})],kp.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],kp.prototype,`required`,2),w([wt({attribute:`help-text`})],kp.prototype,`helpText`,2),w([pn(`checked`,{waitUntilFirstUpdate:!0})],kp.prototype,`handleCheckedChange`,1),w([pn(`disabled`,{waitUntilFirstUpdate:!0})],kp.prototype,`handleDisabledChange`,1),kp.define(`sl-switch`);var fce=[`MODIFIED`,`ADDED`,`REMOVED`],Ap=[`BREAKING`,`NON-BREAKING`],jp={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function Mp(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function Np(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var Pp=class extends St{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=Zse}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(Sn,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Sn,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=jp[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,...Np(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>Mp(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,Np(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:fce,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:Ap,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return T` + `}};zp.styles=[hn,Jt,Rp],w([kt(`input[type="checkbox"]`)],zp.prototype,`input`,2),w([Et()],zp.prototype,`hasFocus`,2),w([Tt()],zp.prototype,`title`,2),w([Tt()],zp.prototype,`name`,2),w([Tt()],zp.prototype,`value`,2),w([Tt({reflect:!0})],zp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],zp.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],zp.prototype,`checked`,2),w([qt(`checked`)],zp.prototype,`defaultChecked`,2),w([Tt({reflect:!0})],zp.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],zp.prototype,`required`,2),w([Tt({attribute:`help-text`})],zp.prototype,`helpText`,2),w([mn(`checked`,{waitUntilFirstUpdate:!0})],zp.prototype,`handleCheckedChange`,1),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],zp.prototype,`handleDisabledChange`,1),zp.define(`sl-switch`);var Bp=[`MODIFIED`,`ADDED`,`REMOVED`],Vp=[`BREAKING`,`NON-BREAKING`],Hp={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function Up(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function Wp(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var Gp=class extends Ct{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=Kse}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(Cn,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Cn,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=Hp[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,...Wp(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>Up(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,Wp(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:Bp,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:Vp,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return T` - `}};Q.styles=[wn,en,px],Q.dependencies={"sl-icon":ds},D([M(`.input__control`)],Q.prototype,`input`,2),D([j()],Q.prototype,`hasFocus`,2),D([A()],Q.prototype,`title`,2),D([A({reflect:!0})],Q.prototype,`type`,2),D([A()],Q.prototype,`name`,2),D([A()],Q.prototype,`value`,2),D([$t()],Q.prototype,`defaultValue`,2),D([A({reflect:!0})],Q.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`filled`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`pill`,2),D([A()],Q.prototype,`label`,2),D([A({attribute:`help-text`})],Q.prototype,`helpText`,2),D([A({type:Boolean})],Q.prototype,`clearable`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`disabled`,2),D([A()],Q.prototype,`placeholder`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`readonly`,2),D([A({attribute:`password-toggle`,type:Boolean})],Q.prototype,`passwordToggle`,2),D([A({attribute:`password-visible`,type:Boolean})],Q.prototype,`passwordVisible`,2),D([A({attribute:`no-spin-buttons`,type:Boolean})],Q.prototype,`noSpinButtons`,2),D([A({reflect:!0})],Q.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`required`,2),D([A()],Q.prototype,`pattern`,2),D([A({type:Number})],Q.prototype,`minlength`,2),D([A({type:Number})],Q.prototype,`maxlength`,2),D([A()],Q.prototype,`min`,2),D([A()],Q.prototype,`max`,2),D([A()],Q.prototype,`step`,2),D([A()],Q.prototype,`autocapitalize`,2),D([A()],Q.prototype,`autocorrect`,2),D([A()],Q.prototype,`autocomplete`,2),D([A({type:Boolean})],Q.prototype,`autofocus`,2),D([A()],Q.prototype,`enterkeyhint`,2),D([A({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Q.prototype,`spellcheck`,2),D([A()],Q.prototype,`inputmode`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleDisabledChange`,1),D([I(`step`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleStepChange`,1),D([I(`value`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleValueChange`,1),Q.define(`sl-input`);var $=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new dn(this,`[default]`,`prefix`,`suffix`),this.localize=new Cn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:cn}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?Eb`a`:Eb`button`;return Ob` + `}};Q.styles=[wn,en,mx],Q.dependencies={"sl-icon":fs},D([M(`.input__control`)],Q.prototype,`input`,2),D([j()],Q.prototype,`hasFocus`,2),D([A()],Q.prototype,`title`,2),D([A({reflect:!0})],Q.prototype,`type`,2),D([A()],Q.prototype,`name`,2),D([A()],Q.prototype,`value`,2),D([$t()],Q.prototype,`defaultValue`,2),D([A({reflect:!0})],Q.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`filled`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`pill`,2),D([A()],Q.prototype,`label`,2),D([A({attribute:`help-text`})],Q.prototype,`helpText`,2),D([A({type:Boolean})],Q.prototype,`clearable`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`disabled`,2),D([A()],Q.prototype,`placeholder`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`readonly`,2),D([A({attribute:`password-toggle`,type:Boolean})],Q.prototype,`passwordToggle`,2),D([A({attribute:`password-visible`,type:Boolean})],Q.prototype,`passwordVisible`,2),D([A({attribute:`no-spin-buttons`,type:Boolean})],Q.prototype,`noSpinButtons`,2),D([A({reflect:!0})],Q.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],Q.prototype,`required`,2),D([A()],Q.prototype,`pattern`,2),D([A({type:Number})],Q.prototype,`minlength`,2),D([A({type:Number})],Q.prototype,`maxlength`,2),D([A()],Q.prototype,`min`,2),D([A()],Q.prototype,`max`,2),D([A()],Q.prototype,`step`,2),D([A()],Q.prototype,`autocapitalize`,2),D([A()],Q.prototype,`autocorrect`,2),D([A()],Q.prototype,`autocomplete`,2),D([A({type:Boolean})],Q.prototype,`autofocus`,2),D([A()],Q.prototype,`enterkeyhint`,2),D([A({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Q.prototype,`spellcheck`,2),D([A()],Q.prototype,`inputmode`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleDisabledChange`,1),D([I(`step`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleStepChange`,1),D([I(`value`,{waitUntilFirstUpdate:!0})],Q.prototype,`handleValueChange`,1),Q.define(`sl-input`);var $=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new dn(this,`[default]`,`prefix`,`suffix`),this.localize=new Cn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:cn}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?Db`a`:Db`button`;return kb` <${t} part="base" class=${En({button:!0,"button--default":this.variant==="default","button--primary":this.variant===`primary`,"button--success":this.variant===`success`,"button--neutral":this.variant===`neutral`,"button--warning":this.variant===`warning`,"button--danger":this.variant===`danger`,"button--text":this.variant===`text`,"button--small":this.size===`small`,"button--medium":this.size===`medium`,"button--large":this.size===`large`,"button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()===`rtl`,"button--has-label":this.hasSlotController.test(`[default]`),"button--has-prefix":this.hasSlotController.test(`prefix`),"button--has-suffix":this.hasSlotController.test(`suffix`)})} @@ -9085,10 +9105,10 @@ - ${this.caret?Ob` `:``} - ${this.loading?Ob``:``} + ${this.caret?kb` `:``} + ${this.loading?kb``:``} - `}};$.styles=[wn,Sb],$.dependencies={"sl-icon":ds,"sl-spinner":Ps},D([M(`.button`)],$.prototype,`button`,2),D([j()],$.prototype,`hasFocus`,2),D([j()],$.prototype,`invalid`,2),D([A()],$.prototype,`title`,2),D([A({reflect:!0})],$.prototype,`variant`,2),D([A({reflect:!0})],$.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`caret`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`loading`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`outline`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`pill`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`circle`,2),D([A()],$.prototype,`type`,2),D([A()],$.prototype,`name`,2),D([A()],$.prototype,`value`,2),D([A()],$.prototype,`href`,2),D([A()],$.prototype,`target`,2),D([A()],$.prototype,`rel`,2),D([A()],$.prototype,`download`,2),D([A()],$.prototype,`form`,2),D([A({attribute:`formaction`})],$.prototype,`formAction`,2),D([A({attribute:`formenctype`})],$.prototype,`formEnctype`,2),D([A({attribute:`formmethod`})],$.prototype,`formMethod`,2),D([A({attribute:`formnovalidate`,type:Boolean})],$.prototype,`formNoValidate`,2),D([A({attribute:`formtarget`})],$.prototype,`formTarget`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],$.prototype,`handleDisabledChange`,1),$.define(`sl-button`);var mx=k` + `}};$.styles=[wn,Cb],$.dependencies={"sl-icon":fs,"sl-spinner":Fs},D([M(`.button`)],$.prototype,`button`,2),D([j()],$.prototype,`hasFocus`,2),D([j()],$.prototype,`invalid`,2),D([A()],$.prototype,`title`,2),D([A({reflect:!0})],$.prototype,`variant`,2),D([A({reflect:!0})],$.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`caret`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`loading`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`outline`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`pill`,2),D([A({type:Boolean,reflect:!0})],$.prototype,`circle`,2),D([A()],$.prototype,`type`,2),D([A()],$.prototype,`name`,2),D([A()],$.prototype,`value`,2),D([A()],$.prototype,`href`,2),D([A()],$.prototype,`target`,2),D([A()],$.prototype,`rel`,2),D([A()],$.prototype,`download`,2),D([A()],$.prototype,`form`,2),D([A({attribute:`formaction`})],$.prototype,`formAction`,2),D([A({attribute:`formenctype`})],$.prototype,`formEnctype`,2),D([A({attribute:`formmethod`})],$.prototype,`formMethod`,2),D([A({attribute:`formnovalidate`,type:Boolean})],$.prototype,`formNoValidate`,2),D([A({attribute:`formtarget`})],$.prototype,`formTarget`,2),D([I(`disabled`,{waitUntilFirstUpdate:!0})],$.prototype,`handleDisabledChange`,1),$.define(`sl-button`);var hx=k` :host { display: inline-block; } @@ -9253,7 +9273,7 @@ background-color: ButtonText; } } -`,hx=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new dn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return N` +`,gx=class extends L{constructor(){super(...arguments),this.formControlController=new sn(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new dn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return N`
@@ -9299,7 +9319,7 @@ ${this.helpText}
- `}};hx.styles=[wn,en,mx],D([M(`input[type="checkbox"]`)],hx.prototype,`input`,2),D([j()],hx.prototype,`hasFocus`,2),D([A()],hx.prototype,`title`,2),D([A()],hx.prototype,`name`,2),D([A()],hx.prototype,`value`,2),D([A({reflect:!0})],hx.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],hx.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],hx.prototype,`checked`,2),D([$t(`checked`)],hx.prototype,`defaultChecked`,2),D([A({reflect:!0})],hx.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],hx.prototype,`required`,2),D([A({attribute:`help-text`})],hx.prototype,`helpText`,2),D([I(`checked`,{waitUntilFirstUpdate:!0})],hx.prototype,`handleCheckedChange`,1),D([I(`disabled`,{waitUntilFirstUpdate:!0})],hx.prototype,`handleDisabledChange`,1),hx.define(`sl-switch`);var gx=[`MODIFIED`,`ADDED`,`REMOVED`],_x=[`BREAKING`,`NON-BREAKING`],vx={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function yx(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function bx(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var xx=class extends F{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=Bb}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(An,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(An,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=vx[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,...bx(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>yx(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,bx(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:gx,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:_x,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return N` + `}};gx.styles=[wn,en,hx],D([M(`input[type="checkbox"]`)],gx.prototype,`input`,2),D([j()],gx.prototype,`hasFocus`,2),D([A()],gx.prototype,`title`,2),D([A()],gx.prototype,`name`,2),D([A()],gx.prototype,`value`,2),D([A({reflect:!0})],gx.prototype,`size`,2),D([A({type:Boolean,reflect:!0})],gx.prototype,`disabled`,2),D([A({type:Boolean,reflect:!0})],gx.prototype,`checked`,2),D([$t(`checked`)],gx.prototype,`defaultChecked`,2),D([A({reflect:!0})],gx.prototype,`form`,2),D([A({type:Boolean,reflect:!0})],gx.prototype,`required`,2),D([A({attribute:`help-text`})],gx.prototype,`helpText`,2),D([I(`checked`,{waitUntilFirstUpdate:!0})],gx.prototype,`handleCheckedChange`,1),D([I(`disabled`,{waitUntilFirstUpdate:!0})],gx.prototype,`handleDisabledChange`,1),gx.define(`sl-switch`);var _x=[`MODIFIED`,`ADDED`,`REMOVED`],vx=[`BREAKING`,`NON-BREAKING`],yx={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function bx(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function xx(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var Sx=class extends F{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=Vb}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(An,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(An,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=yx[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,...xx(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>bx(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,xx(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:_x,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:vx,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return N` - `}};Ur.styles=[hn,wee],w([kt(`.popup`)],Ur.prototype,`popup`,2),w([kt(`.popup__arrow`)],Ur.prototype,`arrowEl`,2),w([Tt()],Ur.prototype,`anchor`,2),w([Tt({type:Boolean,reflect:!0})],Ur.prototype,`active`,2),w([Tt({reflect:!0})],Ur.prototype,`placement`,2),w([Tt({reflect:!0})],Ur.prototype,`strategy`,2),w([Tt({type:Number})],Ur.prototype,`distance`,2),w([Tt({type:Number})],Ur.prototype,`skidding`,2),w([Tt({type:Boolean})],Ur.prototype,`arrow`,2),w([Tt({attribute:`arrow-placement`})],Ur.prototype,`arrowPlacement`,2),w([Tt({attribute:`arrow-padding`,type:Number})],Ur.prototype,`arrowPadding`,2),w([Tt({type:Boolean})],Ur.prototype,`flip`,2),w([Tt({attribute:`flip-fallback-placements`,converter:{fromAttribute:e=>e.split(` `).map(e=>e.trim()).filter(e=>e!==``),toAttribute:e=>e.join(` `)}})],Ur.prototype,`flipFallbackPlacements`,2),w([Tt({attribute:`flip-fallback-strategy`})],Ur.prototype,`flipFallbackStrategy`,2),w([Tt({type:Object})],Ur.prototype,`flipBoundary`,2),w([Tt({attribute:`flip-padding`,type:Number})],Ur.prototype,`flipPadding`,2),w([Tt({type:Boolean})],Ur.prototype,`shift`,2),w([Tt({type:Object})],Ur.prototype,`shiftBoundary`,2),w([Tt({attribute:`shift-padding`,type:Number})],Ur.prototype,`shiftPadding`,2),w([Tt({attribute:`auto-size`})],Ur.prototype,`autoSize`,2),w([Tt()],Ur.prototype,`sync`,2),w([Tt({type:Object})],Ur.prototype,`autoSizeBoundary`,2),w([Tt({attribute:`auto-size-padding`,type:Number})],Ur.prototype,`autoSizePadding`,2),w([Tt({attribute:`hover-bridge`,type:Boolean})],Ur.prototype,`hoverBridge`,2),Ur.define(`sl-popup`);var Wr=xe` + `}};Hr.styles=[hn,wee],w([Ot(`.popup`)],Hr.prototype,`popup`,2),w([Ot(`.popup__arrow`)],Hr.prototype,`arrowEl`,2),w([wt()],Hr.prototype,`anchor`,2),w([wt({type:Boolean,reflect:!0})],Hr.prototype,`active`,2),w([wt({reflect:!0})],Hr.prototype,`placement`,2),w([wt({reflect:!0})],Hr.prototype,`strategy`,2),w([wt({type:Number})],Hr.prototype,`distance`,2),w([wt({type:Number})],Hr.prototype,`skidding`,2),w([wt({type:Boolean})],Hr.prototype,`arrow`,2),w([wt({attribute:`arrow-placement`})],Hr.prototype,`arrowPlacement`,2),w([wt({attribute:`arrow-padding`,type:Number})],Hr.prototype,`arrowPadding`,2),w([wt({type:Boolean})],Hr.prototype,`flip`,2),w([wt({attribute:`flip-fallback-placements`,converter:{fromAttribute:e=>e.split(` `).map(e=>e.trim()).filter(e=>e!==``),toAttribute:e=>e.join(` `)}})],Hr.prototype,`flipFallbackPlacements`,2),w([wt({attribute:`flip-fallback-strategy`})],Hr.prototype,`flipFallbackStrategy`,2),w([wt({type:Object})],Hr.prototype,`flipBoundary`,2),w([wt({attribute:`flip-padding`,type:Number})],Hr.prototype,`flipPadding`,2),w([wt({type:Boolean})],Hr.prototype,`shift`,2),w([wt({type:Object})],Hr.prototype,`shiftBoundary`,2),w([wt({attribute:`shift-padding`,type:Number})],Hr.prototype,`shiftPadding`,2),w([wt({attribute:`auto-size`})],Hr.prototype,`autoSize`,2),w([wt()],Hr.prototype,`sync`,2),w([wt({type:Object})],Hr.prototype,`autoSizeBoundary`,2),w([wt({attribute:`auto-size-padding`,type:Number})],Hr.prototype,`autoSizePadding`,2),w([wt({attribute:`hover-bridge`,type:Boolean})],Hr.prototype,`hoverBridge`,2),Hr.define(`sl-popup`);var Ur=xe` a, a:visited, a:active { text-decoration: none; @@ -1380,7 +1380,7 @@ } } -`,Gr=xe` +`,Wr=xe` code { font-size: 0.7rem; vertical-align: top; @@ -1699,7 +1699,7 @@ padding-left: 20px; margin-bottom: 10px; } -`,Kr=xe` +`,Gr=xe` em, i { font-style: normal; @@ -1712,10 +1712,10 @@ } -`,E;(function(e){e.VERSION=`version`,e.SCHEMA=`schema`,e.SCHEMAS=`schemas`,e.SCHEMA_TYPES=`types`,e.MEDIA_TYPE=`mediaType`,e.HEADER=`header`,e.EXAMPLE=`example`,e.EXAMPLES=`examples`,e.ENCODING=`encoding`,e.REQUEST_BODY=`requestBody`,e.REQUEST_BODIES=`requestBodies`,e.PARAMETER=`parameter`,e.PARAMETER_QUERY=`query`,e.COOKIE=`cookie`,e.PARAMETERS=`parameters`,e.LINK=`link`,e.LINKS=`links`,e.RESPONSE=`response`,e.RESPONSES=`responses`,e.OPERATION=`operation`,e.OPERATIONS=`operations`,e.CHANNEL=`channel`,e.CHANNELS=`channels`,e.SECURITY_SCHEME=`securityScheme`,e.SECURITY_SCHEMES=`securitySchemes`,e.EXTERNAL_DOCS=`externalDocs`,e.SECURITY=`security`,e.CALLBACK=`callback`,e.CALLBACKS=`callbacks`,e.PATH_ITEM=`pathItem`,e.PATH_ITEMS=`pathItems`,e.XML=`xml`,e.HEADERS=`headers`,e.SERVER=`server`,e.SERVERS=`servers`,e.SERVER_VARIABLE=`serverVariable`,e.PATHS=`paths`,e.COMPONENTS=`components`,e.CONTACT=`contact`,e.LICENSE=`license`,e.INFO=`info`,e.TAG=`tag`,e.TAGS=`tags`,e.DOCUMENT=`document`,e.WEBHOOK=`webhook`,e.WEBHOOKS=`webhooks`,e.EXTENSIONS=`extensions`,e.EXTENSION=`extension`,e.NO_EXAMPLE=`noExample`,e.POLYMORPHIC=`polymorphic`,e.ERROR=`error`,e.WARNING=`warning`,e.ROLODEX_FILE=`rolodex-file`,e.ROLODEX_FOLDER=`rolodex-dir`,e.OPENAPI=`openapi`,e.UPLOAD=`upload`,e.ADD=`add`,e.UNKNOWN=`unknown`,e.EXPAND_NODE=`expand-node`,e.POV_MODE=`pov-mode`,e.JS=`js`,e.GO=`go`,e.TS=`ts`,e.CS=`cs`,e.C=`c`,e.CPP=`cpp`,e.PHP=`php`,e.PY=`py`,e.HTML=`html`,e.MD=`md`,e.JAVA=`java`,e.RS=`rs`,e.ZIG=`zig`,e.RB=`rb`,e.YAML=`yaml`,e.JSON=`json`})(E||={});var qr=`pb33f-theme-change`,Jr=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yr,Xr;(function(e){e.tiny=`tiny`,e.small=`small`,e.smaller=`smaller`,e.medium=`medium`,e.large=`large`,e.huge=`huge`})(Xr||={});var Zr;(function(e){e.primary=`primary`,e.secondary=`secondary`,e.inverse=`inverse`,e.font=`font`,e.warning=`warning`,e.polymorphic=`polymorphic`,e.error=`error`,e.filtered=`filtered`})(Zr||={});var Qr=Yr=class extends Ct{getSize(){switch(this.size){case Xr.tiny:return`0.8rem`;case Xr.smaller:return`1.2rem`;case Xr.medium:return`1.4rem`;case Xr.large:return`1.8rem`;case Xr.huge:return`2rem`;default:return`1rem`}}getIconColor(){switch(this.color){case Zr.primary:return`var(--primary-color)`;case Zr.secondary:return`var(--secondary-color)`;case Zr.warning:return`var(--warn-color)`;case Zr.polymorphic:return`var(--warn-color)`;case Zr.error:return`var(--error-color)`;case Zr.inverse:return`var(--background-color)`;case Zr.filtered:return`var(--font-color-sub2)`;case Zr.font:default:return`var(--font-color)`}}constructor(){super(),this._themeHandler=()=>this.requestUpdate(),this.size=Xr.medium,this.color=Zr.primary}connectedCallback(){super.connectedCallback(),window.addEventListener(qr,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(qr,this._themeHandler)}isLightMode(){return document.documentElement.getAttribute(`theme`)===`light`}getNodeTypeFromIcon(e){return Object.values(E).includes(e)?e:E.SCHEMA}static getIconForType(e){switch(e){case E.DOCUMENT:return`stars`;case E.SCHEMA:return`box`;case E.CHANNEL:case E.CHANNELS:return`hash`;case E.SCHEMA_TYPES:return`diagram-3`;case E.MEDIA_TYPE:case E.XML:return`code-slash`;case E.HEADER:case E.HEADERS:return`envelope`;case E.EXAMPLE:case E.EXAMPLES:return`chat-left-quote`;case E.ENCODING:return`box-seam`;case E.REQUEST_BODY:case E.REQUEST_BODIES:return`box-arrow-in-right`;case E.PARAMETER:case E.PARAMETERS:case E.SERVER_VARIABLE:return`braces-asterisk`;case E.PARAMETER_QUERY:return`question-lg`;case E.COOKIE:return`cookie`;case E.LINK:case E.LINKS:return`link`;case E.RESPONSE:case E.RESPONSES:return`box-arrow-left`;case E.OPERATION:case E.OPERATIONS:return`gear-wide-connected`;case E.SECURITY_SCHEME:case E.SECURITY_SCHEMES:case E.SECURITY:return`shield-lock`;case E.CALLBACK:case E.CALLBACKS:return`telephone-outbound`;case E.PATH_ITEM:case E.PATH_ITEMS:return`geo`;case E.SERVER:case E.SERVERS:return`hdd-network`;case E.PATHS:return`compass`;case E.COMPONENTS:return`boxes`;case E.CONTACT:return`person-circle`;case E.LICENSE:return`patch-check`;case E.UPLOAD:return`upload`;case E.INFO:return`info-square`;case E.TAG:return`tag`;case E.TAGS:return`tags`;case E.VERSION:return`award`;case E.EXTENSIONS:case E.EXTENSION:return`plug`;case E.WEBHOOK:case E.WEBHOOKS:return`arrow-clockwise`;case E.NO_EXAMPLE:return`exclamation-circle`;case E.POLYMORPHIC:return`diagram-3`;case E.ERROR:return`x-square`;case E.WARNING:return`exclamation-triangle`;case E.ROLODEX_FOLDER:return`folder`;case E.ROLODEX_FILE:return`journal-code`;case E.JS:return`filetype-js`;case E.PHP:return`filetype-php`;case E.PY:return`filetype-py`;case E.HTML:return`filetype-html`;case E.MD:return`markdown`;case E.JAVA:return`filetype-java`;case E.EXTERNAL_DOCS:return`journals`;case E.RB:return`filetype-rb`;case E.EXPAND_NODE:return`node-plus`;case E.POV_MODE:return`binoculars`;default:return`box`}}openapiIcon(){return this.isLightMode()?`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogIzAwMDsiLz4KPC9zdmc+`:`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogI2ZmZjsiLz4KPC9zdmc+`}goIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMzIgMzIuMDAwMDAxIj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0xMDIwLjM2MjIpIj4KICAgIDxlbGxpcHNlIGN4PSItOTA3LjM1NjU3IiBjeT0iNDc5LjkwMDA5IiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0ic2NhbGUoLTEgMSkgcm90YXRlKC02MC41NDgpIi8+CiAgICA8ZWxsaXBzZSBjeD0iLTg5MS41NzY1NCIgY3k9IjUwNy44NDYxIiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0icm90YXRlKC02MC41NDgpIi8+CiAgICA8cGF0aCBmaWxsPSIjMzg0ZTU0IiBkPSJNMTYuMDkxNjkzIDEwMjEuMzY0MmMtMS4xMDU3NDkuMDEtMi4yMTAzNDEuMDQ5LTMuMzE2MDkuMDlDNi44NDIyNTU4IDEwMjEuNjczOCAyIDEwMjYuMzk0MiAyIDEwMzIuMzYyMnYyMGgyOHYtMjBjMC01Ljk2ODMtNC42NjczNDUtMTAuNDkxMi0xMC41OTAyMy0xMC45MDgtMS4xMDU3NS0uMDc4LTIuMjEyMzI4LS4wOTktMy4zMTgwNzctLjA5eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNNC42MDc4ODY3IDEwMjUuMDQ2MmMuNDU5NTY0LjI1OTUgMS44MTgyNjIgMS4yMDEzIDEuOTgwOTgzIDEuNjQ4LjE4MzQwMS41MDM1LjE1OTM4NSAxLjA2NTctLjExNDYxNCAxLjU1MS0uMzQ2NjI3LjYxMzgtMS4wMDUzNDEuOTQ4Ny0xLjY5NjQyMS45MzY1LS4zMzk4ODYtLjAxLTEuNzIwMjgzLS42MzcyLTIuMDQyNTYxLS44MTkyLS45Nzc1NC0uNTUxOS0xLjM1MDc5NS0xLjc0MTgtLjgzMzY4Ni0yLjY1NzYuNTE3MTA5LS45MTU4IDEuNzI4NzQ5LTEuMjEwNyAyLjcwNjI5OS0uNjU4N3oiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuMDg2NjY1OSIgaGVpZ2h0PSIzLjUzMTM2NjMiIHg9IjE0LjQwNjIxMyIgeT0iMTAzNS42ODQyIiBmaWxsLW9wYWNpdHk9Ii4zMjg1MDI0NiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiByeT0iLjYyNDI2MzI5IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMTYgMTAyMy4zNjIyYy05IDAtMTIgMy43MTUzLTEyIDl2MjBoMjRjLS4wNDg4OS03LjM1NjIgMC0xOCAwLTIwIDAtNS4yODQ4LTMtOS0xMi05eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMjcuMDc0MDczIDEwMjUuMDQ2MmMtLjQ1OTU3LjI1OTUtMS44MTgyNTcgMS4yMDEzLTEuOTgwOTc5IDEuNjQ4LS4xODM0MDEuNTAzNS0uMTU5Mzg0IDEuMDY1Ny4xMTQ2MTQgMS41NTEuMzQ2NjI3LjYxMzggMS4wMDUzMzUuOTQ4NyAxLjY5NjQxNS45MzY1LjMzOTg4LS4wMSAxLjcyMDI5LS42MzcyIDIuMDQyNTYtLjgxOTIuOTc3NTQtLjU1MTkgMS4zNTA3OS0xLjc0MTguODMzNjktMi42NTc2LS41MTcxMS0uOTE1OC0xLjcyODc2LTEuMjEwNy0yLjcwNjMtLjY1ODd6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjIxLjE3NTczNCIgY3k9IjEwMzAuMzU0MiIgcj0iNC42NTM3NTQyIiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjEwLjMzOTQ4NiIgY3k9IjEwMzAuMzU0MiIgcj0iNC44MzE2MzQ1IiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxyZWN0IHdpZHRoPSIzLjY2NzM2ODciIGhlaWdodD0iNC4xMDYzNDA5IiB4PSIxNC4xMTU4NjMiIHk9IjEwMzUuOTE3NCIgZmlsbC1vcGFjaXR5PSIuMzI5NDExNzYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcnk9Ii43MjU5MDUzNiIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuNjY3MzY4NyIgaGVpZ2h0PSI0LjEwNjM0MDkiIHg9IjE0LjExNTg2MyIgeT0iMTAzNS4yMjUzIiBmaWxsPSIjZmZmY2ZiIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ5PSIuNzI1OTA1MzYiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxwYXRoIGZpbGwtb3BhY2l0eT0iLjMyOTQxMTc2IiBkPSJNMTkuOTk5NzM1IDEwMzYuNTI4OWMwIC44MzgtLjg3MTIyOCAxLjI2ODItMi4xNDQ3NjYgMS4xNjU5LS4wMjM2NiAwLS4wNDc5NS0uNjAwNC0uMjU0MTQ3LS41ODMyLS41MDM2NjkuMDQyLTEuMDk1OTAyLS4wMi0xLjY4NTk2NC0uMDItLjYxMjkzOSAwLTEuMjA2MzQyLjE4MjYtMS42ODU0OS4wMTctLjExMDIzMy0uMDM4LS4xNzgyOTguNTgzOC0uMjYxNTMyLjU4MTYtMS4yNDM2ODUtLjAzMy0yLjA3ODgwMy0uMzM4My0yLjA3ODgwMy0xLjE2MTggMC0xLjIxMTggMS44MTU2MzUtMi4xOTQxIDQuMDU1MzUxLTIuMTk0MSAyLjIzOTcwNCAwIDQuMDU1MzUxLjk4MjMgNC4wNTUzNTEgMi4xOTQxeiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjYzM4Yzc0IiBkPSJNMTkuOTc3NDE0IDEwMzUuNzAwNGMwIC41Njg1LS40MzM2NTkuODU1NC0xLjEzODA5MSAxLjAwMDEtLjI5MTkzMy4wNi0uNjMwMzcxLjA5Ni0xLjAwMzcxOS4xMTY2LS41NjQwNS4wMzItMS4yMDc3ODIuMDMxLTEuODkxMjIuMDMxLS42NzI4MzQgMC0xLjMwNzE4MiAwLTEuODY0OTA0LS4wMjktLjMwNjI2OC0uMDE3LS41ODk0MjktLjA0My0uODQzMTY0LS4wODQtLjgxMzgzMy0uMTMxOC0xLjMyNDk2Mi0uNDE3LTEuMzI0OTYyLTEuMDM0NCAwLTEuMTYwMSAxLjgwNTY0Mi0yLjEwMDYgNC4wMzMwMy0yLjEwMDYgMi4yMjczNzcgMCA0LjAzMzAzLjk0MDUgNC4wMzMwMyAyLjEwMDZ6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxlbGxpcHNlIGN4PSIxNS45NDQzODIiIGN5PSIxMDMzLjg1MDEiIGZpbGw9IiMyMzIwMWYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcng9IjIuMDgwMTczMyIgcnk9IjEuMzQzNzQ3IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIxMi40MTQyMDEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIyMy4xMTAxMjEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzODRlNTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIuMzk3MzA4NzQiIGQ9Ik01LjAwNTUzNzcgMTAyNy4yNzI3Yy0xLjE3MDQzNS0xLjA4MzUtMi4wMjY5NzMtLjc3MjEtMi4wNDQxNzItLjc0NjMiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM4NGU1NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9Ii4zOTczMDg3NCIgZD0iTTQuMzg1MjQ1NyAxMDI2LjkxNTJjLTEuMTU4NTU3LjAzNi0xLjM0NjcwNC42MzAzLTEuMzM4ODEuNjUyM20yMy41ODQwOTczLS4zOTUxYzEuMTcwNDMtMS4wODM1IDIuMDI2OTctLjc3MjEgMi4wNDQxNy0uNzQ2MyIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzg0ZTU0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS13aWR0aD0iLjM5NzMwODc0IiBkPSJNMjcuMzIxNzczIDEwMjYuNjczYzEuMTU4NTYuMDM2IDEuMzQ2Ny42MzAyIDEuMzM4OC42NTIyIi8+CiAgPC9nPgo8L3N2Zz4=`}typescriptIcon(){return`CjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiB3aWR0aD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiMzMTc4YzYiIGhlaWdodD0iNTEyIiByeD0iNTAiIHdpZHRoPSI1MTIiLz48cmVjdCBmaWxsPSIjMzE3OGM2IiBoZWlnaHQ9IjUxMiIgcng9IjUwIiB3aWR0aD0iNTEyIi8+PHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzE2LjkzOSA0MDcuNDI0djUwLjA2MWM4LjEzOCA0LjE3MiAxNy43NjMgNy4zIDI4Ljg3NSA5LjM4NnMyMi44MjMgMy4xMjkgMzUuMTM1IDMuMTI5YzExLjk5OSAwIDIzLjM5Ny0xLjE0NyAzNC4xOTYtMy40NDIgMTAuNzk5LTIuMjk0IDIwLjI2OC02LjA3NSAyOC40MDYtMTEuMzQyIDguMTM4LTUuMjY2IDE0LjU4MS0xMi4xNSAxOS4zMjgtMjAuNjVzNy4xMjEtMTkuMDA3IDcuMTIxLTMxLjUyMmMwLTkuMDc0LTEuMzU2LTE3LjAyNi00LjA2OS0yMy44NTdzLTYuNjI1LTEyLjkwNi0xMS43MzgtMTguMjI1Yy01LjExMi01LjMxOS0xMS4yNDItMTAuMDkxLTE4LjM4OS0xNC4zMTVzLTE1LjIwNy04LjIxMy0yNC4xOC0xMS45NjdjLTYuNTczLTIuNzEyLTEyLjQ2OC01LjM0NS0xNy42ODUtNy45LTUuMjE3LTIuNTU2LTkuNjUxLTUuMTYzLTEzLjMwMy03LjgyMi0zLjY1Mi0yLjY2LTYuNDY5LTUuNDc2LTguNDUxLTguNDQ4LTEuOTgyLTIuOTczLTIuOTc0LTYuMzM2LTIuOTc0LTEwLjA5MSAwLTMuNDQxLjg4Ny02LjU0NCAyLjY2MS05LjMwOHM0LjI3OC01LjEzNiA3LjUxMi03LjExOGMzLjIzNS0xLjk4MSA3LjE5OS0zLjUyIDExLjg5NC00LjYxNSA0LjY5Ni0xLjA5NSA5LjkxMi0xLjY0MiAxNS42NTEtMS42NDIgNC4xNzMgMCA4LjU4MS4zMTMgMTMuMjI0LjkzOCA0LjY0My42MjYgOS4zMTIgMS41OTEgMTQuMDA4IDIuODk0IDQuNjk1IDEuMzA0IDkuMjU5IDIuOTQ3IDEzLjY5NCA0LjkyOCA0LjQzNCAxLjk4MiA4LjUyOSA0LjI3NiAxMi4yODUgNi44ODR2LTQ2Ljc3NmMtNy42MTYtMi45Mi0xNS45MzctNS4wODQtMjQuOTYyLTYuNDkycy0xOS4zODEtMi4xMTItMzEuMDY2LTIuMTEyYy0xMS44OTUgMC0yMy4xNjMgMS4yNzgtMzMuODA1IDMuODMzcy0yMC4wMDYgNi41NDQtMjguMDkzIDExLjk2N2MtOC4wODYgNS40MjQtMTQuNDc2IDEyLjMzMy0xOS4xNzEgMjAuNzI5LTQuNjk1IDguMzk1LTcuMDQzIDE4LjQzMy03LjA0MyAzMC4xMTQgMCAxNC45MTQgNC4zMDQgMjcuNjM4IDEyLjkxMiAzOC4xNzIgOC42MDcgMTAuNTMzIDIxLjY3NSAxOS40NSAzOS4yMDQgMjYuNzUxIDYuODg2IDIuODE2IDEzLjMwMyA1LjU3OSAxOS4yNSA4LjI5MXMxMS4wODYgNS41MjggMTUuNDE1IDguNDQ4YzQuMzMgMi45MiA3Ljc0NyA2LjEwMSAxMC4yNTIgOS41NDMgMi41MDQgMy40NDEgMy43NTYgNy4zNTIgMy43NTYgMTEuNzMzIDAgMy4yMzMtLjc4MyA2LjIzMS0yLjM0OCA4Ljk5NXMtMy45MzkgNS4xNjItNy4xMjEgNy4xOTYtNy4xNDcgMy42MjQtMTEuODk0IDQuNzcxYy00Ljc0OCAxLjE0OC0xMC4zMDMgMS43MjEtMTYuNjY4IDEuNzIxLTEwLjg1MSAwLTIxLjU5Ny0xLjkwMy0zMi4yNC01LjcxLTEwLjY0Mi0zLjgwNi0yMC41MDItOS41MTYtMjkuNTc5LTE3LjEzem0tODQuMTU5LTEyMy4zNDJoNjQuMjJ2LTQxLjA4MmgtMTc5djQxLjA4Mmg2My45MDZ2MTgyLjkxOGg1MC44NzR6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=`}csIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHdpZHRoPSIyMDQuOCIKICAgaGVpZ2h0PSIyMDQuOCIKICAgdmlld0JveD0iMCAwIDU0LjE4NjY2NiA1NC4xODY2NjciCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzEiCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczEyIj4KICAgIDxsaW5lYXJHcmFkaWVudAogICAgICAgaWQ9ImEiCiAgICAgICB4MT0iNDYuNzczIgogICAgICAgeDI9IjY5LjkwNyIKICAgICAgIHkxPSI4Ni40NjIiCiAgICAgICB5Mj0iMTI2LjczMiIKICAgICAgIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzMy45ODMgLTUxOC45NzQpIHNjYWxlKDguNzg5OTYpIgogICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcAogICAgICAgICBzdG9wLWNvbG9yPSIjOTI3QkU1IgogICAgICAgICBpZD0ic3RvcDEiIC8+CiAgICAgIDxzdG9wCiAgICAgICAgIG9mZnNldD0iMSIKICAgICAgICAgc3RvcC1jb2xvcj0iIzUxMkJENCIKICAgICAgICAgaWQ9InN0b3AyIiAvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxmaWx0ZXIKICAgICAgIGlkPSJiIgogICAgICAgd2lkdGg9IjQyLjg0NSIKICAgICAgIGhlaWdodD0iMzkuMTM2IgogICAgICAgeD0iNDQuNjI5IgogICAgICAgeT0iOTEuODkiCiAgICAgICBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiCiAgICAgICBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8ZmVGbG9vZAogICAgICAgICBmbG9vZC1vcGFjaXR5PSIwIgogICAgICAgICByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgaWQ9ImZlRmxvb2QyIiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MiIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGlkPSJmZU9mZnNldDIiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgzIiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIGlkPSJmZUJsZW5kMyIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgaW49IlNvdXJjZUFscGhhIgogICAgICAgICByZXN1bHQ9ImhhcmRBbHBoYSIKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIgogICAgICAgICBpZD0iZmVDb2xvck1hdHJpeDQiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMSIKICAgICAgICAgaWQ9ImZlT2Zmc2V0NCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyCiAgICAgICAgIHN0ZERldmlhdGlvbj0iMi40OTkiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjQiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg1IiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIG1vZGU9Im5vcm1hbCIKICAgICAgICAgcmVzdWx0PSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBpZD0iZmVCbGVuZDUiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIGluPSJTb3VyY2VBbHBoYSIKICAgICAgICAgcmVzdWx0PSJoYXJkQWxwaGEiCiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg2IiAvPgogICAgICA8ZmVPZmZzZXQKICAgICAgICAgZHk9IjQiCiAgICAgICAgIGlkPSJmZU9mZnNldDYiIC8+CiAgICAgIDxmZUdhdXNzaWFuQmx1cgogICAgICAgICBzdGREZXZpYXRpb249IjIiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjYiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA5IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4NyIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0M19kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ3IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OCIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGR5PSI5IgogICAgICAgICBpZD0iZmVPZmZzZXQ4IiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIyLjUiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjgiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA1IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QzX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NF9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ5IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MTAiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMTUiCiAgICAgICAgIGlkPSJmZU9mZnNldDEwIiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIzIgogICAgICAgICBpZD0iZmVHYXVzc2lhbkJsdXIxMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3Q0X2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW49IlNvdXJjZUdyYXBoaWMiCiAgICAgICAgIGluMj0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9InNoYXBlIgogICAgICAgICBpZD0iZmVCbGVuZDEyIiAvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxwYXRoCiAgICAgZD0iTTEzNS43MzEgMjg1Ljg1djE3My45M2MwIDIxLjUxNyAxMS40NzggNDEuNDE4IDMwLjEyNSA1Mi4xNjhsMTUwLjYyNCA4Ni45NzZhNjAuMjIzIDYwLjIyMyAwIDAgMCA2MC4yNSAwbDE1MC42MjMtODYuOTc2YTYwLjIzNyA2MC4yMzcgMCAwIDAgMzAuMTI0LTUyLjE2OVYyODUuODUxYzAtMjEuNTI1LTExLjQ3Ny00MS40MjMtMzAuMTI0LTUyLjE3N0wzNzYuNzI5IDE0Ni43MmE2MC4yMSA2MC4yMSAwIDAgMC02MC4yNDkgMGwtMTUwLjYyNCA4Ni45NTRhNjAuMjQ1IDYwLjI0NSAwIDAgMC0zMC4xMjUgNTIuMTc3eiIKICAgICBmaWxsPSJ1cmwoI2EpIgogICAgIHRyYW5zZm9ybT0ibWF0cml4KC4xIDAgMCAuMSAtNy41NjcgLTEwLjE4OSkiCiAgICAgaWQ9InBhdGgxMiIgLz4KICA8cGF0aAogICAgIGQ9Ik01NC4wNTYgOTguMDN2Ni44NTVhMS43MTEgMS43MTEgMCAwIDAgMS43MTQgMS43MTQgMS43MTMgMS43MTMgMCAwIDAgMS43MTQtMS43MTQgMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMCA1LjE0IDUuMTQgMCAxIDEtMTAuMjgyIDB2LTYuODU0YTUuMTQgNS4xNCAwIDEgMSAxMC4yODIgMCAxLjcxMiAxLjcxMiAwIDEgMS0zLjQyNyAwIDEuNzEyIDEuNzEyIDAgMSAwLTMuNDI3IDB6bTI3LjQxOCA2Ljg1NWExLjcxMiAxLjcxMiAwIDAgMS0xLjcxNCAxLjcxNGgtMS43MTR2MS43MTNjMCAuNDU1LS4xOC44OTEtLjUwMiAxLjIxMmExLjcxIDEuNzEgMCAwIDEtMi40MjMgMCAxLjcxOSAxLjcxOSAwIDAgMS0uNTAyLTEuMjEydi0xLjcxM2gtMy40Mjd2MS43MTNhMS43MSAxLjcxIDAgMCAxLTEuNzE0IDEuNzE0IDEuNzEgMS43MSAwIDAgMS0xLjcxMy0xLjcxNHYtMS43MTNINjYuMDVhMS43MTMgMS43MTMgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMy40MjdINjYuMDVhMS43MTIgMS43MTIgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMS43MTRhMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMHYxLjcxM2gzLjQyN3YtMS43MTNhMS43MTIgMS43MTIgMCAxIDEgMy40MjcgMHYxLjcxM2gxLjcxNGMuNDU0IDAgLjg5LjE4IDEuMjExLjUwMmExLjcxIDEuNzEgMCAwIDEgMCAyLjQyMyAxLjcxMiAxLjcxMiAwIDAgMS0xLjIxMS41MDNoLTEuNzE0djMuNDI3aDEuNzE0YTEuNzE4IDEuNzE4IDAgMCAxIDEuNzE0IDEuNzEzem0tNi44NTUtNS4xNGgtMy40Mjd2My40MjdoMy40Mjd6IgogICAgIGZpbGw9IiNmZmYiCiAgICAgZmlsdGVyPSJ1cmwoI2IpIgogICAgIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpzY3JlZW4iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoLjg3OSAwIDAgLjg3OSAtMzAuOTY1IC02Mi4wODYpIgogICAgIGlkPSJwYXRoMTMiIC8+Cjwvc3ZnPgo=`}cIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHZpZXdCb3g9IjAgMCAzOC4wMDAwODkgNDIuMDAwMDMxIgogICB3aWR0aD0iMzgwLjAwMDg5IgogICBoZWlnaHQ9IjQyMC4wMDAzMSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMTAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25zOC1jLXByb2dyYW1taW5nLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4wLjEgKDNiYzJlODEzZjUsIDIwMjAtMDktMDcpIj4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGExNiI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgICA8ZGM6dGl0bGU+PC9kYzp0aXRsZT4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGRlZnMKICAgICBpZD0iZGVmczE0IiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTkyMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDU2IgogICAgIGlkPSJuYW1lZHZpZXcxMiIKICAgICBzaG93Z3JpZD0iZmFsc2UiCiAgICAgZml0LW1hcmdpbi10b3A9IjAiCiAgICAgZml0LW1hcmdpbi1sZWZ0PSIwIgogICAgIGZpdC1tYXJnaW4tcmlnaHQ9IjAiCiAgICAgZml0LW1hcmdpbi1ib3R0b209IjAiCiAgICAgaW5rc2NhcGU6em9vbT0iMS40ODk1ODMzIgogICAgIGlua3NjYXBlOmN4PSIxOTAiCiAgICAgaW5rc2NhcGU6Y3k9IjIxMC4wMDI4MiIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzEwIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzI4MzU5MyIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAxNy45MDMsMC4yODYyODE2NiBjIDAuNjc5LC0wLjM4MSAxLjUxNSwtMC4zODEgMi4xOTMsMCBDIDIzLjQ1MSwyLjE2OTI4MTcgMzMuNTQ3LDcuODM3MjgxNyAzNi45MDMsOS43MjAyODE3IDM3LjU4MiwxMC4xMDAyODIgMzgsMTAuODA0MjgyIDM4LDExLjU2NjI4MiBjIDAsMy43NjYgMCwxNS4xMDEgMCwxOC44NjcgMCwwLjc2MiAtMC40MTgsMS40NjYgLTEuMDk3LDEuODQ3IC0zLjM1NSwxLjg4MyAtMTMuNDUxLDcuNTUxIC0xNi44MDcsOS40MzQgLTAuNjc5LDAuMzgxIC0xLjUxNSwwLjM4MSAtMi4xOTMsMCAtMy4zNTUsLTEuODgzIC0xMy40NTEsLTcuNTUxIC0xNi44MDcsLTkuNDM0IC0wLjY3OCwtMC4zODEgLTEuMDk2LC0xLjA4NCAtMS4wOTYsLTEuODQ2IDAsLTMuNzY2IDAsLTE1LjEwMSAwLC0xOC44NjcgMCwtMC43NjIgMC40MTgsLTEuNDY2IDEuMDk3LC0xLjg0NzAwMDMgMy4zNTQsLTEuODgzIDEzLjQ1MiwtNy41NTEgMTYuODA2LC05LjQzNDAwMDA0IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoMiIKICAgICBzdHlsZT0iZmlsbDojMDA0NDgyO2ZpbGwtb3BhY2l0eToxIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzVjNmJjMCIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAwLjMwNCwzMS40MDQyODIgYyAtMC4yNjYsLTAuMzU2IC0wLjMwNCwtMC42OTQgLTAuMzA0LC0xLjE0OSAwLC0zLjc0NCAwLC0xNS4wMTQgMCwtMTguNzU5IDAsLTAuNzU4IDAuNDE3LC0xLjQ1OCAxLjA5NCwtMS44MzYwMDAzIDMuMzQzLC0xLjg3MiAxMy40MDUsLTcuNTA3IDE2Ljc0OCwtOS4zODAwMDAwNCAwLjY3NywtMC4zNzkgMS41OTQsLTAuMzcxIDIuMjcxLDAuMDA4IDMuMzQzLDEuODcyMDAwMDQgMTMuMzcxLDcuNDU5MDAwMDQgMTYuNzE0LDkuMzMxMDAwMDQgMC4yNywwLjE1MiAwLjQ3NiwwLjMzNSAwLjY2LDAuNTc2MDAwMyB6IgogICAgIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICBpZD0icGF0aDQiCiAgICAgc3R5bGU9ImZpbGw6IzY1OWFkMjtmaWxsLW9wYWNpdHk6MSIgLz4KICA8cGF0aAogICAgIGZpbGw9IiNmZmZmZmYiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMTksNy4wMDAyODE3IGMgNy43MjcsMCAxNCw2LjI3MzAwMDMgMTQsMTQuMDAwMDAwMyAwLDcuNzI3IC02LjI3MywxNCAtMTQsMTQgLTcuNzI3LDAgLTE0LC02LjI3MyAtMTQsLTE0IDAsLTcuNzI3IDYuMjczLC0xNC4wMDAwMDAzIDE0LC0xNC4wMDAwMDAzIHogbSAwLDcuMDAwMDAwMyBjIDMuODYzLDAgNywzLjEzNiA3LDcgMCwzLjg2MyAtMy4xMzcsNyAtNyw3IC0zLjg2MywwIC03LC0zLjEzNyAtNywtNyAwLC0zLjg2NCAzLjEzNiwtNyA3LC03IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoNiIgLz4KICA8cGF0aAogICAgIGZpbGw9IiMzOTQ5YWIiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMzcuNDg1LDEwLjIwNTI4MiBjIDAuNTE2LDAuNDgzIDAuNTA2LDEuMjExIDAuNTA2LDEuNzg0IDAsMy43OTUgLTAuMDMyLDE0LjU4OSAwLjAwOSwxOC4zODQgMC4wMDQsMC4zOTYgLTAuMTI3LDAuODEzIC0wLjMyMywxLjEyNyBsIC0xOS4wODQsLTEwLjUgeiIKICAgICBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgaWQ9InBhdGg4IgogICAgIHN0eWxlPSJmaWxsOiMwMDU5OWM7ZmlsbC1vcGFjaXR5OjEiIC8+Cjwvc3ZnPgo=`}cppIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8+CjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjQsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0aD0iMzA2cHgiIGhlaWdodD0iMzQ0LjM1cHgiIHZpZXdCb3g9IjAgMCAzMDYgMzQ0LjM1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAzMDYgMzQ0LjM1IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzAwNTk5QyIgZD0iTTMwMi4xMDcsMjU4LjI2MmMyLjQwMS00LjE1OSwzLjg5My04Ljg0NSwzLjg5My0xMy4wNTNWOTkuMTRjMC00LjIwOC0xLjQ5LTguODkzLTMuODkyLTEzLjA1MkwxNTMsMTcyLjE3NQoJTDMwMi4xMDcsMjU4LjI2MnoiLz4KPHBhdGggZmlsbD0iIzAwNDQ4MiIgZD0iTTE2Ni4yNSwzNDEuMTkzbDEyNi41LTczLjAzNGMzLjY0NC0yLjEwNCw2Ljk1Ni01LjczNyw5LjM1Ny05Ljg5N0wxNTMsMTcyLjE3NUwzLjg5MywyNTguMjYzCgljMi40MDEsNC4xNTksNS43MTQsNy43OTMsOS4zNTcsOS44OTZsMTI2LjUsNzMuMDM0QzE0Ny4wMzcsMzQ1LjQwMSwxNTguOTYzLDM0NS40MDEsMTY2LjI1LDM0MS4xOTN6Ii8+CjxwYXRoIGZpbGw9IiM2NTlBRDIiIGQ9Ik0zMDIuMTA4LDg2LjA4N2MtMi40MDItNC4xNi01LjcxNS03Ljc5My05LjM1OC05Ljg5N0wxNjYuMjUsMy4xNTZjLTcuMjg3LTQuMjA4LTE5LjIxMy00LjIwOC0yNi41LDAKCUwxMy4yNSw3Ni4xOUM1Ljk2Miw4MC4zOTcsMCw5MC43MjUsMCw5OS4xNHYxNDYuMDY5YzAsNC4yMDgsMS40OTEsOC44OTQsMy44OTMsMTMuMDUzTDE1MywxNzIuMTc1TDMwMi4xMDgsODYuMDg3eiIvPgo8Zz4KCTxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xNTMsMjc0LjE3NWMtNTYuMjQzLDAtMTAyLTQ1Ljc1Ny0xMDItMTAyczQ1Ljc1Ny0xMDIsMTAyLTEwMmMzNi4yOTIsMCw3MC4xMzksMTkuNTMsODguMzMxLDUwLjk2OAoJCWwtNDQuMTQzLDI1LjU0NGMtOS4xMDUtMTUuNzM2LTI2LjAzOC0yNS41MTItNDQuMTg4LTI1LjUxMmMtMjguMTIyLDAtNTEsMjIuODc4LTUxLDUxYzAsMjguMTIxLDIyLjg3OCw1MSw1MSw1MQoJCWMxOC4xNTIsMCwzNS4wODUtOS43NzYsNDQuMTkxLTI1LjUxNWw0NC4xNDMsMjUuNTQzQzIyMy4xNDIsMjU0LjY0NCwxODkuMjk0LDI3NC4xNzUsMTUzLDI3NC4xNzV6Ii8+CjwvZz4KPGc+Cgk8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjI1NSwxNjYuNTA4IDI0My42NjYsMTY2LjUwOCAyNDMuNjY2LDE1NS4xNzUgMjMyLjMzNCwxNTUuMTc1IDIzMi4zMzQsMTY2LjUwOCAyMjEsMTY2LjUwOCAKCQkyMjEsMTc3Ljg0MSAyMzIuMzM0LDE3Ny44NDEgMjMyLjMzNCwxODkuMTc1IDI0My42NjYsMTg5LjE3NSAyNDMuNjY2LDE3Ny44NDEgMjU1LDE3Ny44NDEgCSIvPgo8L2c+CjxnPgoJPHBvbHlnb24gZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSIyOTcuNSwxNjYuNTA4IDI4Ni4xNjYsMTY2LjUwOCAyODYuMTY2LDE1NS4xNzUgMjc0LjgzNCwxNTUuMTc1IDI3NC44MzQsMTY2LjUwOCAyNjMuNSwxNjYuNTA4IAoJCTI2My41LDE3Ny44NDEgMjc0LjgzNCwxNzcuODQxIDI3NC44MzQsMTg5LjE3NSAyODYuMTY2LDE4OS4xNzUgMjg2LjE2NiwxNzcuODQxIDI5Ny41LDE3Ny44NDEgCSIvPgo8L2c+Cjwvc3ZnPgo=`}zigLogo(){return`CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTUzIDE0MCI+CjxnIGZpbGw9IiNmN2E0MWQiPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI0NiwyMiAyOCw0NCAxOSwzMCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNDYsMjIgMzMsMzMgMjgsNDQgMjIsNDQgMjIsOTUgMzEsOTUgMjAsMTAwIDEyLDExNyAwLDExNyAwLDIyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiLz4KCQk8cG9seWdvbiBwb2ludHM9IjMxLDk1IDEyLDExNyA0LDEwNiIvPgoJPC9nPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI1NiwyMiA2MiwzNiAzNyw0NCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNTYsMjIgMTExLDIyIDExMSw0NCAzNyw0NCA1NiwzMiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxMTYsOTUgOTcsMTE3IDkwLDEwNCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTE2LDk1IDEwMCwxMDQgOTcsMTE3IDQyLDExNyA0Miw5NSIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTAsMCA1MiwxMTcgMywxNDAgMTAxLDIyIi8+Cgk8L2c+Cgk8Zz4KCQk8cG9seWdvbiBwb2ludHM9IjE0MSwyMiAxNDAsNDAgMTIyLDQ1Ii8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTMsMjIgMTUzLDExNyAxMDYsMTE3IDEyMCwxMDUgMTI1LDk1IDEzMSw5NSAxMzEsNDUgMTIyLDQ1IDEzMiwzNiAxNDEsMjIiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTI1LDk1IDEzMCwxMTAgMTA2LDExNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=`}render(){let e=Yr.getIconForType(this.getNodeTypeFromIcon(this.icon));switch(this.icon){case E.OPENAPI:return T``;case E.GO:return T``;case E.TS:return T``;case E.CS:return T``;case E.C:return T``;case E.CPP:return T``;case E.ZIG:return T``}return T` +`,E;(function(e){e.VERSION=`version`,e.SCHEMA=`schema`,e.SCHEMAS=`schemas`,e.SCHEMA_TYPES=`types`,e.MEDIA_TYPE=`mediaType`,e.HEADER=`header`,e.EXAMPLE=`example`,e.EXAMPLES=`examples`,e.ENCODING=`encoding`,e.REQUEST_BODY=`requestBody`,e.REQUEST_BODIES=`requestBodies`,e.PARAMETER=`parameter`,e.PARAMETER_QUERY=`query`,e.COOKIE=`cookie`,e.PARAMETERS=`parameters`,e.LINK=`link`,e.LINKS=`links`,e.RESPONSE=`response`,e.RESPONSES=`responses`,e.OPERATION=`operation`,e.OPERATIONS=`operations`,e.CHANNEL=`channel`,e.CHANNELS=`channels`,e.SECURITY_SCHEME=`securityScheme`,e.SECURITY_SCHEMES=`securitySchemes`,e.EXTERNAL_DOCS=`externalDocs`,e.SECURITY=`security`,e.CALLBACK=`callback`,e.CALLBACKS=`callbacks`,e.PATH_ITEM=`pathItem`,e.PATH_ITEMS=`pathItems`,e.XML=`xml`,e.HEADERS=`headers`,e.SERVER=`server`,e.SERVERS=`servers`,e.SERVER_VARIABLE=`serverVariable`,e.PATHS=`paths`,e.COMPONENTS=`components`,e.CONTACT=`contact`,e.LICENSE=`license`,e.INFO=`info`,e.TAG=`tag`,e.TAGS=`tags`,e.DOCUMENT=`document`,e.WEBHOOK=`webhook`,e.WEBHOOKS=`webhooks`,e.EXTENSIONS=`extensions`,e.EXTENSION=`extension`,e.NO_EXAMPLE=`noExample`,e.POLYMORPHIC=`polymorphic`,e.ERROR=`error`,e.WARNING=`warning`,e.ROLODEX_FILE=`rolodex-file`,e.ROLODEX_FOLDER=`rolodex-dir`,e.OPENAPI=`openapi`,e.UPLOAD=`upload`,e.ADD=`add`,e.UNKNOWN=`unknown`,e.EXPAND_NODE=`expand-node`,e.POV_MODE=`pov-mode`,e.JS=`js`,e.GO=`go`,e.TS=`ts`,e.CS=`cs`,e.C=`c`,e.CPP=`cpp`,e.PHP=`php`,e.PY=`py`,e.HTML=`html`,e.MD=`md`,e.JAVA=`java`,e.RS=`rs`,e.ZIG=`zig`,e.RB=`rb`,e.YAML=`yaml`,e.JSON=`json`})(E||={});var Kr=`pb33f-theme-change`,qr=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jr,Yr;(function(e){e.tiny=`tiny`,e.small=`small`,e.smaller=`smaller`,e.medium=`medium`,e.large=`large`,e.huge=`huge`})(Yr||={});var Xr;(function(e){e.primary=`primary`,e.secondary=`secondary`,e.inverse=`inverse`,e.font=`font`,e.warning=`warning`,e.polymorphic=`polymorphic`,e.error=`error`,e.filtered=`filtered`})(Xr||={});var Zr=Jr=class extends St{getSize(){switch(this.size){case Yr.tiny:return`0.8rem`;case Yr.smaller:return`1.2rem`;case Yr.medium:return`1.4rem`;case Yr.large:return`1.8rem`;case Yr.huge:return`2rem`;default:return`1rem`}}getIconColor(){switch(this.color){case Xr.primary:return`var(--primary-color)`;case Xr.secondary:return`var(--secondary-color)`;case Xr.warning:return`var(--warn-color)`;case Xr.polymorphic:return`var(--warn-color)`;case Xr.error:return`var(--error-color)`;case Xr.inverse:return`var(--background-color)`;case Xr.filtered:return`var(--font-color-sub2)`;case Xr.font:default:return`var(--font-color)`}}constructor(){super(),this._themeHandler=()=>this.requestUpdate(),this.size=Yr.medium,this.color=Xr.primary}connectedCallback(){super.connectedCallback(),window.addEventListener(Kr,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(Kr,this._themeHandler)}isLightMode(){return document.documentElement.getAttribute(`theme`)===`light`}getNodeTypeFromIcon(e){return Object.values(E).includes(e)?e:E.SCHEMA}static getIconForType(e){switch(e){case E.DOCUMENT:return`stars`;case E.SCHEMA:return`box`;case E.CHANNEL:case E.CHANNELS:return`hash`;case E.SCHEMA_TYPES:return`diagram-3`;case E.MEDIA_TYPE:case E.XML:return`code-slash`;case E.HEADER:case E.HEADERS:return`envelope`;case E.EXAMPLE:case E.EXAMPLES:return`chat-left-quote`;case E.ENCODING:return`box-seam`;case E.REQUEST_BODY:case E.REQUEST_BODIES:return`box-arrow-in-right`;case E.PARAMETER:case E.PARAMETERS:case E.SERVER_VARIABLE:return`braces-asterisk`;case E.PARAMETER_QUERY:return`question-lg`;case E.COOKIE:return`cookie`;case E.LINK:case E.LINKS:return`link`;case E.RESPONSE:case E.RESPONSES:return`box-arrow-left`;case E.OPERATION:case E.OPERATIONS:return`gear-wide-connected`;case E.SECURITY_SCHEME:case E.SECURITY_SCHEMES:case E.SECURITY:return`shield-lock`;case E.CALLBACK:case E.CALLBACKS:return`telephone-outbound`;case E.PATH_ITEM:case E.PATH_ITEMS:return`geo`;case E.SERVER:case E.SERVERS:return`hdd-network`;case E.PATHS:return`compass`;case E.COMPONENTS:return`boxes`;case E.CONTACT:return`person-circle`;case E.LICENSE:return`patch-check`;case E.UPLOAD:return`upload`;case E.INFO:return`info-square`;case E.TAG:return`tag`;case E.TAGS:return`tags`;case E.VERSION:return`award`;case E.EXTENSIONS:case E.EXTENSION:return`plug`;case E.WEBHOOK:case E.WEBHOOKS:return`arrow-clockwise`;case E.NO_EXAMPLE:return`exclamation-circle`;case E.POLYMORPHIC:return`diagram-3`;case E.ERROR:return`x-square`;case E.WARNING:return`exclamation-triangle`;case E.ROLODEX_FOLDER:return`folder`;case E.ROLODEX_FILE:return`journal-code`;case E.JS:return`filetype-js`;case E.PHP:return`filetype-php`;case E.PY:return`filetype-py`;case E.HTML:return`filetype-html`;case E.MD:return`markdown`;case E.JAVA:return`filetype-java`;case E.EXTERNAL_DOCS:return`journals`;case E.RB:return`filetype-rb`;case E.EXPAND_NODE:return`node-plus`;case E.POV_MODE:return`binoculars`;default:return`box`}}openapiIcon(){return this.isLightMode()?`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogIzAwMDsiLz4KPC9zdmc+`:`PHN2ZyBpZD0icGIzM2Zfb3BlbmFwaSIgZGF0YS1uYW1lPSJwYjMzZl9vcGVuYXBpIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3ODQuMzcgNzg0LjI5Ij4KICA8cGF0aCBkPSJNMjA3LjI4LDQ1MC45N0guMzFjLjA0LDEuMDIuMDcsMi4wMy4xMiwzLjAzLjA4LDEuOTUuMjIsMy44OC4zNCw1LjgzLjA1Ljg0LjA5LDEuNjcuMTYsMi41LjE2LDIuMjUuMzUsNC41LjU2LDYuNzMuMDUuNTEuMDksMS4wMi4xNCwxLjUuMjQsMi41LjUxLDQuOTkuOCw3LjQ3LjAxLjI0LjA0LjQ4LjA4LjcyLjMzLDIuNjcuNjcsNS4zNSwxLjA2LDgsMCwuMDQsMCwuMDguMDEuMSwyLjM5LDE2LjU0LDUuOTYsMzIuODgsMTAuNyw0OC45LjAzLjA3LjA1LjEzLjA3LjIuNzUsMi41NCwxLjUzLDUuMDUsMi4zMyw3LjU0LjA1LjE0LjEuMy4xNC40NHMuMDkuMjkuMTQuNDRjLjczLDIuMjYsMS41LDQuNTEsMi4yOCw2Ljc3LjIuNTYuMzksMS4xNC42LDEuNzEuNjksMS45NSwxLjQsMy45LDIuMTMsNS44Ni4zNC44OC42NywxLjc1Ljk5LDIuNjQuNjQsMS42MiwxLjI2LDMuMjMsMS45LDQuODQuNDgsMS4yMi45OCwyLjQzLDEuNDksMy42My41MiwxLjI3LDEuMDUsMi41MSwxLjU4LDMuNzguNjUsMS41NCwxLjM1LDMuMDcsMi4wMyw0LjYyLjQxLjkyLjgyLDEuODIsMS4yMywyLjczLjg0LDEuODQsMS43LDMuNjksMi41OCw1LjUyLjI5LjU5LjU2LDEuMTguODUsMS43NSwxLjAyLDIuMTIsMi4wNSw0LjIsMy4xLDYuMjguMTguMzEuMzMuNjQuNS45NSwxLjE4LDIuMywyLjM4LDQuNTksMy42Miw2Ljg2LjA1LjEuMTIuMi4xNi4zMS4yNi40Ny41NS45My44MSwxLjRsMTc2Ljc2LTEwNi40Ny42NS0uMzljLTYuOTctMTQuNy0xMS4zMS0zMC4zMy0xMi45My00Ni4yMmgwWiIgc3R5bGU9ImZpbGw6ICMzNTllZDM7Ii8+CiAgPHBhdGggZD0iTTI1OC4xNSw1NDUuOTlsLS41LjUtMTQ1Ljc5LDE0NS43N2MuNzUuNjksMS40OSwxLjQxLDIuMjYsMi4wOCwxLjM2LDEuMjQsMi43NSwyLjQ2LDQuMTIsMy42Ny43Mi42MywxLjQxLDEuMjYsMi4xMywxLjg4LDEuNjUsMS40MywzLjMyLDIuODEsNC45OCw0LjIxLjQ2LjM4Ljg5Ljc1LDEuMzUsMS4xMiwyLjEyLDEuNzQsNC4yNiwzLjQ2LDYuNDIsNS4xNSwyLjA3LDEuNjMsNC4xNCwzLjIyLDYuMjYsNC44MS4wOS4wNS4xNi4xLjI0LjE3LDguOCw2LjU3LDE3LjksMTIuNzIsMjcuMjcsMTguNDQuMzEuMjEuNjQuMzkuOTcuNiwxLjc5LDEuMDYsMy41NywyLjEyLDUuMzcsMy4xNmwzLjI5LDEuODhjMS4wNS42LDIuMDgsMS4xOCwzLjEyLDEuNzUsMS45LDEuMDMsMy43OSwyLjA3LDUuNywzLjA3LjI2LjE0LjUyLjI5LjguNDIsNS4zLDIuNzcsMTAuNjgsNS4zNSwxNi4xMiw3LjgzbDUuMTgtMTIuNTcsNzMuMzMtMTc4LjA0LjI2LS42NWMtOC00LjI5LTE1LjY4LTkuMzYtMjIuODktMTUuMjdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik0yNDIuOTcsNTMxLjQ2Yy0xLjU3LTEuNzQtMy4wOC0zLjUzLTQuNTUtNS4zNi0xLjMxLTEuNjEtMi41Ni0zLjIzLTMuNzgtNC44OC0xLjQtMS44OC0yLjc2LTMuNzktNC4wNS01LjczLTEuMjktMS45NS0yLjU4LTMuOTEtMy43OC01LjlsLTE3Ni45OCwxMDYuNmMyLjcyLDQuNTIsNS41NCw4LjkyLDguNDUsMTMuMjYuMDkuMTYuMTguMzEuMjkuNDYuMDMuMDcuMDcuMS4xLjE3LjA5LjEzLjE4LjI5LjI3LjQzLjAxLjAxLjAzLjAzLjAzLjA1LjI0LjM0LjQ3LjY4LjcxLDEuMDMuMDEuMDEuMDMuMDQuMDUuMDdzLjAxLjAxLjAxLjAzYzMuMDcsNC41NCw2LjI0LDkuMDEsOS40OSwxMy4zOC4wNy4wOS4xNC4xOC4yMS4yNy4wOC4wOS4xNC4xOC4yMS4yNywxLjQzLDEuODcsMi44NCwzLjc0LDQuMyw1LjYuMi4yNS4zOC40OC41OS43MiwxLjQ5LDEuOTIsMy4wMiwzLjgyLDQuNTgsNS42OS4zNy40NC43NS44OSwxLjExLDEuMzUsMS40LDEuNjcsMi44LDMuMzMsNC4yMiw0Ljk4LjYxLjcxLDEuMjQsMS40MywxLjg3LDIuMTIsMS4yMiwxLjM5LDIuNDIsMi43NywzLjY2LDQuMTMuNjguNzUsMS4zOSwxLjUsMi4wOCwyLjI1LjMxLjM1LjYzLjY4Ljk1LDEuMDMuOS45OCwxLjgsMS45NiwyLjcyLDIuOTMuMzcuMzguNzYuNzYsMS4xMiwxLjE1LDEuNjEsMS42NywzLjI0LDMuMzYsNC44OSw1LjAxbDE0Ni4wMS0xNDUuOThjLTEuNjctMS42Ny0zLjI0LTMuNC00Ljc5LTUuMTNoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik00MzYuNSw1NDUuOTFjLTEuNjEsMS4yOS0zLjIzLDIuNTYtNC44OCwzLjc4bC4zNS42MSwxMDYuNDYsMTc2LjY4YzQuOTMtMy4yMiw5LjgxLTYuNTQsMTQuNTctMTAuMDMsMTAuMy03LjYsMjAuMjctMTUuODMsMjkuODgtMjQuN2wtMTQ1LjgtMTQ1Ljc3LS41OC0uNThaIiBzdHlsZT0iZmlsbDogIzYyYzRmZjsiLz4KICA8cGF0aCBkPSJNNTIyLjk2LDcyOC40NGwtMy42MS02LTk5LjM3LTE2NC45MmMtMi4wMSwxLjItNC4wNywyLjMtNi4xMiwzLjQtMi4wOCwxLjEyLTQuMTYsMi4xNi02LjI4LDMuMTYtMTkuMDksOS4wNS0zOS43NSwxMy42OC02MC40NSwxMy42OC0xMy41NiwwLTI3LjEtMS45Ni00MC4yMS01Ljg3LTIuMjQtLjY3LTQuNDItMS41NC02LjYyLTIuMzMtMi4yMS0uNzctNC40NS0xLjQ1LTYuNjItMi4zNGwtNzMuMjcsMTc3LjkzLTIuODYsNi45Ny0yLjQ2LDUuOTh2LjAzYy4xNy4wOC4zNy4xNC41NS4yMi4yMS4wOC40MS4xNC42LjI0aC4wM2MuMDUuMDMuMS4wNC4xNC4wNSwxLjczLjcyLDMuNDYsMS4zMiw1LjIsMiwyLjE4Ljg1LDQuMzUsMS43MSw2LjU0LDIuNTEsMS4xMi40MSwyLjIyLjg4LDMuMzMsMS4yN2guMDFjMjIuOTYsOC4xLDQ2LjcxLDEzLjc5LDcwLjg1LDE2Ljk2Ljk1LjEyLDEuODguMjUsMi44NC4zOC45OC4xMiwxLjk3LjIxLDIuOTcuMzMsMS44Ni4yMSwzLjcxLjQyLDUuNTguNmwxLjM5LjEyYzIuMjkuMjIsNC41OC40Miw2Ljg1LjU4Ljc4LjA3LDEuNTcuMDksMi4zNC4xNiwyLC4xMyw0LC4yNSw2LC4zNCwxLjIzLjA4LDIuNDYuMSwzLjY5LjE2LDEuNi4wNSwzLjE4LjEyLDQuNzcuMTcsMi4yOS4wNSw0LjYuMDcsNi45LjA4LjU1LDAsMS4wOS4wMSwxLjYzLjAzLDE5LjI5LDAsMzguNTctMS42MSw1Ny42NS00LjgxLjMxLS4wNS42NC0uMS45Ny0uMTQsMi4wMS0uMzUsNC4wMy0uNzMsNi4wNC0xLjEsMS4xNS0uMjIsMi4zMS0uNDQsMy40NC0uNjcsMS4xOC0uMjUsMi4zNy0uNDgsMy41NC0uNzUsMS45Ni0uNDEsMy45Mi0uODQsNS45LTEuMjkuMzUtLjA4LjcxLS4xNCwxLjA2LS4yNSwyOS02Ljc1LDU3LjAxLTE3LjIxLDgzLjMxLTMxLjA1aDBjMS43My0uOTIsMy40MS0xLjk1LDUuMTMtMi44OSwyLjA0LTEuMTEsNC4wNy0yLjI4LDYuMTEtMy40NCwxLjQtLjgsMi44Mi0xLjU0LDQuMjItMi4zOC4wMS0uMDEuMDMtLjAzLjA0LS4wM2guMDFzLjA0LS4wMy4wNy0uMDRsLjAzLS4wMy0uMjYtLjQzLjI2LjQzcy4wMy0uMDEuMDQtLjAxYy4wMy0uMDEuMDQtLjAzLjA3LS4wNC4wOC0uMDUuMTYtLjA5LjI0LS4xNC40NC0uMjcuOS0uNTQsMS4zNi0uODFsLTMuNTgtNS45OVpNMjU4LjIzLDMyOC4wNWMxLjYxLTEuMzEsMy4yNC0yLjU2LDQuODgtMy43OWwtLjM1LS42LTEwNi40Ni0xNzYuN2MtNC45NCwzLjIzLTkuODIsNi41Ni0xNC41OSwxMC4wNS0xMC4yOSw3LjU4LTIwLjI3LDE1LjgxLTI5Ljg1LDI0LjY2bDE0NS44LDE0NS43OS41OC41OVoiIHN0eWxlPSJmaWxsOiAjMzU5ZWQzOyIvPgogIDxwYXRoIGQ9Ik0xMDEuNzUsMTkxLjM5Yy0xLjY2LDEuNjYtMy4yMywzLjM3LTQuODUsNS4wNS0xLjYxLDEuNjktMy4yNiwzLjM2LTQuODQsNS4wNi0xMC42NCwxMS41MS0yMC41LDIzLjcyLTI5LjUsMzYuNTYtLjQzLjU5LS44NSwxLjIyLTEuMjgsMS44Mi0uOTksMS40Ni0xLjk5LDIuOTItMi45NSw0LjM4LTEuMDIsMS41Mi0yLjAzLDMuMDYtMy4wMSw0LjU5LS4zNy41Ni0uNzMsMS4xNC0xLjA5LDEuN0MyMC43LDMwMy4xNCwyLjczLDM2Mi44LjMxLDQyMi45NmMtLjA5LDIuMzQtLjE0LDQuNjgtLjIsNy4wMS0uMDQsMi4zMy0uMTIsNC42Ny0uMTIsN2gyMDYuNDljMC0yLjMzLjIxLTQuNjUuMzQtNywuMTItMi4zNC4xNC00LjY4LjM4LTcuMDEsMi42Ny0yNi44OCwxMy4wNS01My4xNCwzMS4xNC03NS4xOCwxLjQ2LTEuNzksMy4xMi0zLjQ4LDQuNzEtNS4yLDEuNTYtMS43NCwzLjAyLTMuNTMsNC42OS01LjJMMTAxLjc1LDE5MS4zOVpNNTI3LjgsMTQwLjE0Yy0uMjctLjE3LS41OC0uMzQtLjg1LS41MS0xLjgyLTEuMTEtMy42NS0yLjE4LTUuNDktMy4yNi0xLjA2LS42MS0yLjEzLTEuMjItMy4xOS0xLjgyLTEuMDktLjYtMi4xNC0xLjItMy4yMy0xLjc5LTEuODctMS4wMi0zLjc0LTIuMDMtNS42MS0zLjAzLS4zLS4xNC0uNTktLjMtLjg5LS40Ni0xMi4xMS02LjMzLTI0LjU0LTExLjktMzcuMjQtMTYuNzQtLjMzLS4xMy0uNjUtLjI2LS45OC0uMzgtMi43Ny0xLjAzLTUuNTQtMi4wNy04LjM0LTMuMDMtMjIuNTYtNy44Ny00NS44OC0xMy40LTY5LjU3LTE2LjUxbC0yLjktLjM5Yy0uOTgtLjEyLTEuOTUtLjIxLTIuOTItLjMxLTEuODctLjIyLTMuNzMtLjQzLTUuNjEtLjYxLS41MS0uMDUtMS4wMy0uMDgtMS41Ny0uMTQtMi4yMS0uMi00LjQ1LS4zOS02LjY3LS41NmwtMi42LS4xNmMtMS45LS4xMi0zLjgzLS4yNi01LjczLS4zNC0xLjAyLS4wNS0yLjA0LS4wOS0zLjA1LS4xMnYyMDYuOTdjMTAuNjIsMS4xLDIxLjE0LDMuMzYsMzEuMzUsNi44M2wxNTIuMzQtMTUyLjMxYy01LjY2LTMuOTItMTEuMzgtNy43NC0xNy4yNi0xMS4zMWgwWiIgc3R5bGU9ImZpbGw6ICM2MmM0ZmY7Ii8+CiAgPHBhdGggZD0iTTM0MC4zNyw4OS44Yy0yLjM0LjA1LTQuNjguMDUtNy4wMS4xNC0xNC42LjU5LTI5LjE4LDIuMDgtNDMuNjQsNC41MS0uMzEuMDUtLjYzLjEtLjk1LjE2LTIuMDMuMzUtNC4wNC43Mi02LjA1LDEuMS0xLjE0LjIyLTIuMjkuNDMtMy40NC42NS0xLjE5LjI0LTIuMzcuNDgtMy41Ni43NS0xLjk2LjQxLTMuOTIuODQtNS44NywxLjI5LS4zNy4wNy0uNzIuMTYtMS4wNy4yNC0yOC45OCw2Ljc3LTU2Ljk5LDE3LjIxLTgzLjMzLDMxLjA3LTEuNzEuOTItMy4zOSwxLjk1LTUuMSwyLjg4LTIuMDQsMS4xMi00LjA4LDIuMjgtNi4xMSwzLjQ0LTEuNS44OC0zLjAzLDEuNjctNC41NCwyLjU2LS4wMS4wMS0uMDQuMDMtLjA1LjAzLS4xLjA3LS4yMS4xMy0uMzEuMTgtLjM5LjI1LS44LjQ0LTEuMTkuNjh2LjAzczMuNjMsNiwzLjYzLDZsMTAyLjk3LDE3MC45M2MyLjAxLTEuMiw0LjA3LTIuMzEsNi4xMi0zLjQxLDIuMDctMS4xMSw0LjE2LTIuMTYsNi4yNi0zLjE1LDE0LjU1LTYuOTUsMzAuMTktMTEuMzMsNDYuMjMtMTIuOTYsMi4zMy0uMjQsNC42NS0uNDMsNy0uNTUsMi4zMy0uMTIsNC42Ny0uMjQsNy4wMS0uMjRWODkuNjVjLTIuMzQsMC00LjY3LjEtNywuMTRoMFoiIHN0eWxlPSJmaWxsOiAjZjZmOyIvPgogIDxwYXRoIGQ9Ik02OTQuMyw0MTkuOWMtLjEtMS44Ni0uMjEtMy43LS4zNC01LjU3LS4wNS0uOTItLjExLTEuODUtLjE4LTIuNzctLjE0LTIuMTgtLjMzLTQuMzctLjU0LTYuNTUtLjA0LS41Ni0uMDktMS4xMi0uMTQtMS42OS0uMjQtMi40NS0uNS00Ljg4LS43OC03LjMxLS4wMy0uMi0uMDQtLjM5LS4wNy0uNTlsLS4wNC0uMjdjLS4zMS0yLjYzLS42Ny01LjI2LTEuMDMtNy44N2wtLjA0LS4yNWMtMi4zOC0xNi41LTUuOTUtMzIuODItMTAuNjctNDguODEtLjA0LS4xMi0uMDctLjIxLS4xLS4zMS0uNzUtMi41LTEuNTItNC45Ny0yLjI5LTcuNDQtLjEyLS4zMy0uMjItLjY1LS4zMy0uOTgtLjczLTIuMjQtMS40OC00LjQ2LTIuMjUtNi42OGwtLjYzLTEuOGMtLjY4LTEuOTItMS4zOS0zLjg0LTIuMDktNS43Ny0uMzUtLjkyLS42OS0xLjgzLTEuMDYtMi43My0uNi0xLjYtMS4yMi0zLjE4LTEuODYtNC43NS0uNS0xLjI3LTEuMDEtMi41MS0xLjUyLTMuNzQtLjUxLTEuMjQtMS4wMy0yLjQ2LTEuNTQtMy42OS0uNjgtMS41Ny0xLjM3LTMuMTQtMi4wNy00LjY5LS4zOS0uODgtLjc4LTEuNzctMS4xOS0yLjY1LS44NS0xLjg2LTEuNzMtMy43My0yLjYtNS41OC0uMjctLjU1LS41NS0xLjEyLS44Mi0xLjY5LTEuMDItMi4xMi0yLjA3LTQuMjUtMy4xNC02LjM0LS4xNC0uMjktLjMtLjU5LS40NC0uODgtMS4xOS0yLjMxLTIuNDItNC42NC0zLjY1LTYuOTMtLjA1LS4wOC0uMDktLjE3LS4xNC0uMjUtNi0xMS4wMy0xMi42LTIxLjc0LTE5Ljc2LTMyLjA2bC0xNTIuMzgsMTUyLjM4YzMuNDYsMTAuMjEsNS43MSwyMC43NCw2LjgxLDMxLjM0aDIwN2MtLjA1LTEuMDMtLjA4LTIuMDctLjEzLTMuMDdoMFoiIHN0eWxlPSJmaWxsOiAjNjJjNGZmOyIvPgogIDxwYXRoIGQ9Ik00ODguMjQsNDM2Ljk3YzAsMi4zNC0uMjIsNC42Ny0uMzQsNy4wMXMtLjE2LDQuNjgtLjM5LDdjLTIuNjcsMjYuOS0xMy4wNCw1My4xNS0zMS4xMyw3NS4yMS0xLjQ2LDEuNzktMy4xMiwzLjQ2LTQuNzEsNS4yLTEuNTcsMS43My0zLjAyLDMuNTItNC42OSw1LjE5bDE0Ni4wMSwxNDUuOThjMS42Ni0xLjY2LDMuMjItMy4zNyw0Ljg0LTUuMDZzMy4yNy0zLjM1LDQuODQtNS4wNmMxMC44LTExLjcsMjAuNjgtMjMuOTQsMjkuNTgtMzYuNjYuMzctLjUxLjY5LTEuMDEsMS4wNS0xLjUsMS4wOS0xLjU2LDIuMTMtMy4xNCwzLjItNC43MS45My0xLjQxLDEuODYtMi44MSwyLjc2LTQuMjQuNDYtLjY4LjktMS4zOSwxLjMzLTIuMDcsMzMuNDktNTIuNTcsNTEuNDEtMTEyLjE3LDUzLjgyLTE3Mi4yOS4wOS0yLjMzLjE0LTQuNjcuMTgtNy4wMS4wNS0yLjMzLjEyLTQuNjUuMTItN2gtMjA2LjQ2WiIgc3R5bGU9ImZpbGw6ICNmNmY7Ii8+CiAgPHBhdGggZD0iTTc1Ni4wNCwyOC4zM2MtMzcuNzctMzcuNzctOTkuMDItMzcuNzctMTM2Ljc5LDAtMzAuMTQsMzAuMTItMzYuMTcsNzUuMTctMTguMjEsMTExLjMzbC0yMTAuNzIsMjEwLjdjLTM2LjE3LTE3Ljk0LTgxLjIyLTExLjkyLTExMS4zNiwxOC4yLTM3Ljc3LDM3Ljc3LTM3Ljc2LDk5LjAyLDAsMTM2Ljc5LDM3Ljc5LDM3Ljc3LDk5LjA0LDM3Ljc2LDEzNi44MiwwLDMwLjE0LTMwLjE0LDM2LjE1LTc1LjE4LDE4LjItMTExLjM1bDIxMC43Mi0yMTAuNjljMzYuMTgsMTcuOTQsODEuMjEsMTEuOTIsMTExLjM1LTE4LjIxLDM3Ljc3LTM3Ljc2LDM3Ljc3LTk5LDAtMTM2Ljc4aDBaIiBzdHlsZT0iZmlsbDogI2ZmZjsiLz4KPC9zdmc+`}goIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMzIgMzIuMDAwMDAxIj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIC0xMDIwLjM2MjIpIj4KICAgIDxlbGxpcHNlIGN4PSItOTA3LjM1NjU3IiBjeT0iNDc5LjkwMDA5IiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0ic2NhbGUoLTEgMSkgcm90YXRlKC02MC41NDgpIi8+CiAgICA8ZWxsaXBzZSBjeD0iLTg5MS41NzY1NCIgY3k9IjUwNy44NDYxIiBmaWxsPSIjMzg0ZTU0IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ4PSIzLjU3OTM5OTYiIHJ5PSIzLjgyMDc5NTMiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiIHRyYW5zZm9ybT0icm90YXRlKC02MC41NDgpIi8+CiAgICA8cGF0aCBmaWxsPSIjMzg0ZTU0IiBkPSJNMTYuMDkxNjkzIDEwMjEuMzY0MmMtMS4xMDU3NDkuMDEtMi4yMTAzNDEuMDQ5LTMuMzE2MDkuMDlDNi44NDIyNTU4IDEwMjEuNjczOCAyIDEwMjYuMzk0MiAyIDEwMzIuMzYyMnYyMGgyOHYtMjBjMC01Ljk2ODMtNC42NjczNDUtMTAuNDkxMi0xMC41OTAyMy0xMC45MDgtMS4xMDU3NS0uMDc4LTIuMjEyMzI4LS4wOTktMy4zMTgwNzctLjA5eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNNC42MDc4ODY3IDEwMjUuMDQ2MmMuNDU5NTY0LjI1OTUgMS44MTgyNjIgMS4yMDEzIDEuOTgwOTgzIDEuNjQ4LjE4MzQwMS41MDM1LjE1OTM4NSAxLjA2NTctLjExNDYxNCAxLjU1MS0uMzQ2NjI3LjYxMzgtMS4wMDUzNDEuOTQ4Ny0xLjY5NjQyMS45MzY1LS4zMzk4ODYtLjAxLTEuNzIwMjgzLS42MzcyLTIuMDQyNTYxLS44MTkyLS45Nzc1NC0uNTUxOS0xLjM1MDc5NS0xLjc0MTgtLjgzMzY4Ni0yLjY1NzYuNTE3MTA5LS45MTU4IDEuNzI4NzQ5LTEuMjEwNyAyLjcwNjI5OS0uNjU4N3oiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuMDg2NjY1OSIgaGVpZ2h0PSIzLjUzMTM2NjMiIHg9IjE0LjQwNjIxMyIgeT0iMTAzNS42ODQyIiBmaWxsLW9wYWNpdHk9Ii4zMjg1MDI0NiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiByeT0iLjYyNDI2MzI5IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMTYgMTAyMy4zNjIyYy05IDAtMTIgMy43MTUzLTEyIDl2MjBoMjRjLS4wNDg4OS03LjM1NjIgMC0xOCAwLTIwIDAtNS4yODQ4LTMtOS0xMi05eiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjNzZlMWZlIiBkPSJNMjcuMDc0MDczIDEwMjUuMDQ2MmMtLjQ1OTU3LjI1OTUtMS44MTgyNTcgMS4yMDEzLTEuOTgwOTc5IDEuNjQ4LS4xODM0MDEuNTAzNS0uMTU5Mzg0IDEuMDY1Ny4xMTQ2MTQgMS41NTEuMzQ2NjI3LjYxMzggMS4wMDUzMzUuOTQ4NyAxLjY5NjQxNS45MzY1LjMzOTg4LS4wMSAxLjcyMDI5LS42MzcyIDIuMDQyNTYtLjgxOTIuOTc3NTQtLjU1MTkgMS4zNTA3OS0xLjc0MTguODMzNjktMi42NTc2LS41MTcxMS0uOTE1OC0xLjcyODc2LTEuMjEwNy0yLjcwNjMtLjY1ODd6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjIxLjE3NTczNCIgY3k9IjEwMzAuMzU0MiIgcj0iNC42NTM3NTQyIiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxjaXJjbGUgY3g9IjEwLjMzOTQ4NiIgY3k9IjEwMzAuMzU0MiIgcj0iNC44MzE2MzQ1IiBmaWxsPSIjZmZmIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxyZWN0IHdpZHRoPSIzLjY2NzM2ODciIGhlaWdodD0iNC4xMDYzNDA5IiB4PSIxNC4xMTU4NjMiIHk9IjEwMzUuOTE3NCIgZmlsbC1vcGFjaXR5PSIuMzI5NDExNzYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcnk9Ii43MjU5MDUzNiIgc3R5bGU9Imlzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtzb2xpZC1jb2xvcjojMDAwO3NvbGlkLW9wYWNpdHk6MSIvPgogICAgPHJlY3Qgd2lkdGg9IjMuNjY3MzY4NyIgaGVpZ2h0PSI0LjEwNjM0MDkiIHg9IjE0LjExNTg2MyIgeT0iMTAzNS4yMjUzIiBmaWxsPSIjZmZmY2ZiIiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHJ5PSIuNzI1OTA1MzYiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxwYXRoIGZpbGwtb3BhY2l0eT0iLjMyOTQxMTc2IiBkPSJNMTkuOTk5NzM1IDEwMzYuNTI4OWMwIC44MzgtLjg3MTIyOCAxLjI2ODItMi4xNDQ3NjYgMS4xNjU5LS4wMjM2NiAwLS4wNDc5NS0uNjAwNC0uMjU0MTQ3LS41ODMyLS41MDM2NjkuMDQyLTEuMDk1OTAyLS4wMi0xLjY4NTk2NC0uMDItLjYxMjkzOSAwLTEuMjA2MzQyLjE4MjYtMS42ODU0OS4wMTctLjExMDIzMy0uMDM4LS4xNzgyOTguNTgzOC0uMjYxNTMyLjU4MTYtMS4yNDM2ODUtLjAzMy0yLjA3ODgwMy0uMzM4My0yLjA3ODgwMy0xLjE2MTggMC0xLjIxMTggMS44MTU2MzUtMi4xOTQxIDQuMDU1MzUxLTIuMTk0MSAyLjIzOTcwNCAwIDQuMDU1MzUxLjk4MjMgNC4wNTUzNTEgMi4xOTQxeiIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSIjYzM4Yzc0IiBkPSJNMTkuOTc3NDE0IDEwMzUuNzAwNGMwIC41Njg1LS40MzM2NTkuODU1NC0xLjEzODA5MSAxLjAwMDEtLjI5MTkzMy4wNi0uNjMwMzcxLjA5Ni0xLjAwMzcxOS4xMTY2LS41NjQwNS4wMzItMS4yMDc3ODIuMDMxLTEuODkxMjIuMDMxLS42NzI4MzQgMC0xLjMwNzE4MiAwLTEuODY0OTA0LS4wMjktLjMwNjI2OC0uMDE3LS41ODk0MjktLjA0My0uODQzMTY0LS4wODQtLjgxMzgzMy0uMTMxOC0xLjMyNDk2Mi0uNDE3LTEuMzI0OTYyLTEuMDM0NCAwLTEuMTYwMSAxLjgwNTY0Mi0yLjEwMDYgNC4wMzMwMy0yLjEwMDYgMi4yMjczNzcgMCA0LjAzMzAzLjk0MDUgNC4wMzMwMyAyLjEwMDZ6IiBjb2xvcj0iIzAwMCIgb3ZlcmZsb3c9InZpc2libGUiIHN0eWxlPSJpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7c29saWQtY29sb3I6IzAwMDtzb2xpZC1vcGFjaXR5OjEiLz4KICAgIDxlbGxpcHNlIGN4PSIxNS45NDQzODIiIGN5PSIxMDMzLjg1MDEiIGZpbGw9IiMyMzIwMWYiIGNvbG9yPSIjMDAwIiBvdmVyZmxvdz0idmlzaWJsZSIgcng9IjIuMDgwMTczMyIgcnk9IjEuMzQzNzQ3IiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIxMi40MTQyMDEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8Y2lyY2xlIGN4PSIyMy4xMTAxMjEiIGN5PSIxMDMwLjM1NDIiIHI9IjEuOTYzMDYzNCIgZmlsbD0iIzE3MTMxMSIgY29sb3I9IiMwMDAiIG92ZXJmbG93PSJ2aXNpYmxlIiBzdHlsZT0iaXNvbGF0aW9uOmF1dG87bWl4LWJsZW5kLW1vZGU6bm9ybWFsO3NvbGlkLWNvbG9yOiMwMDA7c29saWQtb3BhY2l0eToxIi8+CiAgICA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMzODRlNTQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIuMzk3MzA4NzQiIGQ9Ik01LjAwNTUzNzcgMTAyNy4yNzI3Yy0xLjE3MDQzNS0xLjA4MzUtMi4wMjY5NzMtLjc3MjEtMi4wNDQxNzItLjc0NjMiLz4KICAgIDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM4NGU1NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9Ii4zOTczMDg3NCIgZD0iTTQuMzg1MjQ1NyAxMDI2LjkxNTJjLTEuMTU4NTU3LjAzNi0xLjM0NjcwNC42MzAzLTEuMzM4ODEuNjUyM20yMy41ODQwOTczLS4zOTUxYzEuMTcwNDMtMS4wODM1IDIuMDI2OTctLjc3MjEgMi4wNDQxNy0uNzQ2MyIvPgogICAgPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMzg0ZTU0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS13aWR0aD0iLjM5NzMwODc0IiBkPSJNMjcuMzIxNzczIDEwMjYuNjczYzEuMTU4NTYuMDM2IDEuMzQ2Ny42MzAyIDEuMzM4OC42NTIyIi8+CiAgPC9nPgo8L3N2Zz4=`}typescriptIcon(){return`CjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiB3aWR0aD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9IiMzMTc4YzYiIGhlaWdodD0iNTEyIiByeD0iNTAiIHdpZHRoPSI1MTIiLz48cmVjdCBmaWxsPSIjMzE3OGM2IiBoZWlnaHQ9IjUxMiIgcng9IjUwIiB3aWR0aD0iNTEyIi8+PHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzE2LjkzOSA0MDcuNDI0djUwLjA2MWM4LjEzOCA0LjE3MiAxNy43NjMgNy4zIDI4Ljg3NSA5LjM4NnMyMi44MjMgMy4xMjkgMzUuMTM1IDMuMTI5YzExLjk5OSAwIDIzLjM5Ny0xLjE0NyAzNC4xOTYtMy40NDIgMTAuNzk5LTIuMjk0IDIwLjI2OC02LjA3NSAyOC40MDYtMTEuMzQyIDguMTM4LTUuMjY2IDE0LjU4MS0xMi4xNSAxOS4zMjgtMjAuNjVzNy4xMjEtMTkuMDA3IDcuMTIxLTMxLjUyMmMwLTkuMDc0LTEuMzU2LTE3LjAyNi00LjA2OS0yMy44NTdzLTYuNjI1LTEyLjkwNi0xMS43MzgtMTguMjI1Yy01LjExMi01LjMxOS0xMS4yNDItMTAuMDkxLTE4LjM4OS0xNC4zMTVzLTE1LjIwNy04LjIxMy0yNC4xOC0xMS45NjdjLTYuNTczLTIuNzEyLTEyLjQ2OC01LjM0NS0xNy42ODUtNy45LTUuMjE3LTIuNTU2LTkuNjUxLTUuMTYzLTEzLjMwMy03LjgyMi0zLjY1Mi0yLjY2LTYuNDY5LTUuNDc2LTguNDUxLTguNDQ4LTEuOTgyLTIuOTczLTIuOTc0LTYuMzM2LTIuOTc0LTEwLjA5MSAwLTMuNDQxLjg4Ny02LjU0NCAyLjY2MS05LjMwOHM0LjI3OC01LjEzNiA3LjUxMi03LjExOGMzLjIzNS0xLjk4MSA3LjE5OS0zLjUyIDExLjg5NC00LjYxNSA0LjY5Ni0xLjA5NSA5LjkxMi0xLjY0MiAxNS42NTEtMS42NDIgNC4xNzMgMCA4LjU4MS4zMTMgMTMuMjI0LjkzOCA0LjY0My42MjYgOS4zMTIgMS41OTEgMTQuMDA4IDIuODk0IDQuNjk1IDEuMzA0IDkuMjU5IDIuOTQ3IDEzLjY5NCA0LjkyOCA0LjQzNCAxLjk4MiA4LjUyOSA0LjI3NiAxMi4yODUgNi44ODR2LTQ2Ljc3NmMtNy42MTYtMi45Mi0xNS45MzctNS4wODQtMjQuOTYyLTYuNDkycy0xOS4zODEtMi4xMTItMzEuMDY2LTIuMTEyYy0xMS44OTUgMC0yMy4xNjMgMS4yNzgtMzMuODA1IDMuODMzcy0yMC4wMDYgNi41NDQtMjguMDkzIDExLjk2N2MtOC4wODYgNS40MjQtMTQuNDc2IDEyLjMzMy0xOS4xNzEgMjAuNzI5LTQuNjk1IDguMzk1LTcuMDQzIDE4LjQzMy03LjA0MyAzMC4xMTQgMCAxNC45MTQgNC4zMDQgMjcuNjM4IDEyLjkxMiAzOC4xNzIgOC42MDcgMTAuNTMzIDIxLjY3NSAxOS40NSAzOS4yMDQgMjYuNzUxIDYuODg2IDIuODE2IDEzLjMwMyA1LjU3OSAxOS4yNSA4LjI5MXMxMS4wODYgNS41MjggMTUuNDE1IDguNDQ4YzQuMzMgMi45MiA3Ljc0NyA2LjEwMSAxMC4yNTIgOS41NDMgMi41MDQgMy40NDEgMy43NTYgNy4zNTIgMy43NTYgMTEuNzMzIDAgMy4yMzMtLjc4MyA2LjIzMS0yLjM0OCA4Ljk5NXMtMy45MzkgNS4xNjItNy4xMjEgNy4xOTYtNy4xNDcgMy42MjQtMTEuODk0IDQuNzcxYy00Ljc0OCAxLjE0OC0xMC4zMDMgMS43MjEtMTYuNjY4IDEuNzIxLTEwLjg1MSAwLTIxLjU5Ny0xLjkwMy0zMi4yNC01LjcxLTEwLjY0Mi0zLjgwNi0yMC41MDItOS41MTYtMjkuNTc5LTE3LjEzem0tODQuMTU5LTEyMy4zNDJoNjQuMjJ2LTQxLjA4MmgtMTc5djQxLjA4Mmg2My45MDZ2MTgyLjkxOGg1MC44NzR6IiBmaWxsPSIjZmZmIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=`}csIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHdpZHRoPSIyMDQuOCIKICAgaGVpZ2h0PSIyMDQuOCIKICAgdmlld0JveD0iMCAwIDU0LjE4NjY2NiA1NC4xODY2NjciCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzEiCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczEyIj4KICAgIDxsaW5lYXJHcmFkaWVudAogICAgICAgaWQ9ImEiCiAgICAgICB4MT0iNDYuNzczIgogICAgICAgeDI9IjY5LjkwNyIKICAgICAgIHkxPSI4Ni40NjIiCiAgICAgICB5Mj0iMTI2LjczMiIKICAgICAgIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzMy45ODMgLTUxOC45NzQpIHNjYWxlKDguNzg5OTYpIgogICAgICAgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcAogICAgICAgICBzdG9wLWNvbG9yPSIjOTI3QkU1IgogICAgICAgICBpZD0ic3RvcDEiIC8+CiAgICAgIDxzdG9wCiAgICAgICAgIG9mZnNldD0iMSIKICAgICAgICAgc3RvcC1jb2xvcj0iIzUxMkJENCIKICAgICAgICAgaWQ9InN0b3AyIiAvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICAgIDxmaWx0ZXIKICAgICAgIGlkPSJiIgogICAgICAgd2lkdGg9IjQyLjg0NSIKICAgICAgIGhlaWdodD0iMzkuMTM2IgogICAgICAgeD0iNDQuNjI5IgogICAgICAgeT0iOTEuODkiCiAgICAgICBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiCiAgICAgICBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8ZmVGbG9vZAogICAgICAgICBmbG9vZC1vcGFjaXR5PSIwIgogICAgICAgICByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgaWQ9ImZlRmxvb2QyIiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MiIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGlkPSJmZU9mZnNldDIiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgzIiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIGlkPSJmZUJsZW5kMyIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgaW49IlNvdXJjZUFscGhhIgogICAgICAgICByZXN1bHQ9ImhhcmRBbHBoYSIKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDEyNyAwIgogICAgICAgICBpZD0iZmVDb2xvck1hdHJpeDQiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMSIKICAgICAgICAgaWQ9ImZlT2Zmc2V0NCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyCiAgICAgICAgIHN0ZERldmlhdGlvbj0iMi40OTkiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjQiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg1IiAvPgogICAgICA8ZmVCbGVuZAogICAgICAgICBpbjI9ImVmZmVjdDFfZHJvcFNoYWRvd18yMDM3XzI4MDAiCiAgICAgICAgIG1vZGU9Im5vcm1hbCIKICAgICAgICAgcmVzdWx0PSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBpZD0iZmVCbGVuZDUiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIGluPSJTb3VyY2VBbHBoYSIKICAgICAgICAgcmVzdWx0PSJoYXJkQWxwaGEiCiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAxMjcgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXg2IiAvPgogICAgICA8ZmVPZmZzZXQKICAgICAgICAgZHk9IjQiCiAgICAgICAgIGlkPSJmZU9mZnNldDYiIC8+CiAgICAgIDxmZUdhdXNzaWFuQmx1cgogICAgICAgICBzdGREZXZpYXRpb249IjIiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjYiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA5IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4NyIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QyX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0M19kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ3IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OCIgLz4KICAgICAgPGZlT2Zmc2V0CiAgICAgICAgIGR5PSI5IgogICAgICAgICBpZD0iZmVPZmZzZXQ4IiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIyLjUiCiAgICAgICAgIGlkPSJmZUdhdXNzaWFuQmx1cjgiIC8+CiAgICAgIDxmZUNvbG9yTWF0cml4CiAgICAgICAgIHR5cGU9Im1hdHJpeCIKICAgICAgICAgdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjA1IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4OSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3QzX2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NF9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQ5IiAvPgogICAgICA8ZmVDb2xvck1hdHJpeAogICAgICAgICBpbj0iU291cmNlQWxwaGEiCiAgICAgICAgIHJlc3VsdD0iaGFyZEFscGhhIgogICAgICAgICB0eXBlPSJtYXRyaXgiCiAgICAgICAgIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiCiAgICAgICAgIGlkPSJmZUNvbG9yTWF0cml4MTAiIC8+CiAgICAgIDxmZU9mZnNldAogICAgICAgICBkeT0iMTUiCiAgICAgICAgIGlkPSJmZU9mZnNldDEwIiAvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIKICAgICAgICAgc3RkRGV2aWF0aW9uPSIzIgogICAgICAgICBpZD0iZmVHYXVzc2lhbkJsdXIxMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXgKICAgICAgICAgdHlwZT0ibWF0cml4IgogICAgICAgICB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMDEgMCIKICAgICAgICAgaWQ9ImZlQ29sb3JNYXRyaXgxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW4yPSJlZmZlY3Q0X2Ryb3BTaGFkb3dfMjAzN18yODAwIgogICAgICAgICBtb2RlPSJub3JtYWwiCiAgICAgICAgIHJlc3VsdD0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgaWQ9ImZlQmxlbmQxMSIgLz4KICAgICAgPGZlQmxlbmQKICAgICAgICAgaW49IlNvdXJjZUdyYXBoaWMiCiAgICAgICAgIGluMj0iZWZmZWN0NV9kcm9wU2hhZG93XzIwMzdfMjgwMCIKICAgICAgICAgbW9kZT0ibm9ybWFsIgogICAgICAgICByZXN1bHQ9InNoYXBlIgogICAgICAgICBpZD0iZmVCbGVuZDEyIiAvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxwYXRoCiAgICAgZD0iTTEzNS43MzEgMjg1Ljg1djE3My45M2MwIDIxLjUxNyAxMS40NzggNDEuNDE4IDMwLjEyNSA1Mi4xNjhsMTUwLjYyNCA4Ni45NzZhNjAuMjIzIDYwLjIyMyAwIDAgMCA2MC4yNSAwbDE1MC42MjMtODYuOTc2YTYwLjIzNyA2MC4yMzcgMCAwIDAgMzAuMTI0LTUyLjE2OVYyODUuODUxYzAtMjEuNTI1LTExLjQ3Ny00MS40MjMtMzAuMTI0LTUyLjE3N0wzNzYuNzI5IDE0Ni43MmE2MC4yMSA2MC4yMSAwIDAgMC02MC4yNDkgMGwtMTUwLjYyNCA4Ni45NTRhNjAuMjQ1IDYwLjI0NSAwIDAgMC0zMC4xMjUgNTIuMTc3eiIKICAgICBmaWxsPSJ1cmwoI2EpIgogICAgIHRyYW5zZm9ybT0ibWF0cml4KC4xIDAgMCAuMSAtNy41NjcgLTEwLjE4OSkiCiAgICAgaWQ9InBhdGgxMiIgLz4KICA8cGF0aAogICAgIGQ9Ik01NC4wNTYgOTguMDN2Ni44NTVhMS43MTEgMS43MTEgMCAwIDAgMS43MTQgMS43MTQgMS43MTMgMS43MTMgMCAwIDAgMS43MTQtMS43MTQgMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMCA1LjE0IDUuMTQgMCAxIDEtMTAuMjgyIDB2LTYuODU0YTUuMTQgNS4xNCAwIDEgMSAxMC4yODIgMCAxLjcxMiAxLjcxMiAwIDEgMS0zLjQyNyAwIDEuNzEyIDEuNzEyIDAgMSAwLTMuNDI3IDB6bTI3LjQxOCA2Ljg1NWExLjcxMiAxLjcxMiAwIDAgMS0xLjcxNCAxLjcxNGgtMS43MTR2MS43MTNjMCAuNDU1LS4xOC44OTEtLjUwMiAxLjIxMmExLjcxIDEuNzEgMCAwIDEtMi40MjMgMCAxLjcxOSAxLjcxOSAwIDAgMS0uNTAyLTEuMjEydi0xLjcxM2gtMy40Mjd2MS43MTNhMS43MSAxLjcxIDAgMCAxLTEuNzE0IDEuNzE0IDEuNzEgMS43MSAwIDAgMS0xLjcxMy0xLjcxNHYtMS43MTNINjYuMDVhMS43MTMgMS43MTMgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMy40MjdINjYuMDVhMS43MTIgMS43MTIgMCAxIDEgMC0zLjQyN2gxLjcxNHYtMS43MTRhMS43MTMgMS43MTMgMCAxIDEgMy40MjcgMHYxLjcxM2gzLjQyN3YtMS43MTNhMS43MTIgMS43MTIgMCAxIDEgMy40MjcgMHYxLjcxM2gxLjcxNGMuNDU0IDAgLjg5LjE4IDEuMjExLjUwMmExLjcxIDEuNzEgMCAwIDEgMCAyLjQyMyAxLjcxMiAxLjcxMiAwIDAgMS0xLjIxMS41MDNoLTEuNzE0djMuNDI3aDEuNzE0YTEuNzE4IDEuNzE4IDAgMCAxIDEuNzE0IDEuNzEzem0tNi44NTUtNS4xNGgtMy40Mjd2My40MjdoMy40Mjd6IgogICAgIGZpbGw9IiNmZmYiCiAgICAgZmlsdGVyPSJ1cmwoI2IpIgogICAgIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpzY3JlZW4iCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoLjg3OSAwIDAgLjg3OSAtMzAuOTY1IC02Mi4wODYpIgogICAgIGlkPSJwYXRoMTMiIC8+Cjwvc3ZnPgo=`}cIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9IlVURi04IiBzdGFuZGFsb25lPSJubyI/Pgo8c3ZnCiAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHZpZXdCb3g9IjAgMCAzOC4wMDAwODkgNDIuMDAwMDMxIgogICB3aWR0aD0iMzgwLjAwMDg5IgogICBoZWlnaHQ9IjQyMC4wMDAzMSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMTAiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25zOC1jLXByb2dyYW1taW5nLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4wLjEgKDNiYzJlODEzZjUsIDIwMjAtMDktMDcpIj4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGExNiI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgICA8ZGM6dGl0bGU+PC9kYzp0aXRsZT4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGRlZnMKICAgICBpZD0iZGVmczE0IiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiM2NjY2NjYiCiAgICAgYm9yZGVyb3BhY2l0eT0iMSIKICAgICBvYmplY3R0b2xlcmFuY2U9IjEwIgogICAgIGdyaWR0b2xlcmFuY2U9IjEwIgogICAgIGd1aWRldG9sZXJhbmNlPSIxMCIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMCIKICAgICBpbmtzY2FwZTpwYWdlc2hhZG93PSIyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMTkyMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDU2IgogICAgIGlkPSJuYW1lZHZpZXcxMiIKICAgICBzaG93Z3JpZD0iZmFsc2UiCiAgICAgZml0LW1hcmdpbi10b3A9IjAiCiAgICAgZml0LW1hcmdpbi1sZWZ0PSIwIgogICAgIGZpdC1tYXJnaW4tcmlnaHQ9IjAiCiAgICAgZml0LW1hcmdpbi1ib3R0b209IjAiCiAgICAgaW5rc2NhcGU6em9vbT0iMS40ODk1ODMzIgogICAgIGlua3NjYXBlOmN4PSIxOTAiCiAgICAgaW5rc2NhcGU6Y3k9IjIxMC4wMDI4MiIKICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOmN1cnJlbnQtbGF5ZXI9InN2ZzEwIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzI4MzU5MyIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAxNy45MDMsMC4yODYyODE2NiBjIDAuNjc5LC0wLjM4MSAxLjUxNSwtMC4zODEgMi4xOTMsMCBDIDIzLjQ1MSwyLjE2OTI4MTcgMzMuNTQ3LDcuODM3MjgxNyAzNi45MDMsOS43MjAyODE3IDM3LjU4MiwxMC4xMDAyODIgMzgsMTAuODA0MjgyIDM4LDExLjU2NjI4MiBjIDAsMy43NjYgMCwxNS4xMDEgMCwxOC44NjcgMCwwLjc2MiAtMC40MTgsMS40NjYgLTEuMDk3LDEuODQ3IC0zLjM1NSwxLjg4MyAtMTMuNDUxLDcuNTUxIC0xNi44MDcsOS40MzQgLTAuNjc5LDAuMzgxIC0xLjUxNSwwLjM4MSAtMi4xOTMsMCAtMy4zNTUsLTEuODgzIC0xMy40NTEsLTcuNTUxIC0xNi44MDcsLTkuNDM0IC0wLjY3OCwtMC4zODEgLTEuMDk2LC0xLjA4NCAtMS4wOTYsLTEuODQ2IDAsLTMuNzY2IDAsLTE1LjEwMSAwLC0xOC44NjcgMCwtMC43NjIgMC40MTgsLTEuNDY2IDEuMDk3LC0xLjg0NzAwMDMgMy4zNTQsLTEuODgzIDEzLjQ1MiwtNy41NTEgMTYuODA2LC05LjQzNDAwMDA0IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoMiIKICAgICBzdHlsZT0iZmlsbDojMDA0NDgyO2ZpbGwtb3BhY2l0eToxIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzVjNmJjMCIKICAgICBmaWxsLXJ1bGU9ImV2ZW5vZGQiCiAgICAgZD0ibSAwLjMwNCwzMS40MDQyODIgYyAtMC4yNjYsLTAuMzU2IC0wLjMwNCwtMC42OTQgLTAuMzA0LC0xLjE0OSAwLC0zLjc0NCAwLC0xNS4wMTQgMCwtMTguNzU5IDAsLTAuNzU4IDAuNDE3LC0xLjQ1OCAxLjA5NCwtMS44MzYwMDAzIDMuMzQzLC0xLjg3MiAxMy40MDUsLTcuNTA3IDE2Ljc0OCwtOS4zODAwMDAwNCAwLjY3NywtMC4zNzkgMS41OTQsLTAuMzcxIDIuMjcxLDAuMDA4IDMuMzQzLDEuODcyMDAwMDQgMTMuMzcxLDcuNDU5MDAwMDQgMTYuNzE0LDkuMzMxMDAwMDQgMC4yNywwLjE1MiAwLjQ3NiwwLjMzNSAwLjY2LDAuNTc2MDAwMyB6IgogICAgIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICBpZD0icGF0aDQiCiAgICAgc3R5bGU9ImZpbGw6IzY1OWFkMjtmaWxsLW9wYWNpdHk6MSIgLz4KICA8cGF0aAogICAgIGZpbGw9IiNmZmZmZmYiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMTksNy4wMDAyODE3IGMgNy43MjcsMCAxNCw2LjI3MzAwMDMgMTQsMTQuMDAwMDAwMyAwLDcuNzI3IC02LjI3MywxNCAtMTQsMTQgLTcuNzI3LDAgLTE0LC02LjI3MyAtMTQsLTE0IDAsLTcuNzI3IDYuMjczLC0xNC4wMDAwMDAzIDE0LC0xNC4wMDAwMDAzIHogbSAwLDcuMDAwMDAwMyBjIDMuODYzLDAgNywzLjEzNiA3LDcgMCwzLjg2MyAtMy4xMzcsNyAtNyw3IC0zLjg2MywwIC03LC0zLjEzNyAtNywtNyAwLC0zLjg2NCAzLjEzNiwtNyA3LC03IHoiCiAgICAgY2xpcC1ydWxlPSJldmVub2RkIgogICAgIGlkPSJwYXRoNiIgLz4KICA8cGF0aAogICAgIGZpbGw9IiMzOTQ5YWIiCiAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgIGQ9Im0gMzcuNDg1LDEwLjIwNTI4MiBjIDAuNTE2LDAuNDgzIDAuNTA2LDEuMjExIDAuNTA2LDEuNzg0IDAsMy43OTUgLTAuMDMyLDE0LjU4OSAwLjAwOSwxOC4zODQgMC4wMDQsMC4zOTYgLTAuMTI3LDAuODEzIC0wLjMyMywxLjEyNyBsIC0xOS4wODQsLTEwLjUgeiIKICAgICBjbGlwLXJ1bGU9ImV2ZW5vZGQiCiAgICAgaWQ9InBhdGg4IgogICAgIHN0eWxlPSJmaWxsOiMwMDU5OWM7ZmlsbC1vcGFjaXR5OjEiIC8+Cjwvc3ZnPgo=`}cppIcon(){return`Cjw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8+CjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjQsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB3aWR0aD0iMzA2cHgiIGhlaWdodD0iMzQ0LjM1cHgiIHZpZXdCb3g9IjAgMCAzMDYgMzQ0LjM1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAzMDYgMzQ0LjM1IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzAwNTk5QyIgZD0iTTMwMi4xMDcsMjU4LjI2MmMyLjQwMS00LjE1OSwzLjg5My04Ljg0NSwzLjg5My0xMy4wNTNWOTkuMTRjMC00LjIwOC0xLjQ5LTguODkzLTMuODkyLTEzLjA1MkwxNTMsMTcyLjE3NQoJTDMwMi4xMDcsMjU4LjI2MnoiLz4KPHBhdGggZmlsbD0iIzAwNDQ4MiIgZD0iTTE2Ni4yNSwzNDEuMTkzbDEyNi41LTczLjAzNGMzLjY0NC0yLjEwNCw2Ljk1Ni01LjczNyw5LjM1Ny05Ljg5N0wxNTMsMTcyLjE3NUwzLjg5MywyNTguMjYzCgljMi40MDEsNC4xNTksNS43MTQsNy43OTMsOS4zNTcsOS44OTZsMTI2LjUsNzMuMDM0QzE0Ny4wMzcsMzQ1LjQwMSwxNTguOTYzLDM0NS40MDEsMTY2LjI1LDM0MS4xOTN6Ii8+CjxwYXRoIGZpbGw9IiM2NTlBRDIiIGQ9Ik0zMDIuMTA4LDg2LjA4N2MtMi40MDItNC4xNi01LjcxNS03Ljc5My05LjM1OC05Ljg5N0wxNjYuMjUsMy4xNTZjLTcuMjg3LTQuMjA4LTE5LjIxMy00LjIwOC0yNi41LDAKCUwxMy4yNSw3Ni4xOUM1Ljk2Miw4MC4zOTcsMCw5MC43MjUsMCw5OS4xNHYxNDYuMDY5YzAsNC4yMDgsMS40OTEsOC44OTQsMy44OTMsMTMuMDUzTDE1MywxNzIuMTc1TDMwMi4xMDgsODYuMDg3eiIvPgo8Zz4KCTxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xNTMsMjc0LjE3NWMtNTYuMjQzLDAtMTAyLTQ1Ljc1Ny0xMDItMTAyczQ1Ljc1Ny0xMDIsMTAyLTEwMmMzNi4yOTIsMCw3MC4xMzksMTkuNTMsODguMzMxLDUwLjk2OAoJCWwtNDQuMTQzLDI1LjU0NGMtOS4xMDUtMTUuNzM2LTI2LjAzOC0yNS41MTItNDQuMTg4LTI1LjUxMmMtMjguMTIyLDAtNTEsMjIuODc4LTUxLDUxYzAsMjguMTIxLDIyLjg3OCw1MSw1MSw1MQoJCWMxOC4xNTIsMCwzNS4wODUtOS43NzYsNDQuMTkxLTI1LjUxNWw0NC4xNDMsMjUuNTQzQzIyMy4xNDIsMjU0LjY0NCwxODkuMjk0LDI3NC4xNzUsMTUzLDI3NC4xNzV6Ii8+CjwvZz4KPGc+Cgk8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjI1NSwxNjYuNTA4IDI0My42NjYsMTY2LjUwOCAyNDMuNjY2LDE1NS4xNzUgMjMyLjMzNCwxNTUuMTc1IDIzMi4zMzQsMTY2LjUwOCAyMjEsMTY2LjUwOCAKCQkyMjEsMTc3Ljg0MSAyMzIuMzM0LDE3Ny44NDEgMjMyLjMzNCwxODkuMTc1IDI0My42NjYsMTg5LjE3NSAyNDMuNjY2LDE3Ny44NDEgMjU1LDE3Ny44NDEgCSIvPgo8L2c+CjxnPgoJPHBvbHlnb24gZmlsbD0iI0ZGRkZGRiIgcG9pbnRzPSIyOTcuNSwxNjYuNTA4IDI4Ni4xNjYsMTY2LjUwOCAyODYuMTY2LDE1NS4xNzUgMjc0LjgzNCwxNTUuMTc1IDI3NC44MzQsMTY2LjUwOCAyNjMuNSwxNjYuNTA4IAoJCTI2My41LDE3Ny44NDEgMjc0LjgzNCwxNzcuODQxIDI3NC44MzQsMTg5LjE3NSAyODYuMTY2LDE4OS4xNzUgMjg2LjE2NiwxNzcuODQxIDI5Ny41LDE3Ny44NDEgCSIvPgo8L2c+Cjwvc3ZnPgo=`}zigLogo(){return`CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTUzIDE0MCI+CjxnIGZpbGw9IiNmN2E0MWQiPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI0NiwyMiAyOCw0NCAxOSwzMCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNDYsMjIgMzMsMzMgMjgsNDQgMjIsNDQgMjIsOTUgMzEsOTUgMjAsMTAwIDEyLDExNyAwLDExNyAwLDIyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiLz4KCQk8cG9seWdvbiBwb2ludHM9IjMxLDk1IDEyLDExNyA0LDEwNiIvPgoJPC9nPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSI1NiwyMiA2MiwzNiAzNyw0NCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iNTYsMjIgMTExLDIyIDExMSw0NCAzNyw0NCA1NiwzMiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxMTYsOTUgOTcsMTE3IDkwLDEwNCIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTE2LDk1IDEwMCwxMDQgOTcsMTE3IDQyLDExNyA0Miw5NSIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIi8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTAsMCA1MiwxMTcgMywxNDAgMTAxLDIyIi8+Cgk8L2c+Cgk8Zz4KCQk8cG9seWdvbiBwb2ludHM9IjE0MSwyMiAxNDAsNDAgMTIyLDQ1Ii8+CgkJPHBvbHlnb24gcG9pbnRzPSIxNTMsMjIgMTUzLDExNyAxMDYsMTE3IDEyMCwxMDUgMTI1LDk1IDEzMSw5NSAxMzEsNDUgMTIyLDQ1IDEzMiwzNiAxNDEsMjIiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIvPgoJCTxwb2x5Z29uIHBvaW50cz0iMTI1LDk1IDEzMCwxMTAgMTA2LDExNyIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=`}render(){let e=Jr.getIconForType(this.getNodeTypeFromIcon(this.icon));switch(this.icon){case E.OPENAPI:return T``;case E.GO:return T``;case E.TS:return T``;case E.CS:return T``;case E.C:return T``;case E.CPP:return T``;case E.ZIG:return T``}return T` `}};Qr.styles=[Wr,Gr,Kr,zn],Jr([Tt()],Qr.prototype,`icon`,void 0),Jr([Tt({type:Xr})],Qr.prototype,`size`,void 0),Jr([Tt({type:Zr})],Qr.prototype,`color`,void 0),Jr([Tt()],Qr.prototype,`tooltip`,void 0),Qr=Yr=Jr([wt(`pb33f-model-icon`)],Qr);var $r=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ei=class extends Ct{constructor(){super(),this.handleWorkerMessage=e=>{e.data.nodes&&(this.results=e.data.nodes),this.activeNodeId=``,this.activeNodeIndex=-1;for(let e of this.results)this.unlightItem(e.id)},this.searchWorker=new Cee,this.results=[],this.searchWorker.addEventListener(`message`,this.handleWorkerMessage),this.currentSearch=``,this.activeNodeIndex=-1,this.activeNodeId=``}disconnectedCallback(){super.disconnectedCallback(),this.searchWorker&&(this.searchWorker.removeEventListener(`message`,this.handleWorkerMessage),this.searchWorker.terminate())}disableSearchPanel(){this.searchActive=!1,this.searchInput&&(this.searchInput.value=``),this.activeNodeId=``,this.activeNodeIndex=-1;for(let e of this.results)this.unlightItem(e.id)}inputChanged(){this.searchActive=!0,this.currentSearch=this.searchInput.value,this.graphResponse.nodes&&this.searchWorker.postMessage({searchGraph:this.graphResponse,searchKeyword:this.currentSearch})}highlightItem(e){let t=this.shadowRoot?.getElementById(`model_icon_`+e),n=this.shadowRoot?.getElementById(e);t&&(t.color=Zr.inverse),n&&n.classList.add(`search-result-active`)}unlightItem(e){let t=this.shadowRoot?.getElementById(`model_icon_`+e),n=this.shadowRoot?.getElementById(e);t&&(t.color=Zr.secondary),n&&n.classList.remove(`search-result-active`)}selectResult(e){e&&e.id?this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:e.id}})):this.activeNodeIndex=-1}keyboardControls(e){switch(e.key){case`ArrowDown`:this.activeNodeIndex>=0?this.results&&this.results.length>this.activeNodeIndex+1&&(this.unlightItem(this.results[this.activeNodeIndex].id),this.activeNodeIndex++,this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)):(this.activeNodeIndex=0,this.results[this.activeNodeIndex]&&(this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)));break;case`ArrowUp`:this.activeNodeIndex>0&&this.results&&this.results.length>this.activeNodeIndex-1&&(this.unlightItem(this.results[this.activeNodeIndex].id),this.activeNodeIndex--,this.activeNodeIndex>=0&&(this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)));break;case`Enter`:let e=this.results[this.activeNodeIndex];this.selectResult(e);break;case`Escape`:this.disableSearchPanel()}}render(){return T` + style="font-size: ${this.getSize()}; color: ${this.getIconColor()}">`}};Zr.styles=[Ur,Wr,Gr,zn],qr([wt()],Zr.prototype,`icon`,void 0),qr([wt({type:Yr})],Zr.prototype,`size`,void 0),qr([wt({type:Xr})],Zr.prototype,`color`,void 0),qr([wt()],Zr.prototype,`tooltip`,void 0),Zr=Jr=qr([Ct(`pb33f-model-icon`)],Zr);var Qr=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$r=class extends St{constructor(){super(),this.handleWorkerMessage=e=>{e.data.nodes&&(this.results=e.data.nodes),this.activeNodeId=``,this.activeNodeIndex=-1;for(let e of this.results)this.unlightItem(e.id)},this.searchWorker=new Cee,this.results=[],this.searchWorker.addEventListener(`message`,this.handleWorkerMessage),this.currentSearch=``,this.activeNodeIndex=-1,this.activeNodeId=``}disconnectedCallback(){super.disconnectedCallback(),this.searchWorker&&(this.searchWorker.removeEventListener(`message`,this.handleWorkerMessage),this.searchWorker.terminate())}disableSearchPanel(){this.searchActive=!1,this.searchInput&&(this.searchInput.value=``),this.activeNodeId=``,this.activeNodeIndex=-1;for(let e of this.results)this.unlightItem(e.id)}inputChanged(){this.searchActive=!0,this.currentSearch=this.searchInput.value,this.graphResponse.nodes&&this.searchWorker.postMessage({searchGraph:this.graphResponse,searchKeyword:this.currentSearch})}highlightItem(e){let t=this.shadowRoot?.getElementById(`model_icon_`+e),n=this.shadowRoot?.getElementById(e);t&&(t.color=Xr.inverse),n&&n.classList.add(`search-result-active`)}unlightItem(e){let t=this.shadowRoot?.getElementById(`model_icon_`+e),n=this.shadowRoot?.getElementById(e);t&&(t.color=Xr.secondary),n&&n.classList.remove(`search-result-active`)}selectResult(e){e&&e.id?this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:e.id}})):this.activeNodeIndex=-1}keyboardControls(e){switch(e.key){case`ArrowDown`:this.activeNodeIndex>=0?this.results&&this.results.length>this.activeNodeIndex+1&&(this.unlightItem(this.results[this.activeNodeIndex].id),this.activeNodeIndex++,this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)):(this.activeNodeIndex=0,this.results[this.activeNodeIndex]&&(this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)));break;case`ArrowUp`:this.activeNodeIndex>0&&this.results&&this.results.length>this.activeNodeIndex-1&&(this.unlightItem(this.results[this.activeNodeIndex].id),this.activeNodeIndex--,this.activeNodeIndex>=0&&(this.activeNodeId=this.results[this.activeNodeIndex].id,this.highlightItem(this.activeNodeId)));break;case`Enter`:let e=this.results[this.activeNodeIndex];this.selectResult(e);break;case`Escape`:this.disableSearchPanel()}}render(){return T`
@@ -1731,7 +1731,7 @@ @mouseenter="${()=>this.highlightItem(e.id)}" @mouseleave="${()=>this.unlightItem(e.id)}" @click="${()=>this.selectResult(e)}"> - ${n} ${e.searchKey?T` @@ -1739,7 +1739,7 @@
`})} ${this.results.length==0?T`
No results found for '${this.currentSearch}'
`:``} - `}};ei.styles=[Sn,Bn,zn],$r([Tt()],ei.prototype,`searchActive`,void 0),$r([kt(`sl-input.search-input`)],ei.prototype,`searchInput`,void 0),$r([Tt()],ei.prototype,`results`,void 0),ei=$r([wt(`pb33f-explorer-search-controls`)],ei);var ti=xe` + `}};$r.styles=[Sn,Bn,zn],Qr([wt()],$r.prototype,`searchActive`,void 0),Qr([Ot(`sl-input.search-input`)],$r.prototype,`searchInput`,void 0),Qr([wt()],$r.prototype,`results`,void 0),$r=Qr([Ct(`pb33f-explorer-search-controls`)],$r);var ei=xe` sl-button::part(base){ border: 1px solid var(--primary-color); border-radius: 0; @@ -1865,7 +1865,7 @@ color: var(--background-color); } -`,ni=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ri=class extends Ct{constructor(){super(),this.showAncestors=!0,this.searchComponent=new ei,this.equalizerClosed=!0,this.keyClosed=!0,this.renderEqualizer=!0}zoomIn(){this.dispatchEvent(new Event(Tn,{bubbles:!0,composed:!0}))}zoomOut(){this.dispatchEvent(new Event(En,{bubbles:!0,composed:!0}))}rotate(){this.dispatchEvent(new Event(Dn,{bubbles:!0,composed:!0}))}reset(){this.dispatchEvent(new Event(On,{bubbles:!0,composed:!0}))}toggleEqualizer(){this.povMode||(this.equalizerClosed=!this.equalizerClosed,this.equalizerClosed?this.dispatchEvent(new Event(An,{bubbles:!0,composed:!0})):(this.dispatchEvent(new Event(Mn,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(kn,{bubbles:!0,composed:!0}))))}toggleKey(){this.keyClosed=!this.keyClosed,this.keyClosed?this.dispatchEvent(new Event(Mn,{bubbles:!0,composed:!0})):(this.dispatchEvent(new Event(An,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(jn,{bubbles:!0,composed:!0})))}exitPovMode(){this.povMode=!1,this.showAncestors=!0,this.dispatchEvent(new Event(Ln,{bubbles:!0,composed:!0}))}toggleAncestors(){this.showAncestors=!this.showAncestors,this.dispatchEvent(new CustomEvent(Rn,{bubbles:!0,composed:!0,detail:{showAncestors:this.showAncestors}}))}render(){let e=T` +`,ti=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ni=class extends St{constructor(){super(),this.showAncestors=!0,this.searchComponent=new $r,this.equalizerClosed=!0,this.keyClosed=!0,this.renderEqualizer=!0}zoomIn(){this.dispatchEvent(new Event(Tn,{bubbles:!0,composed:!0}))}zoomOut(){this.dispatchEvent(new Event(En,{bubbles:!0,composed:!0}))}rotate(){this.dispatchEvent(new Event(Dn,{bubbles:!0,composed:!0}))}reset(){this.dispatchEvent(new Event(On,{bubbles:!0,composed:!0}))}toggleEqualizer(){this.povMode||(this.equalizerClosed=!this.equalizerClosed,this.equalizerClosed?this.dispatchEvent(new Event(An,{bubbles:!0,composed:!0})):(this.dispatchEvent(new Event(Mn,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(kn,{bubbles:!0,composed:!0}))))}toggleKey(){this.keyClosed=!this.keyClosed,this.keyClosed?this.dispatchEvent(new Event(Mn,{bubbles:!0,composed:!0})):(this.dispatchEvent(new Event(An,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(jn,{bubbles:!0,composed:!0})))}exitPovMode(){this.povMode=!1,this.showAncestors=!0,this.dispatchEvent(new Event(Ln,{bubbles:!0,composed:!0}))}toggleAncestors(){this.showAncestors=!this.showAncestors,this.dispatchEvent(new CustomEvent(Rn,{bubbles:!0,composed:!0,detail:{showAncestors:this.showAncestors}}))}render(){let e=T`
${n} - `}};ri.styles=[Sn,zn,ti],ni([Tt()],ri.prototype,`equalizerClosed`,void 0),ni([Tt()],ri.prototype,`keyClosed`,void 0),ni([Tt()],ri.prototype,`renderEqualizer`,void 0),ni([Tt()],ri.prototype,`povMode`,void 0),ni([Tt()],ri.prototype,`showAncestors`,void 0),ni([Tt()],ri.prototype,`povNode`,void 0),ri=ni([wt(`pb33f-explorer-orientation-controls`)],ri);var ii=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},ai=xe` + `}};ni.styles=[Sn,zn,ei],ti([wt()],ni.prototype,`equalizerClosed`,void 0),ti([wt()],ni.prototype,`keyClosed`,void 0),ti([wt()],ni.prototype,`renderEqualizer`,void 0),ti([wt()],ni.prototype,`povMode`,void 0),ti([wt()],ni.prototype,`showAncestors`,void 0),ti([wt()],ni.prototype,`povNode`,void 0),ni=ti([Ct(`pb33f-explorer-orientation-controls`)],ni);var ri=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},ii=xe` .element { padding-left: 5px; @@ -2285,7 +2285,7 @@ box-shadow: 0 0 20px 20px rgb(0, 0, 0, 0); } } -`,oi=class extends Ct{constructor(){super(),this._visible=!1}connectedCallback(){super.connectedCallback(),this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.componentVisible():this.componentHidden()})},{root:null,threshold:1}),this.observer.observe(this)}componentVisible(){this._visible=!0}componentHidden(){this._visible=!1}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect()}},vte=xe` +`,ai=class extends St{constructor(){super(),this._visible=!1}connectedCallback(){super.connectedCallback(),this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.componentVisible():this.componentHidden()})},{root:null,threshold:1}),this.observer.observe(this)}componentVisible(){this._visible=!0}componentHidden(){this._visible=!1}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect()}},yte=xe` .key { padding: 0 10px 10px 0; position: relative; @@ -2352,7 +2352,7 @@ em { font-family: var(--font-stack-italic), monospace; } -`,yte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},si=class extends oi{constructor(){super()}closeKey(){this.dispatchEvent(new CustomEvent(Mn,{bubbles:!0,composed:!0}))}render(){return T` +`,bte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},oi=class extends ai{constructor(){super()}closeKey(){this.dispatchEvent(new CustomEvent(Mn,{bubbles:!0,composed:!0}))}render(){return T`

Explorer Key

@@ -2466,27 +2466,27 @@ Next object is polymorphic with no descendants.
- ${ui.getObjectTypes().map(e=>T` + ${li.getObjectTypes().map(e=>T`
+ size="${Yr.smaller}" class="object-icon"> ${e.label}
`)}
+ size="${Yr.smaller}" class="object-icon"> Focused View
+ size="${Yr.smaller}" class="object-icon"> Load More
- `}};si.styles=[vte],si=yte([wt(`pb33f-explorer-key`)],si);var ci=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},li;(function(e){e.NodeNodeBetweenLayers=`nodeNodeBetweenLayers`,e.NodeNode=`nodeNode`,e.EdgeNodeBetweenLayers=`edgeNodeBetweenLayers`,e.EdgeNode=`edgeNode`})(li||={});var bte=1e4,ui=class extends oi{static getObjectTypes(){return[{type:E.DOCUMENT,label:`Document`},{type:E.INFO,label:`Info`},{type:E.PATHS,label:`Paths`},{type:E.PATH_ITEM,label:`Path Item`},{type:E.OPERATION,label:`Operation`},{type:E.PARAMETER,label:`Parameter`},{type:E.REQUEST_BODY,label:`Request Body`},{type:E.RESPONSE,label:`Response`},{type:E.MEDIA_TYPE,label:`Media Type`},{type:E.SCHEMA,label:`Schema`},{type:E.COMPONENTS,label:`Components`},{type:E.SCHEMAS,label:`Schemas`},{type:E.RESPONSES,label:`Responses`},{type:E.PARAMETERS,label:`Parameters`},{type:E.REQUEST_BODIES,label:`Request Bodies`},{type:E.HEADERS,label:`Headers`},{type:E.SECURITY_SCHEMES,label:`Security Schemes`},{type:E.LINKS,label:`Links`},{type:E.CALLBACKS,label:`Callbacks`},{type:E.SERVERS,label:`Servers`},{type:E.SERVER,label:`Server`},{type:E.TAGS,label:`Tags`},{type:E.TAG,label:`Tag`},{type:E.EXTERNAL_DOCS,label:`External Docs`},{type:E.WEBHOOKS,label:`Webhooks`},{type:E.WEBHOOK,label:`Webhook`},{type:E.EXAMPLE,label:`Example`},{type:E.HEADER,label:`Header`},{type:E.LINK,label:`Link`},{type:E.CALLBACK,label:`Callback`},{type:E.SECURITY_SCHEME,label:`Security Scheme`},{type:E.POLYMORPHIC,label:`Polymorphic`}]}constructor(){super(),this.maxNodes=bte,this.initialized=!1,this._inPovMode=!1,this.renderEqualizer=!0,this.controls=new ri,this.keyComponent=new si,this.controls.searchComponent.graphResponse=this.graphResponse,this.equalizerOpen=!1,this.keyOpen=!1,this.equalizerWorker=new ii,this.boundHandleEQResult=this.handleEQResult.bind(this),this.boundOpenEqualizer=this.openEqualizer.bind(this),this.boundCloseEqualizer=this.closeEqualizer.bind(this),this.boundOpenKey=this.openKey.bind(this),this.boundCloseKey=this.closeKey.bind(this),this.boundExitPovMode=this.exitPovMode.bind(this),this.boundHandleAncestorToggle=this.handleAncestorToggle.bind(this),this.equalizerWorker.addEventListener(`message`,this.boundHandleEQResult),this.controls.addEventListener(kn,this.boundOpenEqualizer),this.controls.addEventListener(An,this.boundCloseEqualizer),this.addEventListener(jn,this.boundOpenKey),this.addEventListener(Mn,this.boundCloseKey),this.controls.addEventListener(Ln,this.boundExitPovMode),this.controls.addEventListener(Rn,this.boundHandleAncestorToggle),this.firstBoot=!0}disconnectedCallback(){super.disconnectedCallback(),this.equalizerWorker.removeEventListener(`message`,this.boundHandleEQResult),this.equalizerWorker.terminate(),this.controls.removeEventListener(kn,this.boundOpenEqualizer),this.controls.removeEventListener(An,this.boundCloseEqualizer),this.removeEventListener(jn,this.boundOpenKey),this.removeEventListener(Mn,this.boundCloseKey),this.controls.removeEventListener(Ln,this.boundExitPovMode),this.controls.removeEventListener(Rn,this.boundHandleAncestorToggle)}updated(){this.controls.renderEqualizer=this.renderEqualizer,this.controls.povMode=this.povMode}async runEQ(e=!1){return this.runEQPromise=new Promise(t=>{let n={};n.graphResponse=this.graphResponse,n.rebuild=e,this.extractSpacing(n);let r=e=>{this.equalizerWorker.removeEventListener(`message`,r),t(e.data)};this.equalizerWorker.addEventListener(`message`,r),this._visible||e?this.equalizerWorker.postMessage(n):(this._cachedEQ=n,this.equalizerWorker.removeEventListener(`message`,r),t(n))}),this.runEQPromise}handleEQResult(e){if(e.data.povMode){this.povMode=!0,this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.controls.povMode=!0,this._inPovMode||=!0;let t={nodes:e.data.nodes,edges:e.data.edges,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!0,povNodeId:e.data.povNodeId};this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0,detail:{graph:t,spacing:t.spacing,povMode:!0,povNodeId:e.data.povNodeId}}))}else{if(this.controls.searchComponent.graphResponse=e.data,!this.firstBoot){let t={graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1};this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0,detail:t}))}this.initialized||=!0,(this.firstBoot||e.data.rebuild)&&(this.dispatchEvent(new CustomEvent(Nn,{bubbles:!0,composed:!0,detail:{graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1}})),this.firstBoot&&setTimeout(()=>{this.activeNode||this.navigateToRoot(),this.firstBoot=!1},2e3))}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}openEqualizer(){this.equalizerOpen=!0,this.controls.equalizerClosed=!1,this.requestUpdate()}closeEqualizer(){this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.requestUpdate()}closeKey(){this.keyOpen=!1,this.controls.keyClosed=!0,this.requestUpdate()}openKey(){this.keyOpen=!0,this.controls.keyClosed=!1,this.requestUpdate()}isInitialized(){return this.initialized}nodeSpacingRangeChanged(e){let t=this.shadowRoot?.querySelector(`#${e}`),n=parseInt(t.value);switch(e){case li.NodeNodeBetweenLayers:this.nodeNodeBetweenLayers=n;break;case li.NodeNode:this.nodeNode=n;break;case li.EdgeNodeBetweenLayers:this.edgeNodeBetweenLayers=n;break;case li.EdgeNode:this.edgeNode=n}}bendChanged(){this.bendEdges=!this.bendEdges,this.bendEdges&&(this.bendPoints=!0)}bendPointsChanged(){this.bendPoints=!this.bendPoints}exitPovMode(){this.povMode=!1,this._inPovMode=!1,this.controls.povMode=!1,this.controls.equalizerClosed=!0,this.controls.showAncestors=!0,this.runEQ(!0)}handleAncestorToggle(e){let t=e.detail.showAncestors;this.dispatchEvent(new CustomEvent(`reprocessPov`,{bubbles:!0,composed:!0,detail:{showAncestors:t}}))}async initializeEqualizer(){return new Promise(e=>{if(this.initialized){e(this.graphResponse);return}let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t)})}componentVisible(){super.componentVisible()}componentHidden(){super.componentHidden(),this.controls.searchComponent.disableSearchPanel()}async sendConfig(){return new Promise(e=>{let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t),this.closeEqualizer()})}extractSpacing(e){e.spacing={nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints}}equalizer(){return T` + `}};oi.styles=[yte],oi=bte([Ct(`pb33f-explorer-key`)],oi);var si=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ci;(function(e){e.NodeNodeBetweenLayers=`nodeNodeBetweenLayers`,e.NodeNode=`nodeNode`,e.EdgeNodeBetweenLayers=`edgeNodeBetweenLayers`,e.EdgeNode=`edgeNode`})(ci||={});var xte=1e4,li=class extends ai{static getObjectTypes(){return[{type:E.DOCUMENT,label:`Document`},{type:E.INFO,label:`Info`},{type:E.PATHS,label:`Paths`},{type:E.PATH_ITEM,label:`Path Item`},{type:E.OPERATION,label:`Operation`},{type:E.PARAMETER,label:`Parameter`},{type:E.REQUEST_BODY,label:`Request Body`},{type:E.RESPONSE,label:`Response`},{type:E.MEDIA_TYPE,label:`Media Type`},{type:E.SCHEMA,label:`Schema`},{type:E.COMPONENTS,label:`Components`},{type:E.SCHEMAS,label:`Schemas`},{type:E.RESPONSES,label:`Responses`},{type:E.PARAMETERS,label:`Parameters`},{type:E.REQUEST_BODIES,label:`Request Bodies`},{type:E.HEADERS,label:`Headers`},{type:E.SECURITY_SCHEMES,label:`Security Schemes`},{type:E.LINKS,label:`Links`},{type:E.CALLBACKS,label:`Callbacks`},{type:E.SERVERS,label:`Servers`},{type:E.SERVER,label:`Server`},{type:E.TAGS,label:`Tags`},{type:E.TAG,label:`Tag`},{type:E.EXTERNAL_DOCS,label:`External Docs`},{type:E.WEBHOOKS,label:`Webhooks`},{type:E.WEBHOOK,label:`Webhook`},{type:E.EXAMPLE,label:`Example`},{type:E.HEADER,label:`Header`},{type:E.LINK,label:`Link`},{type:E.CALLBACK,label:`Callback`},{type:E.SECURITY_SCHEME,label:`Security Scheme`},{type:E.POLYMORPHIC,label:`Polymorphic`}]}constructor(){super(),this.maxNodes=xte,this.initialized=!1,this._inPovMode=!1,this.renderEqualizer=!0,this.controls=new ni,this.keyComponent=new oi,this.controls.searchComponent.graphResponse=this.graphResponse,this.equalizerOpen=!1,this.keyOpen=!1,this.equalizerWorker=new ri,this.boundHandleEQResult=this.handleEQResult.bind(this),this.boundOpenEqualizer=this.openEqualizer.bind(this),this.boundCloseEqualizer=this.closeEqualizer.bind(this),this.boundOpenKey=this.openKey.bind(this),this.boundCloseKey=this.closeKey.bind(this),this.boundExitPovMode=this.exitPovMode.bind(this),this.boundHandleAncestorToggle=this.handleAncestorToggle.bind(this),this.equalizerWorker.addEventListener(`message`,this.boundHandleEQResult),this.controls.addEventListener(kn,this.boundOpenEqualizer),this.controls.addEventListener(An,this.boundCloseEqualizer),this.addEventListener(jn,this.boundOpenKey),this.addEventListener(Mn,this.boundCloseKey),this.controls.addEventListener(Ln,this.boundExitPovMode),this.controls.addEventListener(Rn,this.boundHandleAncestorToggle),this.firstBoot=!0}disconnectedCallback(){super.disconnectedCallback(),this.equalizerWorker.removeEventListener(`message`,this.boundHandleEQResult),this.equalizerWorker.terminate(),this.controls.removeEventListener(kn,this.boundOpenEqualizer),this.controls.removeEventListener(An,this.boundCloseEqualizer),this.removeEventListener(jn,this.boundOpenKey),this.removeEventListener(Mn,this.boundCloseKey),this.controls.removeEventListener(Ln,this.boundExitPovMode),this.controls.removeEventListener(Rn,this.boundHandleAncestorToggle)}updated(){this.controls.renderEqualizer=this.renderEqualizer,this.controls.povMode=this.povMode}async runEQ(e=!1){return this.runEQPromise=new Promise(t=>{let n={};n.graphResponse=this.graphResponse,n.rebuild=e,this.extractSpacing(n);let r=e=>{this.equalizerWorker.removeEventListener(`message`,r),t(e.data)};this.equalizerWorker.addEventListener(`message`,r),this._visible||e?this.equalizerWorker.postMessage(n):(this._cachedEQ=n,this.equalizerWorker.removeEventListener(`message`,r),t(n))}),this.runEQPromise}handleEQResult(e){if(e.data.povMode){this.povMode=!0,this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.controls.povMode=!0,this._inPovMode||=!0;let t={nodes:e.data.nodes,edges:e.data.edges,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!0,povNodeId:e.data.povNodeId};this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0,detail:{graph:t,spacing:t.spacing,povMode:!0,povNodeId:e.data.povNodeId}}))}else{if(this.controls.searchComponent.graphResponse=e.data,!this.firstBoot){let t={graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1};this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0,detail:t}))}this.initialized||=!0,(this.firstBoot||e.data.rebuild)&&(this.dispatchEvent(new CustomEvent(Nn,{bubbles:!0,composed:!0,detail:{graph:e.data,spacing:{nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints},povMode:!1}})),this.firstBoot&&setTimeout(()=>{this.activeNode||this.navigateToRoot(),this.firstBoot=!1},2e3))}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}openEqualizer(){this.equalizerOpen=!0,this.controls.equalizerClosed=!1,this.requestUpdate()}closeEqualizer(){this.equalizerOpen=!1,this.controls.equalizerClosed=!0,this.requestUpdate()}closeKey(){this.keyOpen=!1,this.controls.keyClosed=!0,this.requestUpdate()}openKey(){this.keyOpen=!0,this.controls.keyClosed=!1,this.requestUpdate()}isInitialized(){return this.initialized}nodeSpacingRangeChanged(e){let t=this.shadowRoot?.querySelector(`#${e}`),n=parseInt(t.value);switch(e){case ci.NodeNodeBetweenLayers:this.nodeNodeBetweenLayers=n;break;case ci.NodeNode:this.nodeNode=n;break;case ci.EdgeNodeBetweenLayers:this.edgeNodeBetweenLayers=n;break;case ci.EdgeNode:this.edgeNode=n}}bendChanged(){this.bendEdges=!this.bendEdges,this.bendEdges&&(this.bendPoints=!0)}bendPointsChanged(){this.bendPoints=!this.bendPoints}exitPovMode(){this.povMode=!1,this._inPovMode=!1,this.controls.povMode=!1,this.controls.equalizerClosed=!0,this.controls.showAncestors=!0,this.runEQ(!0)}handleAncestorToggle(e){let t=e.detail.showAncestors;this.dispatchEvent(new CustomEvent(`reprocessPov`,{bubbles:!0,composed:!0,detail:{showAncestors:t}}))}async initializeEqualizer(){return new Promise(e=>{if(this.initialized){e(this.graphResponse);return}let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t)})}componentVisible(){super.componentVisible()}componentHidden(){super.componentHidden(),this.controls.searchComponent.disableSearchPanel()}async sendConfig(){return new Promise(e=>{let t={};t.graphResponse=this.graphResponse,this.extractSpacing(t);let n=t=>{this.equalizerWorker.removeEventListener(`message`,n),e(t.data)};this.equalizerWorker.addEventListener(`message`,n),this.equalizerWorker.postMessage(t),this.closeEqualizer()})}extractSpacing(e){e.spacing={nodeNodeBetweenLayers:this.nodeNodeBetweenLayers,nodeNode:this.nodeNode,edgeNodeBetweenLayers:this.edgeNodeBetweenLayers,edgeNode:this.edgeNode,bendEdges:this.bendEdges,bendPoints:this.bendPoints}}equalizer(){return T`

Layout Settings

@@ -2494,15 +2494,15 @@
- ${this.nodeNodeBetweenLayers}
- ${this.nodeNode} @@ -2510,15 +2510,15 @@
- ${this.edgeNodeBetweenLayers}
- ${this.edgeNode} @@ -2554,7 +2554,7 @@ ${this.equalizerOpen?this.equalizer():null} ${this.keyOpen?this.key():null}
- `}};ui.styles=[Sn,ai,Bn,ti],ci([kt(`form`)],ui.prototype,`form`,void 0),ci([Tt({type:Number})],ui.prototype,`nodeNodeBetweenLayers`,void 0),ci([Tt({type:Number})],ui.prototype,`nodeNode`,void 0),ci([Tt({type:Number})],ui.prototype,`edgeNodeBetweenLayers`,void 0),ci([Tt({type:Number})],ui.prototype,`edgeNode`,void 0),ci([Tt({type:Boolean})],ui.prototype,`bendEdges`,void 0),ci([Tt({type:Boolean})],ui.prototype,`bendPoints`,void 0),ci([Tt({type:Boolean})],ui.prototype,`renderEqualizer`,void 0),ci([Tt({type:Boolean})],ui.prototype,`povMode`,void 0),ci([Tt({type:Number})],ui.prototype,`maxNodes`,void 0),ui=ci([wt(`pb33f-explorer-equalizer`)],ui);var di=xe` + `}};li.styles=[Sn,ii,Bn,ei],si([Ot(`form`)],li.prototype,`form`,void 0),si([wt({type:Number})],li.prototype,`nodeNodeBetweenLayers`,void 0),si([wt({type:Number})],li.prototype,`nodeNode`,void 0),si([wt({type:Number})],li.prototype,`edgeNodeBetweenLayers`,void 0),si([wt({type:Number})],li.prototype,`edgeNode`,void 0),si([wt({type:Boolean})],li.prototype,`bendEdges`,void 0),si([wt({type:Boolean})],li.prototype,`bendPoints`,void 0),si([wt({type:Boolean})],li.prototype,`renderEqualizer`,void 0),si([wt({type:Boolean})],li.prototype,`povMode`,void 0),si([wt({type:Number})],li.prototype,`maxNodes`,void 0),li=si([Ct(`pb33f-explorer-equalizer`)],li);var ui=xe` .change-icon { display: inline-block; margin-left: 6px; @@ -2587,7 +2587,7 @@ color: var(--font-color-sub1) } -`,fi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pi=class extends Ct{get changeCounts(){return Gt(this.node?.timeline)}get changeCategory(){return this.changeCounts.category}constructor(e,t){super(),this.disablePovMode=!1,this.hideExamples=!1,this.moreChildrenCount=0,this.nodeMap=e,this.violationMap=t||new Map,this.isLeaf=!1,this.refChecked=!1,this.outputs=[],this.inputs=[],this.dim=!1,this.expanded=!0}areDependentsVisible(){if(this.nodeMap&&this.node.nodes){for(let e=0;e=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fi=class extends St{get changeCounts(){return Gt(this.node?.timeline)}get changeCategory(){return this.changeCounts.category}constructor(e,t){super(),this.disablePovMode=!1,this.hideExamples=!1,this.moreChildrenCount=0,this.nodeMap=e,this.violationMap=t||new Map,this.isLeaf=!1,this.refChecked=!1,this.outputs=[],this.inputs=[],this.dim=!1,this.expanded=!0}areDependentsVisible(){if(this.nodeMap&&this.node.nodes){for(let e=0;e`:T``}countResults(){return Kt(this.node,this.violationMap)}hasVacuumResults(e=this.countResults()){return e.errors+e.warnings+e.info>0}renderVacuumResults(e=this.countResults()){if(this.node?.violationIds&&this.node.violationIds.length>0&&this.violationMap){let t=T``,n=T``,r=T``;return e.errors+e.warnings+e.info<=0?T``:(e.errors>0&&(t=T` - ${e.errors}`),e.warnings>0&&(n=T`${e.errors>0?T` | `:``} - ${e.warnings}`),e.info>0&&(r=T`${e.errors>0||e.warnings>0?T` | `:``} - ${e.info}`),T`
${t}${n}${r}
`)}}renderExtensions(){if(this.node?.extensions||this.nodeInstance?.extensions)return T`
 > - Extensions @@ -2653,7 +2653,7 @@
- ${this.label} ${n} @@ -2664,46 +2664,45 @@
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}};pi.styles=[ai,di],fi([Tt({type:Boolean})],pi.prototype,`active`,void 0),fi([Tt({type:Boolean})],pi.prototype,`expanded`,void 0),fi([Tt({type:Boolean})],pi.prototype,`inPovMode`,void 0),fi([Tt({type:Boolean})],pi.prototype,`disablePovMode`,void 0),fi([Tt({type:Boolean})],pi.prototype,`hideExamples`,void 0),fi([Tt({type:String})],pi.prototype,`povNodeId`,void 0),pi=fi([wt(`pb33f-explorer-graph-node`)],pi);function mi(e){return e?.label===`AsyncAPI`||typeof e?.instance?.asyncapi==`string`?`AsyncAPI Document`:`OpenAPI Document`}function hi(e,t){let n=xte(t);return n?T` + `}};fi.styles=[ii,ui],di([wt({type:Boolean})],fi.prototype,`active`,void 0),di([wt({type:Boolean})],fi.prototype,`expanded`,void 0),di([wt({type:Boolean})],fi.prototype,`inPovMode`,void 0),di([wt({type:Boolean})],fi.prototype,`disablePovMode`,void 0),di([wt({type:Boolean})],fi.prototype,`hideExamples`,void 0),di([wt({type:String})],fi.prototype,`povNodeId`,void 0),fi=di([Ct(`pb33f-explorer-graph-node`)],fi);function pi(e){return e?.label===`AsyncAPI`||typeof e?.instance?.asyncapi==`string`?`AsyncAPI Document`:`OpenAPI Document`}function mi(e,t){let n=Ste(t);return n?T` ${n}${e} - `:T``}function xte(e){let t=e?.action;return t===`send`||t===`receive`?t:void 0}var gi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_i=class extends pi{constructor(e){super(e)}renderDocument(){let e=[];e.push(T`
- - ${mi(this.node)} + `:T``}function Ste(e){let t=e?.action;return t===`send`||t===`receive`?t:void 0}var hi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gi=class extends fi{constructor(e){super(e)}renderDocument(){let e=[];e.push(T`
+ + ${pi(this.node)}
`),this.document?.version&&e.push(T`
 > - + Version ${this.document?.version}
`),this.document?.components&&e.push(T`
 > - + Components
`),this.document?.paths&&e.push(T`
 > - + Paths
`);for(let[t,n,r]of[[`Channels`,this.document?.channels,E.CHANNELS],[`Operations`,this.document?.operations,E.OPERATIONS]])n&&e.push(T`
 > - + ${t}${n}
`);return this.document?.tags&&e.push(T`
 > - + Tags ${this.document?.tags}
`),this.document?.security&&e.push(T`
 > - + Security Schemes ${this.document?.security}
`),this.document?.servers&&e.push(T`
 > - + Servers ${this.document?.servers} -
`),e}render(){if(mi(this.node)===`AsyncAPI Document`){let e=this.nodeInstance,t=e=>e&&typeof e==`object`?Object.keys(e).length:0;this.document={version:e?.asyncapi,channels:t(e?.channels),operations:t(e?.operations),servers:t(e?.servers),components:Object.entries(e?.components??{}).reduce((e,[n,r])=>e+(n.startsWith(`x-`)?0:t(r)),0)}}else this.document=this.nodeInstance;return this.renderNodeWrapper(this.renderDocument())}};_i.styles=[ai],_i=gi([wt(`pb33f-explorer-document-node`)],_i);var Ste=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- +
`),e}render(){if(pi(this.node)===`AsyncAPI Document`){let e=this.nodeInstance,t=e=>e&&typeof e==`object`?Object.keys(e).length:0;this.document={version:e?.asyncapi,channels:t(e?.channels),operations:t(e?.operations),servers:t(e?.servers),components:Object.entries(e?.components??{}).reduce((e,[n,r])=>e+(n.startsWith(`x-`)?0:t(r)),0)}}else this.document=this.nodeInstance;return this.renderNodeWrapper(this.renderDocument())}};gi.styles=[ii],gi=hi([Ct(`pb33f-explorer-document-node`)],gi);var Cte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_i=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+ Information ${this.renderDependentControl()}
`),this.info?.title&&e.push(T`
 > @@ -2711,8 +2710,8 @@
`),this.info?.version&&e.push(T`
 > Version ${this.info?.version} -
`),e}render(){return this.info=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};vi.styles=[ai,di],vi=Ste([wt(`pb33f-explorer-info-node`)],vi);var Cte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];if(e.push(T`
- +
`),e}render(){return this.info=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};_i.styles=[ii,ui],_i=Cte([Ct(`pb33f-explorer-info-node`)],_i);var wte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vi=class extends fi{constructor(e){super(e)}renderNode(){let e=[];if(e.push(T`
+ License
`),this.license?.name&&e.push(T`
 > ${this.license.name} @@ -2720,21 +2719,21 @@ ${this.license?.identifier}
`),e;e.push(T`
 > ${this.license?.url} -
`)}return e}render(){return this.license=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};yi.styles=[ai,di],yi=Cte([wt(`pb33f-explorer-license-node`)],yi);var wte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- `)}return e}render(){return this.license=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};vi.styles=[ii,ui],vi=wte([Ct(`pb33f-explorer-license-node`)],vi);var Tte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yi=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+ Contact
`),this.contact?.name&&e.push(T`
 > ${this.contact?.name} -
`),e}render(){return this.contact=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};bi.styles=[ai,di],bi=wte([wt(`pb33f-explorer-contact-node`)],bi);var Tte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xi=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(t=T``),e.push(T` +
`),e}render(){return this.contact=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};yi.styles=[ii,ui],yi=Tte([Ct(`pb33f-explorer-contact-node`)],yi);var Ete=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bi=class extends fi{constructor(e){super(e)}renderNode(){let e=[],t=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(t=T``),e.push(T`
- Tag ${t}
`),this.label&&e.push(T`
 > ${this.label} -
`),e}render(){return this.renderNodeWrapper(this.renderNode())}};xi.styles=[ai,di],xi=Tte([wt(`pb33f-explorer-tag-node`)],xi);var Si=xe` +
`),e}render(){return this.renderNodeWrapper(this.renderNode())}};bi.styles=[ii,ui],bi=Ete([Ct(`pb33f-explorer-tag-node`)],bi);var xi=xe` a { color: var(--primary-color); text-decoration: none; @@ -2749,75 +2748,75 @@ a:active { color: var(--primary-color); } -`,Ete=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ci=class extends pi{constructor(e){super(e)}renderNode(){let e=T``;this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(e=T``);let t=[];return t.push(T`
- +`,Dte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Si=class extends fi{constructor(e){super(e)}renderNode(){let e=T``;this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(e=T``);let t=[];return t.push(T`
+ Server ${e}
`),this.server?.url&&t.push(T``),this.server?.variables&&t.push(T`
 > - + Variables ${Object.keys(this.server.variables).length} -
`),t}render(){return this.server=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ci.styles=[ai,Si,di],Ci=Ete([wt(`pb33f-explorer-server-node`)],Ci);var Dte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wi=class extends pi{constructor(e){super(e)}renderDocument(){let e=[];return e.push(T` +
`),t}render(){return this.server=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Si.styles=[ii,xi,ui],Si=Dte([Ct(`pb33f-explorer-server-node`)],Si);var Ote=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ci=class extends fi{constructor(e){super(e)}renderDocument(){let e=[];return e.push(T`
- Components ${this.renderDependentControl()}
`),this.components?.schemas&&e.push(T`
 > - + Schemas ${Object.keys(this.components?.schemas).length}
`),this.components?.parameters&&e.push(T`
 > - + Parameters ${Object.keys(this.components?.parameters).length}
`),this.components?.responses&&e.push(T`
 > - + Responses ${Object.keys(this.components?.responses).length}
`),this.components?.requestBodies&&e.push(T`
 > - + Request Bodies ${Object.keys(this.components?.requestBodies).length}
`),this.components?.callbacks&&e.push(T`
 > - + Callbacks ${Object.keys(this.components?.callbacks).length}
`),this.components?.headers&&e.push(T`
 > - + Headers ${Object.keys(this.components?.headers).length}
`),this.components?.links&&e.push(T`
 > - + Links ${Object.keys(this.components?.links).length}
`),this.components?.securitySchemes&&e.push(T`
 > - + Security Schemes ${Object.keys(this.components?.securitySchemes).length}
`),this.components?.examples&&e.push(T`
 > - + Examples ${Object.keys(this.components?.examples).length}
`),this.components?.pathItems&&e.push(T`
 > - + Path Items ${Object.keys(this.components?.pathItems).length} -
`),e}render(){return this.components=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};wi.styles=[ai,di],wi=Dte([wt(`pb33f-explorer-components-node`)],wi);function Ote(e){return e&&typeof e==`object`&&e.$ref!==void 0&&typeof e.$ref==`string`}var Ti=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ei=class extends pi{constructor(e){super(e),this.embedded=!1}countExamples(e){return e?Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:1:0}schemaExampleCount(e){if(!e)return 0;let t=this.countExamples(e.examples);return e.example!==void 0&&t++,t}schemaDoesNotNeedExamples(e){let t=e.enum&&e.enum.length>0,n=e.type===`boolean`||Array.isArray(e.type)&&e.type.length===1&&e.type[0]===`boolean`,r=e.default!==void 0;return!!(t||n||r)}schemasHaveExampleCoverage(e){return e.length!==0&&e.every(e=>{if(Ote(e))return!1;let t=e;return this.schemaDoesNotNeedExamples(t)||this.schemaExampleCount(t)>0})}getExampleCoverage(e){if(!e)return{schemaExampleCount:0,allPropertiesHaveExamples:!1,allPolyChildrenHaveExamples:!1};if(this.cachedExampleCoverageSchema===e&&this.cachedExampleCoverage)return this.cachedExampleCoverage;let t=e.properties?Object.values(e.properties):[],n=[...e.anyOf||[],...e.oneOf||[],...e.allOf||[]],r={schemaExampleCount:this.schemaExampleCount(e),allPropertiesHaveExamples:this.schemasHaveExampleCoverage(t),allPolyChildrenHaveExamples:this.schemasHaveExampleCoverage(n)};return this.cachedExampleCoverageSchema=e,this.cachedExampleCoverage=r,r}renderNode(){let e=`Schema`;this.label&&(e=this.label);let t=[],n=T``;if(this.schema?.type&&(n=T`${this.schema.type}`,Array.isArray(this.schema.type)&&(n=T`${this.schema.type.map(e=>T`${e} `)}`)),this.embedded||t.push(T` +
`),e}render(){return this.components=this.nodeInstance,this.renderNodeWrapper(this.renderDocument())}};Ci.styles=[ii,ui],Ci=Ote([Ct(`pb33f-explorer-components-node`)],Ci);function kte(e){return e&&typeof e==`object`&&e.$ref!==void 0&&typeof e.$ref==`string`}var Ate=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wi=class extends fi{constructor(e){super(e),this.embedded=!1}countExamples(e){return e?Array.isArray(e)?e.length:typeof e==`object`?Object.keys(e).length:1:0}schemaExampleCount(e){if(!e)return 0;let t=this.countExamples(e.examples);return e.example!==void 0&&t++,t}schemaDoesNotNeedExamples(e){let t=e.enum&&e.enum.length>0,n=e.type===`boolean`||Array.isArray(e.type)&&e.type.length===1&&e.type[0]===`boolean`,r=e.default!==void 0;return!!(t||n||r)}schemasHaveExampleCoverage(e){return e.length!==0&&e.every(e=>{if(kte(e))return!1;let t=e;return this.schemaDoesNotNeedExamples(t)||this.schemaExampleCount(t)>0})}getExampleCoverage(e){if(!e)return{schemaExampleCount:0,allPropertiesHaveExamples:!1,allPolyChildrenHaveExamples:!1};if(this.cachedExampleCoverageSchema===e&&this.cachedExampleCoverage)return this.cachedExampleCoverage;let t=e.properties?Object.values(e.properties):[],n=[...e.anyOf||[],...e.oneOf||[],...e.allOf||[]],r={schemaExampleCount:this.schemaExampleCount(e),allPropertiesHaveExamples:this.schemasHaveExampleCoverage(t),allPolyChildrenHaveExamples:this.schemasHaveExampleCoverage(n)};return this.cachedExampleCoverageSchema=e,this.cachedExampleCoverage=r,r}renderNode(){let e=`Schema`;this.label&&(e=this.label);let t=[],n=T``;if(this.schema?.type&&(n=T`${this.schema.type}`,Array.isArray(this.schema.type)&&(n=T`${this.schema.type.map(e=>T`${e} `)}`)),this.embedded||t.push(T`
- ${e} ${n} ${this.renderDependentControl()} @@ -2831,21 +2830,21 @@ ${Object.keys(this.schema?.properties).length}
`)}if(this.schema?.anyOf||this.schema?.oneOf||this.schema?.allOf){let e=0,n=[];this.schema.anyOf&&(e+=this.schema.anyOf.length,n.push(T`anyOf `)),this.schema.oneOf&&(e+=this.schema.oneOf.length,n.push(T`oneOf `)),this.schema.allOf&&(e+=this.schema.allOf.length,n.push(T`allOf `)),t.push(T`
 > - + Polymorphic ${n} ${e}
`)}if(this.node?.isPoly&&this.node?.polyType!=``){let e=T``;this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(e=T``),t.push(T`
 > - + Poly${e} ${this.node.polyType}
`)}let r;this.nodeMap&&this.node&&this.nodeMap.has(this.node.parentId)&&(r=this.nodeMap.get(this.node.parentId));let i=0;r&&r.instance&&(i=this.schemaExampleCount(r.instance));let{schemaExampleCount:a,allPropertiesHaveExamples:o,allPolyChildrenHaveExamples:s}=this.getExampleCoverage(this.schema),c=o||s,l=a>0||i>0&&!c,u=l||c;if(!this.hideExamples&&l){let e=a>0?a:i;t.push(T`
 > - + Examples ${e}
`)}else!this.hideExamples&&!u&&t.push(T`
- + No Examples
`);return t}render(){if(this.schema=this.nodeInstance,this.embedded){let e=this.countResults(),t=this.changeCounts;return T`
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}return this.renderNodeWrapper(this.renderNode())}};Ei.styles=[ai,di],Ti([Tt({type:Boolean})],Ei.prototype,`embedded`,void 0),Ei=Ti([wt(`pb33f-explorer-schema-node`)],Ei);var kte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Di=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- + `}return this.renderNodeWrapper(this.renderNode())}};wi.styles=[ii,ui],Ate([wt({type:Boolean})],wi.prototype,`embedded`,void 0),wi=Ate([Ct(`pb33f-explorer-schema-node`)],wi);var jte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ti=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+ ${this.label} ${this.renderDependentControl()}
`),this.scheme?.type&&e.push(T`
 > @@ -2864,8 +2863,8 @@
`),this.scheme?.flows&&e.push(T`
 > Flows ${Object.keys(this.scheme?.flows).length} -
`),e}render(){return this.scheme=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Di.styles=[ai,di],Di=kte([wt(`pb33f-explorer-security-scheme-node`)],Di);var Ate=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oi=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.parameter?.schema&&!this.parameter.schema.hasOwnProperty(`$ref`)){let e=this.parameter.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}let n=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(n=T``),e.push(T`
- +
`),e}render(){return this.scheme=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ti.styles=[ii,ui],Ti=jte([Ct(`pb33f-explorer-security-scheme-node`)],Ti);var Mte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ei=class extends fi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.parameter?.schema&&!this.parameter.schema.hasOwnProperty(`$ref`)){let e=this.parameter.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}let n=T``;return this.node&&`arrayIndex`in this.node&&this.node.arrayIndex>=0&&(n=T``),e.push(T`
+ ${this.label}${n} ${t} ${this.renderDependentControl()}
`),this.parameter?.name&&e.push(T`
 > @@ -2880,11 +2879,11 @@ Deprecated
`),this.parameter?.content&&e.push(T`
 > - + Media Types ${Object.keys(this.parameter?.content).length} -
`),e}render(){return this.parameter=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Oi.styles=[ai,di],Oi=Ate([wt(`pb33f-explorer-parameter-node`)],Oi);var jte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ki=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.header?.schema&&!this.header.schema.hasOwnProperty(`$ref`)){let e=this.header.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
- +
`),e}render(){return this.parameter=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ei.styles=[ii,ui],Ei=Mte([Ct(`pb33f-explorer-parameter-node`)],Ei);var Nte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Di=class extends fi{constructor(e){super(e)}renderNode(){let e=[],t=T``;if(this.header?.schema&&!this.header.schema.hasOwnProperty(`$ref`)){let e=this.header.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
+ ${this.label} ${t} ${this.renderDependentControl()}
`),this.header?.style&&e.push(T`
 > @@ -2897,7 +2896,7 @@ Deprecated
`),this.header?.content&&e.push(T`
 > - + Media Types ${Object.keys(this.header?.content).length}
`),this.header?.schema&&e.push(T` @@ -2905,8 +2904,8 @@
- `),e}render(){return this.header=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ki.styles=[ai,di],ki=jte([wt(`pb33f-explorer-header-node`)],ki);var Mte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ai=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=this.label.replaceAll(`/`,`/`);return e.push(T`
- + `),e}render(){return this.header=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Di.styles=[ii,ui],Di=Nte([Ct(`pb33f-explorer-header-node`)],Di);var Pte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oi=class extends fi{constructor(e){super(e)}renderNode(){let e=[],t=this.label.replaceAll(`/`,`/`);return e.push(T`
+ ${t} ${this.renderDependentControl()}
`),this.requestBody?.required&&e.push(T`
 > @@ -2914,16 +2913,16 @@ Required
`),this.requestBody?.content&&e.push(T`
 > - + Media Types ${Object.keys(this.requestBody?.content).length} -
`),e}render(){return this.requestBody=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ai.styles=[ai,di],Ai=Mte([wt(`pb33f-explorer-request-body-node`)],Ai);var Nte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ji=class extends pi{constructor(e){super(e)}renderNode(){let e=[],t=T``,n=this.label.replaceAll(`/`,`/`);if(this.mediaType?.schema&&!this.mediaType.schema.hasOwnProperty(`$ref`)){let e=this.mediaType.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
- - ${Ft(n.toString())} ${t} +
`),e}render(){return this.requestBody=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Oi.styles=[ii,ui],Oi=Pte([Ct(`pb33f-explorer-request-body-node`)],Oi);var Fte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ki=class extends fi{constructor(e){super(e)}renderNode(){let e=[],t=T``,n=this.label.replaceAll(`/`,`/`);if(this.mediaType?.schema&&!this.mediaType.schema.hasOwnProperty(`$ref`)){let e=this.mediaType.schema;t=T`${e.type}`,Array.isArray(e.type)&&(t=T`${e.type.map(e=>T`${e} `)}`)}return e.push(T`
+ + ${Pt(n.toString())} ${t} ${this.renderDependentControl()}
`),this.mediaType?.encoding&&e.push(T`
 > - + Encoding ${Object.keys(this.mediaType?.encoding).length}
`),this.mediaType?.schema&&e.push(T` @@ -2931,29 +2930,29 @@
- `),e}render(){return this.mediaType=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ji.styles=[ai,di],ji=Nte([wt(`pb33f-explorer-media-type-node`)],ji);function Mi(e){return e?e>=100&&e<400?`http200`:e>=400&&e<500?`http400`:e>=500?`http500`:`pending`:`pending`}var Pte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ni=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- - ${this.label} + `),e}render(){return this.mediaType=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ki.styles=[ii,ui],ki=Fte([Ct(`pb33f-explorer-media-type-node`)],ki);function Ai(e){return e?e>=100&&e<400?`http200`:e>=400&&e<500?`http400`:e>=500?`http500`:`pending`:`pending`}var Ite=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ji=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
+ + ${this.label} ${this.renderDependentControl()}
`),this.response?.content&&e.push(T`
 > - + Media Types ${Object.keys(this.response?.content).length}
`),this.response?.headers&&e.push(T`
 > - + Headers ${Object.keys(this.response?.headers).length}
`),this.response?.links&&e.push(T`
 > - + Links ${Object.keys(this.response?.links).length} -
`),e}render(){return this.response=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ni.styles=[ai,Gr,di],Ni=Pte([wt(`pb33f-explorer-response-node`)],Ni);var Fte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` +
`),e}render(){return this.response=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};ji.styles=[ii,Wr,ui],ji=Ite([Ct(`pb33f-explorer-response-node`)],ji);var Lte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Mi=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- ${this.label} ${this.renderDependentControl()} @@ -2968,33 +2967,33 @@ Server: ${this.link.server.url}
`),this.link?.parameters&&e.push(T`
 > - + Link Parameters ${Object.keys(this.link?.parameters).length} -
`),e}render(){return this.link=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Pi.styles=[ai,Si,di],Pi=Fte([wt(`pb33f-explorer-link-node`)],Pi);var Ite=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fi=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` +
`),e}render(){return this.link=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Mi.styles=[ii,xi,ui],Mi=Lte([Ct(`pb33f-explorer-link-node`)],Mi);var Rte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ni=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- ${this.label}
`),Object.keys(this.callback).length>0&&e.push(T`
 > - + Expressions ${Object.keys(this.callback).filter(e=>!e.startsWith(`x-`)).length} -
`),e}render(){return this.callback=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Fi.styles=[ai,di],Fi=Ite([wt(`pb33f-explorer-callback-node`)],Fi);var Lte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ii=class extends pi{constructor(e){super(e)}renderStatsForOperation(e){let t=0,n=0,r=0,i=T``,a=T``,o=T``;return e.parameters&&(n=e.parameters.length,i=T` - `),e}render(){return this.callback=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ni.styles=[ii,ui],Ni=Rte([Ct(`pb33f-explorer-callback-node`)],Ni);var zte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pi=class extends fi{constructor(e){super(e)}renderStatsForOperation(e){let t=0,n=0,r=0,i=T``,a=T``,o=T``;return e.parameters&&(n=e.parameters.length,i=T` + (${n})`),e.responses&&(r=Object.keys(e.responses).length,a=T` - (${r})`),e.servers&&(t=e.servers.length,o=T` - (${t})`),T`${i}${a}${o}`}renderNode(){let e=[];if(e.push(T`
- ${this.renderDependentControl()} @@ -3032,68 +3031,84 @@ ${t}
`)}return this.pathItem?.parameters&&e.push(T`
 > - + Path Parameters ${Object.keys(this.pathItem?.parameters).length}
`),this.pathItem?.servers&&e.push(T`
 > - + Path Servers ${Object.keys(this.pathItem?.servers).length} -
`),e}render(){return this.pathItem=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ii.styles=[ai,di],Ii=Lte([wt(`pb33f-explorer-pathitem-node`)],Ii);var Rte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Li=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` +
`),e}render(){return this.pathItem=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Pi.styles=[ii,ui],Pi=zte([Ct(`pb33f-explorer-pathitem-node`)],Pi);var Fi=xe` + .operation-label { + display: inline-flex; + align-items: center; + gap: 0.4em; + vertical-align: middle; + } + + .operation-action::part(base) { + background-color: var(--primary-color); + color: var(--background-color); + } + + .operation-action[variant="success"]::part(base) { + background-color: var(--terminal-text); + } +`,Bte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ii=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- - ${hi(this.label,this.nodeInstance)} + ${mi(this.label,this.nodeInstance)} ${this.renderDependentControl()}
`),this.operation?.operationId&&e.push(T`
 > ID: ${this.operation.operationId}
`),this.operation?.callbacks&&e.push(T`
 > - + Callbacks ${Object.keys(this.operation?.callbacks).length}
`),this.operation?.parameters&&e.push(T`
 > - + Parameters ${Object.keys(this.operation?.parameters).length}
`),this.operation?.servers&&e.push(T`
 > - + Servers ${Object.keys(this.operation?.servers).length}
`),this.operation?.responses&&e.push(T`
 > - + Responses ${Object.keys(this.operation?.responses).length}
`),this.operation?.security&&e.push(T`
 > - + Security Reqs ${Object.keys(this.operation?.security).length}
`),this.operation?.tags&&e.push(T`
 > - + Tags ${Object.keys(this.operation?.tags).length}
`),this.operation?.deprecated&&e.push(T`
 > Deprecated -
`),e}render(){return this.operation=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Li.styles=[ai,Si,di],Li=Rte([wt(`pb33f-explorer-operation-node`)],Li);var zte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ri=class extends pi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T` +
`),e}render(){return this.operation=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ii.styles=[ii,xi,ui,Fi],Ii=Bte([Ct(`pb33f-explorer-operation-node`)],Ii);var Vte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Li=class extends fi{constructor(e){super(e)}renderNode(){let e=[];return e.push(T`
- XML
`),this.xml?.name&&e.push(T`
 > Name: ${this.xml.name} -
`),e}render(){return this.xml=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Ri.styles=[ai,di],Ri=zte([wt(`pb33f-explorer-xml-node`)],Ri);var Bte=xe` +
`),e}render(){return this.xml=this.nodeInstance,this.renderNodeWrapper(this.renderNode())}};Li.styles=[ii,ui],Li=Vte([Ct(`pb33f-explorer-xml-node`)],Li);var Hte=xe` .row { display: flex; align-items: center; @@ -3167,34 +3182,34 @@ .change-icon.added { border-color: rgba(0, 255, 0, 0.3); } -`,Vte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zi=class extends pi{constructor(e){super(e)}renderHeader(){switch(this.node?.type){case E.OPERATION:return T` +`,Ute=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ri=class extends fi{constructor(e){super(e)}renderHeader(){switch(this.node?.type){case E.OPERATION:return T`
- - ${hi(this.label,this.node?.instance)} + ${mi(this.label,this.node?.instance)} ${this.renderDependentControl()}
`;case E.PATH_ITEM:return T`
- ${this.renderDependentControl()}
`;case E.DOCUMENT:return T`
- - ${mi(this.node)} + ${pi(this.node)} ${this.renderDependentControl()}
`;default:return T`
- ${this.label} ${this.renderDependentControl()} -
`}}childRowClicked(e,t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:{nodeId:e}}))}getOwnChanges(e){if(!e.timeline?.length)return[];let t=e.childChanges;if(!t?.length)return e.timeline;let n=new Set;for(let e of t){let t=this.nodeMap?.get(e.nodeId);if(t?.timeline)for(let e of t.timeline)n.add(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`)}return e.timeline.filter(e=>!n.has(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`))}renderChildRows(){let e=this.node?.childChanges;return!e||e.length===0?ct:T`${e.map(e=>T` +
`}}childRowClicked(e,t){t.stopPropagation(),this.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:{nodeId:e}}))}getOwnChanges(e){if(!e.timeline?.length)return[];let t=e.childChanges;if(!t?.length)return e.timeline;let n=new Set;for(let e of t){let t=this.nodeMap?.get(e.nodeId);if(t?.timeline)for(let e of t.timeline)n.add(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`)}return e.timeline.filter(e=>!n.has(`${e.path}:${e.property}:${e.change}:${e.context?.newLine}:${e.context?.originalLine}`))}renderChildRows(){let e=this.node?.childChanges;return!e||e.length===0?st:T`${e.map(e=>T`
 > - ${e.type===E.OPERATION?hi(e.label,this.nodeMap?.get(e.nodeId)?.instance):e.type===E.PATH_ITEM?T``:T`${e.label}`} + ${e.type===E.OPERATION?mi(e.label,this.nodeMap?.get(e.nodeId)?.instance):e.type===E.PATH_ITEM?T``:T`${e.label}`}
`)}`}renderChanges(e=this.changeCounts){if(!this.node?.timeline?.length)return T``;if(!this.node.childChanges?.length)return super.renderChanges(e);let t=this.getOwnChanges(this.node);if(!t.length)return T``;let n=Gt(t),r=this.renderBadges(n.breaking,n.modifications,n.additions,n.removals);return r.length===0?T``:T`
${r}
`}render(){let e=this.countResults(),t=this.changeCounts;return T`
${this.renderUnderNodeAnnotations(e,t)} ${this.renderActiveArrow()} - `}};zi.styles=[ai,di,Bte],zi=Vte([wt(`pb33f-explorer-change-view-node`)],zi);var Hte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bi=class extends Ct{constructor(){super(...arguments),this.active=!1,this.visible=!0}configure(e){this.id=e.id,e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.width!==void 0&&(this.width=e.width),e.height!==void 0&&(this.height=e.height),this.body=e.body,e.active!==void 0&&(this.active=e.active),e.visible!==void 0&&(this.visible=e.visible),this.requestUpdate()}render(){if(!this.visible)return ot``;let e=``;return e=this.body?this.body:`Object Node`,this.x==null||this.y==null?ot``:ot` + `}};Ri.styles=[ii,ui,Hte,Fi],Ri=Ute([Ct(`pb33f-explorer-change-view-node`)],Ri);var Wte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zi=class extends St{constructor(){super(...arguments),this.active=!1,this.visible=!0}configure(e){this.id=e.id,e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.width!==void 0&&(this.width=e.width),e.height!==void 0&&(this.height=e.height),this.body=e.body,e.active!==void 0&&(this.active=e.active),e.visible!==void 0&&(this.visible=e.visible),this.requestUpdate()}render(){if(!this.visible)return at``;let e=``;return e=this.body?this.body:`Object Node`,this.x==null||this.y==null?at``:at`
${e}
-
`}};Bi=Hte([wt(`pb33f-explorer-foreign-object`)],Bi);function Vi(e){return function(){return e}}var Hi=Math.PI,Ui=2*Hi,Wi=1e-6,Ute=Ui-Wi;function Gi(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return Gi;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tWi){if(!(Math.abs(u*s-c*l)>Wi)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Hi-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Wi&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Wi||Math.abs(this._y1-l)>Wi)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Ui+Ui),d>Ute?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Wi&&this._append`A${n},${n},0,${+(d>=Hi)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};Ki.prototype;function Gte(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ki(t)}Array.prototype.slice;function Kte(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function qi(e){this._context=e}qi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function qte(e){return new qi(e)}function Jte(e){return e[0]}function Yte(e){return e[1]}function Xte(e,t){var n=Vi(!0),r=null,i=qte,a=null,o=Gte(s);e=typeof e==`function`?e:e===void 0?Jte:Vi(e),t=typeof t==`function`?t:t===void 0?Yte:Vi(t);function s(s){var c,l=(s=Kte(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Zte=(function e(t){function n(e){return t===1?new Yi(e):new Xi(e,t)}return n.beta=function(t){return e(+t)},n})(.85),Qte=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zi=class extends Ct{constructor(){super(),this.roundCorners=!1,this.edgePathStyle=`d3`,this.visible=!0,this.targetIsLeaf=!1,this.sections=[],this.isDependency=!1,this.dim=!1,this.animated=!0,this.changeCategory=Wt.NONE}configure(e){this.edge=e.edge,e.bendPoints!==void 0&&(this.bendPoints=e.bendPoints),e.bendCurve!==void 0&&(this.bendCurve=e.bendCurve),e.roundCorners!==void 0&&(this.roundCorners=e.roundCorners),e.edgePathStyle!==void 0&&(this.edgePathStyle=e.edgePathStyle),e.visible!==void 0&&(this.visible=e.visible),e.animated!==void 0&&(this.animated=e.animated),e.isDependency!==void 0&&(this.isDependency=e.isDependency),e.dim!==void 0&&(this.dim=e.dim),e.changeCategory!==void 0&&(this.changeCategory=e.changeCategory),this.requestUpdate()}render(){if(!this.visible)return ot``;let e=0;return this.sections.length=0,this.edge.sections?.forEach(t=>{let n=`arrow`;this.edge.ref.length>0&&(n=`arrow-ref`),this.edge.poly&&this.edge.poly!=``&&(n=`arrow-poly`),this.targetIsLeaf&&(n=`leaf`),this.targetIsLeaf&&this.edge.ref.length>0&&(n=`leaf-ref`),this.targetIsLeaf&&this.edge.poly&&this.edge.poly!=``&&(n=`leaf-poly`);let r=this.changeCategory!==Wt.NONE&&this.changeCategory!==Wt.MODIFIED;r&&(n===`arrow`?n=`arrow-${this.changeCategory}`:n===`leaf`&&(n=`leaf-${this.changeCategory}`));let i=ene(t,this.bendPoints),a=this.buildPath(i),o=[];this.edge.ref.length>0&&o.push(`ref`),this.targetIsLeaf&&o.push(`target-leaf`),this.edge.poly&&this.edge.poly!=``&&o.push(this.edge.poly),this.edge.dependency&&this.dim&&o.push(`dependency`),this.animated||o.push(`no-animation`),r&&o.push(`change-${this.changeCategory}`);let s=ot` + `}};zi=Wte([Ct(`pb33f-explorer-foreign-object`)],zi);function Bi(e){return function(){return e}}var Vi=Math.PI,Hi=2*Vi,Ui=1e-6,Gte=Hi-Ui;function Wi(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return Wi;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tUi){if(!(Math.abs(u*s-c*l)>Ui)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Vi-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Ui&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Ui||Math.abs(this._y1-l)>Ui)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Hi+Hi),d>Gte?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Ui&&this._append`A${n},${n},0,${+(d>=Vi)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};qte.prototype;function Jte(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new qte(t)}Array.prototype.slice;function Yte(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Xte(e){this._context=e}Xte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function Zte(e){return new Xte(e)}function Qte(e){return e[0]}function $te(e){return e[1]}function ene(e,t){var n=Bi(!0),r=null,i=Zte,a=null,o=Jte(s);e=typeof e==`function`?e:e===void 0?Qte:Bi(e),t=typeof t==`function`?t:t===void 0?$te:Bi(t);function s(s){var c,l=(s=Yte(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var nne=(function e(t){function n(e){return t===1?new Gi(e):new Ki(e,t)}return n.beta=function(t){return e(+t)},n})(.85),rne=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},qi=class extends St{constructor(){super(),this.roundCorners=!1,this.edgePathStyle=`d3`,this.visible=!0,this.targetIsLeaf=!1,this.sections=[],this.isDependency=!1,this.dim=!1,this.animated=!0,this.changeCategory=Wt.NONE}configure(e){this.edge=e.edge,e.bendPoints!==void 0&&(this.bendPoints=e.bendPoints),e.bendCurve!==void 0&&(this.bendCurve=e.bendCurve),e.roundCorners!==void 0&&(this.roundCorners=e.roundCorners),e.edgePathStyle!==void 0&&(this.edgePathStyle=e.edgePathStyle),e.visible!==void 0&&(this.visible=e.visible),e.animated!==void 0&&(this.animated=e.animated),e.isDependency!==void 0&&(this.isDependency=e.isDependency),e.dim!==void 0&&(this.dim=e.dim),e.changeCategory!==void 0&&(this.changeCategory=e.changeCategory),this.requestUpdate()}render(){if(!this.visible)return at``;let e=0;return this.sections.length=0,this.edge.sections?.forEach(t=>{let n=`arrow`;this.edge.ref.length>0&&(n=`arrow-ref`),this.edge.poly&&this.edge.poly!=``&&(n=`arrow-poly`),this.targetIsLeaf&&(n=`leaf`),this.targetIsLeaf&&this.edge.ref.length>0&&(n=`leaf-ref`),this.targetIsLeaf&&this.edge.poly&&this.edge.poly!=``&&(n=`leaf-poly`);let r=this.changeCategory!==Wt.NONE&&this.changeCategory!==Wt.MODIFIED;r&&(n===`arrow`?n=`arrow-${this.changeCategory}`:n===`leaf`&&(n=`leaf-${this.changeCategory}`));let i=ane(t,this.bendPoints),a=this.buildPath(i),o=[];this.edge.ref.length>0&&o.push(`ref`),this.targetIsLeaf&&o.push(`target-leaf`),this.edge.poly&&this.edge.poly!=``&&o.push(this.edge.poly),this.edge.dependency&&this.dim&&o.push(`dependency`),this.animated||o.push(`no-animation`),r&&o.push(`change-${this.changeCategory}`);let s=at` `;this.sections.push(s),e+=1}),ot`${this.sections}`}shouldUseRoundedPath(){return this.roundCorners&&this.edge.ref.length===0&&(!this.edge.poly||this.edge.poly===``)}buildPath(e){return!this.bendCurve||this.edgePathStyle===`polyline`?Qi(e):this.edgePathStyle===`rounded-orthogonal`?this.shouldUseRoundedPath()?rne(e):Qi(e):nne(e)||Qi(e)}};Zi=Qte([wt(`pb33f-explorer-edge`)],Zi);var $te=Xte().x(e=>e.x).y(e=>e.y).curve(Zte.beta(1));function ene(e,t){if(!e)return[];let n=[e.startPoint];return t&&e.bendPoints&&n.push(...e.bendPoints),n.push(e.endPoint),tne(n)}function tne(e){if(e.length<=2)return[...e];let t=[];for(let n of e){let e=t[t.length-1];(!e||e.x!==n.x||e.y!==n.y)&&t.push(n)}if(t.length<=2)return t;let n=[t[0]];for(let e=1;e0);n+=` L ${m.x} ${m.y}`,n+=` A ${p} ${p} 0 0 ${g} ${h.x} ${h.y}`}let r=e[e.length-1];return n+=` L ${r.x} ${r.y}`,n}var ine=new Set([E.DOCUMENT,E.INFO,E.COMPONENTS,E.PATHS,E.SCHEMAS,E.PARAMETERS,E.RESPONSES,E.REQUEST_BODY,E.REQUEST_BODIES,E.TAGS,E.SECURITY,E.SECURITY_SCHEMES,E.SERVERS,E.HEADERS,E.LINKS,E.CALLBACKS,E.PATH_ITEMS,E.OPERATIONS,E.EXAMPLES,E.EXTENSIONS,E.WEBHOOKS]),ane=class{constructor(e){this.deps=e}createNodeComponent(e){let t=this.deps.getNodeMap();switch(e){case E.DOCUMENT:return new _i(t);case E.INFO:return new vi(t);case E.LICENSE:return new yi(t);case E.CONTACT:return new bi(t);case E.TAG:return new xi(t);case E.SERVER:return new Ci(t);case E.COMPONENTS:return new wi(t);case E.SCHEMA:return new Ei(t);case E.SECURITY_SCHEME:return new Di(t);case E.PARAMETER:return new Oi(t);case E.HEADER:return new ki(t);case E.REQUEST_BODY:return new Ai(t);case E.MEDIA_TYPE:return new ji(t);case E.RESPONSE:return new Ni(t);case E.LINK:return new Pi(t);case E.CALLBACK:return new Fi(t);case E.PATH_ITEM:return new Ii(t);case E.OPERATION:return new Li(t);case E.XML:return new Ri(t);default:return new pi(t)}}buildNodes(e){let t=[],n=[],r=new Map,i=new Map,a=this.deps.getNodeMap(),o=this.deps.getDefinitionCache();return e.graphResponse.nodes?.forEach(e=>{a.set(e.id,e),e.instance&&typeof e.instance==`object`&&!e.instance.$ref&&o.set(e.id,e)}),e.graphResponse.edges?.forEach(e=>{this.deps.getEdgeMap().set(e.id,e)}),e.graph.children?.forEach(s=>{let c=s;c.x&&c.y&&(c.x=Math.round(c.x),c.y=Math.round(c.y));let l=e.graphMode===Ut.change?new zi(a):this.createNodeComponent(c.type);l.height=c.height,l.width=c.width-2,l.id=c.id,l.label=c.label,l.isLeaf=!(c.nodes&&c.nodes.length>0),l.expanded=e.expandedNodes.has(c.id),l.moreChildrenCount=e.hasMoreChildren.get(c.id)||0,l.node=c,l.inPovMode=e.povMode,l.povNodeId=e.povNodeId,l.disablePovMode=e.disablePovMode,l.hideExamples=e.hideExamples;let u=a.get(c.id);l.nodeInstance=this.resolveNodeInstance(c,o.get(c.id),u),l.violationMap=e.violationMap,c.violationIds=u?.violationIds;let d=u?.dependency||!1;l.isDependency=d,l.dim=d&&e.povMode;let f=e.activeNode&&e.activeNode.id===c.id;f&&(l.active=!0),r.set(c.id,l);let p=new Bi,m={id:c.id,x:c.x,y:c.y,width:c.width,height:c.height,body:l,active:f,visible:!0};p.configure(m),n.push(p),i.set(c.id,p),t.push(c)}),{nodes:t,nodeComponents:n,renderGraphMap:r,nodeComponentMap:i}}buildEdges(e,t){let n=[],r=[],i=new Map,a=this.deps.getEdgeMap(),o=e.nodeLimitExceeded||e.graph.children&&e.graph.children.length>50;return e.graph.edges?.forEach(s=>{let c=s,l=t.get(c.sources[0]);l?.outputs.push(c);let u=t.get(c.targets[0]);u?.inputs.push(c),c.ref.length>0&&l&&(l.isRef=!0);let d=new Zi,f=a.get(c.id)?.dependency||!1,p=u?.changeCategory??Wt.NONE,m=!!u?.isLeaf&&!one(u?.node?.type)&&c.ref.length===0&&(!c.poly||c.poly===``),h={edge:c,visible:!e.collapsedEdges.has(c.id),animated:!o,bendPoints:e.bendPoints,bendCurve:e.bendEdges,edgePathStyle:e.edgePathStyle,roundCorners:m,isDependency:f,dim:f&&e.povMode,changeCategory:p};d.configure(h),n.push(c),r.push(d),i.set(c.id,d)}),this.applyLeafDetection(t,i),{edges:n,edgeComponents:r,edgeComponentMap:i}}resolveNodeInstance(e,t,n){return e.instance&&typeof e.instance==`object`&&!e.instance.$ref?e.instance:t?.instance||n?.instance}applyLeafDetection(e,t){e.forEach(e=>{e.outputs.length<=0?(e.isLeaf=!0,e.inputs.forEach(e=>{let n=t.get(e.id);n&&(n.targetIsLeaf=!0)})):e.outputs.forEach(n=>{if(n.ref!==``){let r=t.get(n.id);r&&r.targetIsLeaf&&(r.targetIsLeaf=!1,e.isLeaf=!1,e.isRef=!0)}})})}};function one(e){return e?ine.has(e):!1}function sne(){return ot` + marker-end="url(#${n})"/>`;this.sections.push(s),e+=1}),at`${this.sections}`}shouldUseRoundedPath(){return this.roundCorners&&this.edge.ref.length===0&&(!this.edge.poly||this.edge.poly===``)}buildPath(e){return!this.bendCurve||this.edgePathStyle===`polyline`?Ji(e):this.edgePathStyle===`rounded-orthogonal`?this.shouldUseRoundedPath()?cne(e):Ji(e):sne(e)||Ji(e)}};qi=rne([Ct(`pb33f-explorer-edge`)],qi);var ine=ene().x(e=>e.x).y(e=>e.y).curve(nne.beta(1));function ane(e,t){if(!e)return[];let n=[e.startPoint];return t&&e.bendPoints&&n.push(...e.bendPoints),n.push(e.endPoint),one(n)}function one(e){if(e.length<=2)return[...e];let t=[];for(let n of e){let e=t[t.length-1];(!e||e.x!==n.x||e.y!==n.y)&&t.push(n)}if(t.length<=2)return t;let n=[t[0]];for(let e=1;e0);n+=` L ${m.x} ${m.y}`,n+=` A ${p} ${p} 0 0 ${g} ${h.x} ${h.y}`}let r=e[e.length-1];return n+=` L ${r.x} ${r.y}`,n}var lne=new Set([E.DOCUMENT,E.INFO,E.COMPONENTS,E.PATHS,E.SCHEMAS,E.PARAMETERS,E.RESPONSES,E.REQUEST_BODY,E.REQUEST_BODIES,E.TAGS,E.SECURITY,E.SECURITY_SCHEMES,E.SERVERS,E.HEADERS,E.LINKS,E.CALLBACKS,E.PATH_ITEMS,E.OPERATIONS,E.EXAMPLES,E.EXTENSIONS,E.WEBHOOKS]),une=class{constructor(e){this.deps=e}createNodeComponent(e){let t=this.deps.getNodeMap();switch(e){case E.DOCUMENT:return new gi(t);case E.INFO:return new _i(t);case E.LICENSE:return new vi(t);case E.CONTACT:return new yi(t);case E.TAG:return new bi(t);case E.SERVER:return new Si(t);case E.COMPONENTS:return new Ci(t);case E.SCHEMA:return new wi(t);case E.SECURITY_SCHEME:return new Ti(t);case E.PARAMETER:return new Ei(t);case E.HEADER:return new Di(t);case E.REQUEST_BODY:return new Oi(t);case E.MEDIA_TYPE:return new ki(t);case E.RESPONSE:return new ji(t);case E.LINK:return new Mi(t);case E.CALLBACK:return new Ni(t);case E.PATH_ITEM:return new Pi(t);case E.OPERATION:return new Ii(t);case E.XML:return new Li(t);default:return new fi(t)}}buildNodes(e){let t=[],n=[],r=new Map,i=new Map,a=this.deps.getNodeMap(),o=this.deps.getDefinitionCache();return e.graphResponse.nodes?.forEach(e=>{a.set(e.id,e),e.instance&&typeof e.instance==`object`&&!e.instance.$ref&&o.set(e.id,e)}),e.graphResponse.edges?.forEach(e=>{this.deps.getEdgeMap().set(e.id,e)}),e.graph.children?.forEach(s=>{let c=s;c.x&&c.y&&(c.x=Math.round(c.x),c.y=Math.round(c.y));let l=e.graphMode===Ut.change?new Ri(a):this.createNodeComponent(c.type);l.height=c.height,l.width=c.width-2,l.id=c.id,l.label=c.label,l.isLeaf=!(c.nodes&&c.nodes.length>0),l.expanded=e.expandedNodes.has(c.id),l.moreChildrenCount=e.hasMoreChildren.get(c.id)||0,l.node=c,l.inPovMode=e.povMode,l.povNodeId=e.povNodeId,l.disablePovMode=e.disablePovMode,l.hideExamples=e.hideExamples;let u=a.get(c.id);l.nodeInstance=this.resolveNodeInstance(c,o.get(c.id),u),l.violationMap=e.violationMap,c.violationIds=u?.violationIds;let d=u?.dependency||!1;l.isDependency=d,l.dim=d&&e.povMode;let f=e.activeNode&&e.activeNode.id===c.id;f&&(l.active=!0),r.set(c.id,l);let p=new zi,m={id:c.id,x:c.x,y:c.y,width:c.width,height:c.height,body:l,active:f,visible:!0};p.configure(m),n.push(p),i.set(c.id,p),t.push(c)}),{nodes:t,nodeComponents:n,renderGraphMap:r,nodeComponentMap:i}}buildEdges(e,t){let n=[],r=[],i=new Map,a=this.deps.getEdgeMap(),o=e.nodeLimitExceeded||e.graph.children&&e.graph.children.length>50;return e.graph.edges?.forEach(s=>{let c=s,l=t.get(c.sources[0]);l?.outputs.push(c);let u=t.get(c.targets[0]);u?.inputs.push(c),c.ref.length>0&&l&&(l.isRef=!0);let d=new qi,f=a.get(c.id)?.dependency||!1,p=u?.changeCategory??Wt.NONE,m=!!u?.isLeaf&&!dne(u?.node?.type)&&c.ref.length===0&&(!c.poly||c.poly===``),h={edge:c,visible:!e.collapsedEdges.has(c.id),animated:!o,bendPoints:e.bendPoints,bendCurve:e.bendEdges,edgePathStyle:e.edgePathStyle,roundCorners:m,isDependency:f,dim:f&&e.povMode,changeCategory:p};d.configure(h),n.push(c),r.push(d),i.set(c.id,d)}),this.applyLeafDetection(t,i),{edges:n,edgeComponents:r,edgeComponentMap:i}}resolveNodeInstance(e,t,n){return e.instance&&typeof e.instance==`object`&&!e.instance.$ref?e.instance:t?.instance||n?.instance}applyLeafDetection(e,t){e.forEach(e=>{e.outputs.length<=0?(e.isLeaf=!0,e.inputs.forEach(e=>{let n=t.get(e.id);n&&(n.targetIsLeaf=!0)})):e.outputs.forEach(n=>{if(n.ref!==``){let r=t.get(n.id);r&&r.targetIsLeaf&&(r.targetIsLeaf=!1,e.isLeaf=!1,e.isRef=!0)}})})}};function dne(e){return e?lne.has(e):!1}function fne(){return at` - `}var cne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},lne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},une=class{constructor(e){this.childrenMapCache=null,this.expandedNodes=new Set([`root`]),this.visibleChildrenCount=new Map,this.pathRevealNodes=new Set,this.pathRevealTarget=null,this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null,this.CHILD_BATCH_SIZE=10,this.callbacks=e}toggleNodeExpansion(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.clearPathRevealDescendants(e);this.expandedNodes.has(e)?this.expandedNodes.delete(e):t||this.expandedNodes.add(e),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}loadMoreChildren(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE;this.visibleChildrenCount.set(e,t+this.CHILD_BATCH_SIZE),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}isNodeExpanded(e){return this.expandedNodes.has(e)}isNodeCurrentlyVisible(e){if(e===`root`)return!0;let t=this.callbacks.getNodeMap().get(e);if(!t)return!1;let n=t.parentId||`root`;if(!this.expandedNodes.has(n))return!1;if(!this.childrenMapCache)return!0;let r=this.childrenMapCache.get(n);if(!r)return!0;let i=this.visibleChildrenCount.get(n)||this.CHILD_BATCH_SIZE,a=r.findIndex(t=>t.id===e);return a>=0&&ae.id===t.id);if(r<0){n.push(t);let r=n.length;r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}else r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}}revealPathToNode(e,t){if(t)return;let n=this.callbacks.getNodeMap(),r=[],i=e;for(;i&&i!==`root`;){let e=n.get(i);if(!e||this.isNodeCurrentlyVisible(i)||this.pathRevealNodes.has(i))break;r.push(i),i=e.parentId||`root`}let a=n.get(e);if(r.length===0)a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a),this.callbacks.moveToNode(a));else{r.reverse();for(let e of r)this.pathRevealNodes.add(e);this.pathRevealTarget=e,a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a)),this.callbacks.buildGraph().then(()=>{a&&this.callbacks.moveToNode(a)})}}clearPathReveal(){this.pathRevealNodes.size>0&&(this.pathRevealNodes.clear(),this.pathRevealTarget=null)}clearPathRevealDescendants(e){if(this.pathRevealNodes.size===0)return!1;let t=this.callbacks.getNodeMap(),n=[];for(let r of this.pathRevealNodes){let i=r;for(;i&&i!==`root`;){let a=t.get(i);if(!a)break;if(a.parentId===e){n.push(r);break}i=a.parentId}}for(let e of n)this.pathRevealNodes.delete(e);return this.pathRevealTarget&&n.includes(this.pathRevealTarget)&&(this.pathRevealTarget=null),n.length>0}hasPathReveal(){return this.pathRevealNodes.size>0}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(){if(this.childrenMapCache)return;this.childrenMapCache=new Map;let e=this.callbacks.getGraphResponseNodes()||[];for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}getState(){return{expandedNodes:this.expandedNodes,visibleChildrenCount:this.visibleChildrenCount,pathRevealNodes:this.pathRevealNodes,pathRevealTarget:this.pathRevealTarget}}saveState(){return{expandedNodes:new Set(this.expandedNodes),visibleChildrenCount:new Map(this.visibleChildrenCount)}}restoreState(e){this.expandedNodes.clear();for(let t of e.expandedNodes)this.expandedNodes.add(t);this.visibleChildrenCount.clear();for(let[t,n]of e.visibleChildrenCount)this.visibleChildrenCount.set(t,n)}},dne=class{constructor(e){this.childrenMapCache=null,this.positionCache=new Map,this.callbacks=e}filterGraphByExpansion(e,t,n){let r=new Map,i=new Map,a=this.callbacks.getExpandedNodes(),o=this.callbacks.getVisibleChildrenCount(),s=this.callbacks.getPathRevealNodes(),c=this.callbacks.getChildBatchSize(),l=e.find(e=>e.id===`root`);if(l&&r.set(`root`,l),this.buildChildrenMapCache(e),n)for(let t of e)r.set(t.id,t);else{let e=[`root`],t=0;for(;ta&&i.set(n,t.length-a)}else if(s.size>0){let t=this.childrenMapCache.get(n)||[];for(let n of t)s.has(n.id)&&(r.set(n.id,n),e.push(n.id))}}}let u=t.filter(e=>!(!r.has(e.sources[0])||!r.has(e.targets[0])));return{nodes:Array.from(r.values()),edges:u,hasMoreChildren:i}}preservePositions(e){this.positionCache.clear(),e?.children?.forEach(e=>{e.x!==void 0&&e.y!==void 0&&this.positionCache.set(e.id,{x:e.x,y:e.y})})}applyPositionHints(e){for(let t of e){let e=this.positionCache.get(t.id);e&&(t.x=e.x,t.y=e.y)}}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(e){if(!this.childrenMapCache){this.childrenMapCache=new Map;for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}}clearPositionCache(){this.positionCache.clear()}getPositionCache(){return this.positionCache}},$i=.22,ea=.5;function fne(e){switch(e){case`LEFT`:return{x:.78,y:ea};case`UP`:return{x:ea,y:.78};case`DOWN`:return{x:ea,y:$i};default:return{x:$i,y:ea}}}function pne(e,t,n){let r=fne(e),i=(t.x||0)+(t.width||0)/2,a=(t.y||0)+(t.height||0)/2;return{x:i-n.width*r.x,y:a-n.height*r.y}}function mne(e,t){let n=(e.x||0)+(e.width||0)/2,r=(e.y||0)+(e.height||0)/2;return{x:n-t.width/2,y:r-t.height/2}}function ta(e,t,n){return t.id===`root`?pne(e,t,n):mne(t,n)}var na=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ra,ia;(function(e){e.UP=`UP`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`})(ia||={});var aa=ra=class extends oi{get expandedNodes(){return this.expansionManager.expandedNodes}get visibleChildrenCount(){return this.expansionManager.visibleChildrenCount}get pathRevealNodes(){return this.expansionManager.pathRevealNodes}get pathRevealTarget(){return this.expansionManager.pathRevealTarget}constructor(){super(),this.edgePathStyle=`d3`,this.embeddedMode=!1,this.disablePovMode=!1,this.hideExamples=!1,this.hideControls=!1,this.changeView=!1,this.graphMode=Ut.standard,this.povPreviousViewBox=null,this.povFocusNodeId=null,this.layoutRequestId=0,this.nodeComponents=[],this.edgeComponents=[],this.scale=1,this.isDragging=!1,this.dragThreshold=5,this.dragStartViewBoxX=0,this.dragStartViewBoxY=0,this.previousActiveNodeId=null,this.zoomMax=8e3,this.zoomMin=50,this.collapsedNodes=new Map,this.collapsedEdges=new Map,this.hasMoreChildren=new Map,this.currentAnimationId=0,this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null,this.resizeObserver=null,this.containerWidth=0,this.containerHeight=0,this._resizeRafId=0,this.ready=!1,this.direction=ia.RIGHT,this.nodeMap=new Map,this.definitionCache=new Map,this.edgeMap=new Map,this.violationMap=new Map,this.renderGraphMap=new Map,this.edgeComponentMap=new Map,this.nodeComponentMap=new Map,this.collapsedNodes=new Map,this.nodes=[],this.edges=[],this.nodeNodeBetweenLayers=`100`,this.nodeNode=`80`,this.edgeNodeBetweenLayers=`30`,this.edgeNode=`120`,this.bendEdges=!0,this.bendPoints=!0,this.nodeLimitExceeded=!1,this.nodeLimit=-1,this.equalizer=new ui,this.renderEqualizer=!0,this.equalizer.renderEqualizer=this.renderEqualizer,this.equalizer.nodeNodeBetweenLayers=parseInt(this.nodeNodeBetweenLayers),this.equalizer.nodeNode=parseInt(this.nodeNode),this.equalizer.edgeNodeBetweenLayers=parseInt(this.edgeNodeBetweenLayers),this.equalizer.edgeNode=parseInt(this.edgeNode),this.equalizer.bendEdges=this.bendEdges,this.equalizer.bendPoints=this.bendPoints,this.zoomX=null,this.zoomY=null,this.zoomW=null,this.zoomH=null,this.graphDependentWorker=ra.graphDependentWorkerFactory?ra.graphDependentWorkerFactory():new cne,this.elkLayoutWorker=ra.elkWorkerFactory?ra.elkWorkerFactory():new lne,this.elkLayoutWorker.onerror=e=>{console.error(`[explorer] ELK layout worker error:`,e)},this.expansionManager=new une({getNodeMap:()=>this.nodeMap,getGraphResponseNodes:()=>this.graphResponse?.nodes,buildGraph:()=>this.buildGraph(),moveToNode:e=>this.moveToNode(e),getActiveNode:()=>this.activeNode,setActiveNode:e=>{if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}if(this.activeNode=e,e&&this.renderGraphMap){let t=this.renderGraphMap.get(e.id);t&&(t.active=!0)}this.requestUpdate()},setPreviousActiveNodeId:e=>{this.previousActiveNodeId=e},getNodeScreenOffset:e=>this.getNodeScreenOffset(e),restoreNodeScreenPosition:(e,t)=>this.restoreNodeScreenPosition(e,t),preservePositions:()=>this.layoutFilterManager.preservePositions(this.graph)}),this.layoutFilterManager=new dne({getExpandedNodes:()=>this.expansionManager.expandedNodes,getVisibleChildrenCount:()=>this.expansionManager.visibleChildrenCount,getPathRevealNodes:()=>this.expansionManager.pathRevealNodes,getChildBatchSize:()=>this.expansionManager.CHILD_BATCH_SIZE}),this.explorerComponentFactory=new ane({getNodeMap:()=>this.nodeMap,getDefinitionCache:()=>this.definitionCache,getEdgeMap:()=>this.edgeMap}),this.boundZoomIn=this.zoomIn.bind(this),this.boundZoomOut=this.zoomOut.bind(this),this.boundRotate=this.rotate.bind(this),this.boundReset=this.reset.bind(this),this.boundEqualizerChanged=this.equalizerChanged.bind(this),this.boundEqualizerFiltered=this.equalizerFiltered.bind(this),this.boundDependentNodeClicked=this.dependentNodeClicked.bind(this),this.boundLoadMoreChildren=this.loadMoreChildrenClicked.bind(this),this.boundPovModeExit=this.handlePovModeExit.bind(this),this.boundGraphDependentMessage=e=>{this.toggleNodeVisibility(e.data.filteredNodes,e.data.filteredEdges,e.data.collapse)},this.equalizer.addEventListener(Tn,this.boundZoomIn),this.equalizer.addEventListener(En,this.boundZoomOut),this.equalizer.addEventListener(Dn,this.boundRotate),this.equalizer.addEventListener(On,this.boundReset),this.equalizer.addEventListener(Nn,this.boundEqualizerChanged),this.equalizer.addEventListener(Pn,this.boundEqualizerFiltered),this.addEventListener(Fn,this.boundDependentNodeClicked),this.addEventListener(In,this.boundLoadMoreChildren),this.equalizer.addEventListener(Ln,this.boundPovModeExit),this.graphDependentWorker.onmessage=this.boundGraphDependentMessage}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.elkLayoutWorker?.terminate(),this.graphDependentWorker?.terminate(),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.equalizer.removeEventListener(Tn,this.boundZoomIn),this.equalizer.removeEventListener(En,this.boundZoomOut),this.equalizer.removeEventListener(Dn,this.boundRotate),this.equalizer.removeEventListener(On,this.boundReset),this.equalizer.removeEventListener(Nn,this.boundEqualizerChanged),this.equalizer.removeEventListener(Pn,this.boundEqualizerFiltered),this.equalizer.removeEventListener(Ln,this.boundPovModeExit),this.removeEventListener(Fn,this.boundDependentNodeClicked),this.removeEventListener(In,this.boundLoadMoreChildren)}setupResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._resizeRafId),this._resizeRafId=requestAnimationFrame(()=>{let{width:e,height:t}=this.getBoundingClientRect();e!==0&&t!==0&&(Math.abs(e-this.containerWidth)<2&&Math.abs(t-this.containerHeight)<2||(this.containerWidth=e,this.containerHeight=t))})}),this.resizeObserver.observe(this)}updateViewBoxForContainer(){if(!this.svgItem||this.containerWidth===0||this.containerHeight===0)return;let e=this.svgItem.viewBox.baseVal,t=e.x+e.width/2,n=e.y+e.height/2,r=this.containerWidth/this.containerHeight,i=this.buildBaseViewBox().base+300,a,o;r>1?(o=i,a=i*r):(a=i,o=i/r),e.width=a,e.height=o,e.x=t-a/2,e.y=n-o/2,this.zoomW=a,this.zoomH=o,this.zoomX=e.x,this.zoomY=e.y}toggleNodeVisibility(e,t,n){e.forEach(e=>{if(!e?.id)return;let t=this.nodeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedNodes.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedNodes.delete(e.id)))}),t.forEach(e=>{if(!e?.id)return;let t=this.edgeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedEdges.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedEdges.delete(e.id)))}),this.requestUpdate()}dependentNodeClicked(e){let t=e.detail.node.id;this.toggleNodeExpansion(t)}loadMoreChildrenClicked(e){this.loadMoreChildren(e.detail.parentId)}enterPovMode(e,t){let n=this.expansionManager.saveState();this.savedExpandedNodes=n.expandedNodes,this.savedVisibleChildrenCount=n.visibleChildrenCount,this.povMode=!0,this.povFocusNodeId=e,this.povNode=t,this.povNodeId=e}exitPovMode(e=!0){this.savedExpandedNodes&&this.savedVisibleChildrenCount&&(this.expansionManager.restoreState({expandedNodes:this.savedExpandedNodes,visibleChildrenCount:this.savedVisibleChildrenCount}),this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null),this.graphResponse?.nodes?.forEach(e=>{e.dependency&&=!1}),this.graphResponse?.edges?.forEach(e=>{e.dependency&&=!1}),this.povMode=!1,this.povNode=null,this.equalizer.controls.povNode=null,e&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache())}handlePovModeExit(){this.exitPovMode(!0)}updateGraphResponse(e){this.graphResponse=e,this.graphMode=e.mode||(this.changeView?Ut.change:Ut.standard),this.changeView=this.graphMode===Ut.change,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.equalizer.graphResponse=e,this.equalizer.controls.searchComponent.graphResponse=e,this.violationMap.clear(),e.violations&&Object.entries(e.violations).forEach(([e,t])=>{this.violationMap.set(e,t)}),this.buildGraphAndRender().then(()=>{this.activeNode||this.centerOnRoot()})}rotate(){switch(this.direction){case ia.LEFT:this.direction=ia.UP;break;case ia.DOWN:this.direction=ia.LEFT;break;case ia.RIGHT:this.direction=ia.DOWN;break;case ia.UP:this.direction=ia.RIGHT}this.resetNodes(),this.buildGraphAndRender().then(()=>{this.activeNode&&this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id}}))})}mouseMove(e){if(this.grabbed){let t=Math.sqrt((e.clientX-this.startX)**2+(e.clientY-this.startY)**2);!this.isDragging&&t>this.dragThreshold&&(this.isDragging=!0),this.isDragging&&requestAnimationFrame(()=>{let t=this.svgItem.viewBox.baseVal,n=(e.clientX-this.startX)*(t.width/this.svgItem.clientWidth),r=(e.clientY-this.startY)*(t.height/this.svgItem.clientHeight);t.x=this.dragStartViewBoxX-n,t.y=this.dragStartViewBoxY-r,this.zoomX=t.x,this.zoomY=t.y,this.zoomW=t.width,this.zoomH=t.height})}}mouseDown(e){this.grabbed=!0;let t=this.svgItem.viewBox.baseVal;this.startX=e.clientX,this.startY=e.clientY,this.dragStartViewBoxX=t.x,this.dragStartViewBoxY=t.y}mouseUp(){this.grabbed=!1,this.isDragging=!1}zoom(e){e=Math.abs(e)<.02?e/Math.abs(e)*.02:e;let[t,n,r,i]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],a=t+r/2,o=n+i/2,[s,c]=[r+r*e,i+i*e],l=a-s/2,u=o-c/2;s>=this.zoomMax||s<=this.zoomMin||(this.svgItem.setAttribute(`viewBox`,`${l} ${u} ${s} ${c}`),this.zoomX=l,this.zoomY=u,this.zoomW=s,this.zoomH=c)}zoomIn(){this.zoom(-.1)}zoomOut(){this.zoom(.1)}onWheel(e){e.preventDefault();let t=e.deltaY/1e3;t=Math.abs(t)<.02?.02*e.deltaY/Math.abs(e.deltaY):t;let n=new DOMPoint(e.clientX,e.clientY);n=n.matrixTransform(this.svgItem.getScreenCTM()?.inverse());let[r,i,a,o]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],[s,c]=[(n.x-r)/a,(n.y-i)/o],[l,u]=[a+a*t,o+o*t],d=n.x-s*l,f=n.y-c*u;l>=this.zoomMax||l<=this.zoomMin||Number.isNaN(d)||Number.isNaN(f)||Number.isNaN(l)||Number.isNaN(u)||requestAnimationFrame(()=>{this.zoomX=d,this.zoomY=f,this.zoomW=l,this.zoomH=u,this.svgItem.setAttribute(`viewBox`,`${d} ${f} ${l} ${u}`)})}equalizerFiltered(e){this.clearPathReveal(),this.graphResponse=e.detail.graph,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.extractEQPreferences(e);let t=e.detail.povMode;this.povNodeId=e.detail.povNodeId||null,t&&(this.povMode=!0),this.buildGraphAndRender().then(()=>{if(t&&this.povFocusNodeId){this.equalizer.controls.povNode=this.povNode;let e=this.graphResponse.nodes?.find(e=>e.id===this.povFocusNodeId);e&&this.moveToNode(e,!1)}else this.activeNode||this.centerOnRoot()})}extractEQPreferences(e){e.detail.spacing&&(e.detail.spacing.nodeNodeBetweenLayers&&(this.nodeNodeBetweenLayers=e.detail.spacing.nodeNodeBetweenLayers.toString()),e.detail.spacing.nodeNode&&(this.nodeNode=e.detail.spacing.nodeNode.toString()),e.detail.spacing.edgeNodeBetweenLayers&&(this.edgeNodeBetweenLayers=e.detail.spacing.edgeNodeBetweenLayers.toString()),e.detail.spacing.edgeNode&&(this.edgeNode=e.detail.spacing.edgeNode.toString()),this.bendEdges=!!e.detail.spacing.bendEdges,this.bendPoints=!!e.detail.spacing.bendPoints)}equalizerChanged(e){this.clearPathReveal(),e.detail.graph.nodes.length>0&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.graphResponse=e.detail.graph),this.extractEQPreferences(e),this.buildGraphAndRender().then(()=>{this.activeNode&&this._visible&&this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id,first:!0}}))})}resetNodes(){this.graph.children?.forEach(e=>{let t=e;delete t.x,delete t.y}),this.graph.edges?.forEach(e=>{delete e.sections})}filterGraphByExpansion(e,t){return this.layoutFilterManager.filterGraphByExpansion(e,t,this.povMode)}preservePositions(){this.layoutFilterManager.preservePositions(this.graph)}applyPositionHints(e){this.layoutFilterManager.applyPositionHints(e)}toggleNodeExpansion(e){this.expansionManager.toggleNodeExpansion(e)}loadMoreChildren(e){this.expansionManager.loadMoreChildren(e)}isNodeExpanded(e){return this.expansionManager.isNodeExpanded(e)}isNodeCurrentlyVisible(e){return this.expansionManager.isNodeCurrentlyVisible(e)}invalidateChildrenCache(){this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache()}addToNodeMap(e){this.nodeMap.has(e.id)||this.nodeMap.set(e.id,e)}ensureNodesVisible(e){this.expansionManager.ensureNodesVisible(e)}revealPathToNode(e){this.expansionManager.revealPathToNode(e,this.povMode)}clearPathReveal(){this.expansionManager.clearPathReveal()}generateOptions(){return{"spacing.nodeNodeBetweenLayers":this.nodeNodeBetweenLayers,"spacing.nodeNode":this.nodeNode,"elk.nodeLabels.placement":`INSIDE V_CENTER H_RIGHT`,"elk.algorithm":`layered`,"elk.direction":this.direction,"org.eclipse.elk.edgeRouting":`ORTHOGONAL`,"elk.layered.unnecessaryBendpoints":`true`,"elk.layered.spacing.edgeNodeBetweenLayers":this.edgeNodeBetweenLayers,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment":`BALANCED`,"org.eclipse.elk.layered.cycleBreaking.strategy":`DEPTH_FIRST`,"nodePlacement.strategy":`BRANDES_KOEPF`,"org.eclipse.elk.spacing.edgeLabel":`0`,"org.eclipse.elk.spacing.edgeNode":this.edgeNode,"org.eclipse.elk.layered.edgeLabels.sideSelection":`ALWAYS_UP`,"org.eclipse.elk.spacing.portPort":`10`,"elk.interactive":`true`,"elk.interactiveLayout":`true`,"elk.layered.interactiveReferencePoint":`CENTER`,"elk.layered.crossingMinimization.semiInteractive":`true`,"elk.layered.considerModelOrder.strategy":`NODES_AND_EDGES`}}buildGraph(){let e=++this.layoutRequestId,t=this.generateOptions(),n=this.filterGraphByExpansion(this.graphResponse.nodes||[],this.graphResponse.edges||[]);this.hasMoreChildren=n.hasMoreChildren,this.applyPositionHints(n.nodes);let r={id:`root`,layoutOptions:t,children:n.nodes,edges:n.edges};return this.nodeMap.clear(),this.equalizer.graphResponse||(this.equalizer.graphResponse=this.graphResponse),new Promise((n,i)=>{let a=()=>{this.elkLayoutWorker.removeEventListener(`message`,o),this.elkLayoutWorker.removeEventListener(`error`,s)},o=t=>{t.data.requestId===e&&(a(),t.data.success?(this.graph=t.data.graph,this.readyGo(),n(this.graph)):i(Error(t.data.error)))},s=e=>{a(),i(Error(`Worker error: ${e.message}`))};this.elkLayoutWorker.addEventListener(`message`,o),this.elkLayoutWorker.addEventListener(`error`,s),this.elkLayoutWorker.postMessage({requestId:e,graph:r,layoutOptions:t})})}async buildGraphAndRender(){await this.buildGraph(),await this.updateComplete,await new Promise(e=>requestAnimationFrame(()=>e()))}buildNodes(){this.nodeMap.clear(),this.definitionCache.clear(),this.edgeMap.clear();let e=this.explorerComponentFactory.buildNodes({graph:this.graph,graphResponse:this.graphResponse,expandedNodes:this.expandedNodes,hasMoreChildren:this.hasMoreChildren,povMode:this.povMode,povNodeId:this.povNodeId,activeNode:this.activeNode,violationMap:this.violationMap,disablePovMode:this.disablePovMode,hideExamples:this.hideExamples,changeView:this.changeView,graphMode:this.graphMode});this.nodes=e.nodes,this.nodeComponents=e.nodeComponents,this.renderGraphMap=e.renderGraphMap,this.nodeComponentMap=e.nodeComponentMap}buildEdges(){let e=this.explorerComponentFactory.buildEdges({graph:this.graph,collapsedEdges:this.collapsedEdges,bendPoints:this.bendPoints,bendEdges:this.bendEdges,edgePathStyle:this.edgePathStyle,nodeLimitExceeded:this.nodeLimitExceeded,povMode:this.povMode},this.renderGraphMap);this.edges=e.edges,this.edgeComponents=e.edgeComponents,this.edgeComponentMap=e.edgeComponentMap}readyGo(){this.buildNodes(),this.buildEdges(),this.ready=!0,this.requestUpdate()}reset(){this.direction=ia.RIGHT;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}this.zoomH=n,this.zoomW=t,this.zoomX=-150,this.zoomY=-150,this.svgItem.setAttribute(`viewBox`,`-150 -150 ${t} ${n}`),this.resetNodes(),this.buildGraphAndRender().then(()=>{this.snapToRoot()})}snapToRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=ta(this.direction,e,t);this.snapViewBox(n.x,n.y)}this.activeNode=e}}resetSelection(){if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}this.activeNode=void 0,this.previousActiveNodeId=null,this.requestUpdate()}centerOnRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=ta(this.direction,e,t);this.animateViewBox(n.x,n.y,200)}this.activeNode=e}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}animateViewBox(e,t,n){let r=++this.currentAnimationId,i=this.svgItem.viewBox.baseVal,a=i.x,o=i.y,s=performance.now(),c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=this;function u(d){if(r!==l.currentAnimationId)return;let f=d-s,p=Math.min(f/n,1),m=c(p);i.x=a+(e-a)*m,i.y=o+(t-o)*m,l.zoomX=i.x,l.zoomY=i.y,p<1&&requestAnimationFrame(u)}requestAnimationFrame(u)}snapViewBox(e,t){this.currentAnimationId++;let n=this.svgItem.viewBox.baseVal;n.x=e,n.y=t,this.zoomX=e,this.zoomY=t,this.zoomW=n.width,this.zoomH=n.height}getNodeScreenOffset(e){let t=this.svgItem?.viewBox?.baseVal;if(!t)return null;let n=this.graph?.children?.find(t=>t.id===e);if(!n||n.x===void 0||n.y===void 0)return null;let r=n.width||0,i=n.height||0,a=n.x+r/2,o=n.y+i/2,s=t.x+t.width/2,c=t.y+t.height/2;return{x:a-s,y:o-c}}restoreNodeScreenPosition(e,t){let n=this.svgItem?.viewBox?.baseVal;if(!n)return;let r=this.graph?.children?.find(t=>t.id===e);if(!r||r.x===void 0||r.y===void 0)return;let i=r.width||0,a=r.height||0,o=r.x+i/2,s=r.y+a/2,c=o-t.x,l=s-t.y,u=c-n.width/2,d=l-n.height/2;this.snapViewBox(u,d)}moveToNode(e,t=!1,n=!1){if(this.svgItem&&this.graph?.children){let t=this.svgItem.viewBox.baseVal,r=this.graph.children.find(t=>t.id===e.id);if(r&&r.x!==void 0&&r.y!==void 0&&!r.filtered){let e=ta(this.direction,r,t);n?this.snapViewBox(e.x,e.y):this.animateViewBox(e.x,e.y,200)}}}buildBaseViewBox(){let e=600,t=0;return this.graph.children?.forEach(()=>{e+=1,t+=20}),t>900&&(t=900),{base:e,offset:t}}render(){if(!this.ready)return T` + `}var pne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},mne=class{postMessage(){}addEventListener(){}removeEventListener(){}terminate(){}set onmessage(e){}set onerror(e){}},hne=class{constructor(e){this.childrenMapCache=null,this.expandedNodes=new Set([`root`]),this.visibleChildrenCount=new Map,this.pathRevealNodes=new Set,this.pathRevealTarget=null,this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null,this.CHILD_BATCH_SIZE=10,this.callbacks=e}toggleNodeExpansion(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.clearPathRevealDescendants(e);this.expandedNodes.has(e)?this.expandedNodes.delete(e):t||this.expandedNodes.add(e),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}loadMoreChildren(e){this.callbacks.preservePositions(),this.pendingExpansionNodeId=e,this.expansionNodeScreenOffset=this.callbacks.getNodeScreenOffset(e);let t=this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE;this.visibleChildrenCount.set(e,t+this.CHILD_BATCH_SIZE),this.callbacks.buildGraph().then(()=>{this.pendingExpansionNodeId&&this.expansionNodeScreenOffset&&this.callbacks.restoreNodeScreenPosition(this.pendingExpansionNodeId,this.expansionNodeScreenOffset),this.pendingExpansionNodeId=null,this.expansionNodeScreenOffset=null})}isNodeExpanded(e){return this.expandedNodes.has(e)}isNodeCurrentlyVisible(e){if(e===`root`)return!0;let t=this.callbacks.getNodeMap().get(e);if(!t)return!1;let n=t.parentId||`root`;if(!this.expandedNodes.has(n))return!1;if(!this.childrenMapCache)return!0;let r=this.childrenMapCache.get(n);if(!r)return!0;let i=this.visibleChildrenCount.get(n)||this.CHILD_BATCH_SIZE,a=r.findIndex(t=>t.id===e);return a>=0&&ae.id===t.id);if(r<0){n.push(t);let r=n.length;r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}else r>=(this.visibleChildrenCount.get(e)||this.CHILD_BATCH_SIZE)&&this.visibleChildrenCount.set(e,r+1)}}revealPathToNode(e,t){if(t)return;let n=this.callbacks.getNodeMap(),r=[],i=e;for(;i&&i!==`root`;){let e=n.get(i);if(!e||this.isNodeCurrentlyVisible(i)||this.pathRevealNodes.has(i))break;r.push(i),i=e.parentId||`root`}let a=n.get(e);if(r.length===0)a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a),this.callbacks.moveToNode(a));else{r.reverse();for(let e of r)this.pathRevealNodes.add(e);this.pathRevealTarget=e,a&&(this.callbacks.setPreviousActiveNodeId(this.callbacks.getActiveNode()?.id||null),this.callbacks.setActiveNode(a)),this.callbacks.buildGraph().then(()=>{a&&this.callbacks.moveToNode(a)})}}clearPathReveal(){this.pathRevealNodes.size>0&&(this.pathRevealNodes.clear(),this.pathRevealTarget=null)}clearPathRevealDescendants(e){if(this.pathRevealNodes.size===0)return!1;let t=this.callbacks.getNodeMap(),n=[];for(let r of this.pathRevealNodes){let i=r;for(;i&&i!==`root`;){let a=t.get(i);if(!a)break;if(a.parentId===e){n.push(r);break}i=a.parentId}}for(let e of n)this.pathRevealNodes.delete(e);return this.pathRevealTarget&&n.includes(this.pathRevealTarget)&&(this.pathRevealTarget=null),n.length>0}hasPathReveal(){return this.pathRevealNodes.size>0}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(){if(this.childrenMapCache)return;this.childrenMapCache=new Map;let e=this.callbacks.getGraphResponseNodes()||[];for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}getState(){return{expandedNodes:this.expandedNodes,visibleChildrenCount:this.visibleChildrenCount,pathRevealNodes:this.pathRevealNodes,pathRevealTarget:this.pathRevealTarget}}saveState(){return{expandedNodes:new Set(this.expandedNodes),visibleChildrenCount:new Map(this.visibleChildrenCount)}}restoreState(e){this.expandedNodes.clear();for(let t of e.expandedNodes)this.expandedNodes.add(t);this.visibleChildrenCount.clear();for(let[t,n]of e.visibleChildrenCount)this.visibleChildrenCount.set(t,n)}},gne=class{constructor(e){this.childrenMapCache=null,this.positionCache=new Map,this.callbacks=e}filterGraphByExpansion(e,t,n){let r=new Map,i=new Map,a=this.callbacks.getExpandedNodes(),o=this.callbacks.getVisibleChildrenCount(),s=this.callbacks.getPathRevealNodes(),c=this.callbacks.getChildBatchSize(),l=e.find(e=>e.id===`root`);if(l&&r.set(`root`,l),this.buildChildrenMapCache(e),n)for(let t of e)r.set(t.id,t);else{let e=[`root`],t=0;for(;ta&&i.set(n,t.length-a)}else if(s.size>0){let t=this.childrenMapCache.get(n)||[];for(let n of t)s.has(n.id)&&(r.set(n.id,n),e.push(n.id))}}}let u=t.filter(e=>!(!r.has(e.sources[0])||!r.has(e.targets[0])));return{nodes:Array.from(r.values()),edges:u,hasMoreChildren:i}}preservePositions(e){this.positionCache.clear(),e?.children?.forEach(e=>{e.x!==void 0&&e.y!==void 0&&this.positionCache.set(e.id,{x:e.x,y:e.y})})}applyPositionHints(e){for(let t of e){let e=this.positionCache.get(t.id);e&&(t.x=e.x,t.y=e.y)}}invalidateChildrenCache(){this.childrenMapCache=null}getChildrenMapCache(){return this.childrenMapCache}setChildrenMapCache(e){this.childrenMapCache=e}buildChildrenMapCache(e){if(!this.childrenMapCache){this.childrenMapCache=new Map;for(let t of e){if(t.id===`root`)continue;let e=t.parentId||`root`;this.childrenMapCache.has(e)||this.childrenMapCache.set(e,[]),this.childrenMapCache.get(e).push(t)}}}clearPositionCache(){this.positionCache.clear()}getPositionCache(){return this.positionCache}},Yi=.22,Xi=.5;function _ne(e){switch(e){case`LEFT`:return{x:.78,y:Xi};case`UP`:return{x:Xi,y:.78};case`DOWN`:return{x:Xi,y:Yi};default:return{x:Yi,y:Xi}}}function vne(e,t,n){let r=_ne(e),i=(t.x||0)+(t.width||0)/2,a=(t.y||0)+(t.height||0)/2;return{x:i-n.width*r.x,y:a-n.height*r.y}}function yne(e,t){let n=(e.x||0)+(e.width||0)/2,r=(e.y||0)+(e.height||0)/2;return{x:n-t.width/2,y:r-t.height/2}}function Zi(e,t,n){return t.id===`root`?vne(e,t,n):yne(t,n)}var Qi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$i,ea;(function(e){e.UP=`UP`,e.DOWN=`DOWN`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`})(ea||={});var ta=$i=class extends ai{get expandedNodes(){return this.expansionManager.expandedNodes}get visibleChildrenCount(){return this.expansionManager.visibleChildrenCount}get pathRevealNodes(){return this.expansionManager.pathRevealNodes}get pathRevealTarget(){return this.expansionManager.pathRevealTarget}constructor(){super(),this.edgePathStyle=`d3`,this.embeddedMode=!1,this.disablePovMode=!1,this.hideExamples=!1,this.hideControls=!1,this.changeView=!1,this.graphMode=Ut.standard,this.povPreviousViewBox=null,this.povFocusNodeId=null,this.layoutRequestId=0,this.nodeComponents=[],this.edgeComponents=[],this.scale=1,this.isDragging=!1,this.dragThreshold=5,this.dragStartViewBoxX=0,this.dragStartViewBoxY=0,this.previousActiveNodeId=null,this.zoomMax=8e3,this.zoomMin=50,this.collapsedNodes=new Map,this.collapsedEdges=new Map,this.hasMoreChildren=new Map,this.currentAnimationId=0,this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null,this.resizeObserver=null,this.containerWidth=0,this.containerHeight=0,this._resizeRafId=0,this.ready=!1,this.direction=ea.RIGHT,this.nodeMap=new Map,this.definitionCache=new Map,this.edgeMap=new Map,this.violationMap=new Map,this.renderGraphMap=new Map,this.edgeComponentMap=new Map,this.nodeComponentMap=new Map,this.collapsedNodes=new Map,this.nodes=[],this.edges=[],this.nodeNodeBetweenLayers=`100`,this.nodeNode=`80`,this.edgeNodeBetweenLayers=`30`,this.edgeNode=`120`,this.bendEdges=!0,this.bendPoints=!0,this.nodeLimitExceeded=!1,this.nodeLimit=-1,this.equalizer=new li,this.renderEqualizer=!0,this.equalizer.renderEqualizer=this.renderEqualizer,this.equalizer.nodeNodeBetweenLayers=parseInt(this.nodeNodeBetweenLayers),this.equalizer.nodeNode=parseInt(this.nodeNode),this.equalizer.edgeNodeBetweenLayers=parseInt(this.edgeNodeBetweenLayers),this.equalizer.edgeNode=parseInt(this.edgeNode),this.equalizer.bendEdges=this.bendEdges,this.equalizer.bendPoints=this.bendPoints,this.zoomX=null,this.zoomY=null,this.zoomW=null,this.zoomH=null,this.graphDependentWorker=$i.graphDependentWorkerFactory?$i.graphDependentWorkerFactory():new pne,this.elkLayoutWorker=$i.elkWorkerFactory?$i.elkWorkerFactory():new mne,this.elkLayoutWorker.onerror=e=>{console.error(`[explorer] ELK layout worker error:`,e)},this.expansionManager=new hne({getNodeMap:()=>this.nodeMap,getGraphResponseNodes:()=>this.graphResponse?.nodes,buildGraph:()=>this.buildGraph(),moveToNode:e=>this.moveToNode(e),getActiveNode:()=>this.activeNode,setActiveNode:e=>{if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}if(this.activeNode=e,e&&this.renderGraphMap){let t=this.renderGraphMap.get(e.id);t&&(t.active=!0)}this.requestUpdate()},setPreviousActiveNodeId:e=>{this.previousActiveNodeId=e},getNodeScreenOffset:e=>this.getNodeScreenOffset(e),restoreNodeScreenPosition:(e,t)=>this.restoreNodeScreenPosition(e,t),preservePositions:()=>this.layoutFilterManager.preservePositions(this.graph)}),this.layoutFilterManager=new gne({getExpandedNodes:()=>this.expansionManager.expandedNodes,getVisibleChildrenCount:()=>this.expansionManager.visibleChildrenCount,getPathRevealNodes:()=>this.expansionManager.pathRevealNodes,getChildBatchSize:()=>this.expansionManager.CHILD_BATCH_SIZE}),this.explorerComponentFactory=new une({getNodeMap:()=>this.nodeMap,getDefinitionCache:()=>this.definitionCache,getEdgeMap:()=>this.edgeMap}),this.boundZoomIn=this.zoomIn.bind(this),this.boundZoomOut=this.zoomOut.bind(this),this.boundRotate=this.rotate.bind(this),this.boundReset=this.reset.bind(this),this.boundEqualizerChanged=this.equalizerChanged.bind(this),this.boundEqualizerFiltered=this.equalizerFiltered.bind(this),this.boundDependentNodeClicked=this.dependentNodeClicked.bind(this),this.boundLoadMoreChildren=this.loadMoreChildrenClicked.bind(this),this.boundPovModeExit=this.handlePovModeExit.bind(this),this.boundGraphDependentMessage=e=>{this.toggleNodeVisibility(e.data.filteredNodes,e.data.filteredEdges,e.data.collapse)},this.equalizer.addEventListener(Tn,this.boundZoomIn),this.equalizer.addEventListener(En,this.boundZoomOut),this.equalizer.addEventListener(Dn,this.boundRotate),this.equalizer.addEventListener(On,this.boundReset),this.equalizer.addEventListener(Nn,this.boundEqualizerChanged),this.equalizer.addEventListener(Pn,this.boundEqualizerFiltered),this.addEventListener(Fn,this.boundDependentNodeClicked),this.addEventListener(In,this.boundLoadMoreChildren),this.equalizer.addEventListener(Ln,this.boundPovModeExit),this.graphDependentWorker.onmessage=this.boundGraphDependentMessage}connectedCallback(){super.connectedCallback(),this.setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this.elkLayoutWorker?.terminate(),this.graphDependentWorker?.terminate(),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.equalizer.removeEventListener(Tn,this.boundZoomIn),this.equalizer.removeEventListener(En,this.boundZoomOut),this.equalizer.removeEventListener(Dn,this.boundRotate),this.equalizer.removeEventListener(On,this.boundReset),this.equalizer.removeEventListener(Nn,this.boundEqualizerChanged),this.equalizer.removeEventListener(Pn,this.boundEqualizerFiltered),this.equalizer.removeEventListener(Ln,this.boundPovModeExit),this.removeEventListener(Fn,this.boundDependentNodeClicked),this.removeEventListener(In,this.boundLoadMoreChildren)}setupResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._resizeRafId),this._resizeRafId=requestAnimationFrame(()=>{let{width:e,height:t}=this.getBoundingClientRect();e!==0&&t!==0&&(Math.abs(e-this.containerWidth)<2&&Math.abs(t-this.containerHeight)<2||(this.containerWidth=e,this.containerHeight=t))})}),this.resizeObserver.observe(this)}updateViewBoxForContainer(){if(!this.svgItem||this.containerWidth===0||this.containerHeight===0)return;let e=this.svgItem.viewBox.baseVal,t=e.x+e.width/2,n=e.y+e.height/2,r=this.containerWidth/this.containerHeight,i=this.buildBaseViewBox().base+300,a,o;r>1?(o=i,a=i*r):(a=i,o=i/r),e.width=a,e.height=o,e.x=t-a/2,e.y=n-o/2,this.zoomW=a,this.zoomH=o,this.zoomX=e.x,this.zoomY=e.y}toggleNodeVisibility(e,t,n){e.forEach(e=>{if(!e?.id)return;let t=this.nodeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedNodes.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedNodes.delete(e.id)))}),t.forEach(e=>{if(!e?.id)return;let t=this.edgeComponentMap.get(e.id);t&&(t.visible&&n?(t.visible=!1,this.collapsedEdges.set(e.id,!0)):!t.visible&&!n&&(t.visible=!0,this.collapsedEdges.delete(e.id)))}),this.requestUpdate()}dependentNodeClicked(e){let t=e.detail.node.id;this.toggleNodeExpansion(t)}loadMoreChildrenClicked(e){this.loadMoreChildren(e.detail.parentId)}enterPovMode(e,t){let n=this.expansionManager.saveState();this.savedExpandedNodes=n.expandedNodes,this.savedVisibleChildrenCount=n.visibleChildrenCount,this.povMode=!0,this.povFocusNodeId=e,this.povNode=t,this.povNodeId=e}exitPovMode(e=!0){this.savedExpandedNodes&&this.savedVisibleChildrenCount&&(this.expansionManager.restoreState({expandedNodes:this.savedExpandedNodes,visibleChildrenCount:this.savedVisibleChildrenCount}),this.savedExpandedNodes=null,this.savedVisibleChildrenCount=null),this.graphResponse?.nodes?.forEach(e=>{e.dependency&&=!1}),this.graphResponse?.edges?.forEach(e=>{e.dependency&&=!1}),this.povMode=!1,this.povNode=null,this.equalizer.controls.povNode=null,e&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache())}handlePovModeExit(){this.exitPovMode(!0)}updateGraphResponse(e){this.graphResponse=e,this.graphMode=e.mode||(this.changeView?Ut.change:Ut.standard),this.changeView=this.graphMode===Ut.change,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.equalizer.graphResponse=e,this.equalizer.controls.searchComponent.graphResponse=e,this.violationMap.clear(),e.violations&&Object.entries(e.violations).forEach(([e,t])=>{this.violationMap.set(e,t)}),this.buildGraphAndRender().then(()=>{this.activeNode||this.centerOnRoot()})}rotate(){switch(this.direction){case ea.LEFT:this.direction=ea.UP;break;case ea.DOWN:this.direction=ea.LEFT;break;case ea.RIGHT:this.direction=ea.DOWN;break;case ea.UP:this.direction=ea.RIGHT}this.resetNodes(),this.buildGraphAndRender().then(()=>{this.activeNode&&this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id}}))})}mouseMove(e){if(this.grabbed){let t=Math.sqrt((e.clientX-this.startX)**2+(e.clientY-this.startY)**2);!this.isDragging&&t>this.dragThreshold&&(this.isDragging=!0),this.isDragging&&requestAnimationFrame(()=>{let t=this.svgItem.viewBox.baseVal,n=(e.clientX-this.startX)*(t.width/this.svgItem.clientWidth),r=(e.clientY-this.startY)*(t.height/this.svgItem.clientHeight);t.x=this.dragStartViewBoxX-n,t.y=this.dragStartViewBoxY-r,this.zoomX=t.x,this.zoomY=t.y,this.zoomW=t.width,this.zoomH=t.height})}}mouseDown(e){this.grabbed=!0;let t=this.svgItem.viewBox.baseVal;this.startX=e.clientX,this.startY=e.clientY,this.dragStartViewBoxX=t.x,this.dragStartViewBoxY=t.y}mouseUp(){this.grabbed=!1,this.isDragging=!1}zoom(e){e=Math.abs(e)<.02?e/Math.abs(e)*.02:e;let[t,n,r,i]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],a=t+r/2,o=n+i/2,[s,c]=[r+r*e,i+i*e],l=a-s/2,u=o-c/2;s>=this.zoomMax||s<=this.zoomMin||(this.svgItem.setAttribute(`viewBox`,`${l} ${u} ${s} ${c}`),this.zoomX=l,this.zoomY=u,this.zoomW=s,this.zoomH=c)}zoomIn(){this.zoom(-.1)}zoomOut(){this.zoom(.1)}onWheel(e){e.preventDefault();let t=e.deltaY/1e3;t=Math.abs(t)<.02?.02*e.deltaY/Math.abs(e.deltaY):t;let n=new DOMPoint(e.clientX,e.clientY);n=n.matrixTransform(this.svgItem.getScreenCTM()?.inverse());let[r,i,a,o]=this.svgItem.getAttribute(`viewBox`)?.split(` `).map(Number)??[0,0,0,0],[s,c]=[(n.x-r)/a,(n.y-i)/o],[l,u]=[a+a*t,o+o*t],d=n.x-s*l,f=n.y-c*u;l>=this.zoomMax||l<=this.zoomMin||Number.isNaN(d)||Number.isNaN(f)||Number.isNaN(l)||Number.isNaN(u)||requestAnimationFrame(()=>{this.zoomX=d,this.zoomY=f,this.zoomW=l,this.zoomH=u,this.svgItem.setAttribute(`viewBox`,`${d} ${f} ${l} ${u}`)})}equalizerFiltered(e){this.clearPathReveal(),this.graphResponse=e.detail.graph,this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.extractEQPreferences(e);let t=e.detail.povMode;this.povNodeId=e.detail.povNodeId||null,t&&(this.povMode=!0),this.buildGraphAndRender().then(()=>{if(t&&this.povFocusNodeId){this.equalizer.controls.povNode=this.povNode;let e=this.graphResponse.nodes?.find(e=>e.id===this.povFocusNodeId);e&&this.moveToNode(e,!1)}else this.activeNode||this.centerOnRoot()})}extractEQPreferences(e){e.detail.spacing&&(e.detail.spacing.nodeNodeBetweenLayers&&(this.nodeNodeBetweenLayers=e.detail.spacing.nodeNodeBetweenLayers.toString()),e.detail.spacing.nodeNode&&(this.nodeNode=e.detail.spacing.nodeNode.toString()),e.detail.spacing.edgeNodeBetweenLayers&&(this.edgeNodeBetweenLayers=e.detail.spacing.edgeNodeBetweenLayers.toString()),e.detail.spacing.edgeNode&&(this.edgeNode=e.detail.spacing.edgeNode.toString()),this.bendEdges=!!e.detail.spacing.bendEdges,this.bendPoints=!!e.detail.spacing.bendPoints)}equalizerChanged(e){this.clearPathReveal(),e.detail.graph.nodes.length>0&&(this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache(),this.graphResponse=e.detail.graph),this.extractEQPreferences(e),this.buildGraphAndRender().then(()=>{this.activeNode&&this._visible&&this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:this.activeNode.id,first:!0}}))})}resetNodes(){this.graph.children?.forEach(e=>{let t=e;delete t.x,delete t.y}),this.graph.edges?.forEach(e=>{delete e.sections})}filterGraphByExpansion(e,t){return this.layoutFilterManager.filterGraphByExpansion(e,t,this.povMode)}preservePositions(){this.layoutFilterManager.preservePositions(this.graph)}applyPositionHints(e){this.layoutFilterManager.applyPositionHints(e)}toggleNodeExpansion(e){this.expansionManager.toggleNodeExpansion(e)}loadMoreChildren(e){this.expansionManager.loadMoreChildren(e)}isNodeExpanded(e){return this.expansionManager.isNodeExpanded(e)}isNodeCurrentlyVisible(e){return this.expansionManager.isNodeCurrentlyVisible(e)}invalidateChildrenCache(){this.expansionManager.invalidateChildrenCache(),this.layoutFilterManager.invalidateChildrenCache()}addToNodeMap(e){this.nodeMap.has(e.id)||this.nodeMap.set(e.id,e)}ensureNodesVisible(e){this.expansionManager.ensureNodesVisible(e)}revealPathToNode(e){this.expansionManager.revealPathToNode(e,this.povMode)}clearPathReveal(){this.expansionManager.clearPathReveal()}generateOptions(){return{"spacing.nodeNodeBetweenLayers":this.nodeNodeBetweenLayers,"spacing.nodeNode":this.nodeNode,"elk.nodeLabels.placement":`INSIDE V_CENTER H_RIGHT`,"elk.algorithm":`layered`,"elk.direction":this.direction,"org.eclipse.elk.edgeRouting":`ORTHOGONAL`,"elk.layered.unnecessaryBendpoints":`true`,"elk.layered.spacing.edgeNodeBetweenLayers":this.edgeNodeBetweenLayers,"org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment":`BALANCED`,"org.eclipse.elk.layered.cycleBreaking.strategy":`DEPTH_FIRST`,"nodePlacement.strategy":`BRANDES_KOEPF`,"org.eclipse.elk.spacing.edgeLabel":`0`,"org.eclipse.elk.spacing.edgeNode":this.edgeNode,"org.eclipse.elk.layered.edgeLabels.sideSelection":`ALWAYS_UP`,"org.eclipse.elk.spacing.portPort":`10`,"elk.interactive":`true`,"elk.interactiveLayout":`true`,"elk.layered.interactiveReferencePoint":`CENTER`,"elk.layered.crossingMinimization.semiInteractive":`true`,"elk.layered.considerModelOrder.strategy":`NODES_AND_EDGES`}}buildGraph(){let e=++this.layoutRequestId,t=this.generateOptions(),n=this.filterGraphByExpansion(this.graphResponse.nodes||[],this.graphResponse.edges||[]);this.hasMoreChildren=n.hasMoreChildren,this.applyPositionHints(n.nodes);let r={id:`root`,layoutOptions:t,children:n.nodes,edges:n.edges};return this.nodeMap.clear(),this.equalizer.graphResponse||(this.equalizer.graphResponse=this.graphResponse),new Promise((n,i)=>{let a=()=>{this.elkLayoutWorker.removeEventListener(`message`,o),this.elkLayoutWorker.removeEventListener(`error`,s)},o=t=>{t.data.requestId===e&&(a(),t.data.success?(this.graph=t.data.graph,this.readyGo(),n(this.graph)):i(Error(t.data.error)))},s=e=>{a(),i(Error(`Worker error: ${e.message}`))};this.elkLayoutWorker.addEventListener(`message`,o),this.elkLayoutWorker.addEventListener(`error`,s),this.elkLayoutWorker.postMessage({requestId:e,graph:r,layoutOptions:t})})}async buildGraphAndRender(){await this.buildGraph(),await this.updateComplete,await new Promise(e=>requestAnimationFrame(()=>e()))}buildNodes(){this.nodeMap.clear(),this.definitionCache.clear(),this.edgeMap.clear();let e=this.explorerComponentFactory.buildNodes({graph:this.graph,graphResponse:this.graphResponse,expandedNodes:this.expandedNodes,hasMoreChildren:this.hasMoreChildren,povMode:this.povMode,povNodeId:this.povNodeId,activeNode:this.activeNode,violationMap:this.violationMap,disablePovMode:this.disablePovMode,hideExamples:this.hideExamples,changeView:this.changeView,graphMode:this.graphMode});this.nodes=e.nodes,this.nodeComponents=e.nodeComponents,this.renderGraphMap=e.renderGraphMap,this.nodeComponentMap=e.nodeComponentMap}buildEdges(){let e=this.explorerComponentFactory.buildEdges({graph:this.graph,collapsedEdges:this.collapsedEdges,bendPoints:this.bendPoints,bendEdges:this.bendEdges,edgePathStyle:this.edgePathStyle,nodeLimitExceeded:this.nodeLimitExceeded,povMode:this.povMode},this.renderGraphMap);this.edges=e.edges,this.edgeComponents=e.edgeComponents,this.edgeComponentMap=e.edgeComponentMap}readyGo(){this.buildNodes(),this.buildEdges(),this.ready=!0,this.requestUpdate()}reset(){this.direction=ea.RIGHT;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}this.zoomH=n,this.zoomW=t,this.zoomX=-150,this.zoomY=-150,this.svgItem.setAttribute(`viewBox`,`-150 -150 ${t} ${n}`),this.resetNodes(),this.buildGraphAndRender().then(()=>{this.snapToRoot()})}snapToRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=Zi(this.direction,e,t);this.snapViewBox(n.x,n.y)}this.activeNode=e}}resetSelection(){if(this.previousActiveNodeId&&this.renderGraphMap){let e=this.renderGraphMap.get(this.previousActiveNodeId);e&&(e.active=!1)}this.activeNode=void 0,this.previousActiveNodeId=null,this.requestUpdate()}centerOnRoot(){if(!this.graph?.children)return;let e=this.graph.children.find(e=>e.id===`root`);if(e&&e.x!==void 0&&e.y!==void 0){let t=this.svgItem?.viewBox?.baseVal;if(t){let n=Zi(this.direction,e,t);this.animateViewBox(n.x,n.y,200)}this.activeNode=e}}navigateToRoot(){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:`root`,first:!0}}))}animateViewBox(e,t,n){let r=++this.currentAnimationId,i=this.svgItem.viewBox.baseVal,a=i.x,o=i.y,s=performance.now(),c=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,l=this;function u(d){if(r!==l.currentAnimationId)return;let f=d-s,p=Math.min(f/n,1),m=c(p);i.x=a+(e-a)*m,i.y=o+(t-o)*m,l.zoomX=i.x,l.zoomY=i.y,p<1&&requestAnimationFrame(u)}requestAnimationFrame(u)}snapViewBox(e,t){this.currentAnimationId++;let n=this.svgItem.viewBox.baseVal;n.x=e,n.y=t,this.zoomX=e,this.zoomY=t,this.zoomW=n.width,this.zoomH=n.height}getNodeScreenOffset(e){let t=this.svgItem?.viewBox?.baseVal;if(!t)return null;let n=this.graph?.children?.find(t=>t.id===e);if(!n||n.x===void 0||n.y===void 0)return null;let r=n.width||0,i=n.height||0,a=n.x+r/2,o=n.y+i/2,s=t.x+t.width/2,c=t.y+t.height/2;return{x:a-s,y:o-c}}restoreNodeScreenPosition(e,t){let n=this.svgItem?.viewBox?.baseVal;if(!n)return;let r=this.graph?.children?.find(t=>t.id===e);if(!r||r.x===void 0||r.y===void 0)return;let i=r.width||0,a=r.height||0,o=r.x+i/2,s=r.y+a/2,c=o-t.x,l=s-t.y,u=c-n.width/2,d=l-n.height/2;this.snapViewBox(u,d)}moveToNode(e,t=!1,n=!1){if(this.svgItem&&this.graph?.children){let t=this.svgItem.viewBox.baseVal,r=this.graph.children.find(t=>t.id===e.id);if(r&&r.x!==void 0&&r.y!==void 0&&!r.filtered){let e=Zi(this.direction,r,t);n?this.snapViewBox(e.x,e.y):this.animateViewBox(e.x,e.y,200)}}}buildBaseViewBox(){let e=600,t=0;return this.graph.children?.forEach(()=>{e+=1,t+=20}),t>900&&(t=900),{base:e,offset:t}}render(){if(!this.ready)return T`
loading explorer... -
`;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}let r=this.zoomX===null?-150:this.zoomX,i=this.zoomY===null?-150:this.zoomY,a=this.zoomW===null?t:this.zoomW,o=this.zoomH===null?n:this.zoomH;return ot` - ${this.hideControls?ct:this.equalizer} +
`;let e=this.buildBaseViewBox().base+300,t=e,n=e;if(this.containerWidth>0&&this.containerHeight>0){let r=this.containerWidth/this.containerHeight;r>1?(n=e,t=e*r):(t=e,n=e/r)}let r=this.zoomX===null?-150:this.zoomX,i=this.zoomY===null?-150:this.zoomY,a=this.zoomW===null?t:this.zoomW,o=this.zoomH===null?n:this.zoomH;return at` + ${this.hideControls?st:this.equalizer} - ${sne()} + ${fne()} ${Ht(this.edgeComponents,e=>e.edge.id,e=>e.render())} ${Ht(this.nodeComponents,e=>e.id,e=>e.render())} - `}};aa.graphDependentWorkerFactory=null,aa.elkWorkerFactory=null,aa.styles=[mee,Wr],na([kt(`svg`)],aa.prototype,`svgItem`,void 0),na([kt(`svg > g`)],aa.prototype,`svgGroup`,void 0),na([At(`path`)],aa.prototype,`paths`,void 0),na([At(`foreignObject`)],aa.prototype,`foreignObjects`,void 0),na([Et()],aa.prototype,`ready`,void 0),na([Tt()],aa.prototype,`renderEqualizer`,void 0),na([Tt()],aa.prototype,`edgePathStyle`,void 0),na([Tt({type:Boolean})],aa.prototype,`embeddedMode`,void 0),na([Tt()],aa.prototype,`graphResponse`,void 0),na([Tt({type:Boolean})],aa.prototype,`disablePovMode`,void 0),na([Tt({type:Boolean})],aa.prototype,`hideExamples`,void 0),na([Tt({type:Boolean})],aa.prototype,`hideControls`,void 0),na([Tt({type:Boolean})],aa.prototype,`changeView`,void 0),na([Tt()],aa.prototype,`graphMode`,void 0),na([Tt()],aa.prototype,`povMode`,void 0),na([Tt()],aa.prototype,`povNodeId`,void 0),na([Tt()],aa.prototype,`povNode`,void 0),na([Et()],aa.prototype,`models`,void 0),aa=ra=na([wt(`pb33f-explorer`)],aa);var hne=xe` + `}};ta.graphDependentWorkerFactory=null,ta.elkWorkerFactory=null,ta.styles=[mee,Ur],Qi([Ot(`svg`)],ta.prototype,`svgItem`,void 0),Qi([Ot(`svg > g`)],ta.prototype,`svgGroup`,void 0),Qi([kt(`path`)],ta.prototype,`paths`,void 0),Qi([kt(`foreignObject`)],ta.prototype,`foreignObjects`,void 0),Qi([Tt()],ta.prototype,`ready`,void 0),Qi([wt()],ta.prototype,`renderEqualizer`,void 0),Qi([wt()],ta.prototype,`edgePathStyle`,void 0),Qi([wt({type:Boolean})],ta.prototype,`embeddedMode`,void 0),Qi([wt()],ta.prototype,`graphResponse`,void 0),Qi([wt({type:Boolean})],ta.prototype,`disablePovMode`,void 0),Qi([wt({type:Boolean})],ta.prototype,`hideExamples`,void 0),Qi([wt({type:Boolean})],ta.prototype,`hideControls`,void 0),Qi([wt({type:Boolean})],ta.prototype,`changeView`,void 0),Qi([wt()],ta.prototype,`graphMode`,void 0),Qi([wt()],ta.prototype,`povMode`,void 0),Qi([wt()],ta.prototype,`povNodeId`,void 0),Qi([wt()],ta.prototype,`povNode`,void 0),Qi([Tt()],ta.prototype,`models`,void 0),ta=$i=Qi([Ct(`pb33f-explorer`)],ta);var bne=xe` :host { display: block; height: 100%; @@ -3477,7 +3492,7 @@ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background: var(--secondary-color-lowalpha); } -`,gne=xe` +`,xne=xe` :host { display: inline-block; width: 1em; @@ -3490,17 +3505,17 @@ height: 100%; width: 100%; } -`,oa=Symbol(),sa=Symbol(),ca,la=new Map,ua=class extends _n{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label=``,this.library=`default`}async resolveIcon(e,t){let n;if(t?.spriteSheet)return this.svg=T` +`,na=Symbol(),ra=Symbol(),ia,aa=new Map,oa=class extends _n{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label=``,this.library=`default`}async resolveIcon(e,t){let n;if(t?.spriteSheet)return this.svg=T` - `,this.svg;try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?oa:sa}catch{return sa}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if((t?.tagName)?.toLowerCase()!==`svg`)return oa;ca||=new DOMParser;let r=ca.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):oa}catch{return oa}}connectedCallback(){super.connectedCallback(),g(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),_(this)}getIconSource(){let e=v(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){var e;let{url:t,fromLibrary:n}=this.getIconSource(),r=n?v(this.library):void 0;if(!t){this.svg=null;return}let i=la.get(t);if(i||(i=this.resolveIcon(t,r),la.set(t,i)),!this.initialRender)return;let a=await i;if(a===sa&&la.delete(t),t===this.getIconSource().url){if(lee(a)){if(this.svg=a,r){await this.updateComplete;let e=this.shadowRoot.querySelector(`[part='svg']`);typeof r.mutator==`function`&&e&&r.mutator(e)}}else switch(a){case sa:case oa:this.svg=null,this.emit(`sl-error`);break;default:this.svg=a.cloneNode(!0),(e=r?.mutator)==null||e.call(r,this.svg),this.emit(`sl-load`)}}}render(){return this.svg}};ua.styles=[hn,gne],w([Et()],ua.prototype,`svg`,2),w([Tt({reflect:!0})],ua.prototype,`name`,2),w([Tt()],ua.prototype,`src`,2),w([Tt()],ua.prototype,`label`,2),w([Tt({reflect:!0})],ua.prototype,`library`,2),w([mn(`label`)],ua.prototype,`handleLabelChange`,1),w([mn([`name`,`src`,`library`])],ua.prototype,`setIcon`,1),ua.define(`sl-icon`);var da=c(o(((e,t)=>{var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1,i=1,a=0;n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,i){i===void 0&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+this.Diff_Timeout*1e3);var o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e==t)return e?[new n.Diff(a,e)]:[];r===void 0&&(r=!0);var s=r,c=this.diff_commonPrefix(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=this.diff_commonSuffix(e,t);var u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);var d=this.diff_compute_(e,t,s,o);return l&&d.unshift(new n.Diff(a,l)),u&&d.push(new n.Diff(a,u)),this.diff_cleanupMerge(d),d},n.prototype.diff_compute_=function(e,t,o,s){var c;if(!e)return[new n.Diff(i,t)];if(!t)return[new n.Diff(r,e)];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,d=l.indexOf(u);if(d!=-1)return c=[new n.Diff(i,l.substring(0,d)),new n.Diff(a,u),new n.Diff(i,l.substring(d+u.length))],e.length>t.length&&(c[0][0]=c[2][0]=r),c;if(u.length==1)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var p=f[0],m=f[1],h=f[2],g=f[3],_=f[4],v=this.diff_main(p,h,o,s),y=this.diff_main(m,g,o,s);return v.concat([new n.Diff(a,_)],y)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,o){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var c=s.lineArray,l=this.diff_main(e,t,!1,o);this.diff_charsToLines_(l,c),this.diff_cleanupSemantic(l),l.push(new n.Diff(a,``));for(var u=0,d=0,f=0,p=``,m=``;u=1&&f>=1){l.splice(u-d-f,d+f),u=u-d-f;for(var h=this.diff_main(p,m,!1,o),g=h.length-1;g>=0;g--)l.splice(u,0,h[g]);u+=h.length}f=0,d=0,p=``,m=``}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,a){for(var o=e.length,s=t.length,c=Math.ceil((o+s)/2),l=c,u=2*c,d=Array(u),f=Array(u),p=0;pa);b++){for(var x=-b+g;x<=b-_;x+=2){for(var S=l+x,ee=x==-b||x!=b&&d[S-1]o)_+=2;else if(te>s)g+=2;else if(h){var ne=l+m-x;if(ne>=0&&ne=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}for(var re=-b+v;re<=b-y;re+=2){for(var ne=l+re,C=re==-b||re!=b&&f[ne-1]o)y+=2;else if(ie>s)v+=2;else if(!h){var S=l+m-re;if(S>=0&&S=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var a=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),c=t.substring(r),l=this.diff_main(a,o,!1,i),u=this.diff_main(s,c,!1,i);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};n[0]=``;function i(e){for(var t=``,i=0,o=-1,s=n.length;o`,this.svg;try{if(n=await fetch(e,{mode:`cors`}),!n.ok)return n.status===410?na:ra}catch{return ra}try{let e=document.createElement(`div`);e.innerHTML=await n.text();let t=e.firstElementChild;if((t?.tagName)?.toLowerCase()!==`svg`)return na;ia||=new DOMParser;let r=ia.parseFromString(t.outerHTML,`text/html`).body.querySelector(`svg`);return r?(r.part.add(`svg`),document.adoptNode(r)):na}catch{return na}}connectedCallback(){super.connectedCallback(),g(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){super.disconnectedCallback(),_(this)}getIconSource(){let e=v(this.library);return this.name&&e?{url:e.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){typeof this.label==`string`&&this.label.length>0?(this.setAttribute(`role`,`img`),this.setAttribute(`aria-label`,this.label),this.removeAttribute(`aria-hidden`)):(this.removeAttribute(`role`),this.removeAttribute(`aria-label`),this.setAttribute(`aria-hidden`,`true`))}async setIcon(){var e;let{url:t,fromLibrary:n}=this.getIconSource(),r=n?v(this.library):void 0;if(!t){this.svg=null;return}let i=aa.get(t);if(i||(i=this.resolveIcon(t,r),aa.set(t,i)),!this.initialRender)return;let a=await i;if(a===ra&&aa.delete(t),t===this.getIconSource().url){if(uee(a)){if(this.svg=a,r){await this.updateComplete;let e=this.shadowRoot.querySelector(`[part='svg']`);typeof r.mutator==`function`&&e&&r.mutator(e)}}else switch(a){case ra:case na:this.svg=null,this.emit(`sl-error`);break;default:this.svg=a.cloneNode(!0),(e=r?.mutator)==null||e.call(r,this.svg),this.emit(`sl-load`)}}}render(){return this.svg}};oa.styles=[hn,xne],w([Tt()],oa.prototype,`svg`,2),w([wt({reflect:!0})],oa.prototype,`name`,2),w([wt()],oa.prototype,`src`,2),w([wt()],oa.prototype,`label`,2),w([wt({reflect:!0})],oa.prototype,`library`,2),w([mn(`label`)],oa.prototype,`handleLabelChange`,1),w([mn([`name`,`src`,`library`])],oa.prototype,`setIcon`,1),oa.define(`sl-icon`);var Sne=c(o(((e,t)=>{var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},r=-1,i=1,a=0;n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,r,i){i===void 0&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:new Date().getTime()+this.Diff_Timeout*1e3);var o=i;if(e==null||t==null)throw Error(`Null input. (diff_main)`);if(e==t)return e?[new n.Diff(a,e)]:[];r===void 0&&(r=!0);var s=r,c=this.diff_commonPrefix(e,t),l=e.substring(0,c);e=e.substring(c),t=t.substring(c),c=this.diff_commonSuffix(e,t);var u=e.substring(e.length-c);e=e.substring(0,e.length-c),t=t.substring(0,t.length-c);var d=this.diff_compute_(e,t,s,o);return l&&d.unshift(new n.Diff(a,l)),u&&d.push(new n.Diff(a,u)),this.diff_cleanupMerge(d),d},n.prototype.diff_compute_=function(e,t,o,s){var c;if(!e)return[new n.Diff(i,t)];if(!t)return[new n.Diff(r,e)];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,d=l.indexOf(u);if(d!=-1)return c=[new n.Diff(i,l.substring(0,d)),new n.Diff(a,u),new n.Diff(i,l.substring(d+u.length))],e.length>t.length&&(c[0][0]=c[2][0]=r),c;if(u.length==1)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var p=f[0],m=f[1],h=f[2],g=f[3],_=f[4],v=this.diff_main(p,h,o,s),y=this.diff_main(m,g,o,s);return v.concat([new n.Diff(a,_)],y)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,o){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var c=s.lineArray,l=this.diff_main(e,t,!1,o);this.diff_charsToLines_(l,c),this.diff_cleanupSemantic(l),l.push(new n.Diff(a,``));for(var u=0,d=0,f=0,p=``,m=``;u=1&&f>=1){l.splice(u-d-f,d+f),u=u-d-f;for(var h=this.diff_main(p,m,!1,o),g=h.length-1;g>=0;g--)l.splice(u,0,h[g]);u+=h.length}f=0,d=0,p=``,m=``}u++}return l.pop(),l},n.prototype.diff_bisect_=function(e,t,a){for(var o=e.length,s=t.length,c=Math.ceil((o+s)/2),l=c,u=2*c,d=Array(u),f=Array(u),p=0;pa);b++){for(var x=-b+g;x<=b-_;x+=2){for(var S=l+x,ee=x==-b||x!=b&&d[S-1]o)_+=2;else if(te>s)g+=2;else if(h){var ne=l+m-x;if(ne>=0&&ne=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}for(var re=-b+v;re<=b-y;re+=2){for(var ne=l+re,C=re==-b||re!=b&&f[ne-1]o)y+=2;else if(ie>s)v+=2;else if(!h){var S=l+m-re;if(S>=0&&S=C)return this.diff_bisectSplit_(e,t,ee,te,a)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var a=e.substring(0,n),o=t.substring(0,r),s=e.substring(n),c=t.substring(r),l=this.diff_main(a,o,!1,i),u=this.diff_main(s,c,!1,i);return l.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};n[0]=``;function i(e){for(var t=``,i=0,o=-1,s=n.length;or?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||r.length*2=e.length?[s,c,l,u,o]:null}var o=a(n,r,Math.ceil(n.length/4)),s=a(n,r,Math.ceil(n.length/2)),c;if(!o&&!s)return null;c=s?o&&o[4].length>s[4].length?o:s:o;var l,u,d,f;e.length>t.length?(l=c[0],u=c[1],d=c[2],f=c[3]):(d=c[0],f=c[1],l=c[2],u=c[3]);var p=c[4];return[l,u,d,f,p]},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,o=[],s=0,c=null,l=0,u=0,d=0,f=0,p=0;l0?o[s-1]:-1,u=0,d=0,f=0,p=0,c=null,t=!0)),l++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l=_?(g>=m.length/2||g>=h.length/2)&&(e.splice(l,0,new n.Diff(a,h.substring(0,g))),e[l-1][1]=m.substring(0,m.length-g),e[l+1][1]=h.substring(g),l++):(_>=m.length/2||_>=h.length/2)&&(e.splice(l,0,new n.Diff(a,m.substring(0,_))),e[l-1][0]=i,e[l-1][1]=h.substring(0,h.length-_),e[l+1][0]=r,e[l+1][1]=m.substring(_),l++),l++}l++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),a=r.match(n.nonAlphaNumericRegex_),o=i.match(n.nonAlphaNumericRegex_),s=a&&r.match(n.whitespaceRegex_),c=o&&i.match(n.whitespaceRegex_),l=s&&r.match(n.linebreakRegex_),u=c&&i.match(n.linebreakRegex_),d=l&&e.match(n.blanklineEndRegex_),f=u&&t.match(n.blanklineStartRegex_);return d||f?5:l||u?4:a&&!s&&c?3:s||c?2:a||o?1:0}for(var r=1;r=p&&(p=m,u=i,d=o,f=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=d,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,o=[],s=0,c=null,l=0,u=!1,d=!1,f=!1,p=!1;l0?o[s-1]:-1,f=p=!1),t=!0)),l++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(a,``));for(var t=0,o=0,s=0,c=``,l=``,u;t1?(o!==0&&s!==0&&(u=this.diff_commonPrefix(l,c),u!==0&&(t-o-s>0&&e[t-o-s-1][0]==a?e[t-o-s-1][1]+=l.substring(0,u):(e.splice(0,0,new n.Diff(a,l.substring(0,u))),t++),l=l.substring(u),c=c.substring(u)),u=this.diff_commonSuffix(l,c),u!==0&&(e[t][1]=l.substring(l.length-u)+e[t][1],l=l.substring(0,l.length-u),c=c.substring(0,c.length-u))),t-=o+s,e.splice(t,o+s),c.length&&(e.splice(t,0,new n.Diff(r,c)),t++),l.length&&(e.splice(t,0,new n.Diff(i,l)),t++),t++):t!==0&&e[t-1][0]==a?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,s=0,o=0,c=``,l=``}e[e.length-1][1]===``&&e.pop();var d=!1;for(t=1;tt));c++)o=n,s=a;return e.length!=c&&e[c][0]===r?s:s+(t-o)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,o=//g,c=/\n/g,l=0;l`);switch(u){case i:t[l]=``+d+``;break;case r:t[l]=``+d+``;break;case a:t[l]=``+d+``}}return t.join(``)},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw Error(`Pattern too long for this browser.`);var r=this.match_alphabet_(t),i=this;function a(e,r){var a=e/t.length,o=Math.abs(n-r);return i.Match_Distance?a+o/i.Match_Distance:o?1:a}var o=this.Match_Threshold,s=e.indexOf(t,n);s!=-1&&(o=Math.min(a(0,s),o),s=e.lastIndexOf(t,n+t.length),s!=-1&&(o=Math.min(a(0,s),o)));var c=1<=m;_--){var v=r[e.charAt(_-1)];if(p===0?g[_]=(g[_+1]<<1|1)&v:g[_]=(g[_+1]<<1|1)&v|(f[_+1]|f[_])<<1|1|f[_+1],g[_]&c){var y=a(p,_-1);if(y<=o){if(o=y,s=_-1,s>n)m=Math.max(1,2*n-s);else break}}}if(a(p+1,n)>o)break;f=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(c),this.diff_cleanupEfficiency(c));else if(e&&typeof e==`object`&&t===void 0&&o===void 0)c=e,s=this.diff_text1(c);else if(typeof e==`string`&&t&&typeof t==`object`&&o===void 0)s=e,c=t;else if(typeof e==`string`&&typeof t==`string`&&o&&typeof o==`object`)s=e,c=o;else throw Error(`Unknown call format to patch_make.`);if(c.length===0)return[];for(var l=[],u=new n.patch_obj,d=0,f=0,p=0,m=s,h=s,g=0;g=2*this.Patch_Margin&&d&&(this.patch_addContext_(u,m),l.push(u),u=new n.patch_obj,d=0,m=h,f=p)}_!==i&&(f+=v.length),_!==r&&(p+=v.length)}return d&&(this.patch_addContext_(u,m),l.push(u)),l},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?(d=this.match_main(t,u.substring(0,this.Match_MaxBits),l),d!=-1&&(f=this.match_main(t,u.substring(u.length-this.Match_MaxBits),l+u.length-this.Match_MaxBits),(f==-1||d>=f)&&(d=-1))):d=this.match_main(t,u,l),d==-1)s[c]=!1,o-=e[c].length2-e[c].length1;else{s[c]=!0,o=d-l;var p=f==-1?t.substring(d,d+u.length):t.substring(d,f+this.Match_MaxBits);if(u==p)t=t.substring(0,d)+this.diff_text2(e[c].diffs)+t.substring(d+u.length);else{var m=this.diff_main(u,p,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(m)/u.length>this.Patch_DeleteThreshold)s[c]=!1;else{this.diff_cleanupSemanticLossless(m);for(var h=0,g,_=0;_s[0][1].length){var c=t-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],o.start1-=c,o.start2-=c,o.length1+=c,o.length2+=c}if(o=e[e.length-1],s=o.diffs,s.length==0||s[s.length-1][0]!=a)s.push(new n.Diff(a,r)),o.length1+=t,o.length2+=t;else if(t>s[s.length-1][1].length){var c=t-s[s.length-1][1].length;s[s.length-1][1]+=r.substring(0,c),o.length1+=c,o.length2+=c}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,o=0;o2*t?(d.length1+=m.length,c+=m.length,f=!1,d.diffs.push(new n.Diff(p,m)),s.diffs.shift()):(m=m.substring(0,t-d.length1-this.Patch_Margin),d.length1+=m.length,c+=m.length,p===a?(d.length2+=m.length,l+=m.length):f=!1,d.diffs.push(new n.Diff(p,m)),m==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(m.length))}u=this.diff_text2(d.diffs),u=u.substring(u.length-this.Patch_Margin);var h=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);h!==``&&(d.length1+=h.length,d.length2+=h.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===a?d.diffs[d.diffs.length-1][1]+=h:d.diffs.push(new n.Diff(a,h))),f||e.splice(++o,0,d)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n`;break;case 2:case 3:t=T` `;break;case 4:case 5:t=T` `}return T`${t}`}renderChangeType(e){let t=T``;switch(e.change){case 1:t=T`(MODIFIED)`;break;case 2:case 3:t=T`(ADDED)`;break;case 4:case 5:t=T`(REMOVED)`}return T`${t}`}renderBreaking(e){return e?T` - `:T``}},_ne=xe` + `:T``}},Cne=xe` .props { border-top: 1px dashed var(--secondary-color); padding: 5px 0 5px 0; @@ -3776,7 +3791,7 @@ color: var(--secondary-color); } -`,pa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ma=class extends Ct{constructor(){super(),this.height=20,this.animateStripe=!1,this.speed=2,this._lastTime=performance.now(),this._currentOffset=0,this.warn=!1,this.danger=!1}connectedCallback(){super.connectedCallback(),this.colorAlt=`var(--background-color)`,this.colorMain=`var(--primary-color)`,this.warn&&(this.colorMain=`var(--warning-color)`),this.danger&&(this.colorMain=`var(--error-color)`),this.animateStripe&&(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this)))}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId)}updated(e){e.has(`animateStripe`)&&(this.animateStripe?(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))):this._animationFrameId&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0,this._currentOffset=0,this.requestUpdate()))}_updateAnimation(e){let t=e-this._lastTime;this._lastTime=e;let n=40/this.speed;this._currentOffset=(this._currentOffset+t/1e3*n)%40,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))}render(){let e=`rotate(45) translate(${this.animateStripe?this._currentOffset:0} 0)`;return T` +`,ca=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},la=class extends St{constructor(){super(),this.height=20,this.animateStripe=!1,this.speed=2,this._lastTime=performance.now(),this._currentOffset=0,this.warn=!1,this.danger=!1}connectedCallback(){super.connectedCallback(),this.colorAlt=`var(--background-color)`,this.colorMain=`var(--primary-color)`,this.warn&&(this.colorMain=`var(--warning-color)`),this.danger&&(this.colorMain=`var(--error-color)`),this.animateStripe&&(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this)))}disconnectedCallback(){super.disconnectedCallback(),this._animationFrameId&&cancelAnimationFrame(this._animationFrameId)}updated(e){e.has(`animateStripe`)&&(this.animateStripe?(this._lastTime=performance.now(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))):this._animationFrameId&&(cancelAnimationFrame(this._animationFrameId),this._animationFrameId=void 0,this._currentOffset=0,this.requestUpdate()))}_updateAnimation(e){let t=e-this._lastTime;this._lastTime=e;let n=40/this.speed;this._currentOffset=(this._currentOffset+t/1e3*n)%40,this.requestUpdate(),this._animationFrameId=requestAnimationFrame(this._updateAnimation.bind(this))}render(){let e=`rotate(45) translate(${this.animateStripe?this._currentOffset:0} 0)`;return T` - `}};ma.styles=xe` + `}};la.styles=xe` :host { display: block; width: 100%; @@ -3806,7 +3821,7 @@ svg { display: block; } - `,pa([Tt({type:Number})],ma.prototype,`height`,void 0),pa([Tt({type:Boolean})],ma.prototype,`animateStripe`,void 0),pa([Tt({type:Number})],ma.prototype,`speed`,void 0),pa([Tt({type:Boolean})],ma.prototype,`warn`,void 0),pa([Tt({type:Boolean})],ma.prototype,`danger`,void 0),ma=pa([wt(`pb33f-warning-stripe`)],ma);var vne=xe` + `,ca([wt({type:Number})],la.prototype,`height`,void 0),ca([wt({type:Boolean})],la.prototype,`animateStripe`,void 0),ca([wt({type:Number})],la.prototype,`speed`,void 0),ca([wt({type:Boolean})],la.prototype,`warn`,void 0),ca([wt({type:Boolean})],la.prototype,`danger`,void 0),la=ca([Ct(`pb33f-warning-stripe`)],la);var wne=xe` :host { display: inline-flex; } @@ -3895,7 +3910,7 @@ box-shadow: 0 0 0 0 transparent; } } -`,ha=class extends _n{constructor(){super(...arguments),this.variant=`primary`,this.pill=!1,this.pulse=!1}render(){return T` +`,ua=class extends _n{constructor(){super(...arguments),this.variant=`primary`,this.pill=!1,this.pulse=!1}render(){return T` - `}};ha.styles=[hn,vne],w([Tt({reflect:!0})],ha.prototype,`variant`,2),w([Tt({type:Boolean,reflect:!0})],ha.prototype,`pill`,2),w([Tt({type:Boolean,reflect:!0})],ha.prototype,`pulse`,2),ha.define(`sl-badge`);var ga=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_a=class extends Ct{constructor(){super(...arguments),this.iconSize=Xr.medium}formatLabel(e){return e?e.replace(/([a-z])([A-Z])/g,`$1 $2`).toUpperCase():``}render(){return T` + `}};ua.styles=[hn,wne],w([wt({reflect:!0})],ua.prototype,`variant`,2),w([wt({type:Boolean,reflect:!0})],ua.prototype,`pill`,2),w([wt({type:Boolean,reflect:!0})],ua.prototype,`pulse`,2),ua.define(`sl-badge`);var da=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fa=class extends St{constructor(){super(...arguments),this.iconSize=Yr.medium}formatLabel(e){return e?e.replace(/([a-z])([A-Z])/g,`$1 $2`).toUpperCase():``}render(){return T` ${this.formatLabel(this.icon)} - `}};_a.styles=xe` + `}};fa.styles=xe` :host { display: inline-flex; align-items: center; @@ -3927,7 +3942,7 @@ margin-left: 10px; padding-top: 4px; } - `,ga([Tt()],_a.prototype,`icon`,void 0),ga([Tt()],_a.prototype,`iconSize`,void 0),_a=ga([wt(`pb33f-model-badge`)],_a);var va=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ya=class extends fa{constructor(e){super(),this.diff=new da.default,this.showDiff=!0,e&&(this.changes=e),this.renderChangeCountBar=!0,this.addPadding=!1,this.renderBreakingBar=!0,this.renderMeta=!1}toggleDiff(){this.showDiff=!this.showDiff}renderChange(e){let t=T``;e.context&&(e.context.originalLine&&e.context.originalLine===e.context.newLine&&(t=T` + `,da([wt()],fa.prototype,`icon`,void 0),da([wt()],fa.prototype,`iconSize`,void 0),fa=da([Ct(`pb33f-model-badge`)],fa);var pa=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ma=class extends sa{constructor(e){super(),this.diff=new Sne.default,this.showDiff=!0,e&&(this.changes=e),this.renderChangeCountBar=!0,this.addPadding=!1,this.renderBreakingBar=!0,this.renderMeta=!1}toggleDiff(){this.showDiff=!this.showDiff}renderChange(e){let t=T``;e.context&&(e.context.originalLine&&e.context.originalLine===e.context.newLine&&(t=T` ${e.change==1?T` @@ -4095,9 +4110,9 @@ ${e}
${t} -
`}};ya.styles=[_ne,zn],va([Tt()],ya.prototype,`changes`,void 0),va([Tt({type:Boolean})],ya.prototype,`addPadding`,void 0),va([Tt({type:Boolean})],ya.prototype,`renderBreakingBar`,void 0),va([Tt({type:Boolean})],ya.prototype,`renderMeta`,void 0),va([Et()],ya.prototype,`showDiff`,void 0),va([Et()],ya.prototype,`renderChangeCountBar`,void 0),ya=va([wt(`pb33f-changes-component`)],ya);var ba=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xa=class extends Ct{constructor(){super(...arguments),this.changes=[],this.panelHidden=!0}_flashTab(){let e=this.shadowRoot?.querySelector(`.collapse-tab`);e&&(e.addEventListener(`animationend`,()=>e.classList.remove(`flashing`),{once:!0}),e.classList.add(`flashing`))}_onCollapseClick(){this._flashTab(),this.dispatchEvent(new CustomEvent(`explorer-change-panel-toggled`,{bubbles:!0,composed:!0,detail:{hidden:!this.panelHidden}}))}render(){return T` +
`}};ma.styles=[Cne,zn],pa([wt()],ma.prototype,`changes`,void 0),pa([wt({type:Boolean})],ma.prototype,`addPadding`,void 0),pa([wt({type:Boolean})],ma.prototype,`renderBreakingBar`,void 0),pa([wt({type:Boolean})],ma.prototype,`renderMeta`,void 0),pa([Tt()],ma.prototype,`showDiff`,void 0),pa([Tt()],ma.prototype,`renderChangeCountBar`,void 0),ma=pa([Ct(`pb33f-changes-component`)],ma);var ha=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ga=class extends St{constructor(){super(...arguments),this.changes=[],this.panelHidden=!0}_flashTab(){let e=this.shadowRoot?.querySelector(`.collapse-tab`);e&&(e.addEventListener(`animationend`,()=>e.classList.remove(`flashing`),{once:!0}),e.classList.add(`flashing`))}_onCollapseClick(){this._flashTab(),this.dispatchEvent(new CustomEvent(`explorer-change-panel-toggled`,{bubbles:!0,composed:!0,detail:{hidden:!this.panelHidden}}))}render(){return T`
- ${this.panelHidden?ct:T` + ${this.panelHidden?st:T`
- `}};xa.styles=[hne],ba([Tt({type:Array})],xa.prototype,`changes`,void 0),ba([Tt({type:Boolean,attribute:`panel-hidden`,reflect:!0})],xa.prototype,`panelHidden`,void 0),xa=ba([wt(`pb33f-explorer-change-panel`)],xa);var yne=xe` + `}};ga.styles=[bne],ha([wt({type:Array})],ga.prototype,`changes`,void 0),ha([wt({type:Boolean,attribute:`panel-hidden`,reflect:!0})],ga.prototype,`panelHidden`,void 0),ga=ha([Ct(`pb33f-explorer-change-panel`)],ga);var Tne=xe` :host { display: flex; @@ -4227,7 +4242,7 @@ padding-bottom: 5px; } -`,bne=xe` +`,Ene=xe` .scroller::-webkit-scrollbar { width: 8px; } @@ -4241,7 +4256,7 @@ background: var(--secondary-color-lowalpha); padding: var(--global-padding); } -`,Sa=xe` +`,_a=xe` ::-webkit-scrollbar { width: 8px; height: 8px; @@ -4255,14 +4270,14 @@ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); background: var(--secondary-color-lowalpha); } -`,Ca=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wa=class extends fa{constructor(){super()}getChangeValue(e){return e.new?T`${e.property}: +`,Dne=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},va=class extends sa{constructor(){super()}getChangeValue(e){return e.new?T`${e.property}: ${e.new.length>100?e.new.slice(0,70)+`...`:e.new}`:e.original?T`${e.property}: ${e.original.length>100?e.original.slice(0,70)+`...`:e.original}`:T`${e.property}`}render(){return T`
${this.changes?.map(e=>{let t=T`${e.context.newLine}:${e.context.newColumn}`;return e.context.newLine||(t=T`${e.context.originalLine}:${e.context.originalColumn}`),T`
${this.renderChangeIcon(e)}
- +
${this.getChangeValue(e)} @@ -4272,7 +4287,7 @@
${this.renderBreaking(e.breaking)}
${t}
`})} -
`}};wa.styles=[yne,bne],Ca([Tt()],wa.prototype,`changes`,void 0),wa=Ca([wt(`pb33f-change-list`)],wa);var Ta=xe` +
`}};va.styles=[Tne,Ene],Dne([wt()],va.prototype,`changes`,void 0),va=Dne([Ct(`pb33f-change-list`)],va);var ya=xe` :host { display: block; outline: 0; @@ -4424,7 +4439,7 @@ outline: dashed 1px SelectedItem; } } -`,Ea=xe` +`,One=xe` :host { display: inline-block; } @@ -4542,7 +4557,7 @@ color: var(--sl-input-required-content-color); margin-inline-start: var(--sl-input-required-content-offset); } -`,Da=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new nn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit(`sl-change`)}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T` +`,ba=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new nn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.indeterminate=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.checked=!this.checked,this.indeterminate=!1,this.emit(`sl-change`)}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T`
@@ -4600,7 +4615,7 @@ ${this.helpText}
- `}};Da.styles=[hn,Jt,Ea],Da.dependencies={"sl-icon":ua},w([kt(`input[type="checkbox"]`)],Da.prototype,`input`,2),w([Et()],Da.prototype,`hasFocus`,2),w([Tt()],Da.prototype,`title`,2),w([Tt()],Da.prototype,`name`,2),w([Tt()],Da.prototype,`value`,2),w([Tt({reflect:!0})],Da.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`checked`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`indeterminate`,2),w([qt(`checked`)],Da.prototype,`defaultChecked`,2),w([Tt({reflect:!0})],Da.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],Da.prototype,`required`,2),w([Tt({attribute:`help-text`})],Da.prototype,`helpText`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Da.prototype,`handleDisabledChange`,1),w([mn([`checked`,`indeterminate`],{waitUntilFirstUpdate:!0})],Da.prototype,`handleStateChange`,1);var Oa=xe` + `}};ba.styles=[hn,Jt,One],ba.dependencies={"sl-icon":oa},w([Ot(`input[type="checkbox"]`)],ba.prototype,`input`,2),w([Tt()],ba.prototype,`hasFocus`,2),w([wt()],ba.prototype,`title`,2),w([wt()],ba.prototype,`name`,2),w([wt()],ba.prototype,`value`,2),w([wt({reflect:!0})],ba.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],ba.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],ba.prototype,`checked`,2),w([wt({type:Boolean,reflect:!0})],ba.prototype,`indeterminate`,2),w([qt(`checked`)],ba.prototype,`defaultChecked`,2),w([wt({reflect:!0})],ba.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],ba.prototype,`required`,2),w([wt({attribute:`help-text`})],ba.prototype,`helpText`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],ba.prototype,`handleDisabledChange`,1),w([mn([`checked`,`indeterminate`],{waitUntilFirstUpdate:!0})],ba.prototype,`handleStateChange`,1);var kne=xe` :host { --track-width: 2px; --track-color: rgb(128 128 128 / 25%); @@ -4657,12 +4672,12 @@ stroke-dasharray: 0.05em, 3em; } } -`,ka=class extends _n{constructor(){super(...arguments),this.localize=new pn(this)}render(){return T` +`,xa=class extends _n{constructor(){super(...arguments),this.localize=new pn(this)}render(){return T` - `}};ka.styles=[hn,Oa];var Aa=new Map,xne=new WeakMap;function Sne(e){return e??{keyframes:[],options:{duration:0}}}function Cne(e,t){return t.toLowerCase()===`rtl`?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function ja(e,t){Aa.set(e,Sne(t))}function Ma(e,t,n){let r=xne.get(e);if(r?.[t])return Cne(r[t],n.dir);let i=Aa.get(t);return i?Cne(i,n.dir):{keyframes:[],options:{duration:0}}}function Na(e,t,n){return new Promise(r=>{if(n?.duration===1/0)throw Error(`Promise-based animations must be finite.`);let i=e.animate(t,se(oe({},n),{duration:Tne()?0:n.duration}));i.addEventListener(`cancel`,r,{once:!0}),i.addEventListener(`finish`,r,{once:!0})})}function wne(e){return e=e.toString().toLowerCase(),e.indexOf(`ms`)>-1?parseFloat(e):e.indexOf(`s`)>-1?parseFloat(e)*1e3:parseFloat(e)}function Tne(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Pa(e){return Promise.all(e.getAnimations().map(e=>new Promise(t=>{e.cancel(),requestAnimationFrame(t)})))}function Ene(e,t){return e.map(e=>se(oe({},e),{height:e.height===`auto`?`${t}px`:e.height}))}function Dne(e,t,n){return e?t(e):n?.(e)}var Fa=class e extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute(`role`)===`treeitem`}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`treeitem`),this.setAttribute(`tabindex`,`-1`),this.isNestedItem()&&(this.slot=`children`)}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?`auto`:`0`,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit(`sl-collapse`),await Pa(this.childrenContainer);let{keyframes:e,options:t}=Ma(this,`tree-item.collapse`,{dir:this.localize.dir()});await Na(this.childrenContainer,Ene(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.hidden=!0,this.emit(`sl-after-collapse`)}isNestedItem(){let t=this.parentElement;return!!t&&e.isTreeItem(t)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has(`selected`)&&!e.has(`indeterminate`)&&(this.indeterminate=!1)}async animateExpand(){this.emit(`sl-expand`),await Pa(this.childrenContainer),this.childrenContainer.hidden=!1;let{keyframes:e,options:t}=Ma(this,`tree-item.expand`,{dir:this.localize.dir()});await Na(this.childrenContainer,Ene(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.style.height=`auto`,this.emit(`sl-after-expand`)}handleLoadingChange(){this.setAttribute(`aria-busy`,this.loading?`true`:`false`),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`)}handleSelectedChange(){this.setAttribute(`aria-selected`,this.selected?`true`:`false`)}handleExpandedChange(){this.isLeaf?this.removeAttribute(`aria-expanded`):this.setAttribute(`aria-expanded`,this.expanded?`true`:`false`)}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit(`sl-lazy-load`)):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit(`sl-lazy-change`)}getChildrenItems({includeDisabled:t=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(n=>e.isTreeItem(n)&&(t||!n.disabled)):[]}render(){let e=this.localize.dir()===`rtl`,t=!this.loading&&(!this.isLeaf||this.lazy);return T` + `}};xa.styles=[hn,kne];var Ane=new Map,jne=new WeakMap;function Mne(e){return e??{keyframes:[],options:{duration:0}}}function Nne(e,t){return t.toLowerCase()===`rtl`?{keyframes:e.rtlKeyframes||e.keyframes,options:e.options}:e}function Sa(e,t){Ane.set(e,Mne(t))}function Ca(e,t,n){let r=jne.get(e);if(r?.[t])return Nne(r[t],n.dir);let i=Ane.get(t);return i?Nne(i,n.dir):{keyframes:[],options:{duration:0}}}function wa(e,t,n){return new Promise(r=>{if(n?.duration===1/0)throw Error(`Promise-based animations must be finite.`);let i=e.animate(t,se(oe({},n),{duration:Ea()?0:n.duration}));i.addEventListener(`cancel`,r,{once:!0}),i.addEventListener(`finish`,r,{once:!0})})}function Ta(e){return e=e.toString().toLowerCase(),e.indexOf(`ms`)>-1?parseFloat(e):e.indexOf(`s`)>-1?parseFloat(e)*1e3:parseFloat(e)}function Ea(){return window.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function Da(e){return Promise.all(e.getAnimations().map(e=>new Promise(t=>{e.cancel(),requestAnimationFrame(t)})))}function Oa(e,t){return e.map(e=>se(oe({},e),{height:e.height===`auto`?`${t}px`:e.height}))}function ka(e,t,n){return e?t(e):n?.(e)}var Aa=class e extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.indeterminate=!1,this.isLeaf=!1,this.loading=!1,this.selectable=!1,this.expanded=!1,this.selected=!1,this.disabled=!1,this.lazy=!1}static isTreeItem(e){return e instanceof Element&&e.getAttribute(`role`)===`treeitem`}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`treeitem`),this.setAttribute(`tabindex`,`-1`),this.isNestedItem()&&(this.slot=`children`)}firstUpdated(){this.childrenContainer.hidden=!this.expanded,this.childrenContainer.style.height=this.expanded?`auto`:`0`,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0,this.handleExpandedChange()}async animateCollapse(){this.emit(`sl-collapse`),await Da(this.childrenContainer);let{keyframes:e,options:t}=Ca(this,`tree-item.collapse`,{dir:this.localize.dir()});await wa(this.childrenContainer,Oa(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.hidden=!0,this.emit(`sl-after-collapse`)}isNestedItem(){let t=this.parentElement;return!!t&&e.isTreeItem(t)}handleChildrenSlotChange(){this.loading=!1,this.isLeaf=!this.lazy&&this.getChildrenItems().length===0}willUpdate(e){e.has(`selected`)&&!e.has(`indeterminate`)&&(this.indeterminate=!1)}async animateExpand(){this.emit(`sl-expand`),await Da(this.childrenContainer),this.childrenContainer.hidden=!1;let{keyframes:e,options:t}=Ca(this,`tree-item.expand`,{dir:this.localize.dir()});await wa(this.childrenContainer,Oa(e,this.childrenContainer.scrollHeight),t),this.childrenContainer.style.height=`auto`,this.emit(`sl-after-expand`)}handleLoadingChange(){this.setAttribute(`aria-busy`,this.loading?`true`:`false`),this.loading||this.animateExpand()}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`)}handleSelectedChange(){this.setAttribute(`aria-selected`,this.selected?`true`:`false`)}handleExpandedChange(){this.isLeaf?this.removeAttribute(`aria-expanded`):this.setAttribute(`aria-expanded`,this.expanded?`true`:`false`)}handleExpandAnimation(){this.expanded?this.lazy?(this.loading=!0,this.emit(`sl-lazy-load`)):this.animateExpand():this.animateCollapse()}handleLazyChange(){this.emit(`sl-lazy-change`)}getChildrenItems({includeDisabled:t=!0}={}){return this.childrenSlot?[...this.childrenSlot.assignedElements({flatten:!0})].filter(n=>e.isTreeItem(n)&&(t||!n.disabled)):[]}render(){let e=this.localize.dir()===`rtl`,t=!this.loading&&(!this.isLeaf||this.lazy);return T` - ${Dne(this.selectable,()=>T` + ${ka(this.selectable,()=>T`
- `}};Fa.styles=[hn,Ta],Fa.dependencies={"sl-checkbox":Da,"sl-icon":ua,"sl-spinner":ka},w([Et()],Fa.prototype,`indeterminate`,2),w([Et()],Fa.prototype,`isLeaf`,2),w([Et()],Fa.prototype,`loading`,2),w([Et()],Fa.prototype,`selectable`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`expanded`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`selected`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],Fa.prototype,`lazy`,2),w([kt(`slot:not([name])`)],Fa.prototype,`defaultSlot`,2),w([kt(`slot[name=children]`)],Fa.prototype,`childrenSlot`,2),w([kt(`.tree-item__item`)],Fa.prototype,`itemElement`,2),w([kt(`.tree-item__children`)],Fa.prototype,`childrenContainer`,2),w([kt(`.tree-item__expand-button slot`)],Fa.prototype,`expandButtonSlot`,2),w([mn(`loading`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleLoadingChange`,1),w([mn(`disabled`)],Fa.prototype,`handleDisabledChange`,1),w([mn(`selected`)],Fa.prototype,`handleSelectedChange`,1),w([mn(`expanded`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleExpandedChange`,1),w([mn(`expanded`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleExpandAnimation`,1),w([mn(`lazy`,{waitUntilFirstUpdate:!0})],Fa.prototype,`handleLazyChange`,1);var Ia=Fa;ja(`tree-item.expand`,{keyframes:[{height:`0`,opacity:`0`,overflow:`hidden`},{height:`auto`,opacity:`1`,overflow:`hidden`}],options:{duration:250,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}}),ja(`tree-item.collapse`,{keyframes:[{height:`auto`,opacity:`1`,overflow:`hidden`},{height:`0`,opacity:`0`,overflow:`hidden`}],options:{duration:200,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}});var One=xe` + `}};Aa.styles=[hn,ya],Aa.dependencies={"sl-checkbox":ba,"sl-icon":oa,"sl-spinner":xa},w([Tt()],Aa.prototype,`indeterminate`,2),w([Tt()],Aa.prototype,`isLeaf`,2),w([Tt()],Aa.prototype,`loading`,2),w([Tt()],Aa.prototype,`selectable`,2),w([wt({type:Boolean,reflect:!0})],Aa.prototype,`expanded`,2),w([wt({type:Boolean,reflect:!0})],Aa.prototype,`selected`,2),w([wt({type:Boolean,reflect:!0})],Aa.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],Aa.prototype,`lazy`,2),w([Ot(`slot:not([name])`)],Aa.prototype,`defaultSlot`,2),w([Ot(`slot[name=children]`)],Aa.prototype,`childrenSlot`,2),w([Ot(`.tree-item__item`)],Aa.prototype,`itemElement`,2),w([Ot(`.tree-item__children`)],Aa.prototype,`childrenContainer`,2),w([Ot(`.tree-item__expand-button slot`)],Aa.prototype,`expandButtonSlot`,2),w([mn(`loading`,{waitUntilFirstUpdate:!0})],Aa.prototype,`handleLoadingChange`,1),w([mn(`disabled`)],Aa.prototype,`handleDisabledChange`,1),w([mn(`selected`)],Aa.prototype,`handleSelectedChange`,1),w([mn(`expanded`,{waitUntilFirstUpdate:!0})],Aa.prototype,`handleExpandedChange`,1),w([mn(`expanded`,{waitUntilFirstUpdate:!0})],Aa.prototype,`handleExpandAnimation`,1),w([mn(`lazy`,{waitUntilFirstUpdate:!0})],Aa.prototype,`handleLazyChange`,1);var ja=Aa;Sa(`tree-item.expand`,{keyframes:[{height:`0`,opacity:`0`,overflow:`hidden`},{height:`auto`,opacity:`1`,overflow:`hidden`}],options:{duration:250,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}}),Sa(`tree-item.collapse`,{keyframes:[{height:`auto`,opacity:`1`,overflow:`hidden`},{height:`0`,opacity:`0`,overflow:`hidden`}],options:{duration:200,easing:`cubic-bezier(0.4, 0.0, 0.2, 1)`}});var Pne=xe` :host { /* * These are actually used by tree item, but we define them here so they can more easily be set and all tree items @@ -4740,7 +4755,7 @@ */ font-size: 0; } -`;function La(e,t,n){return(e=>Object.is(e,-0)?0:e)(en?n:e)}function Ra(e,t=!1){function n(e){let t=e.getChildrenItems({includeDisabled:!1});if(t.length){let n=t.every(e=>e.selected),r=t.every(e=>!e.selected&&!e.indeterminate);e.selected=n,e.indeterminate=!n&&!r}}function r(e){let t=e.parentElement;Ia.isTreeItem(t)&&(n(t),r(t))}function i(e){for(let n of e.getChildrenItems())n.selected=t?e.selected||n.selected:!n.disabled&&e.selected,i(n);t&&n(e)}i(e),r(e)}var za=class extends _n{constructor(){super(),this.selection=`single`,this.clickTarget=null,this.localize=new pn(this),this.initTreeItem=e=>{e.selectable=this.selection===`multiple`,[`expand`,`collapse`].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(t=>{let n=e.querySelector(`[slot="${t}-icon"]`),r=this.getExpandButtonIcon(t);r&&(n===null?e.append(r):n.hasAttribute(`data-default`)&&n.replaceWith(r))})},this.handleTreeChanged=e=>{for(let t of e){let e=[...t.addedNodes].filter(Ia.isTreeItem),n=[...t.removedNodes].filter(Ia.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&n.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{let t=e.relatedTarget;(!t||!this.contains(t))&&(this.tabIndex=0)},this.handleFocusIn=e=>{let t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),Ia.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut),this.addEventListener(`sl-lazy-change`,this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tree`),this.setAttribute(`tabindex`,`0`),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}getExpandButtonIcon(e){let t=(e===`expand`?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){let n=t.cloneNode(!0);return[n,...n.querySelectorAll(`[id]`)].forEach(e=>e.removeAttribute(`id`)),n.setAttribute(`data-default`,``),n.slot=`${e}-icon`,n}return null}selectItem(e){let t=[...this.selectedItems];if(this.selection===`multiple`)e.selected=!e.selected,e.lazy&&(e.expanded=!0),Ra(e);else if(this.selection===`single`||e.isLeaf){let t=this.getAllTreeItems();for(let n of t)n.selected=n===e}else this.selection===`leaf`&&(e.expanded=!e.expanded);let n=this.selectedItems;(t.length!==n.length||n.some(e=>!t.includes(e)))&&Promise.all(n.map(e=>e.updateComplete)).then(()=>{this.emit(`sl-selection-change`,{detail:{selection:n}})})}getAllTreeItems(){return[...this.querySelectorAll(`sl-tree-item`)]}focusItem(e){e?.focus()}handleKeyDown(e){if(![`ArrowDown`,`ArrowUp`,`ArrowRight`,`ArrowLeft`,`Home`,`End`,`Enter`,` `].includes(e.key)||e.composedPath().some(e=>[`input`,`textarea`].includes((e?.tagName)?.toLowerCase())))return;let t=this.getFocusableItems(),n=this.localize.dir()===`ltr`,r=this.localize.dir()===`rtl`;if(t.length>0){e.preventDefault();let i=t.findIndex(e=>e.matches(`:focus`)),a=t[i],o=e=>{let n=t[La(e,0,t.length-1)];this.focusItem(n)},s=e=>{a.expanded=e};e.key===`ArrowDown`?o(i+1):e.key===`ArrowUp`?o(i-1):n&&e.key===`ArrowRight`||r&&e.key===`ArrowLeft`?!a||a.disabled||a.expanded||a.isLeaf&&!a.lazy?o(i+1):s(!0):n&&e.key===`ArrowLeft`||r&&e.key===`ArrowRight`?!a||a.disabled||a.isLeaf||!a.expanded?o(i-1):s(!1):e.key===`Home`?o(0):e.key===`End`?o(t.length-1):(e.key===`Enter`||e.key===` `)&&(a.disabled||this.selectItem(a))}}handleClick(e){let t=e.target,n=t.closest(`sl-tree-item`),r=e.composedPath().some(e=>(e?.classList)?.contains(`tree-item__expand-button`));n&&!n.disabled&&t===this.clickTarget&&(r?n.expanded=!n.expanded:this.selectItem(n))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){let e=this.selection===`multiple`,t=this.getAllTreeItems();this.setAttribute(`aria-multiselectable`,e?`true`:`false`);for(let n of t)n.selectable=e;e&&(await this.updateComplete,[...this.querySelectorAll(`:scope > sl-tree-item`)].forEach(e=>Ra(e,!0)))}get selectedItems(){return this.getAllTreeItems().filter(e=>e.selected)}getFocusableItems(){let e=this.getAllTreeItems(),t=new Set;return e.filter(e=>{if(e.disabled)return!1;let n=e.parentElement?.closest(`[role=treeitem]`);return n&&(!n.expanded||n.loading||t.has(n))&&t.add(e),!t.has(e)})}render(){return T` +`;function Ma(e,t,n){return(e=>Object.is(e,-0)?0:e)(en?n:e)}function Na(e,t=!1){function n(e){let t=e.getChildrenItems({includeDisabled:!1});if(t.length){let n=t.every(e=>e.selected),r=t.every(e=>!e.selected&&!e.indeterminate);e.selected=n,e.indeterminate=!n&&!r}}function r(e){let t=e.parentElement;ja.isTreeItem(t)&&(n(t),r(t))}function i(e){for(let n of e.getChildrenItems())n.selected=t?e.selected||n.selected:!n.disabled&&e.selected,i(n);t&&n(e)}i(e),r(e)}var Pa=class extends _n{constructor(){super(),this.selection=`single`,this.clickTarget=null,this.localize=new pn(this),this.initTreeItem=e=>{e.selectable=this.selection===`multiple`,[`expand`,`collapse`].filter(e=>!!this.querySelector(`[slot="${e}-icon"]`)).forEach(t=>{let n=e.querySelector(`[slot="${t}-icon"]`),r=this.getExpandButtonIcon(t);r&&(n===null?e.append(r):n.hasAttribute(`data-default`)&&n.replaceWith(r))})},this.handleTreeChanged=e=>{for(let t of e){let e=[...t.addedNodes].filter(ja.isTreeItem),n=[...t.removedNodes].filter(ja.isTreeItem);e.forEach(this.initTreeItem),this.lastFocusedItem&&n.includes(this.lastFocusedItem)&&(this.lastFocusedItem=null)}},this.handleFocusOut=e=>{let t=e.relatedTarget;(!t||!this.contains(t))&&(this.tabIndex=0)},this.handleFocusIn=e=>{let t=e.target;e.target===this&&this.focusItem(this.lastFocusedItem||this.getAllTreeItems()[0]),ja.isTreeItem(t)&&!t.disabled&&(this.lastFocusedItem&&(this.lastFocusedItem.tabIndex=-1),this.lastFocusedItem=t,this.tabIndex=-1,t.tabIndex=0)},this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut),this.addEventListener(`sl-lazy-change`,this.handleSlotChange)}async connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tree`),this.setAttribute(`tabindex`,`0`),await this.updateComplete,this.mutationObserver=new MutationObserver(this.handleTreeChanged),this.mutationObserver.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}getExpandButtonIcon(e){let t=(e===`expand`?this.expandedIconSlot:this.collapsedIconSlot).assignedElements({flatten:!0})[0];if(t){let n=t.cloneNode(!0);return[n,...n.querySelectorAll(`[id]`)].forEach(e=>e.removeAttribute(`id`)),n.setAttribute(`data-default`,``),n.slot=`${e}-icon`,n}return null}selectItem(e){let t=[...this.selectedItems];if(this.selection===`multiple`)e.selected=!e.selected,e.lazy&&(e.expanded=!0),Na(e);else if(this.selection===`single`||e.isLeaf){let t=this.getAllTreeItems();for(let n of t)n.selected=n===e}else this.selection===`leaf`&&(e.expanded=!e.expanded);let n=this.selectedItems;(t.length!==n.length||n.some(e=>!t.includes(e)))&&Promise.all(n.map(e=>e.updateComplete)).then(()=>{this.emit(`sl-selection-change`,{detail:{selection:n}})})}getAllTreeItems(){return[...this.querySelectorAll(`sl-tree-item`)]}focusItem(e){e?.focus()}handleKeyDown(e){if(![`ArrowDown`,`ArrowUp`,`ArrowRight`,`ArrowLeft`,`Home`,`End`,`Enter`,` `].includes(e.key)||e.composedPath().some(e=>[`input`,`textarea`].includes((e?.tagName)?.toLowerCase())))return;let t=this.getFocusableItems(),n=this.localize.dir()===`ltr`,r=this.localize.dir()===`rtl`;if(t.length>0){e.preventDefault();let i=t.findIndex(e=>e.matches(`:focus`)),a=t[i],o=e=>{let n=t[Ma(e,0,t.length-1)];this.focusItem(n)},s=e=>{a.expanded=e};e.key===`ArrowDown`?o(i+1):e.key===`ArrowUp`?o(i-1):n&&e.key===`ArrowRight`||r&&e.key===`ArrowLeft`?!a||a.disabled||a.expanded||a.isLeaf&&!a.lazy?o(i+1):s(!0):n&&e.key===`ArrowLeft`||r&&e.key===`ArrowRight`?!a||a.disabled||a.isLeaf||!a.expanded?o(i-1):s(!1):e.key===`Home`?o(0):e.key===`End`?o(t.length-1):(e.key===`Enter`||e.key===` `)&&(a.disabled||this.selectItem(a))}}handleClick(e){let t=e.target,n=t.closest(`sl-tree-item`),r=e.composedPath().some(e=>(e?.classList)?.contains(`tree-item__expand-button`));n&&!n.disabled&&t===this.clickTarget&&(r?n.expanded=!n.expanded:this.selectItem(n))}handleMouseDown(e){this.clickTarget=e.target}handleSlotChange(){this.getAllTreeItems().forEach(this.initTreeItem)}async handleSelectionChange(){let e=this.selection===`multiple`,t=this.getAllTreeItems();this.setAttribute(`aria-multiselectable`,e?`true`:`false`);for(let n of t)n.selectable=e;e&&(await this.updateComplete,[...this.querySelectorAll(`:scope > sl-tree-item`)].forEach(e=>Na(e,!0)))}get selectedItems(){return this.getAllTreeItems().filter(e=>e.selected)}getFocusableItems(){let e=this.getAllTreeItems(),t=new Set;return e.filter(e=>{if(e.disabled)return!1;let n=e.parentElement?.closest(`[role=treeitem]`);return n&&(!n.expanded||n.loading||t.has(n))&&t.add(e),!t.has(e)})}render(){return T` - `}};za.styles=[hn,One],w([kt(`slot:not([name])`)],za.prototype,`defaultSlot`,2),w([kt(`slot[name=expand-icon]`)],za.prototype,`expandedIconSlot`,2),w([kt(`slot[name=collapse-icon]`)],za.prototype,`collapsedIconSlot`,2),w([Tt()],za.prototype,`selection`,2),w([mn(`selection`)],za.prototype,`handleSelectionChange`,1),za.define(`sl-tree`),Ia.define(`sl-tree-item`);var kne=xe` + `}};Pa.styles=[hn,Pne],w([Ot(`slot:not([name])`)],Pa.prototype,`defaultSlot`,2),w([Ot(`slot[name=expand-icon]`)],Pa.prototype,`expandedIconSlot`,2),w([Ot(`slot[name=collapse-icon]`)],Pa.prototype,`collapsedIconSlot`,2),w([wt()],Pa.prototype,`selection`,2),w([mn(`selection`)],Pa.prototype,`handleSelectionChange`,1),Pa.define(`sl-tree`),ja.define(`sl-tree-item`);var Fne=xe` + .operation-id { + margin-left: 6px; + color: var(--font-color-sub1); + } + sl-tree { --indent-guide-width: 1px; --indent-guide-color: var(--secondary-color); @@ -4862,8 +4882,8 @@ sl-tree-item.no-changes[selected]::part(expand-button) { opacity: 1; } -`,Ane={[E.DOCUMENT]:{showOnLeaf:!0,showOnBranch:!0},[E.PATHS]:{showOnLeaf:!0,showOnBranch:!0},[E.CHANNEL]:{showOnLeaf:!0,showOnBranch:!0},[E.CHANNELS]:{showOnLeaf:!0,showOnBranch:!0},[E.COMPONENTS]:{showOnLeaf:!0,showOnBranch:!0},[E.INFO]:{showOnLeaf:!0,showOnBranch:!0},[E.CONTACT]:{showOnLeaf:!0,showOnBranch:!0},[E.LICENSE]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVERS]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVER]:{showOnLeaf:!0,showOnBranch:!0},[E.TAGS]:{showOnLeaf:!0,showOnBranch:!0},[E.TAG]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEMES]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEME]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOKS]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOK]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTERNAL_DOCS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLE]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLES]:{showOnLeaf:!0,showOnBranch:!0},[E.LINK]:{showOnLeaf:!0,showOnBranch:!0},[E.LINKS]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACK]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACKS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSIONS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSION]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FILE]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FOLDER]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY]:{showOnLeaf:!0,showOnBranch:!0},[E.PARAMETERS]:{showOnLeaf:!0,showOnBranch:!0},[E.HEADERS]:{showOnLeaf:!0,showOnBranch:!0},[E.RESPONSES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODIES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODY]:{showOnLeaf:!0,showOnBranch:!0},[E.PATH_ITEMS]:{showOnLeaf:!0,showOnBranch:!0},[E.SCHEMAS]:{showOnLeaf:!0,showOnBranch:!0}};function Ba(e,t,n,r){let i=r[e];return i?i.onlyWithIssues?n:t?i.showOnLeaf:i.showOnBranch:!1}var Va=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ha,Ua=new Set([E.DOCUMENT,E.INFO,E.CONTACT,E.LICENSE,E.TAGS,E.SERVERS,E.PATHS,E.COMPONENTS,E.SECURITY_SCHEMES,E.WEBHOOKS,E.SCHEMAS,E.PARAMETERS,E.HEADERS,E.RESPONSES,E.REQUEST_BODIES,E.CALLBACKS,E.LINKS,E.EXAMPLES,E.EXTENSIONS,E.PATH_ITEMS,E.EXTERNAL_DOCS,E.SECURITY,E.OPERATIONS,E.ROLODEX_FOLDER]),Wa=Ha=class extends Ct{static renderFileIcon(e,t){return T``}constructor(){super(),this.iconConfig=Ane,this.isBundled=!1,this._childRenderLimit=50,this.selectedNodes=[],this.isRolodex=!1,this.filteredNodes=new Map,this.pendingNavigationId=``,this.pendingNavigationPath=``,this.nodesWithChanges=new Map,this.expand=!1,this.expandedNodes=new Map,this.changesEnabled=!1,this.treeChanged=!1,this.childrenRendered=new Set,this.showAllChildren=new Set}disconnectedCallback(){super.disconnectedCallback(),this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout)}showMoreChildren(e){this.showAllChildren.add(e),this.requestUpdate()}nodeClicked(e,t=[],n){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:e,changes:t,source:n}}))}rolodexClicked(e,t=``,n=[]){this.dispatchEvent(new CustomEvent(bee,{bubbles:!0,composed:!0,detail:{nodeId:e,path:t,changes:n}}))}openNode(e){if(this.nodeMap.get(e)){let t=this.nodeMap.get(e);t&&(this.expandedNodes.set(t.id,t),this.childrenRendered.add(t.id),this.openNode(t.parentId),this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(t.id)}`)[0]?.setAttribute(`expanded`,`true`)),this.requestUpdate()}else{let t=this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(e)}`)[0];if(t){t.setAttribute(`expanded`,`true`),this.childrenRendered.add(e);let n=t.getAttribute(`data-parentid`);n&&this.openNode(n),this.requestUpdate();return}}}willUpdate(e){(e.has(`node`)||e.has(`nodeMap`))&&(this.childrenRendered.clear(),this.expandedNodes.forEach((e,t)=>{this.childrenRendered.add(t)}),this.showAllChildren.clear())}updated(){if(this.pendingNavigationId!=``&&this.explorerClicked(this.pendingNavigationId),this.pendingNavigationPath&&this.pendingNavigationPath!=``){let e=this.pendingNavigationPath;this.openNodeByPath(e)}}openNodeByPath(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);if(n){let r=null;for(let t=0;t{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})}),t&&this.isRolodex)){let t=r.id.replace(`model-`,``);(this.currentId!==t||this.currentPath!==e)&&(this.currentId=t,this.currentPath=e,this.selectedNodes=[r],this.rolodexClicked(t,e,[]))}}}explorerClicked(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);n?this.pendingNavigationId!=``&&(e=this.pendingNavigationId,this.pendingNavigationId=``):this.pendingNavigationId=e;let r=null;for(let t=0;t{this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout),this.pendingExplorerTimeout=window.setTimeout(()=>{let n=this.renderRoot?.querySelector(`sl-tree-item#model-${CSS.escape(e)}`);n&&(n.selected=!0,t&&n.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`}))},50)});return}}r&&t&&requestAnimationFrame(()=>{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})})}collapse(e,t){e.stopPropagation(),t.treeExpanded=!1,this.expandedNodes.delete(t.id)}expanded(e,t){e.stopPropagation(),t.treeExpanded=!0,this.expandedNodes.set(t.id,t),this.childrenRendered.has(t.id)||(this.childrenRendered.add(t.id),this.requestUpdate())}renderLabel(e,t=!1){if(t)return T`${e.label}`;switch(e.type){case E.ROLODEX_FILE:return T`${e.label}`;case E.RESPONSE:return T`${e.label}`;case E.OPERATION:let t=e.instance?.operationId;return T` - ${hi(e.label,e.instance)}${t?T`${t}`:``}`;case E.PATH_ITEM:return T` +`,Fa={[E.DOCUMENT]:{showOnLeaf:!0,showOnBranch:!0},[E.PATHS]:{showOnLeaf:!0,showOnBranch:!0},[E.CHANNEL]:{showOnLeaf:!0,showOnBranch:!0},[E.CHANNELS]:{showOnLeaf:!0,showOnBranch:!0},[E.COMPONENTS]:{showOnLeaf:!0,showOnBranch:!0},[E.INFO]:{showOnLeaf:!0,showOnBranch:!0},[E.CONTACT]:{showOnLeaf:!0,showOnBranch:!0},[E.LICENSE]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVERS]:{showOnLeaf:!0,showOnBranch:!0},[E.SERVER]:{showOnLeaf:!0,showOnBranch:!0},[E.TAGS]:{showOnLeaf:!0,showOnBranch:!0},[E.TAG]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEMES]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY_SCHEME]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOKS]:{showOnLeaf:!0,showOnBranch:!0},[E.WEBHOOK]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTERNAL_DOCS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLE]:{showOnLeaf:!0,showOnBranch:!0},[E.EXAMPLES]:{showOnLeaf:!0,showOnBranch:!0},[E.LINK]:{showOnLeaf:!0,showOnBranch:!0},[E.LINKS]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACK]:{showOnLeaf:!0,showOnBranch:!0},[E.CALLBACKS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSIONS]:{showOnLeaf:!0,showOnBranch:!0},[E.EXTENSION]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FILE]:{showOnLeaf:!0,showOnBranch:!0},[E.ROLODEX_FOLDER]:{showOnLeaf:!0,showOnBranch:!0},[E.SECURITY]:{showOnLeaf:!0,showOnBranch:!0},[E.PARAMETERS]:{showOnLeaf:!0,showOnBranch:!0},[E.HEADERS]:{showOnLeaf:!0,showOnBranch:!0},[E.RESPONSES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODIES]:{showOnLeaf:!0,showOnBranch:!0},[E.REQUEST_BODY]:{showOnLeaf:!0,showOnBranch:!0},[E.PATH_ITEMS]:{showOnLeaf:!0,showOnBranch:!0},[E.SCHEMAS]:{showOnLeaf:!0,showOnBranch:!0}};function Ine(e,t,n,r){let i=r[e];return i?i.onlyWithIssues?n:t?i.showOnLeaf:i.showOnBranch:!1}var Ia=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},La,Lne=new Set([E.DOCUMENT,E.INFO,E.CONTACT,E.LICENSE,E.TAGS,E.SERVERS,E.PATHS,E.COMPONENTS,E.SECURITY_SCHEMES,E.WEBHOOKS,E.SCHEMAS,E.PARAMETERS,E.HEADERS,E.RESPONSES,E.REQUEST_BODIES,E.CALLBACKS,E.LINKS,E.EXAMPLES,E.EXTENSIONS,E.PATH_ITEMS,E.EXTERNAL_DOCS,E.SECURITY,E.OPERATIONS,E.ROLODEX_FOLDER]),Ra=La=class extends St{static renderFileIcon(e,t){return T``}constructor(){super(),this.iconConfig=Fa,this.isBundled=!1,this._childRenderLimit=50,this.selectedNodes=[],this.isRolodex=!1,this.filteredNodes=new Map,this.pendingNavigationId=``,this.pendingNavigationPath=``,this.nodesWithChanges=new Map,this.expand=!1,this.expandedNodes=new Map,this.changesEnabled=!1,this.treeChanged=!1,this.childrenRendered=new Set,this.showAllChildren=new Set}disconnectedCallback(){super.disconnectedCallback(),this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout)}showMoreChildren(e){this.showAllChildren.add(e),this.requestUpdate()}nodeClicked(e,t=[],n){this.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{nodeId:e,changes:t,source:n}}))}rolodexClicked(e,t=``,n=[]){this.dispatchEvent(new CustomEvent(bee,{bubbles:!0,composed:!0,detail:{nodeId:e,path:t,changes:n}}))}openNode(e){if(this.nodeMap.get(e)){let t=this.nodeMap.get(e);t&&(this.expandedNodes.set(t.id,t),this.childrenRendered.add(t.id),this.openNode(t.parentId),this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(t.id)}`)[0]?.setAttribute(`expanded`,`true`)),this.requestUpdate()}else{let t=this.renderRoot.querySelectorAll(`sl-tree-item#model-${CSS.escape(e)}`)[0];if(t){t.setAttribute(`expanded`,`true`),this.childrenRendered.add(e);let n=t.getAttribute(`data-parentid`);n&&this.openNode(n),this.requestUpdate();return}}}willUpdate(e){(e.has(`node`)||e.has(`nodeMap`))&&(this.childrenRendered.clear(),this.expandedNodes.forEach((e,t)=>{this.childrenRendered.add(t)}),this.showAllChildren.clear())}updated(){if(this.pendingNavigationId!=``&&this.explorerClicked(this.pendingNavigationId),this.pendingNavigationPath&&this.pendingNavigationPath!=``){let e=this.pendingNavigationPath;this.openNodeByPath(e)}}openNodeByPath(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);if(n){let r=null;for(let t=0;t{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})}),t&&this.isRolodex)){let t=r.id.replace(`model-`,``);(this.currentId!==t||this.currentPath!==e)&&(this.currentId=t,this.currentPath=e,this.selectedNodes=[r],this.rolodexClicked(t,e,[]))}}}explorerClicked(e,t=!0){let n=this.renderRoot?.querySelectorAll(`sl-tree-item`);n?this.pendingNavigationId!=``&&(e=this.pendingNavigationId,this.pendingNavigationId=``):this.pendingNavigationId=e;let r=null;for(let t=0;t{this.pendingExplorerTimeout!==void 0&&clearTimeout(this.pendingExplorerTimeout),this.pendingExplorerTimeout=window.setTimeout(()=>{let n=this.renderRoot?.querySelector(`sl-tree-item#model-${CSS.escape(e)}`);n&&(n.selected=!0,t&&n.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`}))},50)});return}}r&&t&&requestAnimationFrame(()=>{r?.scrollIntoView({behavior:`smooth`,block:`center`,inline:`center`})})}collapse(e,t){e.stopPropagation(),t.treeExpanded=!1,this.expandedNodes.delete(t.id)}expanded(e,t){e.stopPropagation(),t.treeExpanded=!0,this.expandedNodes.set(t.id,t),this.childrenRendered.has(t.id)||(this.childrenRendered.add(t.id),this.requestUpdate())}renderLabel(e,t=!1){if(t)return T`${e.label}`;switch(e.type){case E.ROLODEX_FILE:return T`${e.label}`;case E.RESPONSE:return T`${e.label}`;case E.OPERATION:let t=e.instance?.operationId;return T` + ${mi(e.label,e.instance)}${t?T`${t}`:``}`;case E.PATH_ITEM:return T` `;default:return T`${e.label}`}}buildTree(e,t){let n=[],r=e.type===E.DOCUMENT,i=r||this.expand||this.childrenRendered.has(e.id);if(e.nodes&&i){let r=[];for(let t=0;t0){if(e.type===E.PATH_ITEM){let e=r.filter(e=>e.type===E.OPERATION),t=r.filter(e=>e.type===E.PARAMETER||e.type===E.PARAMETERS),n=r.filter(e=>e.type!==E.OPERATION&&e.type!==E.PARAMETER&&e.type!==E.PARAMETERS);r=t.concat(e).concat(n)}else r.sort((e,t)=>e.keyLine-t.keyLine);let i=this.showAllChildren.has(e.id),a=i?r.length:this._childRenderLimit,o=Math.min(r.length,a);for(let e=0;ethis._childRenderLimit){let t=r.length-this._childRenderLimit;n.push(T` @@ -4871,12 +4891,12 @@ Show ${t} more items...
- `)}}}let a=e.treeExpanded;r&&(a=!0),this.expandedNodes&&this.expandedNodes.get(e.id)&&(a=!0);let o=Zr.primary,s=this.filteredNodes.size>0&&!this.filteredNodes.get(e.id);if(e.type===E.RESPONSE)switch(Mi(parseInt(e.label))){case`http400`:o=Zr.warning;break;case`http500`:o=Zr.error;break;default:o=Zr.font}e.type===E.ROLODEX_FILE&&(o=Zr.secondary),s&&(o=Zr.filtered);let c=T``,l=T``,u=T``,d=!1,f=this.nodeMap.get(e.id);if(f){let e=Kt(f,this.violationMap);e.warnings>0&&(c=T` + `)}}}let a=e.treeExpanded;r&&(a=!0),this.expandedNodes&&this.expandedNodes.get(e.id)&&(a=!0);let o=Xr.primary,s=this.filteredNodes.size>0&&!this.filteredNodes.get(e.id);if(e.type===E.RESPONSE)switch(Ai(parseInt(e.label))){case`http400`:o=Xr.warning;break;case`http500`:o=Xr.error;break;default:o=Xr.font}e.type===E.ROLODEX_FILE&&(o=Xr.secondary),s&&(o=Xr.filtered);let c=T``,l=T``,u=T``,d=!1,f=this.nodeMap.get(e.id);if(f){let e=Kt(f,this.violationMap);e.warnings>0&&(c=T` ${e.warnings}`),e.errors>0&&(l=T` - ${e.errors}`),d=e.warnings>0||e.errors>0}e.label?.toLowerCase()===`document`&&this.isBundled&&(u=T`BUNDLED`);let p=!e.nodes||e.nodes.length===0,m=Ba(e.type,p,d,this.iconConfig),h=m?T` - `:T``;if(m&&e.openapi)h=T` - `;else if(m&&e.type!==E.CHANNEL&&e.type!==E.CHANNELS&&!e.label.endsWith(`.json`)&&!e.label.endsWith(`.yaml`)&&!e.label.endsWith(`.yml`)&&e.label.includes(`.`)){let t=e.label.split(`.`).pop();if(t){let e=Ha.ICON_TYPE_MAP[t];e&&(h=Ha.renderFileIcon(e,o))}}let g=T``,_=e.timeline&&e.timeline.length>0;if(_){this.nodesWithChanges.set(e.id,e);let{additions:t,removals:n,modifications:r,breaking:i}=Gt(e.timeline);g=T`${i>0?T` `:T``} + ${e.errors}`),d=e.warnings>0||e.errors>0}e.label?.toLowerCase()===`document`&&this.isBundled&&(u=T`BUNDLED`);let p=!e.nodes||e.nodes.length===0,m=Ine(e.type,p,d,this.iconConfig),h=m?T` + `:T``;if(m&&e.openapi)h=T` + `;else if(m&&e.type!==E.CHANNEL&&e.type!==E.CHANNELS&&!e.label.endsWith(`.json`)&&!e.label.endsWith(`.yaml`)&&!e.label.endsWith(`.yml`)&&e.label.includes(`.`)){let t=e.label.split(`.`).pop();if(t){let e=La.ICON_TYPE_MAP[t];e&&(h=La.renderFileIcon(e,o))}}let g=T``,_=e.timeline&&e.timeline.length>0;if(_){this.nodesWithChanges.set(e.id,e);let{additions:t,removals:n,modifications:r,breaking:i}=Gt(e.timeline);g=T`${i>0?T` `:T``} ${t>0?T` ${t>1?T`${t}`:T``} @@ -4903,7 +4923,7 @@ data-path="${e.path?e.path:e.nodePath}">
${h} -
+
${s?T`${this.renderLabel(e,s)} @@ -4919,15 +4939,15 @@ ${e} - `}};Wa.styles=[kne,Gr,zn],Wa.ICON_TYPE_MAP={[E.JS]:E.JS,[E.GO]:E.GO,[E.TS]:E.TS,[E.CS]:E.CS,[E.C]:E.C,[E.CPP]:E.CPP,[E.PHP]:E.PHP,[E.PY]:E.PY,[E.HTML]:E.HTML,[E.MD]:E.MD,[E.JAVA]:E.JAVA,[E.RS]:E.RS,[E.ZIG]:E.ZIG,[E.RB]:E.RB},Va([Tt()],Wa.prototype,`node`,void 0),Va([Tt()],Wa.prototype,`filteredNodes`,void 0),Va([Tt({type:Boolean})],Wa.prototype,`expand`,void 0),Va([Tt({type:Boolean})],Wa.prototype,`changesEnabled`,void 0),Va([Tt()],Wa.prototype,`isRolodex`,void 0),Va([Tt()],Wa.prototype,`nodeMap`,void 0),Va([Tt()],Wa.prototype,`violationMap`,void 0),Va([Tt({type:Object})],Wa.prototype,`iconConfig`,void 0),Va([Tt({type:Boolean})],Wa.prototype,`isBundled`,void 0),Wa=Ha=Va([wt(`pb33f-model-tree`)],Wa);function Ga(e){return e+.5|0}var Ka=(e,t,n)=>Math.max(Math.min(e,n),t);function qa(e){return Ka(Ga(e*2.55),0,255)}function Ja(e){return Ka(Ga(e*255),0,255)}function Ya(e){return Ka(Ga(e/2.55)/100,0,1)}function Xa(e){return Ka(Ga(e*100),0,100)}var Za={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Qa=[...`0123456789ABCDEF`],jne=e=>Qa[e&15],Mne=e=>Qa[(e&240)>>4]+Qa[e&15],$a=e=>(e&240)>>4==(e&15),Nne=e=>$a(e.r)&&$a(e.g)&&$a(e.b)&&$a(e.a);function Pne(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&Za[e[1]]*17,g:255&Za[e[2]]*17,b:255&Za[e[3]]*17,a:t===5?Za[e[4]]*17:255}:(t===7||t===9)&&(n={r:Za[e[1]]<<4|Za[e[2]],g:Za[e[3]]<<4|Za[e[4]],b:Za[e[5]]<<4|Za[e[6]],a:t===9?Za[e[7]]<<4|Za[e[8]]:255})),n}var Fne=(e,t)=>e<255?t(e):``;function Ine(e){var t=Nne(e)?jne:Mne;return e?`#`+t(e.r)+t(e.g)+t(e.b)+Fne(e.a,t):void 0}var Lne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function eo(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Rne(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function zne(e,t,n){let r=eo(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function to(e,t,n,r,i){return e===i?(t-n)/r+(t.5?l/(2-i-a):l/(i+a),s=to(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function ro(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ja)}function io(e,t,n){return ro(eo,e,t,n)}function Bne(e,t,n){return ro(zne,e,t,n)}function Vne(e,t,n){return ro(Rne,e,t,n)}function ao(e){return(e%360+360)%360}function Hne(e){let t=Lne.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?qa(+t[5]):Ja(+t[5]));let i=ao(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?Bne(i,a,o):t[1]===`hsv`?Vne(i,a,o):io(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function oo(e,t){var n=no(e);n[0]=ao(n[0]+t),n=io(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Une(e){if(!e)return;let t=no(e),n=t[0],r=Xa(t[1]),i=Xa(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ya(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var so={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},co={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function Wne(){let e={},t=Object.keys(co),n=Object.keys(so),r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return e}var lo;function Gne(e){lo||(lo=Wne(),lo.transparent=[0,0,0,0]);let t=lo[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Kne=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function qne(e){let t=Kne.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?qa(e):Ka(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?qa(r):Ka(r,0,255)),i=255&(t[4]?qa(i):Ka(i,0,255)),a=255&(t[6]?qa(a):Ka(a,0,255)),{r,g:i,b:a,a:n}}}function Jne(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ya(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var uo=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,fo=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function po(e,t,n){let r=fo(Ya(e.r)),i=fo(Ya(e.g)),a=fo(Ya(e.b));return{r:Ja(uo(r+n*(fo(Ya(t.r))-r))),g:Ja(uo(i+n*(fo(Ya(t.g))-i))),b:Ja(uo(a+n*(fo(Ya(t.b))-a))),a:e.a+n*(t.a-e.a)}}function mo(e,t,n){if(e){let r=no(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=io(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function ho(e,t){return e&&Object.assign(t||{},e)}function go(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ja(e[3]))):(t=ho(e,{r:0,g:0,b:0,a:1}),t.a=Ja(t.a)),t}function Yne(e){return e.charAt(0)===`r`?qne(e):Hne(e)}var _o=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=go(t):n===`string`&&(r=Pne(t)||Gne(t)||Yne(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=ho(this._rgb);return e&&(e.a=Ya(e.a)),e}set rgb(e){this._rgb=go(e)}rgbString(){return this._valid?Jne(this._rgb):void 0}hexString(){return this._valid?Ine(this._rgb):void 0}hslString(){return this._valid?Une(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=po(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=Ja(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=Ga(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return mo(this._rgb,2,e),this}darken(e){return mo(this._rgb,2,-e),this}saturate(e){return mo(this._rgb,1,e),this}desaturate(e){return mo(this._rgb,1,-e),this}rotate(e){return oo(this._rgb,e),this}};function vo(){}var Xne=(()=>{let e=0;return()=>e++})();function yo(e){return e==null}function bo(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function xo(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function So(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function Co(e,t){return So(e)?e:t}function wo(e,t){return e===void 0?t:e}var Zne=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,To=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function Eo(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function Do(e,t,n,r){let i,a,o;if(bo(e)){if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function ere(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function tre(e){let t=ere(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function Po(e,t){return(No[t]||(No[t]=tre(t)))(e)}function Fo(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Io=e=>e!==void 0,Lo=e=>typeof e==`function`,Ro=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function nre(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var zo=Math.PI,Bo=2*zo,Vo=Bo+zo,Ho=1/0,rre=zo/180,Uo=zo/2,Wo=zo/4,Go=zo*2/3,Ko=Math.log10,qo=Math.sign;function Jo(e,t,n){return Math.abs(e-t)e-t).pop(),t}function are(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Xo(e){return!are(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function ore(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Zo(e,t,n){let r,i,a;for(r=0,i=e.length;rc&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function ss(e,t,n){n||=(n=>e[n]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var cs=(e,t,n,r)=>ss(e,n,r?r=>{let i=e[r][t];return ie[r][t]ss(e,n,r=>e[r][t]>=n);function ure(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{let n=`_onData`+Fo(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})}))}function us(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(ls.forEach(t=>{delete e[t]}),delete e._chartjs)}function ds(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var fs=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function ps(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,fs.call(window,()=>{r=!1,e.apply(t,n)}))}}function fre(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var ms=e=>e===`start`?`left`:e===`end`?`right`:`center`,hs=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,pre=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;function gs(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(cs(c,u,d).lo,n?r:cs(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!yo(e[s.axis]));i-=Math.max(0,e)}i=as(i,0,r-1)}if(m){let e=Math.max(cs(c,o.axis,f,!0).hi+1,n?0:cs(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!yo(e[s.axis]));e+=Math.max(0,t)}a=as(e,i,r)-i}else a=r-i}return{start:i,count:a}}function _s(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var vs=e=>e===0||e===1,ys=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*Bo/n)),bs=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*Bo/n)+1,xs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Uo)+1,easeOutSine:e=>Math.sin(e*Uo),easeInOutSine:e=>-.5*(Math.cos(zo*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>vs(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>vs(e)?e:ys(e,.075,.3),easeOutElastic:e=>vs(e)?e:bs(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return vs(e)?e:e<.5?.5*ys(e*2,t,n):.5+.5*bs(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-xs.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?xs.easeInBounce(e*2)*.5:xs.easeOutBounce(e*2-1)*.5+.5};function Ss(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function Cs(e){return Ss(e)?e:new _o(e)}function ws(e){return Ss(e)?e:new _o(e).saturate(.5).darken(.1).hexString()}var mre=[`x`,`y`,`borderWidth`,`radius`,`tension`],hre=[`color`,`borderColor`,`backgroundColor`];function gre(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:hre},numbers:{type:`number`,properties:mre}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function _re(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Ts=new Map;function vre(e,t){t||={};let n=e+JSON.stringify(t),r=Ts.get(n);return r||(r=new Intl.NumberFormat(e,t),Ts.set(n,r)),r}function Es(e,t,n){return vre(t,n).format(e)}var Ds={values(e){return bo(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=yre(e,n)}let o=Ko(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),Es(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(Ko(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Ds.numeric.call(this,e,t,n):``}};function yre(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Os={formatters:Ds};function bre(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Os.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var ks=Object.create(null),As=Object.create(null);function js(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>ws(t.backgroundColor),this.hoverBorderColor=(e,t)=>ws(t.borderColor),this.hoverColor=(e,t)=>ws(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Ms(this,e,t)}get(e){return js(this,e)}describe(e,t){return Ms(As,e,t)}override(e,t){return Ms(ks,e,t)}route(e,t,n,r){let i=js(this,e),a=js(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return xo(e)?Object.assign({},t,e):wo(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[gre,_re,bre]);function xre(e){return!e||yo(e.size)||yo(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Ps(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Sre(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;cn.length){for(c=0;c0&&e.stroke()}}function zs(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,Tre(e,a),c=0;c+e||0;function Ws(e,t){let n={},r=xo(t),i=r?Object.keys(t):t,a=xo(e)?r?n=>wo(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=jre(a(e));return n}function Gs(e){return Ws(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function Ks(e){return Ws(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function qs(e){let t=Gs(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Js(e,t){e||={},t||=Ns.font;let n=wo(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=wo(e.style,t.style);r&&!(``+r).match(kre)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:wo(e.family,t.family),lineHeight:Are(wo(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:wo(e.weight,t.weight),string:``};return i.string=xre(i),i}function Ys(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;an&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Xs(e,t){return Object.assign(Object.create(e),t)}function Zs(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=ac(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>Zs([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return tc(n,r,()=>Bre(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return oc(e).includes(t)},ownKeys(e){return oc(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function Qs(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:$s(e,r),setContext:t=>Qs(e,t,n,r),override:i=>Qs(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return tc(e,t,()=>Pre(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function $s(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Lo(n)?n:()=>n,isIndexable:Lo(r)?r:()=>r}}var Nre=(e,t)=>e?e+Fo(t):t,ec=(e,t)=>xo(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function tc(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function Pre(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return Lo(s)&&o.isScriptable(t)&&(s=Fre(t,s,e,n)),bo(s)&&s.length&&(s=Ire(t,s,e,o.isIndexable)),ec(t,s)&&(s=Qs(s,i,a&&a[t],o)),s}function Fre(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),ec(e,c)&&(c=rc(i._scopes,i,e,c)),c}function Ire(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(xo(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=rc(r,i,e,c);t.push(Qs(n,a,o&&o[e],s))}}return t}function nc(e,t,n){return Lo(e)?e(t,n):e}var Lre=(e,t)=>e===!0?t:typeof e==`string`?Po(t,e):void 0;function Rre(e,t,n,r,i){for(let a of t){let t=Lre(n,a);if(t){e.add(t);let a=nc(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function rc(e,t,n,r){let i=t._rootScopes,a=nc(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=ic(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=ic(s,o,a,c,r),c===null)?!1:Zs(Array.from(s),[``],i,a,()=>zre(t,n,r))}function ic(e,t,n,r,i){for(;n;)n=Rre(e,t,n,r,i);return n}function zre(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return bo(i)&&xo(n)?n:i||{}}function Bre(e,t,n,r){let i;for(let a of t)if(i=ac(Nre(a,e),n),i!==void 0)return ec(e,i)?rc(n,r,e,i):i}function ac(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function oc(e){let t=e._keys;return t||=e._keys=Vre(e._scopes),t}function Vre(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function sc(e,t,n,r){let{iScale:i}=e,{key:a=`r`}=this._parsing,o=Array(r),s,c,l,u;for(s=0,c=r;ste===`x`?`y`:`x`;function Ure(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=ns(a,i),c=ns(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function Wre(e,t,n){let r=e.length,i,a,o,s,c,l=cc(e,0);for(let u=0;u!e.skip)),t.cubicInterpolationMode===`monotone`)Kre(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function Yre(e,t){return mc(e).getPropertyValue(t)}var Xre=[`top`,`right`,`bottom`,`left`];function hc(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=Xre[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var Zre=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Qre(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(Zre(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function gc(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=mc(n),a=i.boxSizing===`border-box`,o=hc(i,`padding`),s=hc(i,`border`,`width`),{x:c,y:l,box:u}=Qre(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function $re(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&fc(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=mc(a),s=hc(o,`border`,`width`),c=hc(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=pc(o.maxWidth,a,`clientWidth`),i=pc(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||Ho,maxHeight:i||Ho}}var _c=e=>Math.round(e*10)/10;function eie(e,t,n,r){let i=mc(e),a=hc(i,`margin`),o=pc(i.maxWidth,e,`clientWidth`)||Ho,s=pc(i.maxHeight,e,`clientHeight`)||Ho,c=$re(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=hc(i,`border`,`width`),t=hc(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=_c(Math.min(l,o,c.maxWidth)),u=_c(Math.min(u,s,c.maxHeight)),l&&!u&&(u=_c(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=_c(Math.floor(u*r))),{width:l,height:u}}function vc(e,t,n){let r=t||1,i=_c(e.height*r),a=_c(e.width*r);e.height=_c(e.height),e.width=_c(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var tie=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};dc()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function yc(e,t){let n=Yre(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bc(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function nie(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r===`middle`?n<.5?e.y:t.y:r===`after`?n<1?e.y:t.y:n>0?t.y:e.y}}function rie(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=bc(e,i,n),s=bc(i,a,n),c=bc(a,t,n);return bc(bc(o,s,n),bc(s,c,n),n)}var iie=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},aie=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function xc(e,t,n){return e?iie(t,n):aie()}function Sc(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function Cc(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function wc(e){return e===`angle`?{between:is,compare:sre,normalize:rs}:{between:os,compare:(e,t)=>e-t,normalize:e=>e}}function Tc({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function oie(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=wc(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;fc(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),ee=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&ee()&&(m.push(Tc({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(Tc({start:g,end:d,loop:f,count:o,style:p})),m}function Dc(e,t){let n=[],r=e.segments;for(let i=0;ii&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function sie(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function cie(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=Oc(n,i,a,r);return r===!0?kc(e,[{start:o,end:s,loop:a}],n,t):kc(e,sie(n,o,sr({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,fs.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},Lc=`transparent`,lie={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=Cs(e||Lc),i=r.valid&&Cs(t||Lc);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},uie=class{constructor(e,t,n,r){let i=t[n];r=Ys([e.to,r,i,e.from]);let a=Ys([e.from,i,r]);this._active=!0,this._fn=e.fn||lie[e.type||typeof a],this._easing=xs[e.easing]||xs.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Ys([e.to,t,r,e.from]),this._from=Ys([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;this._active=i!==o&&(a||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)):(this._target[r]=o,this._notify(!0))}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e{let i=e[r];if(!xo(i))return;let a={};for(let e of t)a[e]=i[e];(bo(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=die(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&zc(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u){if(d&&u.active()){u.update(d,l,o);continue}u.cancel()}!d||!d.duration?e[c]=l:(i[c]=u=new uie(d,e,c,l),r.push(u))}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return Ic.add(this._chart,n),!0}};function zc(e,t){let n=[],r=Object.keys(t);for(let t=0;t0||!n&&t<0)return i.index}return null}function Kc(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Wc(a,o,r),d=t.length,f;for(let e=0;en[e].axis===t).shift()}function _ie(e,t){return Xs(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function Jc(e,t,n){return Xs(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Yc(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var Xc=e=>e===`reset`||e===`none`,Zc=(e,t)=>t?e:Object.assign({},e),vie=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Vc(n,!0),values:null},Qc=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Uc(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&Yc(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=wo(n.xAxisID,qc(e,`x`)),a=t.yAxisID=wo(n.yAxisID,qc(e,`y`)),o=t.rAxisID=wo(n.rAxisID,qc(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&us(this._data,this),e._stacked&&Yc(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(xo(t)){let e=this._cachedMeta;this._data=mie(t,e)}else if(n!==t){if(n){us(n,this);let e=this._cachedMeta;Yc(e),e._parsed=[]}t&&Object.isExtensible(t)&&dre(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=Uc(t.vScale,t),t.stack!==n.stack&&(r=!0,Yc(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(Kc(this,t._parsed),t._stacked=Uc(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length||n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=bo(r[e])?this.parseArrayData(n,r,e,t):xo(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]t||u=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r=0&&ethis.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(Zc(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new Rc(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||Xc(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){Xc(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Xc(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;oe-t))}return e._cache.$bar}function bie(e){let t=e.iScale,n=yie(t,e.type),r=t._length,i,a,o,s,c=()=>{o!==32767&&o!==-32768&&(Io(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function $c(e,t,n,r){return bo(e)?Cie(e,t,n,r):t[n.axis]=n.parse(e,r),t}function el(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l=n?1:-1):qo(e)}function Tie(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.basee.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(yo(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[wo(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),c=a._custom;return{label:n[e]||``,value:`(`+o+`, `+s+(c?`, `+c:``)+`)`}}update(e){let t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(t,r),l=a.axis,u=o.axis;for(let d=t;dis(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>is(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(Uo,u,f),_=m(zo,l,d),v=m(zo+Uo,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var cl=class extends Qc{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}},cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(xo(n[e])){let{key:e=`value`}=this._parsing;i=t=>+Po(n[t],e)}let a,o;for(a=e,o=e+t;a0&&!isNaN(e)?Math.abs(e)/t*Bo:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Es(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r0&&this.getParsed(t-1);for(let n=0;n=_){v.skip=!0;continue}let b=this.getParsed(n),x=yo(b[f]),S=v[d]=a.getPixelForValue(b[d],n),ee=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(ee)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},kie=class extends Qc{static id=`polarArea`;static defaults={dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:`number`,properties:[`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`]}},indexAxis:`r`,startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((t,i)=>{let a=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:`radialLinear`,angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Es(t._parsed[e].r,n.options.locale);return{label:r[e]||``,value:i}}parseObjectData(e,t,n,r){return sc.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){let e=this._cachedMeta,t={min:1/0,max:-1/0};return e.data.forEach((e,n)=>{let r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(rt.max&&(t.max=r))}),t}_updateRadius(){let e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*zo,d=u,f,p=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Qo(this.resolveDataElementOptions(e,t).angle||n):0}},Aie=Object.freeze({__proto__:null,BarController:ol,BubbleController:sl,DoughnutController:cl,LineController:Oie,PieController:class extends cl{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}},PolarAreaController:kie,RadarController:class extends Qc{static id=`radar`;static defaults={datasetElementType:`line`,dataElementType:`point`,indexAxis:`r`,showLine:!0,elements:{line:{fill:`start`}}};static overrides={aspectRatio:1,scales:{r:{type:`radialLinear`}}};getLabelAndValue(e){let t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:``+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return sc.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,e!==`resize`){let t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);let a={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){let i=this._cachedMeta.rScale,a=r===`reset`;for(let o=t;o0&&this.getParsed(t-1);for(let l=t;l0&&Math.abs(n[f]-v[f])>g,h&&(m.parsed=n,m.raw=c.data[l]),d&&(m.options=u||this.resolveDataElementOptions(l,t.active?`active`:r)),_||this.updateElement(t,l,m,r),v=n}this.updateSharedOptions(u,r,l)}getMaxOverflow(){let e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}let n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;let i=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,a)/2}}});function ll(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var jie={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return ll()}parse(){return ll()}format(){return ll()}add(){return ll()}diff(){return ll()}startOf(){return ll()}endOf(){return ll()}}};function ul(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?lre:cs;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!yo(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!yo(e[t.axis]));r.hi+=Math.max(0,o)}return r}if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function dl(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Fie={evaluateInteractionItems:dl,modes:{index(e,t,n,r){let i=gc(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?fl(e,i,a,r,o):ml(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=gc(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?fl(e,i,a,r,o):ml(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;ee.pos===t)}function _l(e,t){return e.filter(e=>hl.indexOf(e.pos)===-1&&e.box.axis===t)}function vl(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function Iie(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;ne.box.fullSize),!0),r=vl(gl(t,`left`),!0),i=vl(gl(t,`right`)),a=vl(gl(t,`top`),!0),o=vl(gl(t,`bottom`)),s=_l(t,`x`),c=_l(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:gl(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function Bie(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Vie(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function yl(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!xo(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&Vie(o,a.getPadding());let s=Math.max(0,t.outerWidth-Bie(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Bie(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Hie(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function bl(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function xl(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Vie(f,qs(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Rie(c.concat(l),d);xl(s.fullSize,p,d,m),xl(c,p,d,m),xl(l,p,d,m)&&xl(c,p,d,m),Hie(p),Uie(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,Uie(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Do(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},Wie=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},Gie=class extends Wie{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},wl=`$chartjs`,Kie={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},qie=e=>e===null||e===``;function Jie(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[wl]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,qie(i)){let t=yc(e,`width`);t!==void 0&&(e.width=t)}if(qie(r)){if(e.style.height===``)e.height=e.width/(t||2);else{let t=yc(e,`height`);t!==void 0&&(e.height=t)}}return e}var Yie=tie?{passive:!0}:!1;function Xie(e,t,n){e&&e.addEventListener(t,n,Yie)}function Zie(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Yie)}function Qie(e,t){let n=Kie[e.type]||e.type,{x:r,y:i}=gc(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function Tl(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function $ie(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Tl(n.addedNodes,r),t&&=!Tl(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function eae(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Tl(n.removedNodes,r),t&&=!Tl(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var El=new Map,Dl=0;function Ol(){let e=window.devicePixelRatio;e!==Dl&&(Dl=e,El.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function kl(e,t){El.size||window.addEventListener(`resize`,Ol),El.set(e,t)}function Al(e){El.delete(e),El.size||window.removeEventListener(`resize`,Ol)}function jl(e,t,n){let r=e.canvas,i=r&&fc(r);if(!i)return;let a=ps((e,t)=>{let r=i.clientWidth;n(e,t),r{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;(n!==0||r!==0)&&a(n,r)});return o.observe(i),kl(e,a),o}function Ml(e,t,n){n&&n.disconnect(),t===`resize`&&Al(e)}function tae(e,t,n){let r=e.canvas,i=ps(t=>{e.ctx!==null&&n(Qie(t,e))},e);return Xie(r,t,i),i}var Nl=class extends Wie{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(Jie(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[wl])return!1;let n=t[wl].initial;[`height`,`width`].forEach(e=>{let r=n[e];yo(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[wl],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:$ie,detach:eae,resize:jl}[t]||tae)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:Ml,detach:Ml,resize:Ml}[t]||Zie)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return eie(e,t,n,r)}isAttached(e){let t=e&&fc(e);return!!(t&&t.isConnected)}};function Pl(e){return!dc()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?Gie:Nl}var Fl=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Xo(this.x)&&Xo(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function Il(e,t){let n=e.options.ticks,r=Ll(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?zl(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return Bl(t,l,a,o/i),l;let u=Rl(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(Vl(t,l,u,yo(r)?0:s-r,s),e=0,n=o-1;ei)return t}return Math.max(i,1)}function zl(e){let t=[],n,r;for(n=0,r=e.length;ne===`left`?`right`:e===`right`?`left`:e,Wl=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,Gl=(e,t)=>Math.min(t||e,e);function Kl(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;ao+s)))return c}function nae(e,t){Do(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;in?n:t,n=r&&t>n?t:n,{min:Co(t,Co(n,t)),max:Co(n,Co(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Eo(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Mre(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=as(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-Jl(e.grid)-t.padding-Yl(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=$o(Math.min(Math.asin(as((l.highest.height+6)/o,-1,1)),Math.asin(as(s/c,-1,1))-Math.asin(as(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){Eo(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Eo(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=Yl(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=Jl(i)+a):(e.height=this.maxHeight,e.width=Jl(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=Qo(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Eo(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t({width:a[e]||0,height:o[e]||0});return{first:ee(0),last:ee(t-1),widest:ee(x),highest:ee(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return cre(this._alignToPixels?Fs(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&eo*r?o/n:s/r:s*r0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=Jl(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Fs(n,e,p)},g,_,v,y,b,x,S,ee,te,ne,C,re;if(a===`top`)g=h(this.bottom),x=this.bottom-u,ee=g-m,ne=h(e.top)+m,re=e.bottom;else if(a===`bottom`)g=h(this.top),ne=e.top,re=h(e.bottom)-m,x=g+m,ee=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,te=h(e.left)+m,C=e.right;else if(a===`right`)g=h(this.left),te=e.left,C=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(xo(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}ne=e.top,re=e.bottom,x=g+m,ee=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(xo(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,te=e.left,C=e.right}let ie=wo(r.ticks.maxTicksLimit,l),ae=Math.max(1,Math.ceil(l/ie));for(_=0;_0&&(a-=r/2)}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:te,textOffset:re,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:ie,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-Qo(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);Ns.route(a,i,c,s)})}function ru(e){return`id`in e&&`defaults`in e}var iu=new class{constructor(){this.controllers=new eu(Qc,`datasets`,!0),this.elements=new eu(Fl,`elements`),this.plugins=new eu(Object,`plugins`),this.scales=new eu($l,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):Do(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=Fo(e);Eo(n[`before`+r],[],n),t[e](n),Eo(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;te.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function iae(e){let t={},n=[],r=Object.keys(iu.plugins.items);for(let e=0;e1&&su(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function lu(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function uae(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return lu(e,`x`,n[0])||lu(e,`y`,n[0])}return{}}function dae(e,t){let n=ks[e.type]||{scales:{}},r=t.scales||{},i=ou(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!xo(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=cu(t,o,uae(t,e),Ns.scales[o.type]),c=cae(s,i),l=n.scales||{};a[t]=Mo(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||ou(i,t),s=(ks[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=sae(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),Mo(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];Mo(t,[Ns.scales[t.type],Ns.scale])}),a}function uu(e){let t=e.options||={};t.plugins=wo(t.plugins,{}),t.scales=dae(e,t)}function du(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function fu(e){return e||={},e.data=du(e.data),uu(e),e}var pu=new Map,mu=new Set;function hu(e,t){let n=pu.get(e);return n||(n=t(),pu.set(e,n),mu.add(n)),n}var gu=(e,t,n)=>{let r=Po(t,n);r!==void 0&&e.add(r)},fae=class{constructor(e){this._config=fu(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=du(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),uu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return hu(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return hu(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return hu(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return hu(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>gu(s,e,t))),t.forEach(e=>gu(s,r,e)),t.forEach(e=>gu(s,ks[i]||{},e)),t.forEach(e=>gu(s,Ns,e)),t.forEach(e=>gu(s,As,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),mu.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,ks[t]||{},Ns.datasets[t]||{},{type:t},Ns,As]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=_u(this._resolverCache,e,r),s=a;if(vu(a,t)){i.$shared=!1,n=Lo(n)?n():n;let t=this.createResolver(e,n,o);s=Qs(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=_u(this._resolverCache,e,n);return xo(t)?Qs(i,t,void 0,r):i}};function _u(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:Zs(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var pae=e=>xo(e)&&Object.getOwnPropertyNames(e).some(t=>Lo(e[t]));function vu(e,t){let{isScriptable:n,isIndexable:r}=$s(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(Lo(o)||pae(o))||a&&bo(o))return!0}return!1}var yu=`4.5.1`,bu=[`top`,`bottom`,`left`,`right`,`chartArea`];function xu(e,t){return e===`top`||e===`bottom`||bu.indexOf(e)===-1&&t===`x`}function Su(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Cu(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),Eo(n&&n.onComplete,[e],t)}function wu(e){let t=e.chart,n=t.options.animation;Eo(n&&n.onProgress,[e],t)}function Tu(e){return dc()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Eu={},Du=e=>{let t=Tu(e);return Object.values(Eu).filter(e=>e.canvas===t).pop()};function mae(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function hae(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var Ou=class{static defaults=Ns;static instances=Eu;static overrides=ks;static registry=iu;static version=yu;static getChart=Du;static register(...e){iu.add(...e),ku()}static unregister(...e){iu.remove(...e),ku()}constructor(e,t){let n=this.config=new fae(t),r=Tu(e),i=Du(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(Pl(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;this.id=Xne(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new rae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=fre(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],Eu[this.id]=this,!o||!s?console.error(`Failed to create chart: can't acquire context from the given item`):(Ic.listen(this,`complete`,Cu),Ic.listen(this,`progress`,wu),this._initialize(),this.attached&&this.update())}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return yo(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return iu}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():vc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return Is(this.canvas,this.ctx),this}stop(){return Ic.stop(this),this}resize(e,t){Ic.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,vc(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),Eo(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Do(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=cu(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),Do(i,t=>{let i=t.options,a=i.id,o=cu(a,i),s=wo(i.type,t.dtype);(i.position===void 0||xu(i.position,o)!==xu(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(iu.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),Do(r,(e,t)=>{e||delete n[t]}),Do(n,e=>{Cl.configure(this,e,e.options),Cl.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(Su(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Do(this.scales,e=>{Cl.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!Ro(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)mae(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;ee.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;Cl.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Do(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=Fc(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Bs(t,r),e.controller.draw(),r&&Vs(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return zs(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Fie.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=Xs(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Io(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Ic.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Do(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){Do(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},Do(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});Oo(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=nre(e),c=hae(e,this._lastEvent,n,s);n&&(this._lastEvent=null,Eo(i.onHover,[e,o,this],this),s&&Eo(i.onClick,[e,o,this],this));let l=!Oo(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function ku(){return Do(Ou.instances,e=>e._plugins.invalidate())}function gae(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,rs(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,rs(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*rs(r-n));if(u===`round`)e.arc(i,a,t,n-zo/2,r+zo/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+zo/2)+i,c=-o*Math.sin(n+zo/2)+a,l=o*Math.cos(r+zo/2)+i,u=o*Math.sin(r+zo/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function _ae(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+Uo,r-Uo),e.closePath(),e.clip()}function vae(e){return Ws(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function yae(e,t,n,r){let i=vae(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return as(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:as(i.innerStart,0,o),innerEnd:as(i.innerEnd,0,o)}}function Au(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function ju(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/zo)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=yae(t,f,d,_-g),S=d-v,ee=d-y,te=g+v/S,ne=_-y/ee,C=f+b,re=f+x,ie=g+b/C,ae=_-x/re;if(e.beginPath(),a){let t=(te+ne)/2;if(e.arc(o,s,d,te,t),e.arc(o,s,d,t,ne),y>0){let t=Au(ee,ne,o,s);e.arc(t.x,t.y,y,ne,_+Uo)}let n=Au(re,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=Au(re,ae,o,s);e.arc(t.x,t.y,x,_+Uo,ae+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=Au(C,ie,o,s);e.arc(t.x,t.y,b,ie+Math.PI,g-Uo)}let i=Au(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=Au(S,te,o,s);e.arc(t.x,t.y,v,g-Uo,te)}}else{e.moveTo(o,s);let t=Math.cos(te)*d+o,n=Math.sin(te)*d+s;e.lineTo(t,n);let r=Math.cos(ne)*d+o,i=Math.sin(ne)*d+s;e.lineTo(r,i)}e.closePath()}function bae(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){ju(e,t,n,r,c,i);for(let t=0;t=zo&&p===0&&u!==`miter`&&gae(e,t,h),a||(ju(e,t,n,r,h,i),e.stroke())}var Sae=class extends Fl{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=ts(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=wo(l,o-a),f=is(r,a,o)&&a!==o,p=d>=Bo||f,m=os(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>Bo?Math.floor(n/Bo):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(zo,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,bae(e,this,s,i,a),xae(e,this,s,i,a),e.restore()}};function Mu(e,t,n=t){e.lineCap=wo(n.borderCapStyle,t.borderCapStyle),e.setLineDash(wo(n.borderDash,t.borderDash)),e.lineDashOffset=wo(n.borderDashOffset,t.borderDashOffset),e.lineJoin=wo(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=wo(n.borderWidth,t.borderWidth),e.strokeStyle=wo(n.borderColor,t.borderColor)}function Cae(e,t,n){e.lineTo(n.x,n.y)}function wae(e){return e.stepped?Cre:e.tension||e.cubicInterpolationMode===`monotone`?wre:Cae}function Nu(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=is&&a>s;return{count:r,start:c,loop:t.loop,ilen:l(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(ng&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function Pu(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Eae:Tae}function Dae(e){return e.stepped?nie:e.tension||e.cubicInterpolationMode===`monotone`?rie:bc}function Oae(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Mu(e,t.options),e.stroke(i)}function kae(e,t,n,r){let{segments:i,options:a}=t,o=Pu(t);for(let s of i)Mu(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var Aae=typeof Path2D==`function`;function jae(e,t,n,r){Aae&&!t.options.segment?Oae(e,t,n,r):kae(e,t,n,r)}var Fu=class extends Fl{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;Jre(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=cie(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=Dc(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=Dae(n),c,l;for(c=0,l=a.length;ce.replace(`rgb(`,`rgba(`).replace(`)`,`, 0.5)`));function Uu(e){return Vu[e%Vu.length]}function Wu(e){return Hu[e%Hu.length]}function zae(e,t){return e.borderColor=Uu(t),e.backgroundColor=Wu(t),++t}function Bae(e,t){return e.backgroundColor=e.data.map(()=>Uu(t++)),t}function Vae(e,t){return e.backgroundColor=e.data.map(()=>Wu(t++)),t}function Hae(e){let t=0;return(n,r)=>{let i=e.getDatasetMeta(r).controller;i instanceof cl?t=Bae(n,t):i instanceof kie?t=Vae(n,t):i&&(t=zae(n,t))}}function Gu(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function Uae(e){return e&&(e.borderColor||e.backgroundColor)}function Wae(){return Ns.borderColor!==`rgba(0,0,0,0.1)`||Ns.backgroundColor!==`rgba(0,0,0,0.1)`}var Gae={id:`colors`,defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;let{data:{datasets:r},options:i}=e.config,{elements:a}=i,o=Gu(r)||Uae(i)||a&&Gu(a)||Wae();if(!n.forceOverride&&o)return;let s=Hae(e);r.forEach(s)}};function Kae(e,t,n,r,i){let a=i.samples||r;if(a>=n)return e.slice(t,t+n);let o=[],s=(n-2)/(a-2),c=0,l=t+n-1,u=t,d,f,p,m,h;for(o[c++]=e[u],d=0;dp&&(p=m,f=e[a],h=a);o[c++]=f,u=h}return o[c++]=e[l],o}function qae(e,t,n,r){let i=0,a=0,o,s,c,l,u,d,f,p,m,h,g=[],_=t+n-1,v=e[t].x,y=e[_].x-v;for(o=t;oh&&(h=l,f=o),i=(a*i+s.x)/++a;else{let n=o-1;if(!yo(d)&&!yo(f)){let t=Math.min(d,f),r=Math.max(d,f);t!==p&&t!==n&&g.push({...e[t],x:i}),r!==p&&r!==n&&g.push({...e[r],x:i})}o>0&&n!==p&&g.push(e[n]),g.push(s),u=t,a=0,m=h=l,d=f=p=o}}return g}function Ku(e){if(e._decimated){let t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function qu(e){e.data.datasets.forEach(e=>{Ku(e)})}function Jae(e,t){let n=t.length,r=0,i,{iScale:a}=e,{min:o,max:s,minDefined:c,maxDefined:l}=a.getUserBounds();return c&&(r=as(cs(t,a.axis,o).lo,0,n-1)),i=l?as(cs(t,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}var Yae={id:`decimation`,defaults:{algorithm:`min-max`,enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){qu(e);return}let r=e.width;e.data.datasets.forEach((t,i)=>{let{_data:a,indexAxis:o}=t,s=e.getDatasetMeta(i),c=a||t.data;if(Ys([o,e.options.indexAxis])===`y`||!s.controller.supportsDecimation)return;let l=e.scales[s.xAxisID];if(l.type!==`linear`&&l.type!==`time`||e.options.parsing)return;let{start:u,count:d}=Jae(s,c);if(d<=(n.threshold||4*r)){Ku(t);return}yo(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}}));let f;switch(n.algorithm){case`lttb`:f=Kae(c,u,d,r,n);break;case`min-max`:f=qae(c,u,d,r);break;default:throw Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=f})},destroy(e){qu(e)}};function Xae(e,t,n){let r=e.segments,i=e.points,a=t.points,o=[];for(let e of r){let{start:r,end:s}=e;s=Yu(r,s,i);let c=Ju(n,i[r],i[s],e.loop);if(!t.segments){o.push({source:e,target:c,start:i[r],end:i[s]});continue}let l=Dc(t,c);for(let t of l){let r=Ju(n,a[t.start],a[t.end],t.loop),s=Ec(e,i,r);for(let e of s)o.push({source:e,target:t,start:{[n]:Qae(c,r,`start`,Math.max)},end:{[n]:Qae(c,r,`end`,Math.min)}})}}return o}function Ju(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e===`angle`&&(i=rs(i),a=rs(a)),{property:e,start:i,end:a}}function Zae(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:e,end:t})=>{t=Yu(e,t,i);let o=i[e],s=i[t];r===null?n!==null&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y})):(a.push({x:o.x,y:r}),a.push({x:s.x,y:r}))}),a}function Yu(e,t,n){for(;t>e;t--){let e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Qae(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function $ae(e,t){let n=[],r=!1;return bo(e)?(r=!0,n=e):n=Zae(e,t),n.length?new Fu({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function eoe(e){return e&&e.fill!==!1}function toe(e,t,n){let r=e[t].fill,i=[t],a;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!So(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function noe(e,t,n){let r=ooe(e);if(xo(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return So(i)&&Math.floor(i)===i?roe(r[0],t,i,n):[`origin`,`start`,`end`,`stack`,`shape`].indexOf(r)>=0&&r}function roe(e,t,n,r){return(e===`-`||e===`+`)&&(n=t+n),n===t||n<0||n>=r?!1:n}function ioe(e,t){let n=null;return e===`start`?n=t.bottom:e===`end`?n=t.top:xo(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function aoe(e,t,n){let r;return r=e===`start`?n:e===`end`?t.options.reverse?t.min:t.max:xo(e)?e.value:t.getBaseValue(),r}function ooe(e){let t=e.options,n=t.fill,r=wo(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?`origin`:r}function soe(e){let{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=coe(t,n);s.push($ae({x:null,y:t.bottom},r));for(let e=0;e=0;--t){let n=i[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&n.fill&&Xu(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!==`beforeDatasetsDraw`)return;let r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){let n=r[t].$filler;eoe(n)&&Xu(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;eoe(r)&&n.drawTime===`beforeDatasetDraw`&&Xu(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:`beforeDatasetDraw`}},Soe=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Coe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,woe=class extends Fl{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=Eo(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=Js(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Soe(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=Toe(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=xc(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=hs(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=hs(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=hs(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=hs(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Bs(e,this),this._draw(),Vs(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=Ns.color,s=xc(e.rtl,this.left,this.width),c=Js(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=Soe(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=wo(n.lineWidth,1);if(r.fillStyle=wo(n.fillStyle,o),r.lineCap=wo(n.lineCap,`butt`),r.lineDashOffset=wo(n.lineDashOffset,0),r.lineJoin=wo(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=wo(n.strokeStyle,o),r.setLineDash(wo(n.lineDash,[])),a.usePointStyle){let o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},c=s.xPlus(e,p/2),l=t+d;Rs(r,o,c,l,a.pointStyleWidth&&p)}else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=Ks(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?Us(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){Hs(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:hs(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:hs(i,this.top+y+l,this.bottom-t[0].height),line:0},Sc(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,ee=f.y;s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(ee=f.y+=b,f.line++,S=f.x=hs(i,this.left+l,this.right-n[f.line])):u>0&&ee+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,ee=f.y=hs(i,this.top+y+l,this.bottom-t[f.line].height));let te=s.x(S);if(g(te,ee,o),S=pre(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),ee,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=Ooe(o,e)+l}else f.y+=b}),Cc(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=Js(t.font),r=qs(t.padding);if(!t.display)return;let i=xc(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=hs(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+hs(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=hs(o,u,u+d);a.textAlign=i.textAlign(ms(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Hs(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=Js(e.font),n=qs(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(os(e,this.left,this.right)&&os(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ne.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function Doe(e,t,n){let r=e;return typeof t.text!=`string`&&(r=Ooe(t,n)),r}function Ooe(e,t){return t*(e.text?e.text.length:0)}function koe(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var Aoe={id:`legend`,_element:woe,start(e,t,n){let r=e.legend=new woe({ctx:e.ctx,options:n,chart:e});Cl.configure(e,r,n),Cl.addBox(e,r)},stop(e){Cl.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;Cl.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=qs(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},$u=class extends Fl{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=bo(n.text)?n.text.length:1;this._padding=qs(n.padding);let i=r*Js(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=hs(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=hs(o,r,t),s=zo*-.5):(l=i-e,u=hs(o,t,r),s=zo*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=Js(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);Hs(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:ms(t.align),textBaseline:`middle`,translation:[i,a]})}};function joe(e,t){let n=new $u({ctx:e.ctx,options:t,chart:e});Cl.configure(e,n,t),Cl.addBox(e,n),e.titleBlock=n}var Moe={id:`title`,_element:$u,start(e,t,n){joe(e,n)},stop(e){let t=e.titleBlock;Cl.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;Cl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},ed=new WeakMap,Noe={id:`subtitle`,start(e,t,n){let r=new $u({ctx:e.ctx,options:n,chart:e});Cl.configure(e,r,n),Cl.addBox(e,r),ed.set(e,r)},stop(e){Cl.removeBox(e,ed.get(e)),ed.delete(e)},beforeUpdate(e,t,n){let r=ed.get(e);Cl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`normal`},fullSize:!0,padding:0,position:`top`,text:``,weight:1500},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},td={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;te+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;aMath.max(Math.min(e,n),t);function Va(e){return Ba(za(e*2.55),0,255)}function Ha(e){return Ba(za(e*255),0,255)}function Ua(e){return Ba(za(e/2.55)/100,0,1)}function Wa(e){return Ba(za(e*100),0,100)}var Ga={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ka=[...`0123456789ABCDEF`],Rne=e=>Ka[e&15],zne=e=>Ka[(e&240)>>4]+Ka[e&15],qa=e=>(e&240)>>4==(e&15),Bne=e=>qa(e.r)&&qa(e.g)&&qa(e.b)&&qa(e.a);function Vne(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&Ga[e[1]]*17,g:255&Ga[e[2]]*17,b:255&Ga[e[3]]*17,a:t===5?Ga[e[4]]*17:255}:(t===7||t===9)&&(n={r:Ga[e[1]]<<4|Ga[e[2]],g:Ga[e[3]]<<4|Ga[e[4]],b:Ga[e[5]]<<4|Ga[e[6]],a:t===9?Ga[e[7]]<<4|Ga[e[8]]:255})),n}var Hne=(e,t)=>e<255?t(e):``;function Une(e){var t=Bne(e)?Rne:zne;return e?`#`+t(e.r)+t(e.g)+t(e.b)+Hne(e.a,t):void 0}var Wne=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ja(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Gne(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function Ya(e,t,n){let r=Ja(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Kne(e,t,n,r,i){return e===i?(t-n)/r+(t.5?l/(2-i-a):l/(i+a),s=Kne(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function Za(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ha)}function Qa(e,t,n){return Za(Ja,e,t,n)}function qne(e,t,n){return Za(Ya,e,t,n)}function Jne(e,t,n){return Za(Gne,e,t,n)}function $a(e){return(e%360+360)%360}function eo(e){let t=Wne.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Va(+t[5]):Ha(+t[5]));let i=$a(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?qne(i,a,o):t[1]===`hsv`?Jne(i,a,o):Qa(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Yne(e,t){var n=Xa(e);n[0]=$a(n[0]+t),n=Qa(n),e.r=n[0],e.g=n[1],e.b=n[2]}function to(e){if(!e)return;let t=Xa(e),n=t[0],r=Wa(t[1]),i=Wa(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ua(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var Xne={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},Zne={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function Qne(){let e={},t=Object.keys(Zne),n=Object.keys(Xne),r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return e}var no;function $ne(e){no||(no=Qne(),no.transparent=[0,0,0,0]);let t=no[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var ere=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function tre(e){let t=ere.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?Va(e):Ba(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?Va(r):Ba(r,0,255)),i=255&(t[4]?Va(i):Ba(i,0,255)),a=255&(t[6]?Va(a):Ba(a,0,255)),{r,g:i,b:a,a:n}}}function nre(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ua(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var ro=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,io=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function ao(e,t,n){let r=io(Ua(e.r)),i=io(Ua(e.g)),a=io(Ua(e.b));return{r:Ha(ro(r+n*(io(Ua(t.r))-r))),g:Ha(ro(i+n*(io(Ua(t.g))-i))),b:Ha(ro(a+n*(io(Ua(t.b))-a))),a:e.a+n*(t.a-e.a)}}function oo(e,t,n){if(e){let r=Xa(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Qa(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function so(e,t){return e&&Object.assign(t||{},e)}function co(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ha(e[3]))):(t=so(e,{r:0,g:0,b:0,a:1}),t.a=Ha(t.a)),t}function rre(e){return e.charAt(0)===`r`?tre(e):eo(e)}var lo=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=co(t):n===`string`&&(r=Vne(t)||$ne(t)||rre(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=so(this._rgb);return e&&(e.a=Ua(e.a)),e}set rgb(e){this._rgb=co(e)}rgbString(){return this._valid?nre(this._rgb):void 0}hexString(){return this._valid?Une(this._rgb):void 0}hslString(){return this._valid?to(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=ao(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=Ha(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=za(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return oo(this._rgb,2,e),this}darken(e){return oo(this._rgb,2,-e),this}saturate(e){return oo(this._rgb,1,e),this}desaturate(e){return oo(this._rgb,1,-e),this}rotate(e){return Yne(this._rgb,e),this}};function uo(){}var ire=(()=>{let e=0;return()=>e++})();function fo(e){return e==null}function po(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function mo(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function ho(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function go(e,t){return ho(e)?e:t}function _o(e,t){return e===void 0?t:e}var vo=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,yo=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function bo(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function xo(e,t,n,r){let i,a,o;if(po(e)){if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function sre(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function cre(e){let t=sre(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function Oo(e,t){return(Do[t]||(Do[t]=cre(t)))(e)}function ko(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ao=e=>e!==void 0,jo=e=>typeof e==`function`,lre=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function ure(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var Mo=Math.PI,No=2*Mo,Po=No+Mo,Fo=1/0,dre=Mo/180,Io=Mo/2,Lo=Mo/4,Ro=Mo*2/3,zo=Math.log10,Bo=Math.sign;function Vo(e,t,n){return Math.abs(e-t)e-t).pop(),t}function pre(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Uo(e){return!pre(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function mre(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Wo(e,t,n){let r,i,a;for(r=0,i=e.length;rc&&l=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function es(e,t,n){n||=(n=>e[n]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var ts=(e,t,n,r)=>es(e,n,r?r=>{let i=e[r][t];return ie[r][t]es(e,n,r=>e[r][t]>=n);function vre(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{let n=`_onData`+ko(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})}))}function rs(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(ns.forEach(t=>{delete e[t]}),delete e._chartjs)}function is(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var as=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function os(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,as.call(window,()=>{r=!1,e.apply(t,n)}))}}function bre(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var ss=e=>e===`start`?`left`:e===`end`?`right`:`center`,cs=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,xre=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t;function ls(e,t,n){let r=t.length,i=0,a=r;if(e._sorted){let{iScale:o,vScale:s,_parsed:c}=e,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(i=Math.min(ts(c,u,d).lo,n?r:ts(t,u,o.getPixelForValue(d)).lo),l){let e=c.slice(0,i+1).reverse().findIndex(e=>!fo(e[s.axis]));i-=Math.max(0,e)}i=Qo(i,0,r-1)}if(m){let e=Math.max(ts(c,o.axis,f,!0).hi+1,n?0:ts(t,u,o.getPixelForValue(f),!0).hi+1);if(l){let t=c.slice(e-1).findIndex(e=>!fo(e[s.axis]));e+=Math.max(0,t)}a=Qo(e,i,r)-i}else a=r-i}return{start:i,count:a}}function us(e){let{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;let a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var ds=e=>e===0||e===1,fs=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*No/n)),ps=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*No/n)+1,ms={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Io)+1,easeOutSine:e=>Math.sin(e*Io),easeInOutSine:e=>-.5*(Math.cos(Mo*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>ds(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ds(e)?e:fs(e,.075,.3),easeOutElastic:e=>ds(e)?e:ps(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return ds(e)?e:e<.5?.5*fs(e*2,t,n):.5+.5*ps(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-ms.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?ms.easeInBounce(e*2)*.5:ms.easeOutBounce(e*2-1)*.5+.5};function hs(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function gs(e){return hs(e)?e:new lo(e)}function _s(e){return hs(e)?e:new lo(e).saturate(.5).darken(.1).hexString()}var Sre=[`x`,`y`,`borderWidth`,`radius`,`tension`],Cre=[`color`,`borderColor`,`backgroundColor`];function wre(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:Cre},numbers:{type:`number`,properties:Sre}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function Tre(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var vs=new Map;function Ere(e,t){t||={};let n=e+JSON.stringify(t),r=vs.get(n);return r||(r=new Intl.NumberFormat(e,t),vs.set(n,r)),r}function ys(e,t,n){return Ere(t,n).format(e)}var bs={values(e){return po(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=Dre(e,n)}let o=zo(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),ys(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(zo(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?bs.numeric.call(this,e,t,n):``}};function Dre(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var xs={formatters:bs};function Ore(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:xs.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var Ss=Object.create(null),Cs=Object.create(null);function ws(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>_s(t.backgroundColor),this.hoverBorderColor=(e,t)=>_s(t.borderColor),this.hoverColor=(e,t)=>_s(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Ts(this,e,t)}get(e){return ws(this,e)}describe(e,t){return Ts(Cs,e,t)}override(e,t){return Ts(Ss,e,t)}route(e,t,n,r){let i=ws(this,e),a=ws(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return mo(e)?Object.assign({},t,e):_o(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[wre,Tre,Ore]);function kre(e){return!e||fo(e.size)||fo(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Ds(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Are(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;cn.length){for(c=0;c0&&e.stroke()}}function Ms(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,Nre(e,a),c=0;c+e||0;function Ls(e,t){let n={},r=mo(t),i=r?Object.keys(t):t,a=mo(e)?r?n=>_o(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=zre(a(e));return n}function Rs(e){return Ls(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function zs(e){return Ls(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function Bs(e){let t=Rs(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Vs(e,t){e||={},t||=Es.font;let n=_o(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=_o(e.style,t.style);r&&!(``+r).match(Lre)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:_o(e.family,t.family),lineHeight:Rre(_o(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:_o(e.weight,t.weight),string:``};return i.string=kre(i),i}function Hs(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;an&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Us(e,t){return Object.assign(Object.create(e),t)}function Ws(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=Xre(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>Ws([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return Js(n,r,()=>Yre(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return Zs(e).includes(t)},ownKeys(e){return Zs(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function Gs(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Ks(e,r),setContext:t=>Gs(e,t,n,r),override:i=>Gs(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return Js(e,t,()=>Hre(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function Ks(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:jo(n)?n:()=>n,isIndexable:jo(r)?r:()=>r}}var Vre=(e,t)=>e?e+ko(t):t,qs=(e,t)=>mo(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Js(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function Hre(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return jo(s)&&o.isScriptable(t)&&(s=Ure(t,s,e,n)),po(s)&&s.length&&(s=Wre(t,s,e,o.isIndexable)),qs(t,s)&&(s=Gs(s,i,a&&a[t],o)),s}function Ure(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),qs(e,c)&&(c=Xs(i._scopes,i,e,c)),c}function Wre(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(mo(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=Xs(r,i,e,c);t.push(Gs(n,a,o&&o[e],s))}}return t}function Gre(e,t,n){return jo(e)?e(t,n):e}var Kre=(e,t)=>e===!0?t:typeof e==`string`?Oo(t,e):void 0;function Ys(e,t,n,r,i){for(let a of t){let t=Kre(n,a);if(t){e.add(t);let a=Gre(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function Xs(e,t,n,r){let i=t._rootScopes,a=Gre(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=qre(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=qre(s,o,a,c,r),c===null)?!1:Ws(Array.from(s),[``],i,a,()=>Jre(t,n,r))}function qre(e,t,n,r,i){for(;n;)n=Ys(e,t,n,r,i);return n}function Jre(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return po(i)&&mo(n)?n:i||{}}function Yre(e,t,n,r){let i;for(let a of t)if(i=Xre(Vre(a,e),n),i!==void 0)return qs(e,i)?Xs(n,r,e,i):i}function Xre(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function Zs(e){let t=e._keys;return t||=e._keys=Zre(e._scopes),t}function Zre(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function Qs(e,t,n,r){let{iScale:i}=e,{key:a=`r`}=this._parsing,o=Array(r),s,c,l,u;for(s=0,c=r;ste===`x`?`y`:`x`;function $re(e,t,n,r){let i=e.skip?t:e,a=t,o=n.skip?t:n,s=Yo(a,i),c=Yo(o,a),l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;let d=r*l,f=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+f*(o.x-i.x),y:a.y+f*(o.y-i.y)}}}function eie(e,t,n){let r=e.length,i,a,o,s,c,l=$s(e,0);for(let u=0;u!e.skip)),t.cubicInterpolationMode===`monotone`)nie(e,i);else{let n=r?e[e.length-1]:e[0];for(a=0,o=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function aie(e,t){return ac(e).getPropertyValue(t)}var oie=[`top`,`right`,`bottom`,`left`];function oc(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=oie[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var sie=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function cie(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(sie(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function sc(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=ac(n),a=i.boxSizing===`border-box`,o=oc(i,`padding`),s=oc(i,`border`,`width`),{x:c,y:l,box:u}=cie(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function lie(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&rc(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=ac(a),s=oc(o,`border`,`width`),c=oc(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=ic(o.maxWidth,a,`clientWidth`),i=ic(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||Fo,maxHeight:i||Fo}}var cc=e=>Math.round(e*10)/10;function uie(e,t,n,r){let i=ac(e),a=oc(i,`margin`),o=ic(i.maxWidth,e,`clientWidth`)||Fo,s=ic(i.maxHeight,e,`clientHeight`)||Fo,c=lie(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=oc(i,`border`,`width`),t=oc(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=cc(Math.min(l,o,c.maxWidth)),u=cc(Math.min(u,s,c.maxHeight)),l&&!u&&(u=cc(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=cc(Math.floor(u*r))),{width:l,height:u}}function lc(e,t,n){let r=t||1,i=cc(e.height*r),a=cc(e.width*r);e.height=cc(e.height),e.width=cc(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var die=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};nc()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function uc(e,t){let n=aie(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function dc(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function fie(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r===`middle`?n<.5?e.y:t.y:r===`after`?n<1?e.y:t.y:n>0?t.y:e.y}}function pie(e,t,n,r){let i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=dc(e,i,n),s=dc(i,a,n),c=dc(a,t,n);return dc(dc(o,s,n),dc(s,c,n),n)}var mie=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},hie=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function fc(e,t,n){return e?mie(t,n):hie()}function pc(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function mc(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function hc(e){return e===`angle`?{between:Zo,compare:hre,normalize:Xo}:{between:$o,compare:(e,t)=>e-t,normalize:e=>e}}function gc({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function gie(e,t,n){let{property:r,start:i,end:a}=n,{between:o,normalize:s}=hc(r),c=t.length,{start:l,end:u,loop:d}=e,f,p;if(d){for(l+=c,u+=c,f=0,p=c;fc(i,y,_)&&s(i,y)!==0,x=()=>s(a,_)===0||c(a,y,_),S=()=>h||b(),ee=()=>!h||x();for(let e=u,n=u;e<=d;++e)v=t[e%o],!v.skip&&(_=l(v[r]),_!==y&&(h=c(_,i,a),g===null&&S()&&(g=s(_,i)===0?e:n),g!==null&&ee()&&(m.push(gc({start:g,end:e,loop:f,count:o,style:p})),g=null),n=e,y=_));return g!==null&&m.push(gc({start:g,end:d,loop:f,count:o,style:p})),m}function vc(e,t){let n=[],r=e.segments;for(let i=0;ii&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function vie(e,t,n,r){let i=e.length,a=[],o=t,s=e[t],c;for(c=t+1;c<=n;++c){let n=e[c%i];n.skip||n.stop?s.skip||(r=!1,a.push({start:t%i,end:(c-1)%i,loop:r}),t=o=n.stop?c:null):(o=c,s.skip&&(t=c)),s=n}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function yie(e,t){let n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];let a=!!e._loop,{start:o,end:s}=_ie(n,i,a,r);return r===!0?yc(e,[{start:o,end:s,loop:a}],n,t):yc(e,vie(n,o,sr({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,as.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},Tc=`transparent`,Sie={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=gs(e||Tc),i=r.valid&&gs(t||Tc);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},Ec=class{constructor(e,t,n,r){let i=t[n];r=Hs([e.to,r,i,e.from]);let a=Hs([e.from,i,r]);this._active=!0,this._fn=e.fn||Sie[e.type||typeof a],this._easing=ms[e.easing]||ms.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Hs([e.to,t,r,e.from]),this._from=Hs([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;this._active=i!==o&&(a||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)):(this._target[r]=o,this._notify(!0))}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e{let i=e[r];if(!mo(i))return;let a={};for(let e of t)a[e]=i[e];(po(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=Oc(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&Cie(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u){if(d&&u.active()){u.update(d,l,o);continue}u.cancel()}!d||!d.duration?e[c]=l:(i[c]=u=new Ec(d,e,c,l),r.push(u))}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return wc.add(this._chart,n),!0}};function Cie(e,t){let n=[],r=Object.keys(t);for(let t=0;t0||!n&&t<0)return i.index}return null}function Pc(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Die(a,o,r),d=t.length,f;for(let e=0;en[e].axis===t).shift()}function Ic(e,t){return Us(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function Aie(e,t,n){return Us(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function Lc(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var Rc=e=>e===`reset`||e===`none`,zc=(e,t)=>t?e:Object.assign({},e),jie=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Ac(n,!0),values:null},Bc=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Mc(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&Lc(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=_o(n.xAxisID,Fc(e,`x`)),a=t.yAxisID=_o(n.yAxisID,Fc(e,`y`)),o=t.rAxisID=_o(n.rAxisID,Fc(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&rs(this._data,this),e._stacked&&Lc(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(mo(t)){let e=this._cachedMeta;this._data=Eie(t,e)}else if(n!==t){if(n){rs(n,this);let e=this._cachedMeta;Lc(e),e._parsed=[]}t&&Object.isExtensible(t)&&yre(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=Mc(t.vScale,t),t.stack!==n.stack&&(r=!0,Lc(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(Pc(this,t._parsed),t._stacked=Mc(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length||n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=po(r[e])?this.parseArrayData(n,r,e,t):mo(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]t||u=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r=0&&ethis.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(zc(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new Dc(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||Rc(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){Rc(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!Rc(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;oe-t))}return e._cache.$bar}function Nie(e){let t=e.iScale,n=Mie(t,e.type),r=t._length,i,a,o,s,c=()=>{o!==32767&&o!==-32768&&(Ao(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function Vc(e,t,n,r){return po(e)?Iie(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Hc(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l=n?1:-1):Bo(e)}function Rie(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.basee.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(fo(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[_o(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=t,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),c=a._custom;return{label:n[e]||``,value:`(`+o+`, `+s+(c?`, `+c:``)+`)`}}update(e){let t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{iScale:a,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:c}=this._getSharedOptions(t,r),l=a.axis,u=o.axis;for(let d=t;dZo(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>Zo(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(Io,u,f),_=m(Mo,l,d),v=m(Mo+Io,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var Xc=class extends Bc{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}},cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(mo(n[e])){let{key:e=`value`}=this._parsing;i=t=>+Oo(n[t],e)}let a,o;for(a=e,o=e+t;a0&&!isNaN(e)?Math.abs(e)/t*No:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=ys(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r0&&this.getParsed(t-1);for(let n=0;n=_){v.skip=!0;continue}let b=this.getParsed(n),x=fo(b[f]),S=v[d]=a.getPixelForValue(b[d],n),ee=v[f]=i||x?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,b,s):b[f],n);v.skip=isNaN(S)||isNaN(ee)||x,v.stop=n>0&&Math.abs(b[d]-y[d])>h,m&&(v.parsed=b,v.raw=c.data[n]),u&&(v.options=l||this.resolveDataElementOptions(n,p.active?`active`:r)),g||this.updateElement(p,n,v,r),y=b}}getMaxOverflow(){let e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;let i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}draw(){let e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}},Hie=class extends Bc{static id=`polarArea`;static defaults={dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:`number`,properties:[`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`]}},indexAxis:`r`,startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data;if(t.labels.length&&t.datasets.length){let{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((t,i)=>{let a=e.getDatasetMeta(0).controller.getStyle(i);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:r,lineWidth:a.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(i),index:i}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:`radialLinear`,angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=ys(t._parsed[e].r,n.options.locale);return{label:r[e]||``,value:i}}parseObjectData(e,t,n,r){return Qs.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){let e=this._cachedMeta,t={min:1/0,max:-1/0};return e.data.forEach((e,n)=>{let r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(rt.max&&(t.max=r))}),t}_updateRadius(){let e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,l=s.yCenter,u=s.getIndexAngle(0)-.5*Mo,d=u,f,p=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?Go(this.resolveDataElementOptions(e,t).angle||n):0}},Uie=Object.freeze({__proto__:null,BarController:Yc,BubbleController:zie,DoughnutController:Xc,LineController:Vie,PieController:class extends Xc{static id=`pie`;static defaults={cutout:0,rotation:0,circumference:360,radius:`100%`}},PolarAreaController:Hie,RadarController:class extends Bc{static id=`radar`;static defaults={datasetElementType:`line`,dataElementType:`point`,indexAxis:`r`,showLine:!0,elements:{line:{fill:`start`}}};static overrides={aspectRatio:1,scales:{r:{type:`radialLinear`}}};getLabelAndValue(e){let t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:``+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,r){return Qs.bind(this)(e,t,n,r)}update(e){let t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,e!==`resize`){let t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);let a={_loop:!0,_fullLoop:i.length===r.length,options:t};this.updateElement(n,void 0,a,e)}this.updateElements(r,0,r.length,e)}updateElements(e,t,n,r){let i=this._cachedMeta.rScale,a=r===`reset`;for(let o=t;o0&&this.getParsed(t-1);for(let l=t;l0&&Math.abs(n[f]-v[f])>g,h&&(m.parsed=n,m.raw=c.data[l]),d&&(m.options=u||this.resolveDataElementOptions(l,t.active?`active`:r)),_||this.updateElement(t,l,m,r),v=n}this.updateSharedOptions(u,r,l)}getMaxOverflow(){let e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}let n=e.dataset,r=n.options&&n.options.borderWidth||0;if(!t.length)return r;let i=t[0].size(this.resolveDataElementOptions(0)),a=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(r,i,a)/2}}});function Zc(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var Qc={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return Zc()}parse(){return Zc()}format(){return Zc()}add(){return Zc()}diff(){return Zc()}startOf(){return Zc()}endOf(){return Zc()}}};function $c(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?_re:ts;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!fo(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!fo(e[t.axis]));r.hi+=Math.max(0,o)}return r}if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function el(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var il={evaluateInteractionItems:el,modes:{index(e,t,n,r){let i=sc(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?nl(e,i,a,r,o):rl(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=sc(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?nl(e,i,a,r,o):rl(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;ee.pos===t)}function qie(e,t){return e.filter(e=>al.indexOf(e.pos)===-1&&e.box.axis===t)}function sl(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function Jie(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;ne.box.fullSize),!0),r=sl(ol(t,`left`),!0),i=sl(ol(t,`right`)),a=sl(ol(t,`top`),!0),o=sl(ol(t,`bottom`)),s=qie(t,`x`),c=qie(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:ol(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function Qie(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function cl(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function $ie(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!mo(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&cl(o,a.getPadding());let s=Math.max(0,t.outerWidth-Qie(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-Qie(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function ll(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function ul(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function dl(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);cl(f,Bs(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Xie(c.concat(l),d);dl(s.fullSize,p,d,m),dl(c,p,d,m),dl(l,p,d,m)&&dl(c,p,d,m),ll(p),eae(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,eae(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},xo(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},tae=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},nae=class extends tae{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},ml=`$chartjs`,rae={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},iae=e=>e===null||e===``;function aae(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[ml]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,iae(i)){let t=uc(e,`width`);t!==void 0&&(e.width=t)}if(iae(r)){if(e.style.height===``)e.height=e.width/(t||2);else{let t=uc(e,`height`);t!==void 0&&(e.height=t)}}return e}var oae=die?{passive:!0}:!1;function sae(e,t,n){e&&e.addEventListener(t,n,oae)}function cae(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,oae)}function lae(e,t){let n=rae[e.type]||e.type,{x:r,y:i}=sc(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function hl(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function uae(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=hl(n.addedNodes,r),t&&=!hl(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function dae(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=hl(n.removedNodes,r),t&&=!hl(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var gl=new Map,_l=0;function vl(){let e=window.devicePixelRatio;e!==_l&&(_l=e,gl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function yl(e,t){gl.size||window.addEventListener(`resize`,vl),gl.set(e,t)}function bl(e){gl.delete(e),gl.size||window.removeEventListener(`resize`,vl)}function xl(e,t,n){let r=e.canvas,i=r&&rc(r);if(!i)return;let a=os((e,t)=>{let r=i.clientWidth;n(e,t),r{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;(n!==0||r!==0)&&a(n,r)});return o.observe(i),yl(e,a),o}function Sl(e,t,n){n&&n.disconnect(),t===`resize`&&bl(e)}function Cl(e,t,n){let r=e.canvas,i=os(t=>{e.ctx!==null&&n(lae(t,e))},e);return sae(r,t,i),i}var wl=class extends tae{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(aae(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[ml])return!1;let n=t[ml].initial;[`height`,`width`].forEach(e=>{let r=n[e];fo(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[ml],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:uae,detach:dae,resize:xl}[t]||Cl)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:Sl,detach:Sl,resize:Sl}[t]||cae)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return uie(e,t,n,r)}isAttached(e){let t=e&&rc(e);return!!(t&&t.isConnected)}};function Tl(e){return!nc()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?nae:wl}var El=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Uo(this.x)&&Uo(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function Dl(e,t){let n=e.options.ticks,r=Ol(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?Al(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return jl(t,l,a,o/i),l;let u=kl(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(Ml(t,l,u,fo(r)?0:s-r,s),e=0,n=o-1;ei)return t}return Math.max(i,1)}function Al(e){let t=[],n,r;for(n=0,r=e.length;ne===`left`?`right`:e===`right`?`left`:e,Fl=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,Il=(e,t)=>Math.min(t||e,e);function Ll(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;ao+s)))return c}function pae(e,t){xo(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;in?n:t,n=r&&t>n?t:n,{min:go(t,go(n,t)),max:go(n,go(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){bo(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Bre(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=Qo(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-Rl(e.grid)-t.padding-zl(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=Ko(Math.min(Math.asin(Qo((l.highest.height+6)/o,-1,1)),Math.asin(Qo(s/c,-1,1))-Math.asin(Qo(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){bo(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){bo(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=zl(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=Rl(i)+a):(e.height=this.maxHeight,e.width=Rl(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=Go(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){bo(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t({width:a[e]||0,height:o[e]||0});return{first:ee(0),last:ee(t-1),widest:ee(x),highest:ee(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return gre(this._alignToPixels?Os(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&eo*r?o/n:s/r:s*r0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=Rl(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Os(n,e,p)},g,_,v,y,b,x,S,ee,te,ne,C,re;if(a===`top`)g=h(this.bottom),x=this.bottom-u,ee=g-m,ne=h(e.top)+m,re=e.bottom;else if(a===`bottom`)g=h(this.top),ne=e.top,re=h(e.bottom)-m,x=g+m,ee=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,te=h(e.left)+m,C=e.right;else if(a===`right`)g=h(this.left),te=e.left,C=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(mo(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}ne=e.top,re=e.bottom,x=g+m,ee=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(mo(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,te=e.left,C=e.right}let ie=_o(r.ticks.maxTicksLimit,l),ae=Math.max(1,Math.ceil(l/ie));for(_=0;_0&&(a-=r/2)}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:te,textOffset:re,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:ie,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-Go(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);Es.route(a,i,c,s)})}function Kl(e){return`id`in e&&`defaults`in e}var ql=new class{constructor(){this.controllers=new Ul(Bc,`datasets`,!0),this.elements=new Ul(El,`elements`),this.plugins=new Ul(Object,`plugins`),this.scales=new Ul(Hl,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):xo(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=ko(e);bo(n[`before`+r],[],n),t[e](n),bo(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;te.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function Jl(e){let t={},n=[],r=Object.keys(ql.plugins.items);for(let e=0;e1&&Xl(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Ql(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function Sae(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return Ql(e,`x`,n[0])||Ql(e,`y`,n[0])}return{}}function $l(e,t){let n=Ss[e.type]||{scales:{}},r=t.scales||{},i=Yl(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!mo(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=Zl(t,o,Sae(t,e),Es.scales[o.type]),c=bae(s,i),l=n.scales||{};a[t]=Eo(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||Yl(i,t),s=(Ss[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=yae(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),Eo(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];Eo(t,[Es.scales[t.type],Es.scale])}),a}function eu(e){let t=e.options||={};t.plugins=_o(t.plugins,{}),t.scales=$l(e,t)}function tu(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function nu(e){return e||={},e.data=tu(e.data),eu(e),e}var ru=new Map,iu=new Set;function au(e,t){let n=ru.get(e);return n||(n=t(),ru.set(e,n),iu.add(n)),n}var ou=(e,t,n)=>{let r=Oo(t,n);r!==void 0&&e.add(r)},Cae=class{constructor(e){this._config=nu(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=tu(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),eu(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return au(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return au(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return au(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return au(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>ou(s,e,t))),t.forEach(e=>ou(s,r,e)),t.forEach(e=>ou(s,Ss[i]||{},e)),t.forEach(e=>ou(s,Es,e)),t.forEach(e=>ou(s,Cs,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),iu.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,Ss[t]||{},Es.datasets[t]||{},{type:t},Es,Cs]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=su(this._resolverCache,e,r),s=a;if(lu(a,t)){i.$shared=!1,n=jo(n)?n():n;let t=this.createResolver(e,n,o);s=Gs(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=su(this._resolverCache,e,n);return mo(t)?Gs(i,t,void 0,r):i}};function su(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:Ws(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var cu=e=>mo(e)&&Object.getOwnPropertyNames(e).some(t=>jo(e[t]));function lu(e,t){let{isScriptable:n,isIndexable:r}=Ks(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(jo(o)||cu(o))||a&&po(o))return!0}return!1}var uu=`4.5.1`,du=[`top`,`bottom`,`left`,`right`,`chartArea`];function fu(e,t){return e===`top`||e===`bottom`||du.indexOf(e)===-1&&t===`x`}function pu(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function mu(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),bo(n&&n.onComplete,[e],t)}function hu(e){let t=e.chart,n=t.options.animation;bo(n&&n.onProgress,[e],t)}function gu(e){return nc()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var _u={},vu=e=>{let t=gu(e);return Object.values(_u).filter(e=>e.canvas===t).pop()};function wae(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function Tae(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var yu=class{static defaults=Es;static instances=_u;static overrides=Ss;static registry=ql;static version=uu;static getChart=vu;static register(...e){ql.add(...e),bu()}static unregister(...e){ql.remove(...e),bu()}constructor(e,t){let n=this.config=new Cae(t),r=gu(e),i=vu(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(Tl(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;this.id=ire(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new hae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=bre(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],_u[this.id]=this,!o||!s?console.error(`Failed to create chart: can't acquire context from the given item`):(wc.listen(this,`complete`,mu),wc.listen(this,`progress`,hu),this._initialize(),this.attached&&this.update())}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return fo(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return ql}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():lc(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return ks(this.canvas,this.ctx),this}stop(){return wc.stop(this),this}resize(e,t){wc.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,lc(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),bo(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){xo(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=Zl(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),xo(i,t=>{let i=t.options,a=i.id,o=Zl(a,i),s=_o(i.type,t.dtype);(i.position===void 0||fu(i.position,o)!==fu(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(ql.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),xo(r,(e,t)=>{e||delete n[t]}),xo(n,e=>{pl.configure(this,e,e.options),pl.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(pu(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){xo(this.scales,e=>{pl.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!lre(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)wae(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;ee.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;pl.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],xo(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=Cc(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Ns(t,r),e.controller.draw(),r&&Ps(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return Ms(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=il.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=Us(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Ao(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),wc.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};xo(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){xo(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},xo(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});So(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=ure(e),c=Tae(e,this._lastEvent,n,s);n&&(this._lastEvent=null,bo(i.onHover,[e,o,this],this),s&&bo(i.onClick,[e,o,this],this));let l=!So(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function bu(){return xo(yu.instances,e=>e._plugins.invalidate())}function Eae(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,Xo(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,Xo(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*Xo(r-n));if(u===`round`)e.arc(i,a,t,n-Mo/2,r+Mo/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+Mo/2)+i,c=-o*Math.sin(n+Mo/2)+a,l=o*Math.cos(r+Mo/2)+i,u=o*Math.sin(r+Mo/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function Dae(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+Io,r-Io),e.closePath(),e.clip()}function Oae(e){return Ls(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function kae(e,t,n,r){let i=Oae(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return Qo(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Qo(i.innerStart,0,o),innerEnd:Qo(i.innerEnd,0,o)}}function xu(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Su(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/Mo)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=kae(t,f,d,_-g),S=d-v,ee=d-y,te=g+v/S,ne=_-y/ee,C=f+b,re=f+x,ie=g+b/C,ae=_-x/re;if(e.beginPath(),a){let t=(te+ne)/2;if(e.arc(o,s,d,te,t),e.arc(o,s,d,t,ne),y>0){let t=xu(ee,ne,o,s);e.arc(t.x,t.y,y,ne,_+Io)}let n=xu(re,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=xu(re,ae,o,s);e.arc(t.x,t.y,x,_+Io,ae+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=xu(C,ie,o,s);e.arc(t.x,t.y,b,ie+Math.PI,g-Io)}let i=xu(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=xu(S,te,o,s);e.arc(t.x,t.y,v,g-Io,te)}}else{e.moveTo(o,s);let t=Math.cos(te)*d+o,n=Math.sin(te)*d+s;e.lineTo(t,n);let r=Math.cos(ne)*d+o,i=Math.sin(ne)*d+s;e.lineTo(r,i)}e.closePath()}function Aae(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){Su(e,t,n,r,c,i);for(let t=0;t=Mo&&p===0&&u!==`miter`&&Eae(e,t,h),a||(Su(e,t,n,r,h,i),e.stroke())}var Mae=class extends El{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=Jo(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=_o(l,o-a),f=Zo(r,a,o)&&a!==o,p=d>=No||f,m=$o(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>No?Math.floor(n/No):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(Mo,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,Aae(e,this,s,i,a),jae(e,this,s,i,a),e.restore()}};function Cu(e,t,n=t){e.lineCap=_o(n.borderCapStyle,t.borderCapStyle),e.setLineDash(_o(n.borderDash,t.borderDash)),e.lineDashOffset=_o(n.borderDashOffset,t.borderDashOffset),e.lineJoin=_o(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=_o(n.borderWidth,t.borderWidth),e.strokeStyle=_o(n.borderColor,t.borderColor)}function Nae(e,t,n){e.lineTo(n.x,n.y)}function Pae(e){return e.stepped?jre:e.tension||e.cubicInterpolationMode===`monotone`?Mre:Nae}function wu(e,t,n={}){let r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,c=Math.max(i,o),l=Math.min(a,s),u=is&&a>s;return{count:r,start:c,loop:t.loop,ilen:l(o+(l?s-e:e))%a,y=()=>{h!==g&&(e.lineTo(u,g),e.lineTo(u,h),e.lineTo(u,_))};for(c&&(p=i[v(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[v(f)],p.skip)continue;let t=p.x,n=p.y,r=t|0;r===m?(ng&&(g=n),u=(d*u+t)/++d):(y(),e.lineTo(t,n),m=r,d=0,h=g=n),_=n}y()}function Eu(e){let t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!==`monotone`&&!t.stepped&&!n?Tu:Fae}function Iae(e){return e.stepped?fie:e.tension||e.cubicInterpolationMode===`monotone`?pie:dc}function Lae(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Cu(e,t.options),e.stroke(i)}function Rae(e,t,n,r){let{segments:i,options:a}=t,o=Eu(t);for(let s of i)Cu(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}var zae=typeof Path2D==`function`;function Bae(e,t,n,r){zae&&!t.options.segment?Lae(e,t,n,r):Rae(e,t,n,r)}var Du=class extends El{static id=`line`;static defaults={borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:`default`,fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`&&e!==`fill`};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){let n=this.options;if((n.tension||n.cubicInterpolationMode===`monotone`)&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;iie(this._points,n,e,r,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||=yie(this,this.options.segment)}first(){let e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){let e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){let n=this.options,r=e[t],i=this.points,a=vc(this,{property:t,start:r,end:r});if(!a.length)return;let o=[],s=Iae(n),c,l;for(c=0,l=a.length;ce.replace(`rgb(`,`rgba(`).replace(`)`,`, 0.5)`));function Fu(e){return Nu[e%Nu.length]}function Iu(e){return Pu[e%Pu.length]}function Jae(e,t){return e.borderColor=Fu(t),e.backgroundColor=Iu(t),++t}function Yae(e,t){return e.backgroundColor=e.data.map(()=>Fu(t++)),t}function Xae(e,t){return e.backgroundColor=e.data.map(()=>Iu(t++)),t}function Zae(e){let t=0;return(n,r)=>{let i=e.getDatasetMeta(r).controller;i instanceof Xc?t=Yae(n,t):i instanceof Hie?t=Xae(n,t):i&&(t=Jae(n,t))}}function Lu(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function Qae(e){return e&&(e.borderColor||e.backgroundColor)}function $ae(){return Es.borderColor!==`rgba(0,0,0,0.1)`||Es.backgroundColor!==`rgba(0,0,0,0.1)`}var eoe={id:`colors`,defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;let{data:{datasets:r},options:i}=e.config,{elements:a}=i,o=Lu(r)||Qae(i)||a&&Lu(a)||$ae();if(!n.forceOverride&&o)return;let s=Zae(e);r.forEach(s)}};function toe(e,t,n,r,i){let a=i.samples||r;if(a>=n)return e.slice(t,t+n);let o=[],s=(n-2)/(a-2),c=0,l=t+n-1,u=t,d,f,p,m,h;for(o[c++]=e[u],d=0;dp&&(p=m,f=e[a],h=a);o[c++]=f,u=h}return o[c++]=e[l],o}function noe(e,t,n,r){let i=0,a=0,o,s,c,l,u,d,f,p,m,h,g=[],_=t+n-1,v=e[t].x,y=e[_].x-v;for(o=t;oh&&(h=l,f=o),i=(a*i+s.x)/++a;else{let n=o-1;if(!fo(d)&&!fo(f)){let t=Math.min(d,f),r=Math.max(d,f);t!==p&&t!==n&&g.push({...e[t],x:i}),r!==p&&r!==n&&g.push({...e[r],x:i})}o>0&&n!==p&&g.push(e[n]),g.push(s),u=t,a=0,m=h=l,d=f=p=o}}return g}function Ru(e){if(e._decimated){let t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function zu(e){e.data.datasets.forEach(e=>{Ru(e)})}function roe(e,t){let n=t.length,r=0,i,{iScale:a}=e,{min:o,max:s,minDefined:c,maxDefined:l}=a.getUserBounds();return c&&(r=Qo(ts(t,a.axis,o).lo,0,n-1)),i=l?Qo(ts(t,a.axis,s).hi+1,r,n)-r:n-r,{start:r,count:i}}var ioe={id:`decimation`,defaults:{algorithm:`min-max`,enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){zu(e);return}let r=e.width;e.data.datasets.forEach((t,i)=>{let{_data:a,indexAxis:o}=t,s=e.getDatasetMeta(i),c=a||t.data;if(Hs([o,e.options.indexAxis])===`y`||!s.controller.supportsDecimation)return;let l=e.scales[s.xAxisID];if(l.type!==`linear`&&l.type!==`time`||e.options.parsing)return;let{start:u,count:d}=roe(s,c);if(d<=(n.threshold||4*r)){Ru(t);return}fo(a)&&(t._data=c,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}}));let f;switch(n.algorithm){case`lttb`:f=toe(c,u,d,r,n);break;case`min-max`:f=noe(c,u,d,r);break;default:throw Error(`Unsupported decimation algorithm '${n.algorithm}'`)}t._decimated=f})},destroy(e){zu(e)}};function aoe(e,t,n){let r=e.segments,i=e.points,a=t.points,o=[];for(let e of r){let{start:r,end:s}=e;s=Vu(r,s,i);let c=Bu(n,i[r],i[s],e.loop);if(!t.segments){o.push({source:e,target:c,start:i[r],end:i[s]});continue}let l=vc(t,c);for(let t of l){let r=Bu(n,a[t.start],a[t.end],t.loop),s=_c(e,i,r);for(let e of s)o.push({source:e,target:t,start:{[n]:Hu(c,r,`start`,Math.max)},end:{[n]:Hu(c,r,`end`,Math.min)}})}}return o}function Bu(e,t,n,r){if(r)return;let i=t[e],a=n[e];return e===`angle`&&(i=Xo(i),a=Xo(a)),{property:e,start:i,end:a}}function ooe(e,t){let{x:n=null,y:r=null}=e||{},i=t.points,a=[];return t.segments.forEach(({start:e,end:t})=>{t=Vu(e,t,i);let o=i[e],s=i[t];r===null?n!==null&&(a.push({x:n,y:o.y}),a.push({x:n,y:s.y})):(a.push({x:o.x,y:r}),a.push({x:s.x,y:r}))}),a}function Vu(e,t,n){for(;t>e;t--){let e=n[t];if(!isNaN(e.x)&&!isNaN(e.y))break}return t}function Hu(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function Uu(e,t){let n=[],r=!1;return po(e)?(r=!0,n=e):n=ooe(e,t),n.length?new Du({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Wu(e){return e&&e.fill!==!1}function soe(e,t,n){let r=e[t].fill,i=[t],a;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!ho(r))return r;if(a=e[r],!a)return!1;if(a.visible)return r;i.push(r),r=a.fill}return!1}function coe(e,t,n){let r=foe(e);if(mo(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return ho(i)&&Math.floor(i)===i?loe(r[0],t,i,n):[`origin`,`start`,`end`,`stack`,`shape`].indexOf(r)>=0&&r}function loe(e,t,n,r){return(e===`-`||e===`+`)&&(n=t+n),n===t||n<0||n>=r?!1:n}function uoe(e,t){let n=null;return e===`start`?n=t.bottom:e===`end`?n=t.top:mo(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function doe(e,t,n){let r;return r=e===`start`?n:e===`end`?t.options.reverse?t.min:t.max:mo(e)?e.value:t.getBaseValue(),r}function foe(e){let t=e.options,n=t.fill,r=_o(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?`origin`:r}function poe(e){let{scale:t,index:n,line:r}=e,i=[],a=r.segments,o=r.points,s=moe(t,n);s.push(Uu({x:null,y:t.bottom},r));for(let e=0;e=0;--t){let n=i[t].$filler;n&&(n.line.updateControlPoints(a,n.axis),r&&n.fill&&Ku(e.ctx,n,a))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!==`beforeDatasetsDraw`)return;let r=e.getSortedVisibleDatasetMetas();for(let t=r.length-1;t>=0;--t){let n=r[t].$filler;Wu(n)&&Ku(e.ctx,n,e.chartArea)}},beforeDatasetDraw(e,t,n){let r=t.meta.$filler;Wu(r)&&n.drawTime===`beforeDatasetDraw`&&Ku(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:`beforeDatasetDraw`}},Zu=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},Toe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,Qu=class extends El{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=bo(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=Vs(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Zu(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=Eoe(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=fc(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=cs(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=cs(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=cs(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=cs(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Ns(e,this),this._draw(),Ps(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=Es.color,s=fc(e.rtl,this.left,this.width),c=Vs(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=Zu(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=_o(n.lineWidth,1);if(r.fillStyle=_o(n.fillStyle,o),r.lineCap=_o(n.lineCap,`butt`),r.lineDashOffset=_o(n.lineDashOffset,0),r.lineJoin=_o(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=_o(n.strokeStyle,o),r.setLineDash(_o(n.lineDash,[])),a.usePointStyle){let o={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},c=s.xPlus(e,p/2),l=t+d;js(r,o,c,l,a.pointStyleWidth&&p)}else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=zs(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?Is(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){Fs(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:cs(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:cs(i,this.top+y+l,this.bottom-t[0].height),line:0},pc(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,ee=f.y;s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(ee=f.y+=b,f.line++,S=f.x=cs(i,this.left+l,this.right-n[f.line])):u>0&&ee+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,ee=f.y=cs(i,this.top+y+l,this.bottom-t[f.line].height));let te=s.x(S);if(g(te,ee,o),S=xre(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),ee,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=$u(o,e)+l}else f.y+=b}),mc(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=Vs(t.font),r=Bs(t.padding);if(!t.display)return;let i=fc(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=cs(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+cs(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=cs(o,u,u+d);a.textAlign=i.textAlign(ss(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,Fs(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=Vs(e.font),n=Bs(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if($o(e,this.left,this.right)&&$o(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;ne.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function Ooe(e,t,n){let r=e;return typeof t.text!=`string`&&(r=$u(t,n)),r}function $u(e,t){return t*(e.text?e.text.length:0)}function koe(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var Aoe={id:`legend`,_element:Qu,start(e,t,n){let r=e.legend=new Qu({ctx:e.ctx,options:n,chart:e});pl.configure(e,r,n),pl.addBox(e,r)},stop(e){pl.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;pl.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=Bs(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},ed=class extends El{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=po(n.text)?n.text.length:1;this._padding=Bs(n.padding);let i=r*Vs(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=cs(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=cs(o,r,t),s=Mo*-.5):(l=i-e,u=cs(o,t,r),s=Mo*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=Vs(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);Fs(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:ss(t.align),textBaseline:`middle`,translation:[i,a]})}};function joe(e,t){let n=new ed({ctx:e.ctx,options:t,chart:e});pl.configure(e,n,t),pl.addBox(e,n),e.titleBlock=n}var Moe={id:`title`,_element:ed,start(e,t,n){joe(e,n)},stop(e){let t=e.titleBlock;pl.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;pl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},td=new WeakMap,Noe={id:`subtitle`,start(e,t,n){let r=new ed({ctx:e.ctx,options:n,chart:e});pl.configure(e,r,n),pl.addBox(e,r),td.set(e,r)},stop(e){pl.removeBox(e,td.get(e)),td.delete(e)},beforeUpdate(e,t,n){let r=td.get(e);pl.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`normal`},fullSize:!0,padding:0,position:`top`,text:``,weight:1500},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},nd={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;te+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;a-1?e.split(` -`):e}function Poe(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Foe(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=Js(t.bodyFont),l=Js(t.titleFont),u=Js(t.footerFont),d=a.length,f=i.length,p=r.length,m=qs(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,Do(e.title,y),n.font=c.string,Do(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,Do(r,e=>{Do(e.before,y),Do(e.lines,y),Do(e.after,y)}),v=0,n.font=u.string,Do(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function Ioe(e,t){let{y:n,height:r}=t;return ne.height-r/2?`bottom`:`center`}function Loe(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function Roe(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),Loe(l,e,t,n)&&(l=`center`),l}function zoe(e,t,n){let r=n.yAlign||t.yAlign||Ioe(e,n);return{xAlign:n.xAlign||t.xAlign||Roe(e,t,n,r),yAlign:r}}function id(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function Boe(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:r-=t===`bottom`?i+n:i/2,r}function Voe(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ks(o),m=id(t,s),h=Boe(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:as(m,0,r.width-t.width),y:as(h,0,r.height-t.height)}}function ad(e,t,n){let r=qs(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function Hoe(e){return nd([],rd(e))}function Uoe(e,t,n){return Xs(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function Woe(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Goe={beforeTitle:vo,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex{let t={before:[],lines:[],after:[]},i=Woe(n,e);nd(t.before,rd(od(i,`beforeLabel`,this,e))),nd(t.lines,od(i,`label`,this,e)),nd(t.after,rd(od(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return Hoe(od(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=od(n,`beforeFooter`,this,e),i=od(n,`footer`,this,e),a=od(n,`afterFooter`,this,e),o=[];return o=nd(o,rd(r)),o=nd(o,rd(i)),o=nd(o,rd(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;se.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),Do(o,t=>{let n=Woe(e.callbacks,t);r.push(od(n,`labelColor`,this,t)),i.push(od(n,`labelPointStyle`,this,t)),a.push(od(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=td[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=Foe(this,n),o=Object.assign({},e,t),s=zoe(this.chart,n,o),c=Voe(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=Ks(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=xc(n.rtl,this.x,this.width);for(e.x=ad(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=Js(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;se!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Us(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Us(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=Js(n.bodyFont),d=u.lineHeight,f=0,p=xc(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=ad(this,h,n),t.fillStyle=n.bodyColor,Do(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=td[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=Foe(this,e),o=Object.assign({},n,this._size),s=zoe(t,e,o),c=Voe(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=qs(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),Sc(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),Cc(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!Oo(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!Oo(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=td[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},qoe=Object.freeze({__proto__:null,Colors:Gae,Decimation:Yae,Filler:xoe,Legend:Aoe,SubTitle:Noe,Title:Moe,Tooltip:{id:`tooltip`,_element:Koe,positioners:td,afterInit(e,t,n){n&&(e.tooltip=new Koe({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:Goe},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]}}),Joe=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Yoe(e,t,n,r){let i=e.indexOf(t);return i===-1?Joe(e,t,n,r):i===e.lastIndexOf(t)?i:n}var Xoe=(e,t)=>e===null?null:as(Math.round(e),0,t);function Zoe(e){let t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function $oe(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!yo(a),_=!yo(o),v=!yo(c),y=(h-m)/(u+1),b=Yo((h-m)/p/f)*f,x,S,ee,te;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];te=Math.ceil(h/b)-Math.floor(m/b),te>p&&(b=Yo(te*b/p/f)*f),yo(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,ee=Math.ceil(h/b)*b):(S=m,ee=h),g&&_&&i&&ore((o-a)/i,b/1e3)?(te=Math.round(Math.min((o-a)/b,l)),b=(o-a)/te,S=a,ee=o):v?(S=g?a:S,ee=_?o:ee,te=c-1,b=(ee-S)/te):(te=(ee-S)/b,te=Jo(te,Math.round(te),b/1e3)?Math.round(te):Math.ceil(te));let ne=Math.max(es(b),es(S));x=10**(yo(s)?ne:s),S=Math.round(S*x)/x,ee=Math.round(ee*x)/x;let C=0;for(g&&(d&&S!==a?(n.push({value:a}),So)break;n.push({value:e})}return _&&d&&ee!==o?n.length&&Jo(n[n.length-1].value,o,sd(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||ee===o)&&n.push({value:ee}),n}function sd(e,t,{horizontal:n,minRotation:r}){let i=Qo(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var cd=class extends $l{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return yo(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=qo(r),t=qo(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=$oe({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Zo(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Es(e,this.chart.options.locale,this.options.ticks.format)}},ese=class extends cd{static id=`linear`;static defaults={ticks:{callback:Os.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=So(e)?e:0,this.max=So(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Qo(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},ld=e=>Math.floor(Ko(e)),ud=(e,t)=>10**(ld(e)+t);function dd(e){return e/10**ld(e)==1}function fd(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function tse(e,t){let n=ld(t-e);for(;fd(e,t,n)>10;)n++;for(;fd(e,t,n)<10;)n--;return Math.min(n,ld(e))}function nse(e,{min:t,max:n}){t=Co(e.min,t);let r=[],i=ld(t),a=tse(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=Co(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=Co(e.max,f);return r.push({value:p,major:dd(p),significand:d}),r}var rse=class extends $l{static id=`logarithmic`;static defaults={ticks:{callback:Os.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=cd.prototype.parse.apply(this,[e,t]);if(n===0)this._zero=!0;else return So(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=So(e)?Math.max(0,e):null,this.max=So(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!So(this._userMin)&&(this.min=e===ud(this.min,0)?ud(this.min,-1):ud(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(ud(n,-1)),a(ud(r,1)))),n<=0&&i(ud(r,-1)),r<=0&&a(ud(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=nse({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Zo(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:Es(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Ko(e),this._valueRange=Ko(this.max)-Ko(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Ko(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}};function pd(e){let t=e.ticks;if(t.display&&e.display){let e=qs(t.backdropPadding);return wo(t.font&&t.font.size,Ns.font.size)+e.height}return 0}function md(e,t,n){return n=bo(n)?n:[n],{w:Sre(e,t.string,n),h:n.length*t.lineHeight}}function hd(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function ise(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?zo/a:0;for(let c=0;ct.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function ase(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round($o(rs(c.angle+Uo))),u=use(c.y,s.h,l),d=cse(l),f=lse(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function ose(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(zs({x:n,y:r},t)||zs({x:n,y:a},t)||zs({x:i,y:r},t)||zs({x:i,y:a},t))}function sse(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:pd(a)/2,additionalAngle:o?zo/i:0},l;for(let a=0;a270||n<90)&&(e-=t),e}function dse(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!yo(s)){let n=Ks(t.borderRadius),c=qs(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Us(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function fse(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));dse(n,a,t);let o=Js(a.font),{x:s,y:c,textAlign:l}=t;Hs(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function _d(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Bo);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a{let n=Eo(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?ise(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Bo/(this._pointLabels.length||1),n=this.options.startAngle||0;return rs(e*t+Qo(n))}getDistanceFromCenterForValue(e){if(yo(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(yo(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);pse(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;a&&i&&(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=Js(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=qs(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}Hs(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}},yd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bd=Object.keys(yd);function xd(e,t){return e-t}function Sd(e,t){if(yo(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),So(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Xo(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function Cd(e,t,n,r){let i=bd.length;for(let a=bd.indexOf(e);a=bd.indexOf(n);a--){let n=bd[a];if(yd[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return bd[n?bd.indexOf(n):0]}function hse(e){for(let t=bd.indexOf(e)+1,n=bd.length;t=t?n[r]:n[i];e[a]=!0}}function Ed(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function Dd(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=as(t,0,a),n=as(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||Cd(i.minUnit,t,n,this._getLabelCapacity(t)),o=wo(r.ticks.stepSize,1),s=a===`week`&&i.isoWeekday,c=Xo(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return Eo(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=cs(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=cs(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}var Ad=class extends Od{static id=`timeseries`;static defaults=Od.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=kd(t,this.min),this._tableRange=kd(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;ae-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(kd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return kd(this._table,n*this._tableRange+this._minPos,!0)}},jd=[Aie,Rae,qoe,Object.freeze({__proto__:null,CategoryScale:Qoe,LinearScale:ese,LogarithmicScale:rse,RadialLinearScale:vd,TimeScale:Od,TimeSeriesScale:Ad})];Ou.register(...jd);var Md=Ou,Nd={size:15,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},gse={size:10,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},_se={size:12,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},vse={size:15,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`bold`,style:`normal`},yse={size:25,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,weight:`bold`,style:`normal`,lineHeight:3},bse=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Pd=class extends Ct{constructor(){super(),this.currentTheme=`dark`,this._themeHandler=()=>{this.readColors(),this.currentTheme=xse()}}readColors(){let e=getComputedStyle(this);this.primary=e.getPropertyValue(`--primary-color`).trim(),this.secondary=e.getPropertyValue(`--secondary-color`).trim(),this.tertiary=e.getPropertyValue(`--tertiary-color`).trim(),this.background=e.getPropertyValue(`--background-color`).trim(),this.error=e.getPropertyValue(`--error-color`).trim(),this.ok=e.getPropertyValue(`--terminal-text`).trim(),this.warn=e.getPropertyValue(`--warn-color`).trim(),this.color1=e.getPropertyValue(`--chart-color1`).trim(),this.color2=e.getPropertyValue(`--chart-color2`).trim(),this.color3=e.getPropertyValue(`--chart-color3`).trim(),this.color4=e.getPropertyValue(`--chart-color4`).trim(),this.color5=e.getPropertyValue(`--chart-color5`).trim()}firstUpdated(){this.readColors(),this.currentTheme=xse(),this.font=Nd,this.smallFont=gse,this.mediumFont=_se,this.titleFont=yse,this.fontBold=vse,window.addEventListener(qr,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(qr,this._themeHandler)}};bse([Et()],Pd.prototype,`currentTheme`,void 0);function xse(){let e=document.documentElement.getAttribute(`theme`);return e===`light`?`light`:e===`tektronix`?`tektronix`:`dark`}var O=[`#f83aff`,`rgba(98, 196, 255, 1)`,`rgba(248,58,255,0.47)`,`rgba(98, 196, 255, 0.8)`,`rgba(248,58,255,0.2)`,`rgba(98, 196, 255, 0.5)`],Sse=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.4)`,`rgba(0, 0, 0, 0.25)`,`rgba(0, 0, 0, 0.15)`,`rgba(0, 0, 0, 0.08)`,`rgba(0, 0, 0, 0.5)`],Cse=[`#33ff33`,`rgba(102, 255, 102, 0.8)`,`rgba(51, 255, 51, 0.47)`,`rgba(102, 255, 102, 0.6)`,`rgba(51, 255, 51, 0.25)`,`rgba(102, 255, 102, 0.4)`],wse=[`#f83aff`,`#00FF00`,`#787878`],Fd=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.35)`,`rgba(0, 0, 0, 0.15)`],Tse=[`#33ff33`,`#66ff66`,`#1a991a`],Id=[`#ff246b`,`rgba(98, 196, 255, 1)`],Ese=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.25)`],Dse=[`#66ff66`,`#1a991a`],Ld=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rd=class extends Pd{constructor(){super(),this._prevDatasets=``,this._prevLabels=``,this.colors=O,this.width=300,this.height=300,this.id=crypto.randomUUID(),this.firstRun=!0}dataChanged(){let e=JSON.stringify(this.datasets?.map(e=>e.data)),t=JSON.stringify(this.labels);return e!==this._prevDatasets||t!==this._prevLabels?(this._prevDatasets=e,this._prevLabels=t,!0):!1}refresh(){this.chart.update()}firstUpdated(){super.firstUpdated()}updated(e){if(!(!this.chart||e.has(`changesChart`)||e.has(`breakingChanges`)||e.has(`currentTheme`)||this.dataChanged()))return;this.chart&&this.chart.destroy();let t=this.currentTheme;this.colors=this.changesChart?t===`tektronix`?Tse:t===`light`?Fd:wse:this.breakingChanges?t===`tektronix`?Dse:t===`light`?Ese:Id:t===`tektronix`?Cse:t===`light`?Sse:O,this.datasets.forEach(e=>{e.backgroundColor=this.colors,e.borderColor=this.background});let n=!1;this.title&&(n=!0);let r=this.firstRun?1e3:250;this.chart=new Md(this.shadowRoot?.querySelector(`#chart-`+this.id),{type:`doughnut`,data:{labels:this.labels,datasets:this.datasets},options:{animation:{duration:r},responsive:!0,maintainAspectRatio:!1,layout:{autoPadding:!1,padding:{top:0,bottom:0}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:n,text:this.title,font:this.titleFont,color:this.primary,align:`center`},legend:{display:this.showLegend,position:`right`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,generateLabels:e=>{let t=e.data;if(t.labels&&t.datasets.length){let e=t.datasets[0].backgroundColor||[];return t.labels.map((t,n)=>({text:t,fillStyle:e[n]||this.secondary,strokeStyle:e[n]||this.secondary,fontColor:e[n]||this.secondary,hidden:!1,index:n}))}return[]}}}}}}),this.firstRun=!1}render(){return T` +`):e}function Poe(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Foe(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=Vs(t.bodyFont),l=Vs(t.titleFont),u=Vs(t.footerFont),d=a.length,f=i.length,p=r.length,m=Bs(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,xo(e.title,y),n.font=c.string,xo(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,xo(r,e=>{xo(e.before,y),xo(e.lines,y),xo(e.after,y)}),v=0,n.font=u.string,xo(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function Ioe(e,t){let{y:n,height:r}=t;return ne.height-r/2?`bottom`:`center`}function Loe(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function Roe(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),Loe(l,e,t,n)&&(l=`center`),l}function ad(e,t,n){let r=n.yAlign||t.yAlign||Ioe(e,n);return{xAlign:n.xAlign||t.xAlign||Roe(e,t,n,r),yAlign:r}}function zoe(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function Boe(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:r-=t===`bottom`?i+n:i/2,r}function Voe(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=zs(o),m=zoe(t,s),h=Boe(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:Qo(m,0,r.width-t.width),y:Qo(h,0,r.height-t.height)}}function od(e,t,n){let r=Bs(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function Hoe(e){return rd([],id(e))}function Uoe(e,t,n){return Us(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function Woe(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Goe={beforeTitle:uo,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex{let t={before:[],lines:[],after:[]},i=Woe(n,e);rd(t.before,id(sd(i,`beforeLabel`,this,e))),rd(t.lines,sd(i,`label`,this,e)),rd(t.after,id(sd(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return Hoe(sd(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=sd(n,`beforeFooter`,this,e),i=sd(n,`footer`,this,e),a=sd(n,`afterFooter`,this,e),o=[];return o=rd(o,id(r)),o=rd(o,id(i)),o=rd(o,id(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;se.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),xo(o,t=>{let n=Woe(e.callbacks,t);r.push(sd(n,`labelColor`,this,t)),i.push(sd(n,`labelPointStyle`,this,t)),a.push(sd(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=nd[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=Foe(this,n),o=Object.assign({},e,t),s=ad(this.chart,n,o),c=Voe(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=zs(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=fc(n.rtl,this.x,this.width);for(e.x=od(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=Vs(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;se!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Is(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Is(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=Vs(n.bodyFont),d=u.lineHeight,f=0,p=fc(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=od(this,h,n),t.fillStyle=n.bodyColor,xo(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=nd[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=Foe(this,e),o=Object.assign({},n,this._size),s=ad(t,e,o),c=Voe(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=Bs(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),pc(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),mc(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!So(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!So(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=nd[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},qoe=Object.freeze({__proto__:null,Colors:eoe,Decimation:ioe,Filler:woe,Legend:Aoe,SubTitle:Noe,Title:Moe,Tooltip:{id:`tooltip`,_element:Koe,positioners:nd,afterInit(e,t,n){n&&(e.tooltip=new Koe({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:Goe},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]}}),Joe=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Yoe(e,t,n,r){let i=e.indexOf(t);return i===-1?Joe(e,t,n,r):i===e.lastIndexOf(t)?i:n}var Xoe=(e,t)=>e===null?null:Qo(Math.round(e),0,t);function Zoe(e){let t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function $oe(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!fo(a),_=!fo(o),v=!fo(c),y=(h-m)/(u+1),b=Ho((h-m)/p/f)*f,x,S,ee,te;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];te=Math.ceil(h/b)-Math.floor(m/b),te>p&&(b=Ho(te*b/p/f)*f),fo(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,ee=Math.ceil(h/b)*b):(S=m,ee=h),g&&_&&i&&mre((o-a)/i,b/1e3)?(te=Math.round(Math.min((o-a)/b,l)),b=(o-a)/te,S=a,ee=o):v?(S=g?a:S,ee=_?o:ee,te=c-1,b=(ee-S)/te):(te=(ee-S)/b,te=Vo(te,Math.round(te),b/1e3)?Math.round(te):Math.ceil(te));let ne=Math.max(qo(b),qo(S));x=10**(fo(s)?ne:s),S=Math.round(S*x)/x,ee=Math.round(ee*x)/x;let C=0;for(g&&(d&&S!==a?(n.push({value:a}),So)break;n.push({value:e})}return _&&d&&ee!==o?n.length&&Vo(n[n.length-1].value,o,ese(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||ee===o)&&n.push({value:ee}),n}function ese(e,t,{horizontal:n,minRotation:r}){let i=Go(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var cd=class extends Hl{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return fo(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=Bo(r),t=Bo(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=$oe({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Wo(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return ys(e,this.chart.options.locale,this.options.ticks.format)}},tse=class extends cd{static id=`linear`;static defaults={ticks:{callback:xs.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=ho(e)?e:0,this.max=ho(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Go(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},ld=e=>Math.floor(zo(e)),ud=(e,t)=>10**(ld(e)+t);function nse(e){return e/10**ld(e)==1}function rse(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function ise(e,t){let n=ld(t-e);for(;rse(e,t,n)>10;)n++;for(;rse(e,t,n)<10;)n--;return Math.min(n,ld(e))}function ase(e,{min:t,max:n}){t=go(e.min,t);let r=[],i=ld(t),a=ise(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=go(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=go(e.max,f);return r.push({value:p,major:nse(p),significand:d}),r}var ose=class extends Hl{static id=`logarithmic`;static defaults={ticks:{callback:xs.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=cd.prototype.parse.apply(this,[e,t]);if(n===0)this._zero=!0;else return ho(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=ho(e)?Math.max(0,e):null,this.max=ho(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ho(this._userMin)&&(this.min=e===ud(this.min,0)?ud(this.min,-1):ud(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(ud(n,-1)),a(ud(r,1)))),n<=0&&i(ud(r,-1)),r<=0&&a(ud(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=ase({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Wo(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:ys(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=zo(e),this._valueRange=zo(this.max)-zo(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(zo(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}};function dd(e){let t=e.ticks;if(t.display&&e.display){let e=Bs(t.backdropPadding);return _o(t.font&&t.font.size,Es.font.size)+e.height}return 0}function fd(e,t,n){return n=po(n)?n:[n],{w:Are(e,t.string,n),h:n.length*t.lineHeight}}function pd(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function md(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Mo/a:0;for(let c=0;ct.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function cse(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Ko(Xo(c.angle+Io))),u=pse(c.y,s.h,l),d=dse(l),f=fse(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function lse(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Ms({x:n,y:r},t)||Ms({x:n,y:a},t)||Ms({x:i,y:r},t)||Ms({x:i,y:a},t))}function use(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:dd(a)/2,additionalAngle:o?Mo/i:0},l;for(let a=0;a270||n<90)&&(e-=t),e}function mse(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!fo(s)){let n=zs(t.borderRadius),c=Bs(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Is(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function hd(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));mse(n,a,t);let o=Vs(a.font),{x:s,y:c,textAlign:l}=t;Fs(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function gd(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,No);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a{let n=bo(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?md(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=No/(this._pointLabels.length||1),n=this.options.startAngle||0;return Xo(e*t+Go(n))}getDistanceFromCenterForValue(e){if(fo(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(fo(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);hse(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;a&&i&&(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=Vs(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=Bs(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}Fs(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}},yd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},bd=Object.keys(yd);function xd(e,t){return e-t}function Sd(e,t){if(fo(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),ho(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Uo(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function Cd(e,t,n,r){let i=bd.length;for(let a=bd.indexOf(e);a=bd.indexOf(n);a--){let n=bd[a];if(yd[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return bd[n?bd.indexOf(n):0]}function wd(e){for(let t=bd.indexOf(e)+1,n=bd.length;t=t?n[r]:n[i];e[a]=!0}}function Ed(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function Dd(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=Qo(t,0,a),n=Qo(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||Cd(i.minUnit,t,n,this._getLabelCapacity(t)),o=_o(r.ticks.stepSize,1),s=a===`week`&&i.isoWeekday,c=Uo(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return bo(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=ts(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=ts(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}var Ad=class extends Od{static id=`timeseries`;static defaults=Od.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=kd(t,this.min),this._tableRange=kd(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;ae-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(kd(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return kd(this._table,n*this._tableRange+this._minPos,!0)}},_se=[Uie,qae,qoe,Object.freeze({__proto__:null,CategoryScale:Qoe,LinearScale:tse,LogarithmicScale:ose,RadialLinearScale:vd,TimeScale:Od,TimeSeriesScale:Ad})];yu.register(..._se);var jd=yu,vse={size:15,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},yse={size:10,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},bse={size:12,family:`BerkeleyMono-Regular, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`normal`,style:`normal`},xse={size:15,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,lineHeight:2,weight:`bold`,style:`normal`},Sse={size:25,family:`BerkeleyMono-Bold, Roboto Mono, Monaco, Menlo, Helvetica Neue,Helvetica,Verdana,Tahoma, Arial`,weight:`bold`,style:`normal`,lineHeight:3},Cse=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Md=class extends St{constructor(){super(),this.currentTheme=`dark`,this._themeHandler=()=>{this.readColors(),this.currentTheme=O()}}readColors(){let e=getComputedStyle(this);this.primary=e.getPropertyValue(`--primary-color`).trim(),this.secondary=e.getPropertyValue(`--secondary-color`).trim(),this.tertiary=e.getPropertyValue(`--tertiary-color`).trim(),this.background=e.getPropertyValue(`--background-color`).trim(),this.error=e.getPropertyValue(`--error-color`).trim(),this.ok=e.getPropertyValue(`--terminal-text`).trim(),this.warn=e.getPropertyValue(`--warn-color`).trim(),this.color1=e.getPropertyValue(`--chart-color1`).trim(),this.color2=e.getPropertyValue(`--chart-color2`).trim(),this.color3=e.getPropertyValue(`--chart-color3`).trim(),this.color4=e.getPropertyValue(`--chart-color4`).trim(),this.color5=e.getPropertyValue(`--chart-color5`).trim()}firstUpdated(){this.readColors(),this.currentTheme=O(),this.font=vse,this.smallFont=yse,this.mediumFont=bse,this.titleFont=Sse,this.fontBold=xse,window.addEventListener(Kr,this._themeHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(Kr,this._themeHandler)}};Cse([Tt()],Md.prototype,`currentTheme`,void 0);function O(){let e=document.documentElement.getAttribute(`theme`);return e===`light`?`light`:e===`tektronix`?`tektronix`:`dark`}var wse=[`#f83aff`,`rgba(98, 196, 255, 1)`,`rgba(248,58,255,0.47)`,`rgba(98, 196, 255, 0.8)`,`rgba(248,58,255,0.2)`,`rgba(98, 196, 255, 0.5)`],Tse=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.4)`,`rgba(0, 0, 0, 0.25)`,`rgba(0, 0, 0, 0.15)`,`rgba(0, 0, 0, 0.08)`,`rgba(0, 0, 0, 0.5)`],Ese=[`#33ff33`,`rgba(102, 255, 102, 0.8)`,`rgba(51, 255, 51, 0.47)`,`rgba(102, 255, 102, 0.6)`,`rgba(51, 255, 51, 0.25)`,`rgba(102, 255, 102, 0.4)`],Nd=[`#f83aff`,`#00FF00`,`#787878`],Dse=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.35)`,`rgba(0, 0, 0, 0.15)`],Pd=[`#33ff33`,`#66ff66`,`#1a991a`],Ose=[`#ff246b`,`rgba(98, 196, 255, 1)`],kse=[`rgba(0, 0, 0, 0.6)`,`rgba(0, 0, 0, 0.25)`],Fd=[`#66ff66`,`#1a991a`],Id=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ld=class extends Md{constructor(){super(),this._prevDatasets=``,this._prevLabels=``,this.colors=wse,this.width=300,this.height=300,this.id=crypto.randomUUID(),this.firstRun=!0}dataChanged(){let e=JSON.stringify(this.datasets?.map(e=>e.data)),t=JSON.stringify(this.labels);return e!==this._prevDatasets||t!==this._prevLabels?(this._prevDatasets=e,this._prevLabels=t,!0):!1}refresh(){this.chart.update()}firstUpdated(){super.firstUpdated()}updated(e){if(!(!this.chart||e.has(`changesChart`)||e.has(`breakingChanges`)||e.has(`currentTheme`)||this.dataChanged()))return;this.chart&&this.chart.destroy();let t=this.currentTheme;this.colors=this.changesChart?t===`tektronix`?Pd:t===`light`?Dse:Nd:this.breakingChanges?t===`tektronix`?Fd:t===`light`?kse:Ose:t===`tektronix`?Ese:t===`light`?Tse:wse,this.datasets.forEach(e=>{e.backgroundColor=this.colors,e.borderColor=this.background});let n=!1;this.title&&(n=!0);let r=this.firstRun?1e3:250;this.chart=new jd(this.shadowRoot?.querySelector(`#chart-`+this.id),{type:`doughnut`,data:{labels:this.labels,datasets:this.datasets},options:{animation:{duration:r},responsive:!0,maintainAspectRatio:!1,layout:{autoPadding:!1,padding:{top:0,bottom:0}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:n,text:this.title,font:this.titleFont,color:this.primary,align:`center`},legend:{display:this.showLegend,position:`right`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,generateLabels:e=>{let t=e.data;if(t.labels&&t.datasets.length){let e=t.datasets[0].backgroundColor||[];return t.labels.map((t,n)=>({text:t,fillStyle:e[n]||this.secondary,strokeStyle:e[n]||this.secondary,fontColor:e[n]||this.secondary,hidden:!1,index:n}))}return[]}}}}}}),this.firstRun=!1}render(){return T` - `}};Ld([Tt()],Rd.prototype,`title`,void 0),Ld([Tt()],Rd.prototype,`datasets`,void 0),Ld([Tt()],Rd.prototype,`labels`,void 0),Ld([Tt({type:Number})],Rd.prototype,`width`,void 0),Ld([Tt({type:Number})],Rd.prototype,`height`,void 0),Ld([Tt({type:Boolean})],Rd.prototype,`changesChart`,void 0),Ld([Tt({type:Boolean})],Rd.prototype,`showLegend`,void 0),Ld([Tt({type:Boolean})],Rd.prototype,`breakingChanges`,void 0),Rd=Ld([wt(`pb33f-doughnut-chart`)],Rd);var zd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bd=class extends Pd{constructor(){super(),this.title=`chart`,this.legend=!1,this.height=458,this.smallTitle=!1,this.stepSize=1,this.chartType=`line`}computeSuggestedMax(){if(!this.datasets||this.datasets.length===0)return;let e=0;for(let t of this.datasets)if(t.data)for(let n of t.data)n>e&&(e=n);return Math.ceil(e*1.1)}updateChart(){this.chart&&this.chart.data&&this.datasets&&this.datasets.length>0&&(this.chart.data.labels=this.labels,this.chart.data.datasets=this.datasets,this.chart.update())}buildChart(){let e=this.titleFont;this.smallTitle&&(e=this.fontBold),this.chart&&this.chart.destroy(),this.chart=new Md(this.shadowRoot?.querySelector(`#chart`),{type:this.chartType,data:{labels:this.labels,datasets:this.datasets},options:{responsive:!0,maintainAspectRatio:!1,elements:{point:{borderColor:this.secondary,backgroundColor:this.secondary,pointStyle:`rect`,radius:4}},scales:{x:{ticks:{font:this.smallFont,color:this.secondary},border:{color:this.secondary}},y:{min:0,suggestedMax:this.computeSuggestedMax(),ticks:{stepSize:this.stepSize,font:this.font,color:this.secondary},border:{color:this.secondary}}},layout:{autoPadding:!1,padding:{top:20,bottom:20}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:!0,text:this.title,font:e,color:this.primary,align:`start`},legend:{display:this.legend,position:`bottom`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,pointStyle:`line`,boxHeight:1}}}}})}connectedCallback(){super.connectedCallback(),!this.chart&&this.hasUpdated&&this.updateComplete.then(()=>this.buildChart())}disconnectedCallback(){super.disconnectedCallback(),this.chart&&=(this.chart.destroy(),null)}resize(){this.chart?.resize()}firstUpdated(){super.firstUpdated(),this.buildChart()}updated(e){e.has(`currentTheme`)&&this.chart&&this.buildChart()}render(){return T` + `}};Id([wt()],Ld.prototype,`title`,void 0),Id([wt()],Ld.prototype,`datasets`,void 0),Id([wt()],Ld.prototype,`labels`,void 0),Id([wt({type:Number})],Ld.prototype,`width`,void 0),Id([wt({type:Number})],Ld.prototype,`height`,void 0),Id([wt({type:Boolean})],Ld.prototype,`changesChart`,void 0),Id([wt({type:Boolean})],Ld.prototype,`showLegend`,void 0),Id([wt({type:Boolean})],Ld.prototype,`breakingChanges`,void 0),Ld=Id([Ct(`pb33f-doughnut-chart`)],Ld);var Rd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},zd=class extends Md{constructor(){super(),this.title=`chart`,this.legend=!1,this.height=458,this.smallTitle=!1,this.stepSize=1,this.chartType=`line`}computeSuggestedMax(){if(!this.datasets||this.datasets.length===0)return;let e=0;for(let t of this.datasets)if(t.data)for(let n of t.data)n>e&&(e=n);return Math.ceil(e*1.1)}updateChart(){this.chart&&this.chart.data&&this.datasets&&this.datasets.length>0&&(this.chart.data.labels=this.labels,this.chart.data.datasets=this.datasets,this.chart.update())}buildChart(){let e=this.titleFont;this.smallTitle&&(e=this.fontBold),this.chart&&this.chart.destroy(),this.chart=new jd(this.shadowRoot?.querySelector(`#chart`),{type:this.chartType,data:{labels:this.labels,datasets:this.datasets},options:{responsive:!0,maintainAspectRatio:!1,elements:{point:{borderColor:this.secondary,backgroundColor:this.secondary,pointStyle:`rect`,radius:4}},scales:{x:{ticks:{font:this.smallFont,color:this.secondary},border:{color:this.secondary}},y:{min:0,suggestedMax:this.computeSuggestedMax(),ticks:{stepSize:this.stepSize,font:this.font,color:this.secondary},border:{color:this.secondary}}},layout:{autoPadding:!1,padding:{top:20,bottom:20}},plugins:{tooltip:{titleFont:this.fontBold,bodyFont:this.font,titleColor:this.primary,displayColors:!1,borderColor:this.tertiary,borderWidth:1,cornerRadius:0},title:{display:!0,text:this.title,font:e,color:this.primary,align:`start`},legend:{display:this.legend,position:`bottom`,maxHeight:40,labels:{color:this.secondary,font:this.mediumFont,pointStyle:`line`,boxHeight:1}}}}})}connectedCallback(){super.connectedCallback(),!this.chart&&this.hasUpdated&&this.updateComplete.then(()=>this.buildChart())}disconnectedCallback(){super.disconnectedCallback(),this.chart&&=(this.chart.destroy(),null)}resize(){this.chart?.resize()}firstUpdated(){super.firstUpdated(),this.buildChart()}updated(e){e.has(`currentTheme`)&&this.chart&&this.buildChart()}render(){return T`
- `}};Bd.styles=xe` + `}};zd.styles=xe` :host { display: block; width: 100%; @@ -4935,7 +4955,7 @@ .chart-container { position: relative; width: 100%; - }`,zd([Tt()],Bd.prototype,`title`,void 0),zd([Tt()],Bd.prototype,`datasets`,void 0),zd([Tt()],Bd.prototype,`labels`,void 0),zd([Tt({type:Boolean})],Bd.prototype,`legend`,void 0),zd([Tt({type:Boolean})],Bd.prototype,`smallTitle`,void 0),zd([Tt({type:Number})],Bd.prototype,`height`,void 0),zd([Tt({type:Number})],Bd.prototype,`width`,void 0),zd([Tt({type:Number})],Bd.prototype,`stepSize`,void 0),zd([Tt()],Bd.prototype,`chartType`,void 0),Bd=zd([wt(`pb33f-chart`)],Bd);var Vd=xe` + }`,Rd([wt()],zd.prototype,`title`,void 0),Rd([wt()],zd.prototype,`datasets`,void 0),Rd([wt()],zd.prototype,`labels`,void 0),Rd([wt({type:Boolean})],zd.prototype,`legend`,void 0),Rd([wt({type:Boolean})],zd.prototype,`smallTitle`,void 0),Rd([wt({type:Number})],zd.prototype,`height`,void 0),Rd([wt({type:Number})],zd.prototype,`width`,void 0),Rd([wt({type:Number})],zd.prototype,`stepSize`,void 0),Rd([wt()],zd.prototype,`chartType`,void 0),zd=Rd([Ct(`pb33f-chart`)],zd);var Ase=xe` .timeline-item { display: flex; padding-top: 5px; @@ -5077,7 +5097,7 @@ } -`,Hd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ud=class extends Ct{constructor(){super(),this.large=!1,this.selected=!1,this.hideScore=!1}render(){T``;let e=T` +`,Bd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vd=class extends St{constructor(){super(),this.large=!1,this.selected=!1,this.hideScore=!1}render(){T``;let e=T` `,t=!1;this.specSummary.breakingChanges&&this.specSummary.breakingChanges>0&&(e=T` ${this.specSummary.breakingChanges} `,t=!0);let n=T` @@ -5125,7 +5145,7 @@ ${a}
- ${this.hideScore?ct:T` + ${this.hideScore?st:T`
${o} @@ -5133,7 +5153,7 @@ `}
- `}additionalWidth(e){return e?e>=1e5?this.large?`sext-large`:`sext`:e>=1e4?this.large?`quint-large`:`quint`:e>=1e3?this.large?`quad-large`:`quad`:e>=100?this.large?`triple-large`:`triple`:`no`+e:`gip`}};Ud.styles=[Vd,zn],Hd([Tt()],Ud.prototype,`specSummary`,void 0),Hd([Tt()],Ud.prototype,`large`,void 0),Hd([Tt()],Ud.prototype,`selected`,void 0),Hd([Tt({type:Boolean})],Ud.prototype,`hideScore`,void 0),Ud=Hd([wt(`pb33f-spec-summary-timeline-item`)],Ud);var Wd=xe` + `}additionalWidth(e){return e?e>=1e5?this.large?`sext-large`:`sext`:e>=1e4?this.large?`quint-large`:`quint`:e>=1e3?this.large?`quad-large`:`quad`:e>=100?this.large?`triple-large`:`triple`:`no`+e:`gip`}};Vd.styles=[Ase,zn],Bd([wt()],Vd.prototype,`specSummary`,void 0),Bd([wt()],Vd.prototype,`large`,void 0),Bd([wt()],Vd.prototype,`selected`,void 0),Bd([wt({type:Boolean})],Vd.prototype,`hideScore`,void 0),Vd=Bd([Ct(`pb33f-spec-summary-timeline-item`)],Vd);var jse=xe` pb33f-timeline-item { width: 100%; @@ -5190,7 +5210,7 @@ } } -`,Gd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kd=class extends Ct{constructor(){super(),this.skinny=!1}render(){return T` +`,Mse=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Hd=class extends St{constructor(){super(),this.skinny=!1}render(){return T`
@@ -5198,7 +5218,7 @@
- `}};Kd.styles=Wd,Gd([Tt({type:Boolean})],Kd.prototype,`skinny`,void 0),Kd=Gd([wt(`pb33f-timeline`)],Kd);var qd=xe` + `}};Hd.styles=jse,Mse([wt({type:Boolean})],Hd.prototype,`skinny`,void 0),Hd=Mse([Ct(`pb33f-timeline`)],Hd);var Ud=xe` :host { display: flex; position: relative; @@ -5306,7 +5326,7 @@ } -`,Jd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yd=class extends Ct{constructor(){super(),this.skinny=!1}render(){return this.skinny?T` +`,Wd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gd=class extends St{constructor(){super(),this.skinny=!1}render(){return this.skinny?T`
@@ -5328,7 +5348,7 @@
-
`}};Yd.styles=qd,Jd([Tt({type:Boolean})],Yd.prototype,`skinny`,void 0),Yd=Jd([wt(`pb33f-timeline-item`)],Yd);var Ose=xe` +
`}};Gd.styles=Ud,Wd([wt({type:Boolean})],Gd.prototype,`skinny`,void 0),Gd=Wd([Ct(`pb33f-timeline-item`)],Gd);var Kd=xe` a, a:visited, a:active { text-decoration: none; color: var(--primary-color); @@ -5451,7 +5471,7 @@ to { opacity: 0; } - }`,Xd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zd=class extends Ct{constructor(){super(),this.name=`pb33f`,this.url=`https://pb33f.io`,this.wide=!1,this.fluid=!1}render(){return T` + }`,qd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jd=class extends St{constructor(){super(),this.name=`pb33f`,this.url=`https://pb33f.io`,this.wide=!1,this.fluid=!1}render(){return T`
`}};Zd.styles=Ose,Xd([Tt()],Zd.prototype,`name`,void 0),Xd([Tt()],Zd.prototype,`url`,void 0),Xd([Tt({type:Boolean})],Zd.prototype,`wide`,void 0),Xd([Tt({type:Boolean})],Zd.prototype,`fluid`,void 0),Zd=Xd([wt(`pb33f-header`)],Zd);var Qd=xe` + `}};Jd.styles=Kd,qd([wt()],Jd.prototype,`name`,void 0),qd([wt()],Jd.prototype,`url`,void 0),qd([wt({type:Boolean})],Jd.prototype,`wide`,void 0),qd([wt({type:Boolean})],Jd.prototype,`fluid`,void 0),Jd=qd([Ct(`pb33f-header`)],Jd);var Yd=xe` footer { padding: var(--footer-padding); width: 100vw; @@ -5485,11 +5505,11 @@ font-weight: normal; color: var(--font-color-sub2); } -`,$d=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ef=`https://pb33f.io`,tf=`princess b33f heavy industries`,nf=class extends Ct{constructor(){super(),this.url=ef,this.linkTitle=tf,this.build=``,this.fluid=!1}render(){let e=this.linkTitle||`princess b33f heavy industries`;return T` +`,Xd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zd=`https://pb33f.io`,Qd=`princess b33f heavy industries`,$d=class extends St{constructor(){super(),this.url=Zd,this.linkTitle=Qd,this.build=``,this.fluid=!1}render(){let e=this.linkTitle||`princess b33f heavy industries`;return T`
${e} ${this.build?T`${this.build}`:``} -
`}};nf.styles=[Qd,Si],$d([Tt()],nf.prototype,`build`,void 0),$d([Tt()],nf.prototype,`url`,void 0),$d([Tt({attribute:`link-title`})],nf.prototype,`linkTitle`,void 0),$d([Tt({type:Boolean,reflect:!0})],nf.prototype,`fluid`,void 0),nf=$d([wt(`pb33f-footer`)],nf);var kse=xe` + `}};$d.styles=[Yd,xi],Xd([wt()],$d.prototype,`build`,void 0),Xd([wt()],$d.prototype,`url`,void 0),Xd([wt({attribute:`link-title`})],$d.prototype,`linkTitle`,void 0),Xd([wt({type:Boolean,reflect:!0})],$d.prototype,`fluid`,void 0),$d=Xd([Ct(`pb33f-footer`)],$d);var ef=xe` :host { display: inline-flex; @@ -5507,7 +5527,7 @@ text-shadow: 0 0 8px rgba(51, 255, 51, 0.6); } -`,rf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ase=`tektronix`,af=`pb33f-theme`,of=`pb33f-base-theme`,sf=class extends Ct{constructor(){super(...arguments),this.baseTheme=`dark`,this.tektronixActive=!1}get activeTheme(){return this.tektronixActive?Ase:this.baseTheme}connectedCallback(){super.connectedCallback();let e=localStorage.getItem(af);if(e===`tektronix`){this.tektronixActive=!0;let e=localStorage.getItem(of);this.baseTheme=e===`light`?`light`:`dark`}else this.tektronixActive=!1,this.baseTheme=e===`light`?`light`:`dark`;this.applyTheme()}applyTheme(){let e=this.activeTheme;localStorage.setItem(af,e),localStorage.setItem(of,this.baseTheme);let t=document.querySelector(`html`);t&&(t.setAttribute(`theme`,e),e===`light`?t.classList.remove(`sl-theme-dark`):t.classList.add(`sl-theme-dark`))}dispatchThemeChange(){window.dispatchEvent(new CustomEvent(qr,{detail:{theme:this.activeTheme}}))}toggleTheme(){this.baseTheme=this.baseTheme===`dark`?`light`:`dark`,this.tektronixActive&&=!1,this.applyTheme(),this.dispatchThemeChange()}toggleTektronix(){this.tektronixActive=!this.tektronixActive,this.applyTheme(),this.dispatchThemeChange()}render(){let e=this.baseTheme===`dark`?`sun`:`moon`,t=this.baseTheme===`dark`?`Switch to Roger Mode (light)`:`Switch to PB33F Mode (dark)`,n=this.tektronixActive?`Disable Tektronix 4010 Mode`:`Enable Tektronix 4010 Mode`;return T` +`,tf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nf=`tektronix`,rf=`pb33f-theme`,af=`pb33f-base-theme`,of=class extends St{constructor(){super(...arguments),this.baseTheme=`dark`,this.tektronixActive=!1}get activeTheme(){return this.tektronixActive?nf:this.baseTheme}connectedCallback(){super.connectedCallback();let e=localStorage.getItem(rf);if(e===`tektronix`){this.tektronixActive=!0;let e=localStorage.getItem(af);this.baseTheme=e===`light`?`light`:`dark`}else this.tektronixActive=!1,this.baseTheme=e===`light`?`light`:`dark`;this.applyTheme()}applyTheme(){let e=this.activeTheme;localStorage.setItem(rf,e),localStorage.setItem(af,this.baseTheme);let t=document.querySelector(`html`);t&&(t.setAttribute(`theme`,e),e===`light`?t.classList.remove(`sl-theme-dark`):t.classList.add(`sl-theme-dark`))}dispatchThemeChange(){window.dispatchEvent(new CustomEvent(Kr,{detail:{theme:this.activeTheme}}))}toggleTheme(){this.baseTheme=this.baseTheme===`dark`?`light`:`dark`,this.tektronixActive&&=!1,this.applyTheme(),this.dispatchThemeChange()}toggleTektronix(){this.tektronixActive=!this.tektronixActive,this.applyTheme(),this.dispatchThemeChange()}render(){let e=this.baseTheme===`dark`?`sun`:`moon`,t=this.baseTheme===`dark`?`Switch to Roger Mode (light)`:`Switch to PB33F Mode (dark)`,n=this.tektronixActive?`Disable Tektronix 4010 Mode`:`Enable Tektronix 4010 Mode`;return T` - `}};sf.styles=[kse,zn],rf([Et()],sf.prototype,`baseTheme`,void 0),rf([Et()],sf.prototype,`tektronixActive`,void 0),sf=rf([wt(`pb33f-theme-switcher`)],sf);function jse(e){switch(e.toLowerCase()){case`get`:return`success`;case`post`:return`primary`;case`put`:return`primary`;case`delete`:return`danger`;case`patch`:return`warning`;case`query`:return`primary`;default:return`neutral`}}var Mse=xe` + `}};of.styles=[ef,zn],tf([Tt()],of.prototype,`baseTheme`,void 0),tf([Tt()],of.prototype,`tektronixActive`,void 0),of=tf([Ct(`pb33f-theme-switcher`)],of);function Nse(e){switch(e.toLowerCase()){case`get`:return`success`;case`post`:return`primary`;case`put`:return`primary`;case`delete`:return`danger`;case`patch`:return`warning`;case`query`:return`primary`;default:return`neutral`}}var Pse=xe` :host { --http-get-color: var(--terminal-text); --http-get-border-color: var(--ok-color-lowalpha); @@ -5659,11 +5679,11 @@ --http-trace-color: #6b7280; --http-query-color: #2563eb; } -`,cf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Nse={GET:`GET`,POST:`POST`,PUT:`PUT`,DELETE:`DEL`,PATCH:`PAT`,OPTIONS:`OPT`,HEAD:`HEAD`,TRACE:`TRC`,QUERY:`QRY`},lf=class extends Ct{constructor(){super(),this.mode=``,this.lower=!1,this.method=`GET`}render(){if(this.mode===`nav-naked`){let e=this.method.toUpperCase(),t=Nse[e]??e;return T`${t}`}let e=`medium`;this.large&&(e=`large`),this.tiny&&(e=`small`),this.micro&&(e=`small`);let t=this.method.toLowerCase(),n=this.micro?`method ${e} micro ${t}`:`method ${e} ${t}`;return T` - =0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cf={GET:`GET`,POST:`POST`,PUT:`PUT`,DELETE:`DEL`,PATCH:`PAT`,OPTIONS:`OPT`,HEAD:`HEAD`,TRACE:`TRC`,QUERY:`QRY`},lf=class extends St{constructor(){super(),this.mode=``,this.lower=!1,this.method=`GET`}render(){if(this.mode===`nav-naked`){let e=this.method.toUpperCase(),t=cf[e]??e;return T`${t}`}let e=`medium`;this.large&&(e=`large`),this.tiny&&(e=`small`),this.micro&&(e=`small`);let t=this.method.toLowerCase(),n=this.micro?`method ${e} micro ${t}`:`method ${e} ${t}`;return T` + ${this.lower?this.method.toLowerCase():this.method.toUpperCase()} - `}};lf.styles=Mse,cf([Tt()],lf.prototype,`method`,void 0),cf([Tt({type:Boolean})],lf.prototype,`lower`,void 0),cf([Tt({type:Boolean})],lf.prototype,`large`,void 0),cf([Tt({type:Boolean})],lf.prototype,`tiny`,void 0),cf([Tt({type:Boolean})],lf.prototype,`micro`,void 0),cf([Tt({reflect:!0})],lf.prototype,`mode`,void 0),lf=cf([wt(`pb33f-http-method`)],lf);var uf=xe` + `}};lf.styles=Pse,sf([wt()],lf.prototype,`method`,void 0),sf([wt({type:Boolean})],lf.prototype,`lower`,void 0),sf([wt({type:Boolean})],lf.prototype,`large`,void 0),sf([wt({type:Boolean})],lf.prototype,`tiny`,void 0),sf([wt({type:Boolean})],lf.prototype,`micro`,void 0),sf([wt({reflect:!0})],lf.prototype,`mode`,void 0),lf=sf([Ct(`pb33f-http-method`)],lf);var Fse=xe` :host { color: var(--font-color); font-family: var(--font-stack), monospace; @@ -5702,7 +5722,7 @@ .nowrap { display: inline-block; } -`,df=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ff=class extends Ct{constructor(){super(),this.path=`/`,this.nowrap=!1}replaceBrackets(){let e=/\{([\w$.#/]+)\}/g,t=this.nowrap?` nowrap`:``,n=this.formatSlashes(this.path).replace(e,(e,n)=>`{${n}}`);return this.nowrap?T`
${Ft(n)}
`:T`${Ft(n)}`}formatSlashes(e){return e.replaceAll(`/`,`/`)}render(){return T`${this.replaceBrackets()}`}};ff.styles=uf,df([Tt()],ff.prototype,`path`,void 0),df([Tt({type:Boolean})],ff.prototype,`nowrap`,void 0),ff=df([wt(`pb33f-render-operation-path`)],ff);var pf=xe` +`,uf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},df=class extends St{constructor(){super(),this.path=`/`,this.nowrap=!1}replaceBrackets(){let e=/\{([\w$.#/]+)\}/g,t=this.nowrap?` nowrap`:``,n=this.formatSlashes(this.path).replace(e,(e,n)=>`{${n}}`);return this.nowrap?T`
${Pt(n)}
`:T`${Pt(n)}`}formatSlashes(e){return e.replaceAll(`/`,`/`)}render(){return T`${this.replaceBrackets()}`}};df.styles=Fse,uf([wt()],df.prototype,`path`,void 0),uf([wt({type:Boolean})],df.prototype,`nowrap`,void 0),df=uf([Ct(`pb33f-render-operation-path`)],df);var Ise=xe` :host { color: var(--font-color); font-family: var(--font-stack), monospace; @@ -5794,7 +5814,7 @@ -`,mf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hf=/(\{)([\w.\-_$:]+)(})|(:)([\w.\-_$:]+)/g,gf=/(\[)(["']?)([\w${}:.\-_/\\]+)(['"]?)(])/g,_f=class extends Ct{constructor(){super(),this.path=`/`,this.selected=!1,this.chars=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`}replaceBrackets(e){let t,n=e;for(;(t=hf.exec(e))!==null;)t.forEach((e,t)=>{e!==void 0&&(t===1||t===4)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&(t===2||t===5)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&t===3&&(n=n.replaceAll(e,``+e+``))});return n}breakPath(){if(!this.path)return T`{no path}`;let e=this.path.split(`.`);e.length>0&&e[0]==`$`&&(e=e.slice(1,e.length));let t=e.join(`.`),n=t,r=new Map,i;for(;(i=gf.exec(n))!==null;){let e=vf(gf.lastIndex-i.index,this.chars);r.set(e,i),t=t.substring(0,i.index)+e+t.substring(gf.lastIndex)}t=t.replaceAll(`.`,`.`),r.forEach((e,n)=>{let r=[];e[1]!==void 0&&r.push(``+e[1]+``),e[2]!==void 0&&r.push(e[2]),e[3]!==void 0&&r.push(``+this.replaceBrackets(e[3])+``),e[4]!==void 0&&r.push(e[4]),e[5]!==void 0&&r.push(``+e[5]+``);let i=r.join(``);t=t.replaceAll(n,i)});let a=t;return a=a.replaceAll(`$`,`$`),a===``&&(a=`{no path available}`),T`${Ft(a.toString())}`}render(){return T`${this.breakPath()}`}};_f.styles=pf,mf([Tt()],_f.prototype,`path`,void 0),mf([Tt({type:Boolean})],_f.prototype,`selected`,void 0),_f=mf([wt(`pb33f-render-json-path`)],_f);function vf(e,t){let n=``;for(let r=e;r>0;--r)n+=t[Math.floor(Math.random()*t.length)];return n}function yf(e,t,n,r,i){if(e&&e.nodes){for(let a of e.nodes)if(!t.has(a)){let e=r.get(a);if(!e)continue;t.set(a,e);let o=i.get(a);if(o)for(let e of o)n.has(e.id)||n.set(e.id,e);yf(e,t,n,r,i)}}}function bf(e,t){typeof e==`function`?e(t):e.handleEvent(t)}var xf=class{constructor(){this.onmessage=null,this.onerror=null,this.messageListeners=new Set,this.errorListeners=new Set,this.terminated=!1}postMessage(e){queueMicrotask(()=>this.handleRequest(e))}addEventListener(e,t){t&&(e===`message`&&this.messageListeners.add(t),e===`error`&&this.errorListeners.add(t))}removeEventListener(e,t){t&&(e===`message`&&this.messageListeners.delete(t),e===`error`&&this.errorListeners.delete(t))}terminate(){this.terminated=!0,this.messageListeners.clear(),this.errorListeners.clear(),this.onmessage=null,this.onerror=null}handleRequest(e){if(!this.terminated&&e.dependentNode)try{let t=e.dependentNode,n=e.nodes??[],r=e.edges??[],i=new Map,a=new Map,o=new Map,s=new Map;n.forEach(e=>s.set(e.id,e)),r.forEach(e=>{e.targets.forEach(t=>{o.has(t)||o.set(t,[]),o.get(t).push(e)})}),yf(t,i,a,s,o);let c=new MessageEvent(`message`,{data:{filteredNodes:i,filteredEdges:a,collapse:e.collapse}});this.onmessage?.(c);for(let e of this.messageListeners)bf(e,c)}catch(e){let t=e instanceof Error?e.message:`Unknown error`,n=new ErrorEvent(`error`,{message:t});this.onerror?.(n);for(let e of this.errorListeners)bf(e,n)}}};function Sf(){return new xf}var Cf=xe` +`,ff=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pf=/(\{)([\w.\-_$:]+)(})|(:)([\w.\-_$:]+)/g,mf=/(\[)(["']?)([\w${}:.\-_/\\]+)(['"]?)(])/g,hf=class extends St{constructor(){super(),this.path=`/`,this.selected=!1,this.chars=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`}replaceBrackets(e){let t,n=e;for(;(t=pf.exec(e))!==null;)t.forEach((e,t)=>{e!==void 0&&(t===1||t===4)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&(t===2||t===5)&&(n=n.replaceAll(e,``+e+``)),e!==void 0&&t===3&&(n=n.replaceAll(e,``+e+``))});return n}breakPath(){if(!this.path)return T`{no path}`;let e=this.path.split(`.`);e.length>0&&e[0]==`$`&&(e=e.slice(1,e.length));let t=e.join(`.`),n=t,r=new Map,i;for(;(i=mf.exec(n))!==null;){let e=gf(mf.lastIndex-i.index,this.chars);r.set(e,i),t=t.substring(0,i.index)+e+t.substring(mf.lastIndex)}t=t.replaceAll(`.`,`.`),r.forEach((e,n)=>{let r=[];e[1]!==void 0&&r.push(``+e[1]+``),e[2]!==void 0&&r.push(e[2]),e[3]!==void 0&&r.push(``+this.replaceBrackets(e[3])+``),e[4]!==void 0&&r.push(e[4]),e[5]!==void 0&&r.push(``+e[5]+``);let i=r.join(``);t=t.replaceAll(n,i)});let a=t;return a=a.replaceAll(`$`,`$`),a===``&&(a=`{no path available}`),T`${Pt(a.toString())}`}render(){return T`${this.breakPath()}`}};hf.styles=Ise,ff([wt()],hf.prototype,`path`,void 0),ff([wt({type:Boolean})],hf.prototype,`selected`,void 0),hf=ff([Ct(`pb33f-render-json-path`)],hf);function gf(e,t){let n=``;for(let r=e;r>0;--r)n+=t[Math.floor(Math.random()*t.length)];return n}function _f(e,t,n,r,i){if(e&&e.nodes){for(let a of e.nodes)if(!t.has(a)){let e=r.get(a);if(!e)continue;t.set(a,e);let o=i.get(a);if(o)for(let e of o)n.has(e.id)||n.set(e.id,e);_f(e,t,n,r,i)}}}function vf(e,t){typeof e==`function`?e(t):e.handleEvent(t)}var yf=class{constructor(){this.onmessage=null,this.onerror=null,this.messageListeners=new Set,this.errorListeners=new Set,this.terminated=!1}postMessage(e){queueMicrotask(()=>this.handleRequest(e))}addEventListener(e,t){t&&(e===`message`&&this.messageListeners.add(t),e===`error`&&this.errorListeners.add(t))}removeEventListener(e,t){t&&(e===`message`&&this.messageListeners.delete(t),e===`error`&&this.errorListeners.delete(t))}terminate(){this.terminated=!0,this.messageListeners.clear(),this.errorListeners.clear(),this.onmessage=null,this.onerror=null}handleRequest(e){if(!this.terminated&&e.dependentNode)try{let t=e.dependentNode,n=e.nodes??[],r=e.edges??[],i=new Map,a=new Map,o=new Map,s=new Map;n.forEach(e=>s.set(e.id,e)),r.forEach(e=>{e.targets.forEach(t=>{o.has(t)||o.set(t,[]),o.get(t).push(e)})}),_f(t,i,a,s,o);let c=new MessageEvent(`message`,{data:{filteredNodes:i,filteredEdges:a,collapse:e.collapse}});this.onmessage?.(c);for(let e of this.messageListeners)vf(e,c)}catch(e){let t=e instanceof Error?e.message:`Unknown error`,n=new ErrorEvent(`error`,{message:t});this.onerror?.(n);for(let e of this.errorListeners)vf(e,n)}}};function bf(){return new yf}var xf=xe` .change-card { border-bottom: 1px dashed var(--secondary-color-dimmer); background: var(--background-color); @@ -5985,7 +6005,7 @@ .line-content .gi { color: var(--terminal-text); font-family: var(--font-stack-bold), monospace; } .line-content .ge { text-decoration: underline; } .line-content .gh, .line-content .gu { font-family: var(--font-stack-bold), monospace; } -`,Pse=[Cf,Sa,xe` +`,Lse=[xf,_a,xe` :host { display: block; overflow: hidden; @@ -6154,11 +6174,11 @@ background: var(--secondary-color); color: var(--background-color); } -`],wf=10,Fse=500,Tf=1,Ef=2,Df=3,Of=4,kf=5;function Af(e,t,n,r,i,a=wf){let o=jf(t),s=jf(n);return(e||[]).map((e,t)=>{let n=If(e),c=zf(e,o,s,r||{},i||{},a);return{key:`${e.path||`change`}:${e.property||`property`}:${e.change}:${t}`,title:`${Rse(e.change)}: ${e.property||`changed item`}`,path:e.path,breaking:!!e.breaking,valueBlocks:n,contextBlocks:c}})}function jf(e){if(!e)return[];let t=e.split(` -`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Mf(e){return{start:e,end:e}}function Ise(e,t){if(t<=0||e.length===0||t>e.length)return{start:t,end:t};let n=t-1,r=Jf(e[n]),i=n;for(let t=n-1;t>=0;t--){let n=e[t];if(!Yf(n)&&Jf(n)e.length)return{start:t,end:t};let n=t-1,r=Pf(e,n,n,Jf(e[n]));return{start:t,end:Math.max(t,r+1)}}function Pf(e,t,n,r){let i=t;for(let a=t+1;ar)i=a;else break}for(;i>n&&Yf(e[i]);)i--;if(i+10;){if(Gf(e,n,r))return Nf(e,n);let t=Kf(e,n,r);if(t>0)return Nf(e,t);let i=qf(e,n);if(i<=0||i===n)break;n=i}}return Ise(e,t)}function If(e){let t=Vf(e),n=Hf(e);switch(e.change){case Ef:case Df:return Lf(`Added Value`,`added`,n);case Of:case kf:return Lf(`Removed Value`,`removed`,t);case Tf:{let e=[];return t&&e.push({title:`Original Value`,tone:`removed`,lines:Rf(t)}),n&&e.push({title:`Modified Value`,tone:`added`,lines:Rf(n)}),e}default:return[]}}function Lf(e,t,n){return n?[{title:e,tone:t,lines:Rf(n)}]:[]}function Rf(e){let t=e.split(` -`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function zf(e,t,n,r,i,a=wf){let o=[],s=e.context?.originalLine||0,c=e.context?.newLine||0,l=Lse(e);switch(e.change){case Ef:case Df:c>0&&o.push(Bf(`Modified Context`,`added`,n,i,Ff(n,c,e),a));break;case Of:case kf:s>0&&o.push(Bf(`Original Context`,`removed`,t,r,Ff(t,s,e),a));break;case Tf:s>0&&o.push(Bf(`Original Context`,`removed`,t,r,l?Ff(t,s,e):Mf(s),a)),c>0&&o.push(Bf(`Modified Context`,`added`,n,i,l?Ff(n,c,e):Mf(c),a))}return o}function Bf(e,t,n,r,i,a=wf){let o=Math.max(1,i.start-a),s=Math.min(n.length,i.end+a),c=[];for(let e=o;e<=s;e++)c.push({lineNum:e,content:n[e-1]||``,highlightedContent:r[e],emphasis:e===i.start?`primary`:e>i.start&&e<=i.end?`range`:`normal`});return{title:e,tone:t,lines:c}}function Vf(e){return e.originalEncoded?e.originalEncoded:Uf(e.original)}function Hf(e){return e.newEncoded?e.newEncoded:Uf(e.new)}function Uf(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Lse(e){return Vf(e).includes(` -`)||Hf(e).includes(` -`)}function Rse(e){switch(e){case Ef:case Df:return`Added`;case Of:case kf:return`Removed`;case Tf:default:return`Modified`}}function zse(e){return e>=Tf&&e<=kf}function Bse(e){let t=new Set,n=[],r=e=>{let r=Wf(e);r&&!t.has(r)&&(t.add(r),n.push(r))};return r(e.property||``),r(Vf(e)),r(Hf(e)),n}function Wf(e){return e.trim().replace(/,$/,``).trim().replace(/^['"]|['"]$/g,``).trim().toLowerCase()}function Gf(e,t,n){if(t<=0||t>e.length||n.length===0)return!1;let r=Vse(e[t-1]);return r?n.includes(r):!1}function Kf(e,t,n){if(t<=0||t>e.length||n.length===0)return 0;let r=t-1,i=Jf(e[r]),a=-1;for(let t=r+1;te.length)return 0;let n=t-1,r=Jf(e[n]);for(let t=n-1;t>=0;t--)if(!Yf(e[t])&&Jf(e[t])0?e.slice(0,n):e)}let n=t.indexOf(`:`);return n>0?Wf(t.slice(0,n)):t[0]===`{`||t[0]===`}`||t[0]===`[`||t[0]===`]`?null:Wf(t)}function Jf(e){for(let t=0;t{let n=zse(e),c=Bse(e,o,s,r||{},i||{},a);return{key:`${e.path||`change`}:${e.property||`property`}:${e.change}:${t}`,title:`${Hse(e.change)}: ${e.property||`changed item`}`,path:e.path,breaking:!!e.breaking,valueBlocks:n,contextBlocks:c}})}function Af(e){if(!e)return[];let t=e.split(` +`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function jf(e){return{start:e,end:e}}function Rse(e,t){if(t<=0||e.length===0||t>e.length)return{start:t,end:t};let n=t-1,r=Wf(e[n]),i=n;for(let t=n-1;t>=0;t--){let n=e[t];if(!Gf(n)&&Wf(n)e.length)return{start:t,end:t};let n=t-1,r=Nf(e,n,n,Wf(e[n]));return{start:t,end:Math.max(t,r+1)}}function Nf(e,t,n,r){let i=t;for(let a=t+1;ar)i=a;else break}for(;i>n&&Gf(e[i]);)i--;if(i+10;){if(Hf(e,n,r))return Mf(e,n);let t=Uf(e,n,r);if(t>0)return Mf(e,t);let i=Gse(e,n);if(i<=0||i===n)break;n=i}}return Rse(e,t)}function zse(e){let t=Rf(e),n=zf(e);switch(e.change){case Tf:case Ef:return Ff(`Added Value`,`added`,n);case Df:case Of:return Ff(`Removed Value`,`removed`,t);case wf:{let e=[];return t&&e.push({title:`Original Value`,tone:`removed`,lines:If(t)}),n&&e.push({title:`Modified Value`,tone:`added`,lines:If(n)}),e}default:return[]}}function Ff(e,t,n){return n?[{title:e,tone:t,lines:If(n)}]:[]}function If(e){let t=e.split(` +`);return t.length>0&&t[t.length-1]===``&&t.pop(),t}function Bse(e,t,n,r,i,a=Sf){let o=[],s=e.context?.originalLine||0,c=e.context?.newLine||0,l=Vse(e);switch(e.change){case Tf:case Ef:c>0&&o.push(Lf(`Modified Context`,`added`,n,i,Pf(n,c,e),a));break;case Df:case Of:s>0&&o.push(Lf(`Original Context`,`removed`,t,r,Pf(t,s,e),a));break;case wf:s>0&&o.push(Lf(`Original Context`,`removed`,t,r,l?Pf(t,s,e):jf(s),a)),c>0&&o.push(Lf(`Modified Context`,`added`,n,i,l?Pf(n,c,e):jf(c),a))}return o}function Lf(e,t,n,r,i,a=Sf){let o=Math.max(1,i.start-a),s=Math.min(n.length,i.end+a),c=[];for(let e=o;e<=s;e++)c.push({lineNum:e,content:n[e-1]||``,highlightedContent:r[e],emphasis:e===i.start?`primary`:e>i.start&&e<=i.end?`range`:`normal`});return{title:e,tone:t,lines:c}}function Rf(e){return e.originalEncoded?e.originalEncoded:Bf(e.original)}function zf(e){return e.newEncoded?e.newEncoded:Bf(e.new)}function Bf(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e,null,2)}catch{return String(e)}}function Vse(e){return Rf(e).includes(` +`)||zf(e).includes(` +`)}function Hse(e){switch(e){case Tf:case Ef:return`Added`;case Df:case Of:return`Removed`;case wf:default:return`Modified`}}function Use(e){return e>=wf&&e<=Of}function Wse(e){let t=new Set,n=[],r=e=>{let r=Vf(e);r&&!t.has(r)&&(t.add(r),n.push(r))};return r(e.property||``),r(Rf(e)),r(zf(e)),n}function Vf(e){return e.trim().replace(/,$/,``).trim().replace(/^['"]|['"]$/g,``).trim().toLowerCase()}function Hf(e,t,n){if(t<=0||t>e.length||n.length===0)return!1;let r=Kse(e[t-1]);return r?n.includes(r):!1}function Uf(e,t,n){if(t<=0||t>e.length||n.length===0)return 0;let r=t-1,i=Wf(e[r]),a=-1;for(let t=r+1;te.length)return 0;let n=t-1,r=Wf(e[n]);for(let t=n-1;t>=0;t--)if(!Gf(e[t])&&Wf(e[t])0?e.slice(0,n):e)}let n=t.indexOf(`:`);return n>0?Vf(t.slice(0,n)):t[0]===`{`||t[0]===`}`||t[0]===`[`||t[0]===`]`?null:Vf(t)}function Wf(e){for(let t=0;tnull,$f=class extends _n{constructor(){super(...arguments),this.isCollapsed=!1,this.localize=new pn(this),this.positionBeforeCollapsing=0,this.position=50,this.vertical=!1,this.disabled=!1,this.snapValue=``,this.snapFunction=Qf,this.snapThreshold=12}toSnapFunction(e){let t=e.split(` `);return({pos:n,size:r,snapThreshold:i,isRtl:a,vertical:o})=>{let s=n,c=1/0;return t.forEach(t=>{let l;if(t.startsWith(`repeat(`)){let t=e.substring(7,e.length-1),i=t.endsWith(`%`),s=Number.parseFloat(t),c=i?s/100*r:s;l=Math.round((a&&!o?r-n:n)/c)*c}else l=t.endsWith(`%`)?Number.parseFloat(t)/100*r:Number.parseFloat(t);a&&!o&&(l=r-l);let u=Math.abs(n-l);u<=i&&uthis.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()===`rtl`;this.disabled||(e.cancelable&&e.preventDefault(),Use(this,{onMove:(e,n)=>{let r=this.vertical?n:e;this.primary===`end`&&(r=this.size-r),r=this.snapFunction({pos:r,size:this.size,snapThreshold:this.snapThreshold,isRtl:t,vertical:this.vertical})??r,this.position=La(this.pixelsToPercentage(r),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`].includes(e.key)){let t=this.position,n=(e.shiftKey?10:1)*(this.primary===`end`?-1:1);if(e.preventDefault(),(e.key===`ArrowLeft`&&!this.vertical||e.key===`ArrowUp`&&this.vertical)&&(t-=n),(e.key===`ArrowRight`&&!this.vertical||e.key===`ArrowDown`&&this.vertical)&&(t+=n),e.key===`Home`&&(t=this.primary===`end`?100:0),e.key===`End`&&(t=this.primary===`end`?0:100),e.key===`Enter`){if(this.isCollapsed)t=this.positionBeforeCollapsing,this.isCollapsed=!1;else{let e=this.position;t=0,requestAnimationFrame(()=>{this.isCollapsed=!0,this.positionBeforeCollapsing=e})}}this.position=La(t,0,100)}}handleResize(e){let{width:t,height:n}=e[0].contentRect;this.size=this.vertical?n:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.positionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.isCollapsed=!1,this.positionBeforeCollapsing=0,this.positionInPixels=this.percentageToPixels(this.position),this.emit(`sl-reposition`)}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?`gridTemplateRows`:`gridTemplateColumns`,t=this.vertical?`gridTemplateColumns`:`gridTemplateRows`,n=this.localize.dir()===`rtl`,r=` +`;function Jse(e,t){function n(n){let r=e.getBoundingClientRect(),i=e.ownerDocument.defaultView,a=r.left+i.scrollX,o=r.top+i.scrollY,s=n.pageX-a,c=n.pageY-o;t?.onMove&&t.onMove(s,c)}function r(){document.removeEventListener(`pointermove`,n),document.removeEventListener(`pointerup`,r),t?.onStop&&t.onStop()}document.addEventListener(`pointermove`,n,{passive:!0}),document.addEventListener(`pointerup`,r),t?.initialEvent instanceof PointerEvent&&n(t.initialEvent)}var Jf=()=>null,Yf=class extends _n{constructor(){super(...arguments),this.isCollapsed=!1,this.localize=new pn(this),this.positionBeforeCollapsing=0,this.position=50,this.vertical=!1,this.disabled=!1,this.snapValue=``,this.snapFunction=Jf,this.snapThreshold=12}toSnapFunction(e){let t=e.split(` `);return({pos:n,size:r,snapThreshold:i,isRtl:a,vertical:o})=>{let s=n,c=1/0;return t.forEach(t=>{let l;if(t.startsWith(`repeat(`)){let t=e.substring(7,e.length-1),i=t.endsWith(`%`),s=Number.parseFloat(t),c=i?s/100*r:s;l=Math.round((a&&!o?r-n:n)/c)*c}else l=t.endsWith(`%`)?Number.parseFloat(t)/100*r:Number.parseFloat(t);a&&!o&&(l=r-l);let u=Math.abs(n-l);u<=i&&uthis.handleResize(e)),this.updateComplete.then(()=>this.resizeObserver.observe(this)),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.resizeObserver)==null||e.unobserve(this)}detectSize(){let{width:e,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:e}percentageToPixels(e){return this.size*(e/100)}pixelsToPercentage(e){return e/this.size*100}handleDrag(e){let t=this.localize.dir()===`rtl`;this.disabled||(e.cancelable&&e.preventDefault(),Jse(this,{onMove:(e,n)=>{let r=this.vertical?n:e;this.primary===`end`&&(r=this.size-r),r=this.snapFunction({pos:r,size:this.size,snapThreshold:this.snapThreshold,isRtl:t,vertical:this.vertical})??r,this.position=Ma(this.pixelsToPercentage(r),0,100)},initialEvent:e}))}handleKeyDown(e){if(!this.disabled&&[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Enter`].includes(e.key)){let t=this.position,n=(e.shiftKey?10:1)*(this.primary===`end`?-1:1);if(e.preventDefault(),(e.key===`ArrowLeft`&&!this.vertical||e.key===`ArrowUp`&&this.vertical)&&(t-=n),(e.key===`ArrowRight`&&!this.vertical||e.key===`ArrowDown`&&this.vertical)&&(t+=n),e.key===`Home`&&(t=this.primary===`end`?100:0),e.key===`End`&&(t=this.primary===`end`?0:100),e.key===`Enter`){if(this.isCollapsed)t=this.positionBeforeCollapsing,this.isCollapsed=!1;else{let e=this.position;t=0,requestAnimationFrame(()=>{this.isCollapsed=!0,this.positionBeforeCollapsing=e})}}this.position=Ma(t,0,100)}}handleResize(e){let{width:t,height:n}=e[0].contentRect;this.size=this.vertical?n:t,(isNaN(this.cachedPositionInPixels)||this.position===1/0)&&(this.cachedPositionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.positionInPixels=Number(this.getAttribute(`position-in-pixels`)),this.position=this.pixelsToPercentage(this.positionInPixels)),this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.isCollapsed=!1,this.positionBeforeCollapsing=0,this.positionInPixels=this.percentageToPixels(this.position),this.emit(`sl-reposition`)}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){let e=this.vertical?`gridTemplateRows`:`gridTemplateColumns`,t=this.vertical?`gridTemplateColumns`:`gridTemplateRows`,n=this.localize.dir()===`rtl`,r=` clamp( 0%, clamp( @@ -6263,7 +6283,7 @@
- `}};$f.styles=[hn,Zf],w([kt(`.divider`)],$f.prototype,`divider`,2),w([Tt({type:Number,reflect:!0})],$f.prototype,`position`,2),w([Tt({attribute:`position-in-pixels`,type:Number})],$f.prototype,`positionInPixels`,2),w([Tt({type:Boolean,reflect:!0})],$f.prototype,`vertical`,2),w([Tt({type:Boolean,reflect:!0})],$f.prototype,`disabled`,2),w([Tt()],$f.prototype,`primary`,2),w([Tt({reflect:!0})],$f.prototype,`snap`,1),w([Tt({type:Number,attribute:`snap-threshold`})],$f.prototype,`snapThreshold`,2),w([mn(`position`)],$f.prototype,`handlePositionChange`,1),w([mn(`positionInPixels`)],$f.prototype,`handlePositionInPixelsChange`,1),w([mn(`vertical`)],$f.prototype,`handleVerticalChange`,1),$f.define(`sl-split-panel`);var ep=xe` + `}};Yf.styles=[hn,qse],w([Ot(`.divider`)],Yf.prototype,`divider`,2),w([wt({type:Number,reflect:!0})],Yf.prototype,`position`,2),w([wt({attribute:`position-in-pixels`,type:Number})],Yf.prototype,`positionInPixels`,2),w([wt({type:Boolean,reflect:!0})],Yf.prototype,`vertical`,2),w([wt({type:Boolean,reflect:!0})],Yf.prototype,`disabled`,2),w([wt()],Yf.prototype,`primary`,2),w([wt({reflect:!0})],Yf.prototype,`snap`,1),w([wt({type:Number,attribute:`snap-threshold`})],Yf.prototype,`snapThreshold`,2),w([mn(`position`)],Yf.prototype,`handlePositionChange`,1),w([mn(`positionInPixels`)],Yf.prototype,`handlePositionInPixelsChange`,1),w([mn(`vertical`)],Yf.prototype,`handleVerticalChange`,1),Yf.define(`sl-split-panel`);var Xf=xe` :host { display: block; } @@ -6295,7 +6315,7 @@ white-space: nowrap; border: 0; } -`,tp=xe` +`,Zf=xe` :host { display: inline-block; } @@ -6304,7 +6324,7 @@ display: flex; flex-wrap: nowrap; } -`,np=class extends _n{constructor(){super(...arguments),this.disableRole=!1,this.label=``}handleFocus(e){rp(e.target)?.toggleAttribute(`data-sl-button-group__button--focus`,!0)}handleBlur(e){rp(e.target)?.toggleAttribute(`data-sl-button-group__button--focus`,!1)}handleMouseOver(e){rp(e.target)?.toggleAttribute(`data-sl-button-group__button--hover`,!0)}handleMouseOut(e){rp(e.target)?.toggleAttribute(`data-sl-button-group__button--hover`,!1)}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),r=rp(t);r&&(r.toggleAttribute(`data-sl-button-group__button`,!0),r.toggleAttribute(`data-sl-button-group__button--first`,n===0),r.toggleAttribute(`data-sl-button-group__button--inner`,n>0&&n{let n=e.indexOf(t),r=$f(t);r&&(r.toggleAttribute(`data-sl-button-group__button`,!0),r.toggleAttribute(`data-sl-button-group__button--first`,n===0),r.toggleAttribute(`data-sl-button-group__button--inner`,n>0&&n
- `}};np.styles=[hn,tp],w([kt(`slot`)],np.prototype,`defaultSlot`,2),w([Et()],np.prototype,`disableRole`,2),w([Tt()],np.prototype,`label`,2);function rp(e){let t=`sl-button, sl-radio-button`;return e.closest(t)??e.querySelector(t)}var ip=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this),this.hasSlotController=new nn(this,`help-text`,`label`),this.customValidityMessage=``,this.hasButtonGroup=!1,this.errorMessage=``,this.defaultValue=``,this.label=``,this.helpText=``,this.name=`option`,this.value=``,this.size=`medium`,this.form=``,this.required=!1}get validity(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?gee:tn:_ee}get validationMessage(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?this.validationInput.validationMessage:``:this.customValidityMessage}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll(`sl-radio, sl-radio-button`)]}handleRadioClick(e){let t=e.target.closest(`sl-radio, sl-radio-button`),n=this.getAllRadios(),r=this.value;t&&!t.disabled&&(this.value=t.value,n.forEach(e=>e.checked=e===t),this.value!==r&&(this.emit(`sl-change`),this.emit(`sl-input`)))}handleKeyDown(e){if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,` `].includes(e.key))return;let t=this.getAllRadios().filter(e=>!e.disabled),n=t.find(e=>e.checked)??t[0],r=e.key===` `?0:[`ArrowUp`,`ArrowLeft`].includes(e.key)?-1:1,i=this.value,a=t.indexOf(n)+r;a<0&&(a=t.length-1),a>t.length-1&&(a=0),this.getAllRadios().forEach(e=>{e.checked=!1,this.hasButtonGroup||e.setAttribute(`tabindex`,`-1`)}),this.value=t[a].value,t[a].checked=!0,this.hasButtonGroup?t[a].shadowRoot.querySelector(`button`).focus():(t[a].setAttribute(`tabindex`,`0`),t[a].focus()),this.value!==i&&(this.emit(`sl-change`),this.emit(`sl-input`)),e.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){let e=this.getAllRadios();if(await Promise.all(e.map(async e=>{await e.updateComplete,e.checked=e.value===this.value,e.size=this.size})),this.hasButtonGroup=e.some(e=>e.tagName.toLowerCase()===`sl-radio-button`),e.length>0&&!e.some(e=>e.checked)){if(this.hasButtonGroup){let t=e[0].shadowRoot?.querySelector(`button`);t&&t.setAttribute(`tabindex`,`0`)}else e[0].setAttribute(`tabindex`,`0`)}if(this.hasButtonGroup){let e=this.shadowRoot?.querySelector(`sl-button-group`);e&&(e.disableRole=!0)}}syncRadios(){customElements.get(`sl-radio`)&&customElements.get(`sl-radio-button`)?this.syncRadioElements():(customElements.get(`sl-radio`)?this.syncRadioElements():customElements.whenDefined(`sl-radio`).then(()=>this.syncRadios()),customElements.get(`sl-radio-button`)?this.syncRadioElements():customElements.whenDefined(`sl-radio-button`).then(()=>this.syncRadios()))}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let e=this.required&&!this.value,t=this.customValidityMessage!==``;return e||t?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?``:this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),e}setCustomValidity(e=``){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){let t=this.getAllRadios(),n=t.find(e=>e.checked),r=t.find(e=>!e.disabled),i=n||r;i&&i.focus(e)}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=T` + `}};Qf.styles=[hn,Zf],w([Ot(`slot`)],Qf.prototype,`defaultSlot`,2),w([Tt()],Qf.prototype,`disableRole`,2),w([wt()],Qf.prototype,`label`,2);function $f(e){let t=`sl-button, sl-radio-button`;return e.closest(t)??e.querySelector(t)}var ep=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this),this.hasSlotController=new nn(this,`help-text`,`label`),this.customValidityMessage=``,this.hasButtonGroup=!1,this.errorMessage=``,this.defaultValue=``,this.label=``,this.helpText=``,this.name=`option`,this.value=``,this.size=`medium`,this.form=``,this.required=!1}get validity(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?gee:tn:_ee}get validationMessage(){let e=this.required&&!this.value;return this.customValidityMessage===``?e?this.validationInput.validationMessage:``:this.customValidityMessage}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll(`sl-radio, sl-radio-button`)]}handleRadioClick(e){let t=e.target.closest(`sl-radio, sl-radio-button`),n=this.getAllRadios(),r=this.value;t&&!t.disabled&&(this.value=t.value,n.forEach(e=>e.checked=e===t),this.value!==r&&(this.emit(`sl-change`),this.emit(`sl-input`)))}handleKeyDown(e){if(![`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,` `].includes(e.key))return;let t=this.getAllRadios().filter(e=>!e.disabled),n=t.find(e=>e.checked)??t[0],r=e.key===` `?0:[`ArrowUp`,`ArrowLeft`].includes(e.key)?-1:1,i=this.value,a=t.indexOf(n)+r;a<0&&(a=t.length-1),a>t.length-1&&(a=0),this.getAllRadios().forEach(e=>{e.checked=!1,this.hasButtonGroup||e.setAttribute(`tabindex`,`-1`)}),this.value=t[a].value,t[a].checked=!0,this.hasButtonGroup?t[a].shadowRoot.querySelector(`button`).focus():(t[a].setAttribute(`tabindex`,`0`),t[a].focus()),this.value!==i&&(this.emit(`sl-change`),this.emit(`sl-input`)),e.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}async syncRadioElements(){let e=this.getAllRadios();if(await Promise.all(e.map(async e=>{await e.updateComplete,e.checked=e.value===this.value,e.size=this.size})),this.hasButtonGroup=e.some(e=>e.tagName.toLowerCase()===`sl-radio-button`),e.length>0&&!e.some(e=>e.checked)){if(this.hasButtonGroup){let t=e[0].shadowRoot?.querySelector(`button`);t&&t.setAttribute(`tabindex`,`0`)}else e[0].setAttribute(`tabindex`,`0`)}if(this.hasButtonGroup){let e=this.shadowRoot?.querySelector(`sl-button-group`);e&&(e.disableRole=!0)}}syncRadios(){customElements.get(`sl-radio`)&&customElements.get(`sl-radio-button`)?this.syncRadioElements():(customElements.get(`sl-radio`)?this.syncRadioElements():customElements.whenDefined(`sl-radio`).then(()=>this.syncRadios()),customElements.get(`sl-radio-button`)?this.syncRadioElements():customElements.whenDefined(`sl-radio-button`).then(()=>this.syncRadios()))}updateCheckedRadio(){this.getAllRadios().forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let e=this.required&&!this.value,t=this.customValidityMessage!==``;return e||t?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let e=this.validity.valid;return this.errorMessage=this.customValidityMessage||e?``:this.validationInput.validationMessage,this.formControlController.setValidity(e),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),e||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),e}setCustomValidity(e=``){this.customValidityMessage=e,this.errorMessage=e,this.validationInput.setCustomValidity(e),this.formControlController.updateValidity()}focus(e){let t=this.getAllRadios(),n=t.find(e=>e.checked),r=t.find(e=>!e.disabled),i=n||r;i&&i.focus(e)}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=T` `;return T`
${this.helpText}
- `}};ip.styles=[hn,Jt,ep],ip.dependencies={"sl-button-group":np},w([kt(`slot:not([name])`)],ip.prototype,`defaultSlot`,2),w([kt(`.radio-group__validation-input`)],ip.prototype,`validationInput`,2),w([Et()],ip.prototype,`hasButtonGroup`,2),w([Et()],ip.prototype,`errorMessage`,2),w([Et()],ip.prototype,`defaultValue`,2),w([Tt()],ip.prototype,`label`,2),w([Tt({attribute:`help-text`})],ip.prototype,`helpText`,2),w([Tt()],ip.prototype,`name`,2),w([Tt({reflect:!0})],ip.prototype,`value`,2),w([Tt({reflect:!0})],ip.prototype,`size`,2),w([Tt({reflect:!0})],ip.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],ip.prototype,`required`,2),w([mn(`size`,{waitUntilFirstUpdate:!0})],ip.prototype,`handleSizeChange`,1),w([mn(`value`)],ip.prototype,`handleValueChange`,1),ip.define(`sl-radio-group`);var ap=xe` + `}};ep.styles=[hn,Jt,Xf],ep.dependencies={"sl-button-group":Qf},w([Ot(`slot:not([name])`)],ep.prototype,`defaultSlot`,2),w([Ot(`.radio-group__validation-input`)],ep.prototype,`validationInput`,2),w([Tt()],ep.prototype,`hasButtonGroup`,2),w([Tt()],ep.prototype,`errorMessage`,2),w([Tt()],ep.prototype,`defaultValue`,2),w([wt()],ep.prototype,`label`,2),w([wt({attribute:`help-text`})],ep.prototype,`helpText`,2),w([wt()],ep.prototype,`name`,2),w([wt({reflect:!0})],ep.prototype,`value`,2),w([wt({reflect:!0})],ep.prototype,`size`,2),w([wt({reflect:!0})],ep.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],ep.prototype,`required`,2),w([mn(`size`,{waitUntilFirstUpdate:!0})],ep.prototype,`handleSizeChange`,1),w([mn(`value`)],ep.prototype,`handleValueChange`,1),ep.define(`sl-radio-group`);var tp=xe` :host { display: inline-block; position: relative; @@ -6962,8 +6982,8 @@ :host([data-sl-button-group__button][checked]) { z-index: 2; } -`,Wse=xe` - ${ap} +`,Yse=xe` + ${tp} .button__prefix, .button__suffix, @@ -6986,7 +7006,7 @@ opacity: 0; z-index: -1; } -`,op=Symbol.for(``),sp=e=>{if(e?.r===op)return e?._$litStatic$},cp=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:op}),lp=new Map,up=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l{if(e?.r===np)return e?._$litStatic$},rp=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:np}),ip=new Map,ap=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l - `}};dp.styles=[hn,Wse],w([kt(`.button`)],dp.prototype,`input`,2),w([kt(`.hidden-input`)],dp.prototype,`hiddenInput`,2),w([Et()],dp.prototype,`hasFocus`,2),w([Tt({type:Boolean,reflect:!0})],dp.prototype,`checked`,2),w([Tt()],dp.prototype,`value`,2),w([Tt({type:Boolean,reflect:!0})],dp.prototype,`disabled`,2),w([Tt({reflect:!0})],dp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],dp.prototype,`pill`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],dp.prototype,`handleDisabledChange`,1),dp.define(`sl-radio-button`);var fp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pp=Object.freeze({type:`spacer`,content:``}),mp=20,hp=20,gp=`pb33f-diff-view-mode`;function _p(e){return e===`side-by-side`||e===`unified`}var vp=class extends Ct{constructor(){super(...arguments),this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.selectedChanges=[],this.contentMode=`file`,this.viewMode=`side-by-side`,this._cachedFocusedSections=[],this.cachedLeft=[],this.cachedRight=[],this.cachedUnified=[],this.originalLineToIndex=new Map,this.modifiedLineToIndex=new Map,this.dmp=(()=>{let e=new da.default;return e.Diff_Timeout=5,e})(),this._highlightTimer=0,this._highlightedElement=null,this._panels=[],this._scrollListeners=[],this._resizeObserver=null,this._rafId=0,this._scrollDirty=!1,this._syncing=!1,this._rendering=!1,this._renderStart=[0,0],this._renderEnd=[0,0],this._viewportHeight=[0,0],this._lastScrollTop=0,this._pendingJump=[0,0]}connectedCallback(){super.connectedCallback(),this.restoreStoredViewMode()}willUpdate(e){e.has(`selectedChanges`)&&(this.contentMode=this.hasSelection?`change`:`file`);let t=e.has(`originalSpec`)||e.has(`modifiedSpec`);t?this.recomputeDiffs():(e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&this._applyHighlights(),(t||e.has(`selectedChanges`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedFocusedSections=[])}updated(e){super.updated(e);let t=e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`);if(e.has(`contentMode`)&&this.contentMode===`change`&&this._teardownScrolling(),this.contentMode===`file`&&(e.has(`contentMode`)||e.has(`viewMode`)||e.has(`originalSpec`)||e.has(`modifiedSpec`))){let t=e.has(`contentMode`)&&e.get(`contentMode`)===`change`;this.updateComplete.then(()=>{requestAnimationFrame(()=>{let e=0,n=0;if(t&&this.selectedChanges.length>0){let t=this.selectedChanges.find(e=>e.context?.originalLine>0||e.context?.newLine>0);t&&(e=t.context?.originalLine||0,n=t.context?.newLine||0)}this._setupScrolling(e,n)})})}else this.contentMode===`file`&&t&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this._panels.length>0&&this._markDirty()})})}disconnectedCallback(){super.disconnectedCallback(),this._teardownScrolling(),this._highlightTimer&&=(clearTimeout(this._highlightTimer),0)}restoreStoredViewMode(){try{let e=localStorage.getItem(gp);_p(e)&&(this.viewMode=e)}catch{}}setViewMode(e){this.viewMode=e;try{localStorage.setItem(gp,e)}catch{}}get hasSelection(){return Array.isArray(this.selectedChanges)&&this.selectedChanges.length>0}recomputeDiffs(){let e=this.dmp.diff_linesToChars_(this.originalSpec,this.modifiedSpec),t=this.dmp.diff_main(e.chars1,e.chars2,!1);this.dmp.diff_charsToLines_(t,e.lineArray);let n=[],r=[],i=[],a=this.originalHighlighted||{},o=this.modifiedHighlighted||{},s=new Map,c=new Map,l=1,u=1;for(let[e,d]of t){let t=d.split(` -`);t[t.length-1]===``&&t.pop();for(let d of t)if(e===0){let e=n.length,t={type:`equal`,content:d,highlightedContent:a[l]||o[u],originalLineNum:l,modifiedLineNum:u};n.push(t),r.push(t),i.push(t),s.set(l,e),c.set(u,e),l++,u++}else if(e===-1){let e=n.length,t={type:`removed`,content:d,highlightedContent:a[l],originalLineNum:l};n.push(t),r.push(pp),i.push(t),s.set(l,e),l++}else if(e===1){let e=r.length,t={type:`added`,content:d,highlightedContent:o[u],modifiedLineNum:u};r.push(t),n.push(pp),i.push(t),c.set(u,e),u++}}this.cachedLeft=n,this.cachedRight=r,this.cachedUnified=i,this.originalLineToIndex=s,this.modifiedLineToIndex=c,this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_applyHighlights(){let e=this.originalHighlighted||{},t=this.modifiedHighlighted||{};for(let n of this.cachedLeft)n.type!==`spacer`&&(n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));for(let n of this.cachedRight)n.type!==`spacer`&&(n.modifiedLineNum?n.highlightedContent=t[n.modifiedLineNum]:n.originalLineNum&&(n.highlightedContent=e[n.originalLineNum]));for(let n of this.cachedUnified)n.type!==`spacer`&&(n.originalLineNum&&n.modifiedLineNum?n.highlightedContent=e[n.originalLineNum]||t[n.modifiedLineNum]:n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_setupScrolling(e=0,t=0){this._teardownScrolling(),this._renderStart=[-1,-1],this._renderEnd=[-1,-1],this._lastScrollTop=0,this._pendingJump=[e,t];let n=Array.from(this.renderRoot.querySelectorAll(`.diff-panel`));if(this._panels=n,n.length){for(let e of n)e.scrollTop=0;this._resizeObserver=new ResizeObserver(()=>{this._markDirty()});for(let e=0;e{this._rendering||this._syncing||(this._lastScrollTop=t.scrollTop,this.viewMode===`side-by-side`&&n.length===2&&(this._syncing=!0,n[1-e].scrollTop=this._lastScrollTop,this._syncing=!1),this._markDirty())};t.addEventListener(`scroll`,r,{passive:!0}),this._scrollListeners.push(()=>t.removeEventListener(`scroll`,r))}this._markDirty()}}_teardownScrolling(){for(let e of this._scrollListeners)e();this._scrollListeners=[],this._resizeObserver?.disconnect(),this._resizeObserver=null,this._rafId&&=(cancelAnimationFrame(this._rafId),0),this._scrollDirty=!1,this._panels=[]}_markDirty(){this._scrollDirty||(this._scrollDirty=!0,this._rafId=requestAnimationFrame(()=>{this._scrollDirty=!1,this._rafId=0,this._updateAllPanels()}))}_updateAllPanels(){let e=this._lastScrollTop;for(let t=0;t0||this._pendingJump[1]>0){let[e,t]=this._pendingJump;this._pendingJump=[0,0],requestAnimationFrame(()=>this.scrollToLine(e,t))}}_getLinesForPanel(e){return this.viewMode===`unified`?this.cachedUnified:e===0?this.cachedLeft:this.cachedRight}_getSideForPanel(e){return this.viewMode===`unified`?`unified`:e===0?`left`:`right`}_renderRange(e,t,n,r,i,a){let o=e.querySelector(`.scroll-pad-top`),s=e.querySelector(`.visible-lines`),c=e.querySelector(`.scroll-pad-bottom`);if(!o||!s||!c)return;this._highlightedElement&&=null,this._rendering=!0;let l=e.scrollTop;o.style.height=`${n*mp}px`,c.style.height=`${(i-r)*mp}px`;let u=document.createDocumentFragment();for(let e=n;e0&&(n=this.originalLineToIndex.get(e)??-1),n<0&&t&&t>0&&(n=this.modifiedLineToIndex.get(t)??-1),n<0)return;let r=this._panels[0];if(!r)return;let i=this._viewportHeight[0]||r.clientHeight,a=Math.max(0,n*mp-i/2+mp/2);r.scrollTop=a,this._panels.length>1&&(this._panels[1].scrollTop=a),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)));let o=this._findScrollTarget(e,t);o&&(this._highlightTimer&&=(clearTimeout(this._highlightTimer),0),this._highlightedElement&&=(this._highlightedElement.classList.remove(`highlight`),null),o.classList.add(`highlight`),this._highlightedElement=o,this._highlightTimer=window.setTimeout(()=>{o?.classList.remove(`highlight`),this._highlightedElement=null,this._highlightTimer=0},2e3))}_findScrollTarget(e,t){if(this.viewMode===`side-by-side`&&this._panels.length>1){if(e>0){let t=this._panels[0].querySelector(`[data-original-line="${e}"]`);if(t)return t}if(t&&t>0){let e=this._panels[1].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(t&&t>0){let e=this._panels[0].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(e>0){let t=this._panels[1].querySelector(`[data-original-line="${e}"]`);if(t)return t}return null}let n=this._panels[0];if(!n)return null;if(e>0){let t=n.querySelector(`[data-original-line="${e}"]`);if(t)return t}return t&&t>0?n.querySelector(`[data-modified-line="${t}"]`):null}renderControls(){return T` + `}};op.styles=[hn,Yse],w([Ot(`.button`)],op.prototype,`input`,2),w([Ot(`.hidden-input`)],op.prototype,`hiddenInput`,2),w([Tt()],op.prototype,`hasFocus`,2),w([wt({type:Boolean,reflect:!0})],op.prototype,`checked`,2),w([wt()],op.prototype,`value`,2),w([wt({type:Boolean,reflect:!0})],op.prototype,`disabled`,2),w([wt({reflect:!0})],op.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],op.prototype,`pill`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],op.prototype,`handleDisabledChange`,1),op.define(`sl-radio-button`);var sp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cp=Object.freeze({type:`spacer`,content:``}),lp=20,up=20,dp=`pb33f-diff-view-mode`;function fp(e){return e===`side-by-side`||e===`unified`}var pp=class extends St{constructor(){super(...arguments),this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.selectedChanges=[],this.contentMode=`file`,this.viewMode=`side-by-side`,this._cachedFocusedSections=[],this.cachedLeft=[],this.cachedRight=[],this.cachedUnified=[],this.originalLineToIndex=new Map,this.modifiedLineToIndex=new Map,this.dmp=(()=>{let e=new Sne.default;return e.Diff_Timeout=5,e})(),this._highlightTimer=0,this._highlightedElement=null,this._panels=[],this._scrollListeners=[],this._resizeObserver=null,this._rafId=0,this._scrollDirty=!1,this._syncing=!1,this._rendering=!1,this._renderStart=[0,0],this._renderEnd=[0,0],this._viewportHeight=[0,0],this._lastScrollTop=0,this._pendingJump=[0,0]}connectedCallback(){super.connectedCallback(),this.restoreStoredViewMode()}willUpdate(e){e.has(`selectedChanges`)&&(this.contentMode=this.hasSelection?`change`:`file`);let t=e.has(`originalSpec`)||e.has(`modifiedSpec`);t?this.recomputeDiffs():(e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&this._applyHighlights(),(t||e.has(`selectedChanges`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedFocusedSections=[])}updated(e){super.updated(e);let t=e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`);if(e.has(`contentMode`)&&this.contentMode===`change`&&this._teardownScrolling(),this.contentMode===`file`&&(e.has(`contentMode`)||e.has(`viewMode`)||e.has(`originalSpec`)||e.has(`modifiedSpec`))){let t=e.has(`contentMode`)&&e.get(`contentMode`)===`change`;this.updateComplete.then(()=>{requestAnimationFrame(()=>{let e=0,n=0;if(t&&this.selectedChanges.length>0){let t=this.selectedChanges.find(e=>e.context?.originalLine>0||e.context?.newLine>0);t&&(e=t.context?.originalLine||0,n=t.context?.newLine||0)}this._setupScrolling(e,n)})})}else this.contentMode===`file`&&t&&this.updateComplete.then(()=>{requestAnimationFrame(()=>{this._panels.length>0&&this._markDirty()})})}disconnectedCallback(){super.disconnectedCallback(),this._teardownScrolling(),this._highlightTimer&&=(clearTimeout(this._highlightTimer),0)}restoreStoredViewMode(){try{let e=localStorage.getItem(dp);fp(e)&&(this.viewMode=e)}catch{}}setViewMode(e){this.viewMode=e;try{localStorage.setItem(dp,e)}catch{}}get hasSelection(){return Array.isArray(this.selectedChanges)&&this.selectedChanges.length>0}recomputeDiffs(){let e=this.dmp.diff_linesToChars_(this.originalSpec,this.modifiedSpec),t=this.dmp.diff_main(e.chars1,e.chars2,!1);this.dmp.diff_charsToLines_(t,e.lineArray);let n=[],r=[],i=[],a=this.originalHighlighted||{},o=this.modifiedHighlighted||{},s=new Map,c=new Map,l=1,u=1;for(let[e,d]of t){let t=d.split(` +`);t[t.length-1]===``&&t.pop();for(let d of t)if(e===0){let e=n.length,t={type:`equal`,content:d,highlightedContent:a[l]||o[u],originalLineNum:l,modifiedLineNum:u};n.push(t),r.push(t),i.push(t),s.set(l,e),c.set(u,e),l++,u++}else if(e===-1){let e=n.length,t={type:`removed`,content:d,highlightedContent:a[l],originalLineNum:l};n.push(t),r.push(cp),i.push(t),s.set(l,e),l++}else if(e===1){let e=r.length,t={type:`added`,content:d,highlightedContent:o[u],modifiedLineNum:u};r.push(t),n.push(cp),i.push(t),c.set(u,e),u++}}this.cachedLeft=n,this.cachedRight=r,this.cachedUnified=i,this.originalLineToIndex=s,this.modifiedLineToIndex=c,this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_applyHighlights(){let e=this.originalHighlighted||{},t=this.modifiedHighlighted||{};for(let n of this.cachedLeft)n.type!==`spacer`&&(n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));for(let n of this.cachedRight)n.type!==`spacer`&&(n.modifiedLineNum?n.highlightedContent=t[n.modifiedLineNum]:n.originalLineNum&&(n.highlightedContent=e[n.originalLineNum]));for(let n of this.cachedUnified)n.type!==`spacer`&&(n.originalLineNum&&n.modifiedLineNum?n.highlightedContent=e[n.originalLineNum]||t[n.modifiedLineNum]:n.originalLineNum?n.highlightedContent=e[n.originalLineNum]:n.modifiedLineNum&&(n.highlightedContent=t[n.modifiedLineNum]));this._renderStart=[-1,-1],this._renderEnd=[-1,-1]}_setupScrolling(e=0,t=0){this._teardownScrolling(),this._renderStart=[-1,-1],this._renderEnd=[-1,-1],this._lastScrollTop=0,this._pendingJump=[e,t];let n=Array.from(this.renderRoot.querySelectorAll(`.diff-panel`));if(this._panels=n,n.length){for(let e of n)e.scrollTop=0;this._resizeObserver=new ResizeObserver(()=>{this._markDirty()});for(let e=0;e{this._rendering||this._syncing||(this._lastScrollTop=t.scrollTop,this.viewMode===`side-by-side`&&n.length===2&&(this._syncing=!0,n[1-e].scrollTop=this._lastScrollTop,this._syncing=!1),this._markDirty())};t.addEventListener(`scroll`,r,{passive:!0}),this._scrollListeners.push(()=>t.removeEventListener(`scroll`,r))}this._markDirty()}}_teardownScrolling(){for(let e of this._scrollListeners)e();this._scrollListeners=[],this._resizeObserver?.disconnect(),this._resizeObserver=null,this._rafId&&=(cancelAnimationFrame(this._rafId),0),this._scrollDirty=!1,this._panels=[]}_markDirty(){this._scrollDirty||(this._scrollDirty=!0,this._rafId=requestAnimationFrame(()=>{this._scrollDirty=!1,this._rafId=0,this._updateAllPanels()}))}_updateAllPanels(){let e=this._lastScrollTop;for(let t=0;t0||this._pendingJump[1]>0){let[e,t]=this._pendingJump;this._pendingJump=[0,0],requestAnimationFrame(()=>this.scrollToLine(e,t))}}_getLinesForPanel(e){return this.viewMode===`unified`?this.cachedUnified:e===0?this.cachedLeft:this.cachedRight}_getSideForPanel(e){return this.viewMode===`unified`?`unified`:e===0?`left`:`right`}_renderRange(e,t,n,r,i,a){let o=e.querySelector(`.scroll-pad-top`),s=e.querySelector(`.visible-lines`),c=e.querySelector(`.scroll-pad-bottom`);if(!o||!s||!c)return;this._highlightedElement&&=null,this._rendering=!0;let l=e.scrollTop;o.style.height=`${n*lp}px`,c.style.height=`${(i-r)*lp}px`;let u=document.createDocumentFragment();for(let e=n;e0&&(n=this.originalLineToIndex.get(e)??-1),n<0&&t&&t>0&&(n=this.modifiedLineToIndex.get(t)??-1),n<0)return;let r=this._panels[0];if(!r)return;let i=this._viewportHeight[0]||r.clientHeight,a=Math.max(0,n*lp-i/2+lp/2);r.scrollTop=a,this._panels.length>1&&(this._panels[1].scrollTop=a),await new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(e)));let o=this._findScrollTarget(e,t);o&&(this._highlightTimer&&=(clearTimeout(this._highlightTimer),0),this._highlightedElement&&=(this._highlightedElement.classList.remove(`highlight`),null),o.classList.add(`highlight`),this._highlightedElement=o,this._highlightTimer=window.setTimeout(()=>{o?.classList.remove(`highlight`),this._highlightedElement=null,this._highlightTimer=0},2e3))}_findScrollTarget(e,t){if(this.viewMode===`side-by-side`&&this._panels.length>1){if(e>0){let t=this._panels[0].querySelector(`[data-original-line="${e}"]`);if(t)return t}if(t&&t>0){let e=this._panels[1].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(t&&t>0){let e=this._panels[0].querySelector(`[data-modified-line="${t}"]`);if(e)return e}if(e>0){let t=this._panels[1].querySelector(`[data-original-line="${e}"]`);if(t)return t}return null}let n=this._panels[0];if(!n)return null;if(e>0){let t=n.querySelector(`[data-original-line="${e}"]`);if(t)return t}return t&&t>0?n.querySelector(`[data-modified-line="${t}"]`):null}renderControls(){return T`
${this.hasSelection?T` Focused File Diff - `:ct} + `:st} ${this.contentMode===`file`?T` Side by Side Unified - `:ct} + `:st}
- `}renderFocusedDiff(){!this._cachedFocusedSections.length&&this.selectedChanges.length&&(this._cachedFocusedSections=Af(this.selectedChanges,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{}));let e=this._cachedFocusedSections;if(!e.length)return T` + `}renderFocusedDiff(){!this._cachedFocusedSections.length&&this.selectedChanges.length&&(this._cachedFocusedSections=kf(this.selectedChanges,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{}));let e=this._cachedFocusedSections;if(!e.length)return T` ${this.renderControls()}
No focused changes available
`;let t=[],n=[];for(let r of e){let e=T`

${r.title}

- ${r.path?T``:ct} + ${r.path?T``:st}
- ${r.breaking?T`
Breaking Change
`:ct} + ${r.breaking?T`
Breaking Change
`:st}
`,i=r.valueBlocks.find(e=>e.tone===`removed`),a=r.valueBlocks.find(e=>e.tone===`added`),o=r.contextBlocks.find(e=>e.tone===`removed`),s=r.contextBlocks.find(e=>e.tone===`added`),c=!!(i||o),l=!!(a||s);c&&t.push(T`
${e} - ${i?this.renderValueBlock(i):ct} - ${o?this.renderContextBlock(o):ct} + ${i?this.renderValueBlock(i):st} + ${o?this.renderContextBlock(o):st}
`),l&&n.push(T`
${e} - ${a?this.renderValueBlock(a):ct} - ${s?this.renderContextBlock(s):ct} + ${a?this.renderValueBlock(a):st} + ${s?this.renderContextBlock(s):st}
`)}let r=t.length>0,i=n.length>0;return r&&!i?T` ${this.renderControls()} @@ -7104,7 +7124,7 @@
- `}};vp.styles=Pse,fp([Tt()],vp.prototype,`originalSpec`,void 0),fp([Tt()],vp.prototype,`modifiedSpec`,void 0),fp([Tt({type:Object})],vp.prototype,`originalHighlighted`,void 0),fp([Tt({type:Object})],vp.prototype,`modifiedHighlighted`,void 0),fp([Tt({type:Array})],vp.prototype,`selectedChanges`,void 0),fp([Et()],vp.prototype,`contentMode`,void 0),fp([Et()],vp.prototype,`viewMode`,void 0),vp=fp([wt(`pb33f-diff-viewer`)],vp);var Gse=xe` + `}};pp.styles=Lse,sp([wt()],pp.prototype,`originalSpec`,void 0),sp([wt()],pp.prototype,`modifiedSpec`,void 0),sp([wt({type:Object})],pp.prototype,`originalHighlighted`,void 0),sp([wt({type:Object})],pp.prototype,`modifiedHighlighted`,void 0),sp([wt({type:Array})],pp.prototype,`selectedChanges`,void 0),sp([Tt()],pp.prototype,`contentMode`,void 0),sp([Tt()],pp.prototype,`viewMode`,void 0),pp=sp([Ct(`pb33f-diff-viewer`)],pp);var Zse=xe` :host { display: block; } @@ -7131,9 +7151,9 @@ .change-card { padding-bottom: var(--global-padding); } -`,yp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bp=class extends Ct{constructor(){super(...arguments),this.changes=[],this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.compact=!1,this._cachedSections=null}willUpdate(e){(e.has(`changes`)||e.has(`originalSpec`)||e.has(`modifiedSpec`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedSections=null)}_getSections(){return this._cachedSections===null?this.changes.length?(this._cachedSections=Af(this.changes,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{},this.compact?5:void 0),this._cachedSections):[]:this._cachedSections}renderValueBlock(e){return T` +`,mp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hp=class extends St{constructor(){super(...arguments),this.changes=[],this.originalSpec=``,this.modifiedSpec=``,this.originalHighlighted={},this.modifiedHighlighted={},this.compact=!1,this._cachedSections=null}willUpdate(e){(e.has(`changes`)||e.has(`originalSpec`)||e.has(`modifiedSpec`)||e.has(`originalHighlighted`)||e.has(`modifiedHighlighted`))&&(this._cachedSections=null)}_getSections(){return this._cachedSections===null?this.changes.length?(this._cachedSections=kf(this.changes,this.originalSpec,this.modifiedSpec,this.originalHighlighted||{},this.modifiedHighlighted||{},this.compact?5:void 0),this._cachedSections):[]:this._cachedSections}renderValueBlock(e){return T`
- ${this.compact?ct:T`
${e.title}
`} + ${this.compact?st:T`
${e.title}
`}
${e.lines.map(e=>T`
${e}
`)}
@@ -7142,11 +7162,11 @@
${r} ${i} - ${e.highlightedContent?Ft(e.highlightedContent):e.content} + ${e.highlightedContent?Pt(e.highlightedContent):e.content}
`}renderContextBlock(e){return T`
- ${this.compact?ct:T`
${e.title}
`} + ${this.compact?st:T`
${e.title}
`}
${e.lines.map(t=>this.renderDiffLine(t,e.tone))}
@@ -7155,27 +7175,27 @@
${e.map(e=>{let t=e.valueBlocks.find(e=>e.tone===`removed`),n=e.valueBlocks.find(e=>e.tone===`added`),r=e.contextBlocks.find(e=>e.tone===`removed`),i=e.contextBlocks.find(e=>e.tone===`added`);return this.compact?T`
- ${e.breaking?T`
Breaking
`:ct} - ${r?this.renderContextBlock(r):ct} - ${i?this.renderContextBlock(i):ct} + ${e.breaking?T`
Breaking
`:st} + ${r?this.renderContextBlock(r):st} + ${i?this.renderContextBlock(i):st}
`:T`

${e.title}

- ${e.path?T``:ct} + ${e.path?T``:st}
- ${e.breaking?T`
Breaking
`:ct} + ${e.breaking?T`
Breaking
`:st}
- ${t?this.renderValueBlock(t):ct} - ${r?this.renderContextBlock(r):ct} - ${n?this.renderValueBlock(n):ct} - ${i?this.renderContextBlock(i):ct} + ${t?this.renderValueBlock(t):st} + ${r?this.renderContextBlock(r):st} + ${n?this.renderValueBlock(n):st} + ${i?this.renderContextBlock(i):st}
`})}
- `:ct}};bp.styles=[Cf,Gse],yp([Tt({type:Array})],bp.prototype,`changes`,void 0),yp([Tt()],bp.prototype,`originalSpec`,void 0),yp([Tt()],bp.prototype,`modifiedSpec`,void 0),yp([Tt({type:Object})],bp.prototype,`originalHighlighted`,void 0),yp([Tt({type:Object})],bp.prototype,`modifiedHighlighted`,void 0),yp([Tt({type:Boolean})],bp.prototype,`compact`,void 0),bp=yp([wt(`pb33f-focused-diff-panel`)],bp);var Kse=[Sa,xe` + `:st}};hp.styles=[xf,Zse],mp([wt({type:Array})],hp.prototype,`changes`,void 0),mp([wt()],hp.prototype,`originalSpec`,void 0),mp([wt()],hp.prototype,`modifiedSpec`,void 0),mp([wt({type:Object})],hp.prototype,`originalHighlighted`,void 0),mp([wt({type:Object})],hp.prototype,`modifiedHighlighted`,void 0),mp([wt({type:Boolean})],hp.prototype,`compact`,void 0),hp=mp([Ct(`pb33f-focused-diff-panel`)],hp);var gp=[_a,xe` :host { display: flex; flex-direction: column; @@ -7995,7 +8015,7 @@ padding-bottom: var(--global-padding); border-bottom: 1px dashed var(--hrcolor); } -`];function xp(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Sp=xe` +`];function _p(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Qse=xe` :host { --indicator-color: var(--sl-color-primary-600); --track-color: var(--sl-color-neutral-200); @@ -8229,11 +8249,11 @@ .tab-group--end ::slotted(sl-tab-panel) { --padding: 0 var(--sl-spacing-medium); } -`,qse=xe` +`,$se=xe` :host { display: contents; } -`,Cp=class extends _n{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>{this.emit(`sl-resize`,{detail:{entries:e}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){let e=this.shadowRoot.querySelector(`slot`);if(e!==null){let t=e.assignedElements({flatten:!0});this.observedElements.forEach(e=>this.resizeObserver.unobserve(e)),this.observedElements=[],t.forEach(e=>{this.resizeObserver.observe(e),this.observedElements.push(e)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return T` `}};Cp.styles=[hn,qse],w([Tt({type:Boolean,reflect:!0})],Cp.prototype,`disabled`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Cp.prototype,`handleDisabledChange`,1);function Jse(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}function Yse(e,t,n=`vertical`,r=`smooth`){let i=Jse(e,t),a=i.top+t.scrollTop,o=i.left+t.scrollLeft,s=t.scrollLeft,c=t.scrollLeft+t.offsetWidth,l=t.scrollTop,u=t.scrollTop+t.offsetHeight;(n===`horizontal`||n===`both`)&&(oc&&t.scrollTo({left:o-t.offsetWidth+e.clientWidth,behavior:r})),(n===`vertical`||n===`both`)&&(au&&t.scrollTo({top:a-t.offsetHeight+e.clientHeight,behavior:r}))}var Xse=xe` +`,vp=class extends _n{constructor(){super(...arguments),this.observedElements=[],this.disabled=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver(e=>{this.emit(`sl-resize`,{detail:{entries:e}})}),this.disabled||this.startObserver()}disconnectedCallback(){super.disconnectedCallback(),this.stopObserver()}handleSlotChange(){this.disabled||this.startObserver()}startObserver(){let e=this.shadowRoot.querySelector(`slot`);if(e!==null){let t=e.assignedElements({flatten:!0});this.observedElements.forEach(e=>this.resizeObserver.unobserve(e)),this.observedElements=[],t.forEach(e=>{this.resizeObserver.observe(e),this.observedElements.push(e)})}}stopObserver(){this.resizeObserver.disconnect()}handleDisabledChange(){this.disabled?this.stopObserver():this.startObserver()}render(){return T` `}};vp.styles=[hn,$se],w([wt({type:Boolean,reflect:!0})],vp.prototype,`disabled`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],vp.prototype,`handleDisabledChange`,1);function ece(e,t){return{top:Math.round(e.getBoundingClientRect().top-t.getBoundingClientRect().top),left:Math.round(e.getBoundingClientRect().left-t.getBoundingClientRect().left)}}function yp(e,t,n=`vertical`,r=`smooth`){let i=ece(e,t),a=i.top+t.scrollTop,o=i.left+t.scrollLeft,s=t.scrollLeft,c=t.scrollLeft+t.offsetWidth,l=t.scrollTop,u=t.scrollTop+t.offsetHeight;(n===`horizontal`||n===`both`)&&(oc&&t.scrollTo({left:o-t.offsetWidth+e.clientWidth,behavior:r})),(n===`vertical`||n===`both`)&&(au&&t.scrollTo({top:a-t.offsetHeight+e.clientHeight,behavior:r}))}var tce=xe` :host { display: inline-block; color: var(--sl-color-neutral-600); @@ -8280,7 +8300,7 @@ .icon-button__icon { pointer-events: none; } -`,wp=class extends _n{constructor(){super(...arguments),this.hasFocus=!1,this.label=``,this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){let e=!!this.href,t=e?cp`a`:cp`button`;return up` +`,bp=class extends _n{constructor(){super(...arguments),this.hasFocus=!1,this.label=``,this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}render(){let e=!!this.href,t=e?rp`a`:rp`button`;return ap` <${t} part="base" class=${vn({"icon-button":!0,"icon-button--disabled":!e&&this.disabled,"icon-button--focused":this.hasFocus})} @@ -8306,7 +8326,7 @@ aria-hidden="true" > - `}};wp.styles=[hn,Xse],wp.dependencies={"sl-icon":ua},w([kt(`.icon-button`)],wp.prototype,`button`,2),w([Et()],wp.prototype,`hasFocus`,2),w([Tt()],wp.prototype,`name`,2),w([Tt()],wp.prototype,`library`,2),w([Tt()],wp.prototype,`src`,2),w([Tt()],wp.prototype,`href`,2),w([Tt()],wp.prototype,`target`,2),w([Tt()],wp.prototype,`download`,2),w([Tt()],wp.prototype,`label`,2),w([Tt({type:Boolean,reflect:!0})],wp.prototype,`disabled`,2);var Tp=class extends _n{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new pn(this),this.hasScrollControls=!1,this.shouldHideScrollStartButton=!1,this.shouldHideScrollEndButton=!1,this.placement=`top`,this.activation=`auto`,this.noScrollControls=!1,this.fixedScrollControls=!1,this.scrollOffset=1}connectedCallback(){let e=Promise.all([customElements.whenDefined(`sl-tab`),customElements.whenDefined(`sl-tab-panel`)]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{let t=e.filter(({target:e})=>{if(e===this)return!0;if(e.closest(`sl-tab-group`)!==this)return!1;let t=e.tagName.toLowerCase();return t===`sl-tab`||t===`sl-tab-panel`});if(t.length!==0){if(t.some(e=>![`aria-labelledby`,`aria-controls`].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),t.some(e=>e.attributeName===`disabled`))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName===`active`)){let e=t.filter(e=>e.attributeName===`active`&&e.target.tagName.toLowerCase()===`sl-tab`).map(e=>e.target).find(e=>e.active);e&&this.setActiveTab(e)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:[`active`,`disabled`,`name`,`panel`],childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then(()=>{new IntersectionObserver((e,t)=>{e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.getActiveTab()??this.tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector(`slot[name="nav"]`).assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(e=>e.tagName.toLowerCase()===`sl-tab-panel`)}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){let t=e.target.closest(`sl-tab`);t?.closest(`sl-tab-group`)===this&&t!==null&&this.setActiveTab(t,{scrollBehavior:`smooth`})}handleKeyDown(e){let t=e.target.closest(`sl-tab`);if(t?.closest(`sl-tab-group`)===this&&([`Enter`,` `].includes(e.key)&&t!==null&&(this.setActiveTab(t,{scrollBehavior:`smooth`}),e.preventDefault()),[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key))){let t=this.tabs.find(e=>e.matches(`:focus`)),n=this.localize.dir()===`rtl`,r=null;if(t?.tagName.toLowerCase()===`sl-tab`){if(e.key===`Home`)r=this.focusableTabs[0];else if(e.key===`End`)r=this.focusableTabs[this.focusableTabs.length-1];else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowRight`:`ArrowLeft`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowUp`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`backward`)}else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowLeft`:`ArrowRight`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowDown`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`forward`)}if(!r)return;r.tabIndex=0,r.focus({preventScroll:!0}),this.activation===`auto`?this.setActiveTab(r,{scrollBehavior:`smooth`}):this.tabs.forEach(e=>{e.tabIndex=e===r?0:-1}),[`top`,`bottom`].includes(this.placement)&&Yse(r,this.nav,`horizontal`),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:`smooth`})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:`smooth`})}setActiveTab(e,t){if(t=oe({emitEvents:!0,scrollBehavior:`auto`},t),e!==this.activeTab&&!e.disabled){let n=this.activeTab;this.activeTab=e,this.tabs.forEach(e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1}),this.panels.forEach(e=>e.active=e.name===this.activeTab?.panel),this.syncIndicator(),[`top`,`bottom`].includes(this.placement)&&Yse(this.activeTab,this.nav,`horizontal`,t.scrollBehavior),t.emitEvents&&(n&&this.emit(`sl-tab-hide`,{detail:{name:n.panel}}),this.emit(`sl-tab-show`,{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(e=>{let t=this.panels.find(t=>t.name===e.panel);t&&(e.setAttribute(`aria-controls`,t.getAttribute(`id`)),t.setAttribute(`aria-labelledby`,e.getAttribute(`id`)))})}repositionIndicator(){let e=this.getActiveTab();if(!e)return;let t=e.clientWidth,n=e.clientHeight,r=this.localize.dir()===`rtl`,i=this.getAllTabs(),a=i.slice(0,i.indexOf(e)).reduce((e,t)=>({left:e.left+t.clientWidth,top:e.top+t.clientHeight}),{left:0,top:0});switch(this.placement){case`top`:case`bottom`:this.indicator.style.width=`${t}px`,this.indicator.style.height=`auto`,this.indicator.style.translate=r?`${-1*a.left}px`:`${a.left}px`;break;case`start`:case`end`:this.indicator.style.width=`auto`,this.indicator.style.height=`${n}px`,this.indicator.style.translate=`0 ${a.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(e=>!e.disabled),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(e,t){let n=null,r=t===`forward`?1:-1,i=e+r;for(;e=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return this.localize.dir()===`rtl`?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.hasScrollControls=!this.noScrollControls&&[`top`,`bottom`].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display=`block`,this.repositionIndicator()):this.indicator.style.display=`none`}show(e){let t=this.tabs.find(t=>t.panel===e);t&&this.setActiveTab(t,{scrollBehavior:`smooth`})}render(){let e=this.localize.dir()===`rtl`;return T` + `}};bp.styles=[hn,tce],bp.dependencies={"sl-icon":oa},w([Ot(`.icon-button`)],bp.prototype,`button`,2),w([Tt()],bp.prototype,`hasFocus`,2),w([wt()],bp.prototype,`name`,2),w([wt()],bp.prototype,`library`,2),w([wt()],bp.prototype,`src`,2),w([wt()],bp.prototype,`href`,2),w([wt()],bp.prototype,`target`,2),w([wt()],bp.prototype,`download`,2),w([wt()],bp.prototype,`label`,2),w([wt({type:Boolean,reflect:!0})],bp.prototype,`disabled`,2);var xp=class extends _n{constructor(){super(...arguments),this.tabs=[],this.focusableTabs=[],this.panels=[],this.localize=new pn(this),this.hasScrollControls=!1,this.shouldHideScrollStartButton=!1,this.shouldHideScrollEndButton=!1,this.placement=`top`,this.activation=`auto`,this.noScrollControls=!1,this.fixedScrollControls=!1,this.scrollOffset=1}connectedCallback(){let e=Promise.all([customElements.whenDefined(`sl-tab`),customElements.whenDefined(`sl-tab-panel`)]);super.connectedCallback(),this.resizeObserver=new ResizeObserver(()=>{this.repositionIndicator(),this.updateScrollControls()}),this.mutationObserver=new MutationObserver(e=>{let t=e.filter(({target:e})=>{if(e===this)return!0;if(e.closest(`sl-tab-group`)!==this)return!1;let t=e.tagName.toLowerCase();return t===`sl-tab`||t===`sl-tab-panel`});if(t.length!==0){if(t.some(e=>![`aria-labelledby`,`aria-controls`].includes(e.attributeName))&&setTimeout(()=>this.setAriaLabels()),t.some(e=>e.attributeName===`disabled`))this.syncTabsAndPanels();else if(t.some(e=>e.attributeName===`active`)){let e=t.filter(e=>e.attributeName===`active`&&e.target.tagName.toLowerCase()===`sl-tab`).map(e=>e.target).find(e=>e.active);e&&this.setActiveTab(e)}}}),this.updateComplete.then(()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:[`active`,`disabled`,`name`,`panel`],childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),e.then(()=>{new IntersectionObserver((e,t)=>{e[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(this.getActiveTab()??this.tabs[0],{emitEvents:!1}),t.unobserve(e[0].target))}).observe(this.tabGroup)})})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect(),this.nav&&((t=this.resizeObserver)==null||t.unobserve(this.nav))}getAllTabs(){return this.shadowRoot.querySelector(`slot[name="nav"]`).assignedElements()}getAllPanels(){return[...this.body.assignedElements()].filter(e=>e.tagName.toLowerCase()===`sl-tab-panel`)}getActiveTab(){return this.tabs.find(e=>e.active)}handleClick(e){let t=e.target.closest(`sl-tab`);t?.closest(`sl-tab-group`)===this&&t!==null&&this.setActiveTab(t,{scrollBehavior:`smooth`})}handleKeyDown(e){let t=e.target.closest(`sl-tab`);if(t?.closest(`sl-tab-group`)===this&&([`Enter`,` `].includes(e.key)&&t!==null&&(this.setActiveTab(t,{scrollBehavior:`smooth`}),e.preventDefault()),[`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key))){let t=this.tabs.find(e=>e.matches(`:focus`)),n=this.localize.dir()===`rtl`,r=null;if(t?.tagName.toLowerCase()===`sl-tab`){if(e.key===`Home`)r=this.focusableTabs[0];else if(e.key===`End`)r=this.focusableTabs[this.focusableTabs.length-1];else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowRight`:`ArrowLeft`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowUp`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`backward`)}else if([`top`,`bottom`].includes(this.placement)&&e.key===(n?`ArrowLeft`:`ArrowRight`)||[`start`,`end`].includes(this.placement)&&e.key===`ArrowDown`){let e=this.tabs.findIndex(e=>e===t);r=this.findNextFocusableTab(e,`forward`)}if(!r)return;r.tabIndex=0,r.focus({preventScroll:!0}),this.activation===`auto`?this.setActiveTab(r,{scrollBehavior:`smooth`}):this.tabs.forEach(e=>{e.tabIndex=e===r?0:-1}),[`top`,`bottom`].includes(this.placement)&&yp(r,this.nav,`horizontal`),e.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:`smooth`})}handleScrollToEnd(){this.nav.scroll({left:this.localize.dir()===`rtl`?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:`smooth`})}setActiveTab(e,t){if(t=oe({emitEvents:!0,scrollBehavior:`auto`},t),e!==this.activeTab&&!e.disabled){let n=this.activeTab;this.activeTab=e,this.tabs.forEach(e=>{e.active=e===this.activeTab,e.tabIndex=e===this.activeTab?0:-1}),this.panels.forEach(e=>e.active=e.name===this.activeTab?.panel),this.syncIndicator(),[`top`,`bottom`].includes(this.placement)&&yp(this.activeTab,this.nav,`horizontal`,t.scrollBehavior),t.emitEvents&&(n&&this.emit(`sl-tab-hide`,{detail:{name:n.panel}}),this.emit(`sl-tab-show`,{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach(e=>{let t=this.panels.find(t=>t.name===e.panel);t&&(e.setAttribute(`aria-controls`,t.getAttribute(`id`)),t.setAttribute(`aria-labelledby`,e.getAttribute(`id`)))})}repositionIndicator(){let e=this.getActiveTab();if(!e)return;let t=e.clientWidth,n=e.clientHeight,r=this.localize.dir()===`rtl`,i=this.getAllTabs(),a=i.slice(0,i.indexOf(e)).reduce((e,t)=>({left:e.left+t.clientWidth,top:e.top+t.clientHeight}),{left:0,top:0});switch(this.placement){case`top`:case`bottom`:this.indicator.style.width=`${t}px`,this.indicator.style.height=`auto`,this.indicator.style.translate=r?`${-1*a.left}px`:`${a.left}px`;break;case`start`:case`end`:this.indicator.style.width=`auto`,this.indicator.style.height=`${n}px`,this.indicator.style.translate=`0 ${a.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs(),this.focusableTabs=this.tabs.filter(e=>!e.disabled),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then(()=>this.updateScrollControls())}findNextFocusableTab(e,t){let n=null,r=t===`forward`?1:-1,i=e+r;for(;e=this.nav.scrollWidth-this.scrollOffset}scrollFromStart(){return this.localize.dir()===`rtl`?-this.nav.scrollLeft:this.nav.scrollLeft}updateScrollControls(){this.hasScrollControls=!this.noScrollControls&&[`top`,`bottom`].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1,this.updateScrollButtons()}syncIndicator(){this.getActiveTab()?(this.indicator.style.display=`block`,this.repositionIndicator()):this.indicator.style.display=`none`}show(e){let t=this.tabs.find(t=>t.panel===e);t&&this.setActiveTab(t,{scrollBehavior:`smooth`})}render(){let e=this.localize.dir()===`rtl`;return T`
- `}};Tp.styles=[hn,Sp],Tp.dependencies={"sl-icon-button":wp,"sl-resize-observer":Cp},w([kt(`.tab-group`)],Tp.prototype,`tabGroup`,2),w([kt(`.tab-group__body`)],Tp.prototype,`body`,2),w([kt(`.tab-group__nav`)],Tp.prototype,`nav`,2),w([kt(`.tab-group__indicator`)],Tp.prototype,`indicator`,2),w([Et()],Tp.prototype,`hasScrollControls`,2),w([Et()],Tp.prototype,`shouldHideScrollStartButton`,2),w([Et()],Tp.prototype,`shouldHideScrollEndButton`,2),w([Tt()],Tp.prototype,`placement`,2),w([Tt()],Tp.prototype,`activation`,2),w([Tt({attribute:`no-scroll-controls`,type:Boolean})],Tp.prototype,`noScrollControls`,2),w([Tt({attribute:`fixed-scroll-controls`,type:Boolean})],Tp.prototype,`fixedScrollControls`,2),w([Dt({passive:!0})],Tp.prototype,`updateScrollButtons`,1),w([mn(`noScrollControls`,{waitUntilFirstUpdate:!0})],Tp.prototype,`updateScrollControls`,1),w([mn(`placement`,{waitUntilFirstUpdate:!0})],Tp.prototype,`syncIndicator`,1),Tp.define(`sl-tab-group`);var Zse=(e,t)=>{let n=0;return function(...r){window.clearTimeout(n),n=window.setTimeout(()=>{e.call(this,...r)},t)}},Ep=(e,t,n)=>{let r=e[t];e[t]=function(...e){r.call(this,...e),n.call(this,r,...e)}};(()=>{if(typeof window<`u`&&!(`onscrollend`in window)){let e=new Set,t=new WeakMap,n=t=>{for(let n of t.changedTouches)e.add(n.identifier)},r=t=>{for(let n of t.changedTouches)e.delete(n.identifier)};document.addEventListener(`touchstart`,n,!0),document.addEventListener(`touchend`,r,!0),document.addEventListener(`touchcancel`,r,!0),Ep(EventTarget.prototype,`addEventListener`,function(n,r){if(r!==`scrollend`)return;let i=Zse(()=>{e.size?i():this.dispatchEvent(new Event(`scrollend`))},100);n.call(this,`scroll`,i,{passive:!0}),t.set(this,i)}),Ep(EventTarget.prototype,`removeEventListener`,function(e,n){if(n!==`scrollend`)return;let r=t.get(this);r&&e.call(this,`scroll`,r,{passive:!0})})}})();var Dp=xe` + `}};xp.styles=[hn,Qse],xp.dependencies={"sl-icon-button":bp,"sl-resize-observer":vp},w([Ot(`.tab-group`)],xp.prototype,`tabGroup`,2),w([Ot(`.tab-group__body`)],xp.prototype,`body`,2),w([Ot(`.tab-group__nav`)],xp.prototype,`nav`,2),w([Ot(`.tab-group__indicator`)],xp.prototype,`indicator`,2),w([Tt()],xp.prototype,`hasScrollControls`,2),w([Tt()],xp.prototype,`shouldHideScrollStartButton`,2),w([Tt()],xp.prototype,`shouldHideScrollEndButton`,2),w([wt()],xp.prototype,`placement`,2),w([wt()],xp.prototype,`activation`,2),w([wt({attribute:`no-scroll-controls`,type:Boolean})],xp.prototype,`noScrollControls`,2),w([wt({attribute:`fixed-scroll-controls`,type:Boolean})],xp.prototype,`fixedScrollControls`,2),w([Et({passive:!0})],xp.prototype,`updateScrollButtons`,1),w([mn(`noScrollControls`,{waitUntilFirstUpdate:!0})],xp.prototype,`updateScrollControls`,1),w([mn(`placement`,{waitUntilFirstUpdate:!0})],xp.prototype,`syncIndicator`,1),xp.define(`sl-tab-group`);var Sp=(e,t)=>{let n=0;return function(...r){window.clearTimeout(n),n=window.setTimeout(()=>{e.call(this,...r)},t)}},Cp=(e,t,n)=>{let r=e[t];e[t]=function(...e){r.call(this,...e),n.call(this,r,...e)}};(()=>{if(typeof window<`u`&&!(`onscrollend`in window)){let e=new Set,t=new WeakMap,n=t=>{for(let n of t.changedTouches)e.add(n.identifier)},r=t=>{for(let n of t.changedTouches)e.delete(n.identifier)};document.addEventListener(`touchstart`,n,!0),document.addEventListener(`touchend`,r,!0),document.addEventListener(`touchcancel`,r,!0),Cp(EventTarget.prototype,`addEventListener`,function(n,r){if(r!==`scrollend`)return;let i=Sp(()=>{e.size?i():this.dispatchEvent(new Event(`scrollend`))},100);n.call(this,`scroll`,i,{passive:!0}),t.set(this,i)}),Cp(EventTarget.prototype,`removeEventListener`,function(e,n){if(n!==`scrollend`)return;let r=t.get(this);r&&e.call(this,`scroll`,r,{passive:!0})})}})();var nce=xe` :host { --padding: 0; @@ -8369,12 +8389,12 @@ display: block; padding: var(--padding); } -`,Qse=0,Op=class extends _n{constructor(){super(...arguments),this.attrId=++Qse,this.componentId=`sl-tab-panel-${this.attrId}`,this.name=``,this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute(`role`,`tabpanel`)}handleActiveChange(){this.setAttribute(`aria-hidden`,this.active?`false`:`true`)}render(){return T` +`,wp=0,Tp=class extends _n{constructor(){super(...arguments),this.attrId=++wp,this.componentId=`sl-tab-panel-${this.attrId}`,this.name=``,this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute(`role`,`tabpanel`)}handleActiveChange(){this.setAttribute(`aria-hidden`,this.active?`false`:`true`)}render(){return T` - `}};Op.styles=[hn,Dp],w([Tt({reflect:!0})],Op.prototype,`name`,2),w([Tt({type:Boolean,reflect:!0})],Op.prototype,`active`,2),w([mn(`active`)],Op.prototype,`handleActiveChange`,1),Op.define(`sl-tab-panel`);var $se=xe` + `}};Tp.styles=[hn,nce],w([wt({reflect:!0})],Tp.prototype,`name`,2),w([wt({type:Boolean,reflect:!0})],Tp.prototype,`active`,2),w([mn(`active`)],Tp.prototype,`handleActiveChange`,1),Tp.define(`sl-tab-panel`);var Ep=xe` :host { display: inline-block; } @@ -8439,7 +8459,7 @@ outline-offset: -3px; } } -`,kp=0,Ap=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.attrId=++kp,this.componentId=`sl-tab-${this.attrId}`,this.panel=``,this.active=!1,this.closable=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tab`)}handleCloseClick(e){e.stopPropagation(),this.emit(`sl-close`)}handleActiveChange(){this.setAttribute(`aria-selected`,this.active?`true`:`false`)}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.tabIndex=this.disabled&&!this.active?-1:0}render(){return this.id=this.id.length>0?this.id:this.componentId,T` +`,Dp=0,Op=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.attrId=++Dp,this.componentId=`sl-tab-${this.attrId}`,this.panel=``,this.active=!1,this.closable=!1,this.disabled=!1,this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.setAttribute(`role`,`tab`)}handleCloseClick(e){e.stopPropagation(),this.emit(`sl-close`)}handleActiveChange(){this.setAttribute(`aria-selected`,this.active?`true`:`false`)}handleDisabledChange(){this.setAttribute(`aria-disabled`,this.disabled?`true`:`false`),this.tabIndex=this.disabled&&!this.active?-1:0}render(){return this.id=this.id.length>0?this.id:this.componentId,T`
`:``}
- `}};Ap.styles=[hn,$se],Ap.dependencies={"sl-icon-button":wp},w([kt(`.tab`)],Ap.prototype,`tab`,2),w([Tt({reflect:!0})],Ap.prototype,`panel`,2),w([Tt({type:Boolean,reflect:!0})],Ap.prototype,`active`,2),w([Tt({type:Boolean,reflect:!0})],Ap.prototype,`closable`,2),w([Tt({type:Boolean,reflect:!0})],Ap.prototype,`disabled`,2),w([Tt({type:Number,reflect:!0})],Ap.prototype,`tabIndex`,2),w([mn(`active`)],Ap.prototype,`handleActiveChange`,1),w([mn(`disabled`)],Ap.prototype,`handleDisabledChange`,1),Ap.define(`sl-tab`);var ece=xe` + `}};Op.styles=[hn,Ep],Op.dependencies={"sl-icon-button":bp},w([Ot(`.tab`)],Op.prototype,`tab`,2),w([wt({reflect:!0})],Op.prototype,`panel`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`active`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`closable`,2),w([wt({type:Boolean,reflect:!0})],Op.prototype,`disabled`,2),w([wt({type:Number,reflect:!0})],Op.prototype,`tabIndex`,2),w([mn(`active`)],Op.prototype,`handleActiveChange`,1),w([mn(`disabled`)],Op.prototype,`handleDisabledChange`,1),Op.define(`sl-tab`);var rce=xe` :host { --max-width: 20rem; --hide-delay: 0ms; @@ -8510,7 +8530,7 @@ user-select: none; -webkit-user-select: none; } -`;function tce(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}var jp=class extends _n{constructor(){super(),this.localize=new pn(this),this.content=``,this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger=`hover focus`,this.hoist=!1,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger(`hover`)){let e=wne(getComputedStyle(this).getPropertyValue(`--show-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}},this.handleMouseOut=()=>{if(this.hasTrigger(`hover`)){let e=wne(getComputedStyle(this).getPropertyValue(`--hide-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}},this.addEventListener(`blur`,this.handleBlur,!0),this.addEventListener(`focus`,this.handleFocus,!0),this.addEventListener(`click`,this.handleClick),this.addEventListener(`mouseover`,this.handleMouseOver),this.addEventListener(`mouseout`,this.handleMouseOut)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}async handleOpenChange(){var e,t;if(this.open){if(this.disabled)return;this.emit(`sl-show`),`CloseWatcher`in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener(`keydown`,this.handleDocumentKeyDown),await Pa(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:n}=Ma(this,`tooltip.show`,{dir:this.localize.dir()});await Na(this.popup.popup,t,n),this.popup.reposition(),this.emit(`sl-after-show`)}else{this.emit(`sl-hide`),(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await Pa(this.body);let{keyframes:e,options:n}=Ma(this,`tooltip.hide`,{dir:this.localize.dir()});await Na(this.popup.popup,e,n),this.popup.active=!1,this.body.hidden=!0,this.emit(`sl-after-hide`)}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,tce(this,`sl-after-show`)}async hide(){if(this.open)return this.open=!1,tce(this,`sl-after-hide`)}render(){return T` +`;function ice(e,t){return new Promise(n=>{function r(i){i.target===e&&(e.removeEventListener(t,r),n())}e.addEventListener(t,r)})}var kp=class extends _n{constructor(){super(),this.localize=new pn(this),this.content=``,this.placement=`top`,this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger=`hover focus`,this.hoist=!1,this.handleBlur=()=>{this.hasTrigger(`focus`)&&this.hide()},this.handleClick=()=>{this.hasTrigger(`click`)&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger(`focus`)&&this.show()},this.handleDocumentKeyDown=e=>{e.key===`Escape`&&(e.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger(`hover`)){let e=Ta(getComputedStyle(this).getPropertyValue(`--show-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),e)}},this.handleMouseOut=()=>{if(this.hasTrigger(`hover`)){let e=Ta(getComputedStyle(this).getPropertyValue(`--hide-delay`));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),e)}},this.addEventListener(`blur`,this.handleBlur,!0),this.addEventListener(`focus`,this.handleFocus,!0),this.addEventListener(`click`,this.handleClick),this.addEventListener(`mouseover`,this.handleMouseOver),this.addEventListener(`mouseout`,this.handleMouseOut)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.closeWatcher)==null||e.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(e){return this.trigger.split(` `).includes(e)}async handleOpenChange(){var e,t;if(this.open){if(this.disabled)return;this.emit(`sl-show`),`CloseWatcher`in window?((e=this.closeWatcher)==null||e.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener(`keydown`,this.handleDocumentKeyDown),await Da(this.body),this.body.hidden=!1,this.popup.active=!0;let{keyframes:t,options:n}=Ca(this,`tooltip.show`,{dir:this.localize.dir()});await wa(this.popup.popup,t,n),this.popup.reposition(),this.emit(`sl-after-show`)}else{this.emit(`sl-hide`),(t=this.closeWatcher)==null||t.destroy(),document.removeEventListener(`keydown`,this.handleDocumentKeyDown),await Da(this.body);let{keyframes:e,options:n}=Ca(this,`tooltip.hide`,{dir:this.localize.dir()});await wa(this.popup.popup,e,n),this.popup.active=!1,this.body.hidden=!0,this.emit(`sl-after-hide`)}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,ice(this,`sl-after-show`)}async hide(){if(this.open)return this.open=!1,ice(this,`sl-after-hide`)}render(){return T` ${this.content}
- `}};jp.styles=[hn,ece],jp.dependencies={"sl-popup":Ur},w([kt(`slot:not([name])`)],jp.prototype,`defaultSlot`,2),w([kt(`.tooltip__body`)],jp.prototype,`body`,2),w([kt(`sl-popup`)],jp.prototype,`popup`,2),w([Tt()],jp.prototype,`content`,2),w([Tt()],jp.prototype,`placement`,2),w([Tt({type:Boolean,reflect:!0})],jp.prototype,`disabled`,2),w([Tt({type:Number})],jp.prototype,`distance`,2),w([Tt({type:Boolean,reflect:!0})],jp.prototype,`open`,2),w([Tt({type:Number})],jp.prototype,`skidding`,2),w([Tt()],jp.prototype,`trigger`,2),w([Tt({type:Boolean})],jp.prototype,`hoist`,2),w([mn(`open`,{waitUntilFirstUpdate:!0})],jp.prototype,`handleOpenChange`,1),w([mn([`content`,`distance`,`hoist`,`placement`,`skidding`])],jp.prototype,`handleOptionsChange`,1),w([mn(`disabled`)],jp.prototype,`handleDisabledChange`,1),ja(`tooltip.show`,{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:`ease`}}),ja(`tooltip.hide`,{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:`ease`}}),jp.define(`sl-tooltip`);var Mp=[{max:276e4,value:6e4,unit:`minute`},{max:72e6,value:36e5,unit:`hour`},{max:5184e5,value:864e5,unit:`day`},{max:24192e5,value:6048e5,unit:`week`},{max:28512e6,value:2592e6,unit:`month`},{max:1/0,value:31536e6,unit:`year`}],Np=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.isoTime=``,this.relativeTime=``,this.date=new Date,this.format=`long`,this.numeric=`auto`,this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){let e=new Date,t=new Date(this.date);if(isNaN(t.getMilliseconds()))return this.relativeTime=``,this.isoTime=``,``;let n=t.getTime()-e.getTime(),{unit:r,value:i}=Mp.find(e=>Math.abs(n)this.requestUpdate(),e)}return T` `}};w([Et()],Np.prototype,`isoTime`,2),w([Et()],Np.prototype,`relativeTime`,2),w([Tt()],Np.prototype,`date`,2),w([Tt()],Np.prototype,`format`,2),w([Tt()],Np.prototype,`numeric`,2),w([Tt({type:Boolean})],Np.prototype,`sync`,2);function nce(e){let t={second:1e3,minute:6e4,hour:36e5,day:864e5}[e];return t-Date.now()%t}Np.define(`sl-relative-time`);var Pp=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.value=0,this.type=`decimal`,this.noGrouping=!1,this.currency=`USD`,this.currencyDisplay=`symbol`}render(){return isNaN(this.value)?``:this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};w([Tt({type:Number})],Pp.prototype,`value`,2),w([Tt()],Pp.prototype,`type`,2),w([Tt({attribute:`no-grouping`,type:Boolean})],Pp.prototype,`noGrouping`,2),w([Tt()],Pp.prototype,`currency`,2),w([Tt({attribute:`currency-display`})],Pp.prototype,`currencyDisplay`,2),w([Tt({attribute:`minimum-integer-digits`,type:Number})],Pp.prototype,`minimumIntegerDigits`,2),w([Tt({attribute:`minimum-fraction-digits`,type:Number})],Pp.prototype,`minimumFractionDigits`,2),w([Tt({attribute:`maximum-fraction-digits`,type:Number})],Pp.prototype,`maximumFractionDigits`,2),w([Tt({attribute:`minimum-significant-digits`,type:Number})],Pp.prototype,`minimumSignificantDigits`,2),w([Tt({attribute:`maximum-significant-digits`,type:Number})],Pp.prototype,`maximumSignificantDigits`,2),Pp.define(`sl-format-number`),wp.define(`sl-icon-button`);var rce=xe` + `}};kp.styles=[hn,rce],kp.dependencies={"sl-popup":Hr},w([Ot(`slot:not([name])`)],kp.prototype,`defaultSlot`,2),w([Ot(`.tooltip__body`)],kp.prototype,`body`,2),w([Ot(`sl-popup`)],kp.prototype,`popup`,2),w([wt()],kp.prototype,`content`,2),w([wt()],kp.prototype,`placement`,2),w([wt({type:Boolean,reflect:!0})],kp.prototype,`disabled`,2),w([wt({type:Number})],kp.prototype,`distance`,2),w([wt({type:Boolean,reflect:!0})],kp.prototype,`open`,2),w([wt({type:Number})],kp.prototype,`skidding`,2),w([wt()],kp.prototype,`trigger`,2),w([wt({type:Boolean})],kp.prototype,`hoist`,2),w([mn(`open`,{waitUntilFirstUpdate:!0})],kp.prototype,`handleOpenChange`,1),w([mn([`content`,`distance`,`hoist`,`placement`,`skidding`])],kp.prototype,`handleOptionsChange`,1),w([mn(`disabled`)],kp.prototype,`handleDisabledChange`,1),Sa(`tooltip.show`,{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:`ease`}}),Sa(`tooltip.hide`,{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:`ease`}}),kp.define(`sl-tooltip`);var ace=[{max:276e4,value:6e4,unit:`minute`},{max:72e6,value:36e5,unit:`hour`},{max:5184e5,value:864e5,unit:`day`},{max:24192e5,value:6048e5,unit:`week`},{max:28512e6,value:2592e6,unit:`month`},{max:1/0,value:31536e6,unit:`year`}],Ap=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.isoTime=``,this.relativeTime=``,this.date=new Date,this.format=`long`,this.numeric=`auto`,this.sync=!1}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.updateTimeout)}render(){let e=new Date,t=new Date(this.date);if(isNaN(t.getMilliseconds()))return this.relativeTime=``,this.isoTime=``,``;let n=t.getTime()-e.getTime(),{unit:r,value:i}=ace.find(e=>Math.abs(n)this.requestUpdate(),e)}return T` `}};w([Tt()],Ap.prototype,`isoTime`,2),w([Tt()],Ap.prototype,`relativeTime`,2),w([wt()],Ap.prototype,`date`,2),w([wt()],Ap.prototype,`format`,2),w([wt()],Ap.prototype,`numeric`,2),w([wt({type:Boolean})],Ap.prototype,`sync`,2);function oce(e){let t={second:1e3,minute:6e4,hour:36e5,day:864e5}[e];return t-Date.now()%t}Ap.define(`sl-relative-time`);var jp=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.value=0,this.type=`decimal`,this.noGrouping=!1,this.currency=`USD`,this.currencyDisplay=`symbol`}render(){return isNaN(this.value)?``:this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};w([wt({type:Number})],jp.prototype,`value`,2),w([wt()],jp.prototype,`type`,2),w([wt({attribute:`no-grouping`,type:Boolean})],jp.prototype,`noGrouping`,2),w([wt()],jp.prototype,`currency`,2),w([wt({attribute:`currency-display`})],jp.prototype,`currencyDisplay`,2),w([wt({attribute:`minimum-integer-digits`,type:Number})],jp.prototype,`minimumIntegerDigits`,2),w([wt({attribute:`minimum-fraction-digits`,type:Number})],jp.prototype,`minimumFractionDigits`,2),w([wt({attribute:`maximum-fraction-digits`,type:Number})],jp.prototype,`maximumFractionDigits`,2),w([wt({attribute:`minimum-significant-digits`,type:Number})],jp.prototype,`minimumSignificantDigits`,2),w([wt({attribute:`maximum-significant-digits`,type:Number})],jp.prototype,`maximumSignificantDigits`,2),jp.define(`sl-format-number`),bp.define(`sl-icon-button`);var sce=xe` :host { display: inline-block; } @@ -8648,7 +8668,7 @@ .tag--pill { border-radius: var(--sl-border-radius-pill); } -`,Fp=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.variant=`neutral`,this.size=`medium`,this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit(`sl-remove`)}render(){return T` +`,Mp=class extends _n{constructor(){super(...arguments),this.localize=new pn(this),this.variant=`neutral`,this.size=`medium`,this.pill=!1,this.removable=!1}handleRemoveClick(){this.emit(`sl-remove`)}render(){return T` `:``} - `}};Fp.styles=[hn,rce],Fp.dependencies={"sl-icon-button":wp},w([Tt({reflect:!0})],Fp.prototype,`variant`,2),w([Tt({reflect:!0})],Fp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Fp.prototype,`pill`,2),w([Tt({type:Boolean})],Fp.prototype,`removable`,2),Fp.define(`sl-tag`);var ice=xe` + `}};Mp.styles=[hn,sce],Mp.dependencies={"sl-icon-button":bp},w([wt({reflect:!0})],Mp.prototype,`variant`,2),w([wt({reflect:!0})],Mp.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Mp.prototype,`pill`,2),w([wt({type:Boolean})],Mp.prototype,`removable`,2),Mp.define(`sl-tag`);var cce=xe` :host { display: block; } @@ -8954,7 +8974,7 @@ .input--no-spin-buttons input[type='number'] { -moz-appearance: textfield; } -`,Ip=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{assumeInteractionOn:[`sl-blur`,`sl-input`]}),this.hasSlotController=new nn(this,`help-text`,`label`),this.localize=new pn(this),this.hasFocus=!1,this.title=``,this.__numberInput=Object.assign(document.createElement(`input`),{type:`number`}),this.__dateInput=Object.assign(document.createElement(`input`),{type:`date`}),this.type=`text`,this.name=``,this.value=``,this.defaultValue=``,this.size=`medium`,this.filled=!1,this.pill=!1,this.label=``,this.helpText=``,this.clearable=!1,this.disabled=!1,this.placeholder=``,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form=``,this.required=!1,this.spellcheck=!0}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(e){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=e,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(e){this.__numberInput.valueAsNumber=e,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleChange(){this.value=this.input.value,this.emit(`sl-change`)}handleClearClick(e){e.preventDefault(),this.value!==``&&(this.value=``,this.emit(`sl-clear`),this.emit(`sl-input`),this.emit(`sl-change`)),this.input.focus()}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleKeyDown(e){let t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key===`Enter`&&!t&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,n=`none`){this.input.setSelectionRange(e,t,n)}setRangeText(e,t,n,r=`preserve`){let i=t??this.input.selectionStart,a=n??this.input.selectionEnd;this.input.setRangeText(e,i,a,r),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){`showPicker`in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value==`number`||this.value.length>0);return T` +`,Np=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{assumeInteractionOn:[`sl-blur`,`sl-input`]}),this.hasSlotController=new nn(this,`help-text`,`label`),this.localize=new pn(this),this.hasFocus=!1,this.title=``,this.__numberInput=Object.assign(document.createElement(`input`),{type:`number`}),this.__dateInput=Object.assign(document.createElement(`input`),{type:`date`}),this.type=`text`,this.name=``,this.value=``,this.defaultValue=``,this.size=`medium`,this.filled=!1,this.pill=!1,this.label=``,this.helpText=``,this.clearable=!1,this.disabled=!1,this.placeholder=``,this.readonly=!1,this.passwordToggle=!1,this.passwordVisible=!1,this.noSpinButtons=!1,this.form=``,this.required=!1,this.spellcheck=!0}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(e){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=e,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(e){this.__numberInput.valueAsNumber=e,this.value=this.__numberInput.value}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleChange(){this.value=this.input.value,this.emit(`sl-change`)}handleClearClick(e){e.preventDefault(),this.value!==``&&(this.value=``,this.emit(`sl-clear`),this.emit(`sl-input`),this.emit(`sl-change`)),this.input.focus()}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleKeyDown(e){let t=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key===`Enter`&&!t&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,t,n=`none`){this.input.setSelectionRange(e,t,n)}setRangeText(e,t,n,r=`preserve`){let i=t??this.input.selectionStart,a=n??this.input.selectionEnd;this.input.setRangeText(e,i,a,r),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){`showPicker`in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`label`),t=this.hasSlotController.test(`help-text`),n=this.label?!0:!!e,r=this.helpText?!0:!!t,i=this.clearable&&!this.disabled&&!this.readonly&&(typeof this.value==`number`||this.value.length>0);return T`
${this.helpText}
- `}};Ip.styles=[hn,Jt,ice],Ip.dependencies={"sl-icon":ua},w([kt(`.input__control`)],Ip.prototype,`input`,2),w([Et()],Ip.prototype,`hasFocus`,2),w([Tt()],Ip.prototype,`title`,2),w([Tt({reflect:!0})],Ip.prototype,`type`,2),w([Tt()],Ip.prototype,`name`,2),w([Tt()],Ip.prototype,`value`,2),w([qt()],Ip.prototype,`defaultValue`,2),w([Tt({reflect:!0})],Ip.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`filled`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`pill`,2),w([Tt()],Ip.prototype,`label`,2),w([Tt({attribute:`help-text`})],Ip.prototype,`helpText`,2),w([Tt({type:Boolean})],Ip.prototype,`clearable`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`disabled`,2),w([Tt()],Ip.prototype,`placeholder`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`readonly`,2),w([Tt({attribute:`password-toggle`,type:Boolean})],Ip.prototype,`passwordToggle`,2),w([Tt({attribute:`password-visible`,type:Boolean})],Ip.prototype,`passwordVisible`,2),w([Tt({attribute:`no-spin-buttons`,type:Boolean})],Ip.prototype,`noSpinButtons`,2),w([Tt({reflect:!0})],Ip.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],Ip.prototype,`required`,2),w([Tt()],Ip.prototype,`pattern`,2),w([Tt({type:Number})],Ip.prototype,`minlength`,2),w([Tt({type:Number})],Ip.prototype,`maxlength`,2),w([Tt()],Ip.prototype,`min`,2),w([Tt()],Ip.prototype,`max`,2),w([Tt()],Ip.prototype,`step`,2),w([Tt()],Ip.prototype,`autocapitalize`,2),w([Tt()],Ip.prototype,`autocorrect`,2),w([Tt()],Ip.prototype,`autocomplete`,2),w([Tt({type:Boolean})],Ip.prototype,`autofocus`,2),w([Tt()],Ip.prototype,`enterkeyhint`,2),w([Tt({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Ip.prototype,`spellcheck`,2),w([Tt()],Ip.prototype,`inputmode`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleDisabledChange`,1),w([mn(`step`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleStepChange`,1),w([mn(`value`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleValueChange`,1),Ip.define(`sl-input`);var Lp=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new nn(this,`[default]`,`prefix`,`suffix`),this.localize=new pn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:tn}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?cp`a`:cp`button`;return up` + `}};Np.styles=[hn,Jt,cce],Np.dependencies={"sl-icon":oa},w([Ot(`.input__control`)],Np.prototype,`input`,2),w([Tt()],Np.prototype,`hasFocus`,2),w([wt()],Np.prototype,`title`,2),w([wt({reflect:!0})],Np.prototype,`type`,2),w([wt()],Np.prototype,`name`,2),w([wt()],Np.prototype,`value`,2),w([qt()],Np.prototype,`defaultValue`,2),w([wt({reflect:!0})],Np.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Np.prototype,`filled`,2),w([wt({type:Boolean,reflect:!0})],Np.prototype,`pill`,2),w([wt()],Np.prototype,`label`,2),w([wt({attribute:`help-text`})],Np.prototype,`helpText`,2),w([wt({type:Boolean})],Np.prototype,`clearable`,2),w([wt({type:Boolean,reflect:!0})],Np.prototype,`disabled`,2),w([wt()],Np.prototype,`placeholder`,2),w([wt({type:Boolean,reflect:!0})],Np.prototype,`readonly`,2),w([wt({attribute:`password-toggle`,type:Boolean})],Np.prototype,`passwordToggle`,2),w([wt({attribute:`password-visible`,type:Boolean})],Np.prototype,`passwordVisible`,2),w([wt({attribute:`no-spin-buttons`,type:Boolean})],Np.prototype,`noSpinButtons`,2),w([wt({reflect:!0})],Np.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],Np.prototype,`required`,2),w([wt()],Np.prototype,`pattern`,2),w([wt({type:Number})],Np.prototype,`minlength`,2),w([wt({type:Number})],Np.prototype,`maxlength`,2),w([wt()],Np.prototype,`min`,2),w([wt()],Np.prototype,`max`,2),w([wt()],Np.prototype,`step`,2),w([wt()],Np.prototype,`autocapitalize`,2),w([wt()],Np.prototype,`autocorrect`,2),w([wt()],Np.prototype,`autocomplete`,2),w([wt({type:Boolean})],Np.prototype,`autofocus`,2),w([wt()],Np.prototype,`enterkeyhint`,2),w([wt({type:Boolean,converter:{fromAttribute:e=>!(!e||e===`false`),toAttribute:e=>e?`true`:`false`}})],Np.prototype,`spellcheck`,2),w([wt()],Np.prototype,`inputmode`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Np.prototype,`handleDisabledChange`,1),w([mn(`step`,{waitUntilFirstUpdate:!0})],Np.prototype,`handleStepChange`,1),w([mn(`value`,{waitUntilFirstUpdate:!0})],Np.prototype,`handleValueChange`,1),Np.define(`sl-input`);var Pp=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{assumeInteractionOn:[`click`]}),this.hasSlotController=new nn(this,`[default]`,`prefix`,`suffix`),this.localize=new pn(this),this.hasFocus=!1,this.invalid=!1,this.title=``,this.variant=`default`,this.size=`medium`,this.caret=!1,this.disabled=!1,this.loading=!1,this.outline=!1,this.pill=!1,this.circle=!1,this.type=`button`,this.name=``,this.value=``,this.href=``,this.rel=`noreferrer noopener`}get validity(){return this.isButton()?this.button.validity:tn}get validationMessage(){return this.isButton()?this.button.validationMessage:``}firstUpdated(){this.isButton()&&this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleClick(){this.type===`submit`&&this.formControlController.submit(this),this.type===`reset`&&this.formControlController.reset(this)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}isButton(){return!this.href}isLink(){return!!this.href}handleDisabledChange(){this.isButton()&&this.formControlController.setValidity(this.disabled)}click(){this.button.click()}focus(e){this.button.focus(e)}blur(){this.button.blur()}checkValidity(){return!this.isButton()||this.button.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return!this.isButton()||this.button.reportValidity()}setCustomValidity(e){this.isButton()&&(this.button.setCustomValidity(e),this.formControlController.updateValidity())}render(){let e=this.isLink(),t=e?rp`a`:rp`button`;return ap` <${t} part="base" class=${vn({button:!0,"button--default":this.variant==="default","button--primary":this.variant===`primary`,"button--success":this.variant===`success`,"button--neutral":this.variant===`neutral`,"button--warning":this.variant===`warning`,"button--danger":this.variant===`danger`,"button--text":this.variant===`text`,"button--small":this.size===`small`,"button--medium":this.size===`medium`,"button--large":this.size===`large`,"button--caret":this.caret,"button--circle":this.circle,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--loading":this.loading,"button--standard":!this.outline,"button--outline":this.outline,"button--pill":this.pill,"button--rtl":this.localize.dir()===`rtl`,"button--has-label":this.hasSlotController.test(`[default]`),"button--has-prefix":this.hasSlotController.test(`prefix`),"button--has-suffix":this.hasSlotController.test(`suffix`)})} @@ -9085,10 +9105,10 @@ - ${this.caret?up` `:``} - ${this.loading?up``:``} + ${this.caret?ap` `:``} + ${this.loading?ap``:``} - `}};Lp.styles=[hn,ap],Lp.dependencies={"sl-icon":ua,"sl-spinner":ka},w([kt(`.button`)],Lp.prototype,`button`,2),w([Et()],Lp.prototype,`hasFocus`,2),w([Et()],Lp.prototype,`invalid`,2),w([Tt()],Lp.prototype,`title`,2),w([Tt({reflect:!0})],Lp.prototype,`variant`,2),w([Tt({reflect:!0})],Lp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`caret`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`loading`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`outline`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`pill`,2),w([Tt({type:Boolean,reflect:!0})],Lp.prototype,`circle`,2),w([Tt()],Lp.prototype,`type`,2),w([Tt()],Lp.prototype,`name`,2),w([Tt()],Lp.prototype,`value`,2),w([Tt()],Lp.prototype,`href`,2),w([Tt()],Lp.prototype,`target`,2),w([Tt()],Lp.prototype,`rel`,2),w([Tt()],Lp.prototype,`download`,2),w([Tt()],Lp.prototype,`form`,2),w([Tt({attribute:`formaction`})],Lp.prototype,`formAction`,2),w([Tt({attribute:`formenctype`})],Lp.prototype,`formEnctype`,2),w([Tt({attribute:`formmethod`})],Lp.prototype,`formMethod`,2),w([Tt({attribute:`formnovalidate`,type:Boolean})],Lp.prototype,`formNoValidate`,2),w([Tt({attribute:`formtarget`})],Lp.prototype,`formTarget`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Lp.prototype,`handleDisabledChange`,1),Lp.define(`sl-button`);var Rp=xe` + `}};Pp.styles=[hn,tp],Pp.dependencies={"sl-icon":oa,"sl-spinner":xa},w([Ot(`.button`)],Pp.prototype,`button`,2),w([Tt()],Pp.prototype,`hasFocus`,2),w([Tt()],Pp.prototype,`invalid`,2),w([wt()],Pp.prototype,`title`,2),w([wt({reflect:!0})],Pp.prototype,`variant`,2),w([wt({reflect:!0})],Pp.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Pp.prototype,`caret`,2),w([wt({type:Boolean,reflect:!0})],Pp.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],Pp.prototype,`loading`,2),w([wt({type:Boolean,reflect:!0})],Pp.prototype,`outline`,2),w([wt({type:Boolean,reflect:!0})],Pp.prototype,`pill`,2),w([wt({type:Boolean,reflect:!0})],Pp.prototype,`circle`,2),w([wt()],Pp.prototype,`type`,2),w([wt()],Pp.prototype,`name`,2),w([wt()],Pp.prototype,`value`,2),w([wt()],Pp.prototype,`href`,2),w([wt()],Pp.prototype,`target`,2),w([wt()],Pp.prototype,`rel`,2),w([wt()],Pp.prototype,`download`,2),w([wt()],Pp.prototype,`form`,2),w([wt({attribute:`formaction`})],Pp.prototype,`formAction`,2),w([wt({attribute:`formenctype`})],Pp.prototype,`formEnctype`,2),w([wt({attribute:`formmethod`})],Pp.prototype,`formMethod`,2),w([wt({attribute:`formnovalidate`,type:Boolean})],Pp.prototype,`formNoValidate`,2),w([wt({attribute:`formtarget`})],Pp.prototype,`formTarget`,2),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Pp.prototype,`handleDisabledChange`,1),Pp.define(`sl-button`);var Fp=xe` :host { display: inline-block; } @@ -9253,7 +9273,7 @@ background-color: ButtonText; } } -`,zp=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new nn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T` +`,Ip=class extends _n{constructor(){super(...arguments),this.formControlController=new en(this,{value:e=>e.checked?e.value||`on`:void 0,defaultValue:e=>e.defaultChecked,setValue:(e,t)=>e.checked=t}),this.hasSlotController=new nn(this,`help-text`),this.hasFocus=!1,this.title=``,this.name=``,this.size=`medium`,this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form=``,this.required=!1,this.helpText=``}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit(`sl-blur`)}handleInput(){this.emit(`sl-input`)}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e)}handleClick(){this.checked=!this.checked,this.emit(`sl-change`)}handleFocus(){this.hasFocus=!0,this.emit(`sl-focus`)}handleKeyDown(e){e.key===`ArrowLeft`&&(e.preventDefault(),this.checked=!1,this.emit(`sl-change`),this.emit(`sl-input`)),e.key===`ArrowRight`&&(e.preventDefault(),this.checked=!0,this.emit(`sl-change`),this.emit(`sl-input`))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.hasSlotController.test(`help-text`),t=this.helpText?!0:!!e;return T`
@@ -9299,13 +9319,13 @@ ${this.helpText}
- `}};zp.styles=[hn,Jt,Rp],w([kt(`input[type="checkbox"]`)],zp.prototype,`input`,2),w([Et()],zp.prototype,`hasFocus`,2),w([Tt()],zp.prototype,`title`,2),w([Tt()],zp.prototype,`name`,2),w([Tt()],zp.prototype,`value`,2),w([Tt({reflect:!0})],zp.prototype,`size`,2),w([Tt({type:Boolean,reflect:!0})],zp.prototype,`disabled`,2),w([Tt({type:Boolean,reflect:!0})],zp.prototype,`checked`,2),w([qt(`checked`)],zp.prototype,`defaultChecked`,2),w([Tt({reflect:!0})],zp.prototype,`form`,2),w([Tt({type:Boolean,reflect:!0})],zp.prototype,`required`,2),w([Tt({attribute:`help-text`})],zp.prototype,`helpText`,2),w([mn(`checked`,{waitUntilFirstUpdate:!0})],zp.prototype,`handleCheckedChange`,1),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],zp.prototype,`handleDisabledChange`,1),zp.define(`sl-switch`);var Bp=[`MODIFIED`,`ADDED`,`REMOVED`],Vp=[`BREAKING`,`NON-BREAKING`],Hp={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function Up(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function Wp(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var Gp=class extends Ct{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=Kse}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(Cn,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Cn,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=Hp[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,...Wp(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>Up(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,Wp(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:Bp,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:Vp,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return T` + `}};Ip.styles=[hn,Jt,Fp],w([Ot(`input[type="checkbox"]`)],Ip.prototype,`input`,2),w([Tt()],Ip.prototype,`hasFocus`,2),w([wt()],Ip.prototype,`title`,2),w([wt()],Ip.prototype,`name`,2),w([wt()],Ip.prototype,`value`,2),w([wt({reflect:!0})],Ip.prototype,`size`,2),w([wt({type:Boolean,reflect:!0})],Ip.prototype,`disabled`,2),w([wt({type:Boolean,reflect:!0})],Ip.prototype,`checked`,2),w([qt(`checked`)],Ip.prototype,`defaultChecked`,2),w([wt({reflect:!0})],Ip.prototype,`form`,2),w([wt({type:Boolean,reflect:!0})],Ip.prototype,`required`,2),w([wt({attribute:`help-text`})],Ip.prototype,`helpText`,2),w([mn(`checked`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleCheckedChange`,1),w([mn(`disabled`,{waitUntilFirstUpdate:!0})],Ip.prototype,`handleDisabledChange`,1),Ip.define(`sl-switch`);var Lp=[`MODIFIED`,`ADDED`,`REMOVED`],Rp=[`BREAKING`,`NON-BREAKING`],zp={Additions:`ok`,Modifications:`tertiary`,Removals:`error`};function Bp(e){try{return new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}catch{return e}}function lce(e,t,n,r){return{pointRadius:Array.from({length:e},(e,n)=>n===t?12:4),pointBackgroundColor:Array.from({length:e},(e,i)=>i===t?n:r),pointBorderColor:Array(e).fill(r),pointBorderWidth:Array.from({length:e},(e,n)=>n===t?3:1)}}var Vp=class extends St{constructor(...e){super(...e),this.data=null,this.activeItemIndex=0,this.error=``,this.activeMainTab=`overview`,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[],this._graphNodeMap=new Map,this._cachedChartIndex=-1,this._cachedData=null,this._changeDataset=[],this._breakingDataset=[],this._overviewResizeObserver=null,this._chartsInitialized=!1,this._onThemeChange=()=>{requestAnimationFrame(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})},this.handleTabShow=e=>{this.onTabShow(e)},this._onTreeNodeClicked=e=>{this.handleTreeNodeClicked(e)}}static{this.styles=gp}get _chartPointIndex(){let e=this.data?.history?.changeData?.labels?.length??0;return e>0?e-1-this.activeItemIndex:0}connectedCallback(){super.connectedCallback(),this.loadData(),this.addEventListener(Cn,this._onTreeNodeClicked),window.addEventListener(`pb33f-theme-change`,this._onThemeChange)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Cn,this._onTreeNodeClicked),window.removeEventListener(`pb33f-theme-change`,this._onThemeChange),this._overviewResizeObserver?.disconnect()}loadData(){try{let e=document.getElementById(`report-data`);if(e?.textContent){this.data=JSON.parse(e.textContent);return}if(window.__REPORT_DATA__){this.data=window.__REPORT_DATA__;return}this.error=`No report data found`}catch(e){this.error=`Failed to parse report data: ${e}`}}get activeItem(){return this.data?.items?.length&&this.data.items[this.activeItemIndex]||null}get isMultiCommit(){return(this.data?.items?.length??0)>1}selectItem(e){this.activeItemIndex=e,this.selectedDiffChanges=[],this.selectedNodeId=null,this.selectedNodeChanges=[]}selectNode(e){this.selectedNodeId=e;let t=this._graphNodeMap.get(e);t?(this.selectedNodeChanges=t.timeline||[],this.selectedDiffChanges=t.timeline||[]):(this.selectedNodeChanges=[],this.selectedDiffChanges=[])}updateModelTree(){let e=this.activeItem;if(!this.modelTree||!e?.graph?.nodes)return;let t=new Map;for(let n of e.graph.nodes)t.set(n.id,n);this._graphNodeMap=t,this.modelTree.nodeMap=t,this.modelTree.node=t.get(`root`)||null,this.modelTree.changesEnabled=!0,this.modelTree.violationMap=new Map}updateBeefyChart(){if(!this.beefyChart||!this.data?.history?.changeData)return;let e=this.data.history.changeData,t=e.labels.length,n=this._chartPointIndex,r=this.beefyChart.background||`#1a1e2e`,i=document.documentElement.getAttribute(`theme`)===`light`,a={ok:`#000`,tertiary:`#999`,error:`#555`};this.beefyChart.datasets=e.datasets.map(e=>{let o=zp[e.label]||``,s=i?a[o]||`#666`:e.borderColor||o&&this.beefyChart[o]||`#888`;return{...e,borderColor:s,borderWidth:3,tension:0,fill:!1,pointStyle:`rect`,...lce(t,n,r,s)}}),this.beefyChart.labels=e.labels.map(e=>Bp(e)),this.beefyChart.buildChart(),requestAnimationFrame(()=>this._drawActiveGlow())}_drawActiveGlow(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=e.ctx;for(let r of e.getSortedVisibleDatasetMetas()){let i=r.data[t];if(!i)continue;let a=e.data.datasets[r.index]?.borderColor||`#fff`;for(let e=0;e<5;e++)n.save(),n.shadowColor=a,n.shadowBlur=25+e*12,n.strokeStyle=a,n.lineWidth=2,n.globalAlpha=.9,n.strokeRect(i.x-12,i.y-12,24,24),n.restore()}}updateBeefyChartHighlight(){let e=this.beefyChart?.chart;if(!e)return;let t=this._chartPointIndex,n=this.beefyChart.background||`#1a1e2e`;for(let r of e.data.datasets){let e=r.data.length;Object.assign(r,lce(e,t,n,r.borderColor))}e.update(`none`),requestAnimationFrame(()=>this._drawActiveGlow())}willUpdate(e){(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateChartData()}updated(e){super.updated(e),(e.has(`activeItemIndex`)||e.has(`data`))&&this.updateComplete.then(()=>{this.onDataOrIndexChanged(e),this._upgradeReportIcons()})}_upgradeReportIcons(){let e=this.renderRoot.querySelectorAll(`.change-report pb33f-model-icon`);for(let t of e)t.getAttribute(`size`)!==`medium`&&t.setAttribute(`size`,`medium`)}onDataOrIndexChanged(e){this.updateModelTree(),e.has(`data`)&&requestAnimationFrame(()=>{this.mainTabGroup&&this.mainTabGroup.show(`overview`),this._observeOverviewPanel()}),e.has(`activeItemIndex`)&&this._chartsInitialized&&this.updateBeefyChartHighlight()}_observeOverviewPanel(){if(this._overviewResizeObserver)return;let e=this.renderRoot.querySelector(`.overview-content`);e&&(this._overviewResizeObserver=new ResizeObserver(e=>{for(let t of e)t.contentRect.width>0&&t.contentRect.height>0&&!this._chartsInitialized&&(this._chartsInitialized=!0,this.updateBeefyChart(),this.resizeDoughnutCharts())}),this._overviewResizeObserver.observe(e))}onTabShow(e){this.activeMainTab=e.detail.name,e.detail.name===`overview`&&this.updateComplete.then(()=>{this.updateBeefyChart(),this.resizeDoughnutCharts()})}resizeDoughnutCharts(){let e=this.renderRoot.querySelectorAll(`pb33f-doughnut-chart`);for(let t of e)t.chart?.resize()}updateChartData(){if(this._cachedChartIndex===this.activeItemIndex&&this._cachedData===this.data)return;this._cachedChartIndex=this.activeItemIndex,this._cachedData=this.data;let e=this.activeItem;e&&(this._changeDataset=[{labels:Lp,data:[e.summary.modifications||0,e.summary.additions||0,e.summary.removals||0]}],this._breakingDataset=[{labels:Rp,data:[e.summary.breakingChanges||0,(e.summary.totalChanges||0)-(e.summary.breakingChanges||0)]}])}handleTreeNodeClicked(e){let{changes:t}=e.detail;t&&t.length>0&&this.navigateToDiffForChanges(t)}navigateToDiffForChanges(e){e&&e.length!==0&&(this.selectedDiffChanges=[...e],this.mainTabGroup&&this.mainTabGroup.show(`diff`))}renderNavigator(){return T` `}renderSummary(){let e=this.activeItem;return e?T`
${(e.summary.breakingChanges||0)>0?T` - `:ct} + `:st}
- `:ct}renderHistoryChart(){if(!this.isMultiCommit||!this.data?.history?.changeData)return ct;let e=this.data.history.changeData,t=e.labels.map(e=>Up(e));return T` + `:st}renderHistoryChart(){if(!this.isMultiCommit||!this.data?.history?.changeData)return st;let e=this.data.history.changeData,t=e.labels.map(e=>Bp(e));return T`

Change History Chart

${e.commit.hash.substring(0,8)} ${e.commit.message||`No message`} - ${e.commit.author?T`${e.commit.author}`:ct} + ${e.commit.author?T`${e.commit.author}`:st} ${new Date(e.commit.date).toLocaleString(void 0,{month:`short`,day:`numeric`,year:`numeric`,hour:`2-digit`,minute:`2-digit`})}
${this.renderSummary()} ${this.renderHistoryChart()} - `:ct}renderHtmlReport(e){return e.htmlReport?T`
${Ft(e.htmlReport)}
`:T`

No report available

`}renderCombinedReport(e){return T` + `:st}renderHtmlReport(e){return e.htmlReport?T`
${Pt(e.htmlReport)}
`:T`

No report available

`}renderCombinedReport(e){return T`
${this.data?.originalPath&&this.data?.modifiedPath?T`
@@ -9392,7 +9412,7 @@ → Modified: ${this.data.modifiedPath}
- `:ct} + `:st} ${this.renderSummary()} ${this.renderHtmlReport(e)}
@@ -9417,7 +9437,7 @@ ${this.renderHtmlReport(e)} - `:ct} + `:st} @@ -9439,11 +9459,11 @@ > - `}renderExtraTabNavs(){return ct}renderExtraTabPanels(){return ct}render(){if(this.error)return T`
${this.error}
`;if(!this.data)return T`
Loading...
`;if(!this.data.items.length)return T`
No changes found
`;let e=this.activeItem;return T` + `}renderExtraTabNavs(){return st}renderExtraTabPanels(){return st}render(){if(this.error)return T`
${this.error}
`;if(!this.data)return T`
Loading...
`;if(!this.data.items.length)return T`
No changes found
`;let e=this.activeItem;return T`
- ${this.data?.appVersion?T`v${this.data.appVersion}`:ct} + ${this.data?.appVersion?T`v${this.data.appVersion}`:st}
@@ -9465,30 +9485,30 @@ url="https://pb33f.io/openapi-changes/" .build=${`Generated `+new Date(this.data?.dateGenerated||``).toLocaleString()}> - `}};xp([Et()],Gp.prototype,`data`,void 0),xp([Et()],Gp.prototype,`activeItemIndex`,void 0),xp([Et()],Gp.prototype,`error`,void 0),xp([Et()],Gp.prototype,`activeMainTab`,void 0),xp([Et()],Gp.prototype,`selectedDiffChanges`,void 0),xp([Et()],Gp.prototype,`selectedNodeId`,void 0),xp([Et()],Gp.prototype,`selectedNodeChanges`,void 0),xp([kt(`.navigator-panel pb33f-model-tree`)],Gp.prototype,`modelTree`,void 0),xp([kt(`pb33f-chart`)],Gp.prototype,`beefyChart`,void 0),xp([kt(`.tab-content > sl-tab-group`)],Gp.prototype,`mainTabGroup`,void 0);var Kp=c(o(((e,t)=>{(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.ELK=n()}})(function(){return(function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof require==`function`&&require;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof require==`function`&&require,o=0;o0&&arguments[0]!==void 0?arguments[0]:{},r=n.defaultLayoutOptions,a=r===void 0?{}:r,o=n.algorithms,s=o===void 0?[`layered`,`stress`,`mrtree`,`radial`,`force`,`disco`,`sporeOverlap`,`sporeCompaction`,`rectpacking`]:o,c=n.workerFactory,u=n.workerUrl;if(i(this,e),this.defaultLayoutOptions=a,this.initialized=!1,u===void 0&&c===void 0)throw Error(`Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.`);var d=c;u!==void 0&&c===void 0&&(d=function(e){return new Worker(e)});var f=d(u);if(typeof f.postMessage!=`function`)throw TypeError(`Created worker does not provide the required 'postMessage' function.`);this.worker=new l(f),this.worker.postMessage({cmd:`register`,algorithms:s}).then(function(e){return t.initialized=!0}).catch(console.err)}return o(e,[{key:`layout`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.layoutOptions,r=n===void 0?this.defaultLayoutOptions:n,i=t.logging,a=i!==void 0&&i,o=t.measureExecutionTime,s=o!==void 0&&o;return e?this.worker.postMessage({cmd:`layout`,graph:e,layoutOptions:r,options:{logging:a,measureExecutionTime:s}}):Promise.reject(Error(`Missing mandatory parameter 'graph'.`))}},{key:`knownLayoutAlgorithms`,value:function(){return this.worker.postMessage({cmd:`algorithms`})}},{key:`knownLayoutOptions`,value:function(){return this.worker.postMessage({cmd:`options`})}},{key:`knownLayoutCategories`,value:function(){return this.worker.postMessage({cmd:`categories`})}},{key:`terminateWorker`,value:function(){this.worker&&this.worker.terminate()}}])}();var l=function(){function e(t){var n=this;if(i(this,e),t===void 0)throw Error(`Missing mandatory parameter 'worker'.`);this.resolvers={},this.worker=t,this.worker.onmessage=function(e){setTimeout(function(){n.receive(n,e)},0)}}return o(e,[{key:`postMessage`,value:function(e){var t=this.id||0;this.id=t+1,e.id=t;var n=this;return new Promise(function(r,i){n.resolvers[t]=function(e,t){e?(n.convertGwtStyleError(e),i(e)):r(t)},n.worker.postMessage(e)})}},{key:`receive`,value:function(e,t){var n=t.data,r=e.resolvers[n.id];r&&(delete e.resolvers[n.id],n.error?r(n.error):r(null,n.data))}},{key:`terminate`,value:function(){this.worker&&this.worker.terminate()}},{key:`convertGwtStyleError`,value:function(e){if(e){var t=e.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(e.cause=t.cause.backingJsObject,this.convertGwtStyleError(e.cause)),delete e.__java$exception)}}}])}()},{}],2:[function(e,t,n){(function(e){(function(){"use strict";var r;typeof window<`u`?r=window:e===void 0?typeof self<`u`&&(r=self):r=e;var i;function a(){}function o(){}function s(){}function c(){}function l(){}function u(){}function d(){}function f(){}function p(){}function m(){}function h(){}function g(){}function _(){}function v(){}function y(){}function b(){}function x(){}function S(){}function ee(){}function te(){}function ne(){}function C(){}function re(){}function ie(){}function ae(){}function oe(){}function se(){}function w(){}function ce(){}function le(){}function ue(){}function de(){}function fe(){}function pe(){}function me(){}function he(){}function ge(){}function _e(){}function ve(){}function ye(){}function be(){}function xe(){}function Se(){}function Ce(){}function we(){}function Te(){}function Ee(){}function De(){}function Oe(){}function ke(){}function Ae(){}function je(){}function Me(){}function Ne(){}function Pe(){}function Fe(){}function Ie(){}function Le(){}function Re(){}function ze(){}function Be(){}function Ve(){}function He(){}function Ue(){}function We(){}function Ge(){}function eee(){}function Ke(){}function qe(){}function Je(){}function Ye(){}function Xe(){}function Ze(){}function Qe(){}function $e(){}function et(){}function tt(){}function nt(){}function rt(){}function it(){}function at(){}function T(){}function ot(){}function st(){}function ct(){}function lt(){}function ut(){}function dt(){}function ft(){}function pt(){}function mt(){}function ht(){}function gt(){}function _t(){}function vt(){}function yt(){}function bt(){}function xt(){}function tee(){}function nee(){}function ree(){}function St(){}function Ct(){}function iee(){}function wt(){}function aee(){}function oee(){}function Tt(){}function Et(){}function Dt(){}function Ot(){}function kt(){}function see(){}function At(){}function jt(){}function Mt(){}function Nt(){}function Pt(){}function Ft(){}function cee(){}function It(){}function lee(){}function uee(){}function Lt(){}function Rt(){}function zt(){}function dee(){}function Bt(){}function fee(){}function Vt(){}function pee(){}function Ht(){}function mee(){}function Ut(){}function Wt(){}function Gt(){}function Kt(){}function hee(){}function qt(){}function Jt(){}function Yt(){}function Xt(){}function Zt(){}function Qt(){}function $t(){}function en(){}function tn(){}function gee(){}function _ee(){}function nn(){}function rn(){}function an(){}function on(){}function sn(){}function cn(){}function ln(){}function un(){}function dn(){}function vee(){}function fn(){}function yee(){}function pn(){}function mn(){}function hn(){}function gn(){}function _n(){}function vn(){}function yn(){}function bn(){}function xn(){}function Sn(){}function Cn(){}function bee(){}function wn(){}function Tn(){}function En(){}function Dn(){}function On(){}function kn(){}function An(){}function jn(){}function Mn(){}function Nn(){}function Pn(){}function Fn(){}function In(){}function xee(){}function Ln(){}function Rn(){}function See(){}function zn(){}function Bn(){}function Cee(){}function wee(){}function Vn(){}function Hn(){}function Un(){}function Wn(){}function Gn(){}function Tee(){}function Kn(){}function qn(){}function Jn(){}function Yn(){}function Xn(){}function Zn(){}function Qn(){}function $n(){}function Eee(){}function Dee(){}function er(){}function tr(){}function nr(){}function rr(){}function Oee(){}function kee(){}function Aee(){}function ir(){}function jee(){}function ar(){}function or(){}function sr(){}function Mee(){}function Nee(){}function Pee(){}function Fee(){}function Iee(){}function Lee(){}function Ree(){}function zee(){}function Bee(){}function Vee(){}function cr(){}function lr(){}function ur(){}function dr(){}function fr(){}function pr(){}function mr(){}function hr(){}function gr(){}function Hee(){}function _r(){}function Uee(){}function Wee(){}function vr(){}function Gee(){}function yr(){}function Kee(){}function br(){}function xr(){}function Sr(){}function Cr(){}function wr(){}function Tr(){}function Er(){}function Dr(){}function Or(){}function kr(){}function Ar(){}function qee(){}function jr(){}function Jee(){}function Mr(){}function Nr(){}function Yee(){}function Xee(){}function Zee(){}function Qee(){}function $ee(){}function ete(){}function tte(){}function Pr(){}function Fr(){}function nte(){}function rte(){}function ite(){}function ate(){}function Ir(){}function Lr(){}function Rr(){}function ote(){}function ste(){}function zr(){}function Br(){}function cte(){}function lte(){}function ute(){}function dte(){}function fte(){}function Vr(){}function pte(){}function mte(){}function hte(){}function Hr(){}function gte(){}function _te(){}function Ur(){}function Wr(){}function Gr(){}function Kr(){}function E(){}function qr(){}function Jr(){}function Yr(){}function Xr(){}function Zr(){}function Qr(){}function $r(){}function ei(){}function ti(){}function ni(){}function ri(){}function ii(){}function ai(){}function oi(){}function vte(){}function yte(){}function si(){}function ci(){}function li(){}function bte(){}function ui(){}function di(){}function fi(){}function pi(){}function mi(){}function hi(){}function xte(){}function gi(){}function _i(){}function Ste(){}function vi(){}function Cte(){}function yi(){}function wte(){}function bi(){}function Tte(){}function xi(){}function Si(){}function Ete(){}function Ci(){}function Dte(){}function wi(){}function Ote(){}function Ti(){}function Ei(){}function kte(){}function Di(){}function Ate(){}function Oi(){}function jte(){}function ki(){}function Mte(){}function Ai(){}function Nte(){}function ji(){}function Mi(){}function Pte(){}function Ni(){}function Fte(){}function Pi(){}function Ite(){}function Fi(){}function Lte(){}function Ii(){}function Rte(){}function Li(){}function zte(){}function Ri(){}function Bte(){}function Vte(){}function zi(){}function Hte(){}function Bi(){}function Vi(){}function Hi(){}function Ui(){}function Wi(){}function Ute(){}function Gi(){}function Wte(){}function Ki(){}function Gte(){}function Kte(){}function qi(){}function qte(){}function Jte(){}function Yte(){}function Xte(){}function Ji(){}function Yi(){}function Xi(){}function Zte(){}function Qte(){}function Zi(){}function $te(){}function ene(){}function tne(){}function Qi(){}function nne(){}function rne(){}function ine(){}function ane(){}function one(){}function sne(){}function cne(){}function lne(){}function une(){}function dne(){}function $i(){}function ea(){}function fne(){}function pne(){}function mne(){}function ta(){}function na(){}function ra(){}function ia(){}function aa(){}function hne(){}function gne(){}function oa(){}function sa(){}function ca(){}function la(){}function ua(){}function da(){}function fa(){}function _ne(){}function pa(){}function ma(){}function vne(){}function ha(){}function ga(){}function _a(){}function va(){}function ya(){}function ba(){}function xa(){}function yne(){}function bne(){}function Sa(){}function Ca(){}function wa(){}function Ta(){}function Ea(){}function Da(){}function Oa(){}function ka(){}function Aa(){}function xne(){}function Sne(){}function Cne(){}function ja(){}function Ma(){}function Na(){}function wne(){}function Tne(){}function Pa(){}function Ene(){}function Dne(){}function Fa(){}function Ia(){}function One(){}function La(){}function Ra(){}function za(){}function kne(){}function Ane(){}function Ba(){}function Va(){}function Ha(){}function Ua(){}function Wa(){}function Ga(){}function Ka(){}function qa(){}function Ja(){}function Ya(){}function Xa(){}function Za(){}function Qa(){}function jne(){}function Mne(){}function $a(){}function Nne(){}function Pne(){}function Fne(){}function Ine(){}function Lne(){}function eo(){}function Rne(){}function zne(){}function to(){}function no(){}function ro(){}function io(){}function Bne(){}function Vne(){}function ao(){}function Hne(){}function oo(){}function Une(){}function so(){}function co(){}function Wne(){}function lo(){}function Gne(){}function Kne(){}function qne(){}function Jne(){}function uo(){}function fo(){}function po(){}function mo(){}function ho(){}function go(){}function Yne(){}function _o(){}function vo(){}function Xne(){}function yo(){}function bo(){}function xo(){}function So(){}function Co(){}function wo(){}function Zne(){}function To(){}function Eo(){}function Do(){}function Oo(){}function ko(){}function Ao(){}function Qne(){}function jo(){}function Mo(){}function $ne(){}function No(){}function ere(){}function tre(){}function Po(){}function Fo(){}function Io(){}function Lo(){}function Ro(){}function nre(){}function zo(){}function Bo(){}function Vo(){}function Ho(){}function rre(){}function Uo(){}function Wo(){}function Go(){}function Ko(){}function qo(){}function Jo(){}function Yo(){}function ire(){}function are(){}function Xo(){}function ore(){}function Zo(){}function Qo(){}function $o(){}function es(){}function ts(){}function ns(){}function sre(){}function rs(){}function is(){}function as(){}function cre(){}function os(){}function ss(){}function cs(){}function lre(){}function ure(){}function ls(){}function dre(){}function us(){}function ds(){}function fs(){}function ps(){}function fre(){}function ms(){}function hs(){}function pre(){}function gs(){}function _s(){}function vs(){}function ys(){}function bs(){}function xs(){}function Ss(){}function Cs(){}function ws(){}function mre(){}function hre(){}function gre(){}function _re(){}function Ts(){}function vre(){}function Es(){}function Ds(){}function yre(){}function Os(){}function bre(){}function ks(){}function As(){}function js(){}function Ms(){}function Ns(){}function xre(){}function Ps(){}function Sre(){}function Fs(){}function Is(){}function Ls(){}function Rs(){}function zs(){}function Bs(){}function Vs(){}function Cre(){}function wre(){}function Tre(){}function Ere(){}function Dre(){}function Hs(){}function Us(){}function Ore(){}function kre(){}function Are(){}function jre(){}function Ws(){}function Gs(){}function Ks(){}function qs(){}function Js(){}function Ys(){}function Mre(){}function Xs(){}function Zs(){}function Qs(){}function $s(){}function Nre(){}function ec(){}function tc(){}function Pre(){}function Fre(){}function Ire(){}function nc(){}function Lre(){}function Rre(){}function rc(){_p()}function ic(){T2e()}function zre(){MR()}function Bre(){WZe()}function ac(){mF()}function oc(){Ph()}function Vre(){Zue()}function sc(){Lk()}function Hre(){NFe()}function cc(){Ih()}function lc(){nx()}function Ure(){hj()}function Wre(){cI()}function Gre(){zh()}function Kre(){Cdt()}function uc(){_Ae()}function qre(){RIe()}function Jre(){xBe()}function dc(){mAe()}function fc(){pAe()}function pc(){hAe()}function mc(){Yz()}function Yre(){EBe()}function Xre(){KMe()}function hc(){CBe()}function Zre(){wBe()}function Qre(){TBe()}function gc(){DBe()}function $re(){xAe()}function _c(){PO()}function eie(){eHe()}function vc(){Mnt()}function tie(){_I()}function yc(){yAe()}function bc(){ZZe()}function nie(){bAe()}function rie(){grt()}function iie(){b8e()}function aie(){zR()}function xc(){tR()}function Sc(){ait()}function Cc(){pKe()}function wc(){FO()}function Tc(){iI()}function oie(){iR()}function Ec(){zP()}function Dc(){ED()}function Oc(){Qz()}function sie(){aI()}function cie(){Dj()}function kc(){iJe()}function Ac(){QR()}function jc(){Qk()}function Mc(){hbe()}function Nc(){mit()}function Pc(e){bC(e)}function Fc(e){this.a=e}function Ic(e){this.a=e}function Lc(e){this.a=e}function lie(e){this.a=e}function uie(e){this.a=e}function Rc(e){this.a=e}function zc(e){this.a=e}function die(e){this.a=e}function Bc(e){this.a=e}function fie(e){this.a=e}function pie(e){this.a=e}function Vc(e){this.a=e}function Hc(e){this.a=e}function mie(e){this.c=e}function Uc(e){this.a=e}function Wc(e){this.a=e}function hie(e){this.a=e}function gie(e){this.a=e}function Gc(e){this.a=e}function Kc(e){this.a=e}function qc(e){this.a=e}function _ie(e){this.a=e}function Jc(e){this.a=e}function Yc(e){this.a=e}function Xc(e){this.a=e}function Zc(e){this.a=e}function vie(e){this.a=e}function Qc(e){this.a=e}function yie(e){this.a=e}function bie(e){this.a=e}function xie(e){this.a=e}function Sie(e){this.a=e}function Cie(e){this.a=e}function $c(e){this.a=e}function el(e){this.a=e}function tl(e){this.a=e}function wie(e){this.a=e}function Tie(e){this.a=e}function Eie(e){this.a=e}function nl(e){this.a=e}function rl(e){this.a=e}function il(e){this.a=e}function al(e){this.a=e}function ol(e){this.b=e}function sl(){this.a=[]}function Die(e,t){e.a=t}function cl(e,t){e.a=t}function Oie(e,t){e.b=t}function kie(e,t){e.c=t}function Aie(e,t){e.c=t}function ll(e,t){e.d=t}function jie(e,t){e.d=t}function ul(e,t){e.k=t}function dl(e,t){e.j=t}function Mie(e,t){e.c=t}function fl(e,t){e.c=t}function pl(e,t){e.a=t}function Nie(e,t){e.a=t}function ml(e,t){e.f=t}function Pie(e,t){e.a=t}function Fie(e,t){e.b=t}function hl(e,t){e.d=t}function gl(e,t){e.i=t}function _l(e,t){e.o=t}function vl(e,t){e.r=t}function Iie(e,t){e.a=t}function Lie(e,t){e.b=t}function Rie(e,t){e.e=t}function zie(e,t){e.e=t}function Bie(e,t){e.f=t}function Vie(e,t){e.f=t}function yl(e,t){e.g=t}function Hie(e,t){e.f=t}function bl(e,t){e.a=t}function xl(e,t){e.b=t}function Sl(e,t){e.n=t}function Uie(e,t){e.a=t}function Cl(e,t){e.a=t}function Wie(e,t){e.a=t}function Gie(e,t){e.c=t}function wl(e,t){e.c=t}function Kie(e,t){e.c=t}function qie(e,t){e.d=t}function Jie(e,t){e.d=t}function Yie(e,t){e.e=t}function Xie(e,t){e.e=t}function Zie(e,t){e.g=t}function Qie(e,t){e.f=t}function Tl(e,t){e.j=t}function $ie(e,t){e.a=t}function eae(e,t){e.a=t}function El(e,t){e.b=t}function Dl(e){e.b=e.a}function Ol(e){e.c=e.d.d}function kl(e){this.a=e}function Al(e){this.a=e}function jl(e){this.a=e}function Ml(e){this.a=e}function tae(e){this.a=e}function Nl(e){this.a=e}function Pl(e){this.a=e}function Fl(e){this.a=e}function Il(e){this.a=e}function Ll(e){this.a=e}function Rl(e){this.a=e}function zl(e){this.a=e}function Bl(e){this.a=e}function Vl(e){this.b=e}function Hl(e){this.b=e}function Ul(e){this.b=e}function Wl(e){this.d=e}function Gl(e){this.a=e}function Kl(e){this.a=e}function ql(e){this.a=e}function nae(e){this.a=e}function Jl(e){this.a=e}function Yl(e){this.a=e}function Xl(e){this.a=e}function Zl(e){this.a=e}function Ql(e){this.c=e}function D(e){this.c=e}function $l(e){this.c=e}function eu(e){this.a=e}function tu(e){this.a=e}function nu(e){this.a=e}function ru(e){this.a=e}function iu(e){this.a=e}function rae(e){this.a=e}function iae(e){this.a=e}function au(e){this.a=e}function aae(e){this.a=e}function oae(e){this.a=e}function ou(e){this.a=e}function sae(e){this.a=e}function cae(e){this.a=e}function su(e){this.a=e}function lae(e){this.a=e}function cu(e){this.a=e}function lu(e){this.a=e}function uae(e){this.a=e}function dae(e){this.a=e}function uu(e){this.a=e}function du(e){this.a=e}function fu(e){this.a=e}function pu(e){this.a=e}function mu(e){this.a=e}function hu(e){this.a=e}function gu(e){this.a=e}function fae(e){this.a=e}function _u(e){this.a=e}function pae(e){this.a=e}function vu(e){this.a=e}function yu(e){this.a=e}function bu(e){this.a=e}function xu(e){this.a=e}function Su(e){this.a=e}function Cu(e){this.a=e}function wu(e){this.a=e}function Tu(e){this.a=e}function Eu(e){this.a=e}function Du(e){this.a=e}function mae(e){this.a=e}function hae(e){this.a=e}function Ou(e){this.a=e}function ku(e){this.a=e}function gae(e){this.a=e}function _ae(e){this.a=e}function vae(e){this.a=e}function yae(e){this.a=e}function Au(e){this.a=e}function ju(e){this.a=e}function bae(e){this.a=e}function xae(e){this.a=e}function Sae(e){this.a=e}function Mu(e){this.a=e}function Cae(e){this.a=e}function wae(e){this.a=e}function Nu(e){this.a=e}function Tae(e){this.a=e}function Eae(e){this.a=e}function Pu(e){this.e=e}function Dae(e){this.a=e}function Oae(e){this.a=e}function kae(e){this.a=e}function Aae(e){this.a=e}function jae(e){this.a=e}function Fu(e){this.a=e}function Iu(e){this.a=e}function Mae(e){this.a=e}function Lu(e){this.a=e}function Ru(e){this.a=e}function Nae(e){this.a=e}function Pae(e){this.a=e}function Fae(e){this.a=e}function zu(e){this.a=e}function Iae(e){this.a=e}function Lae(e){this.a=e}function Bu(e){this.a=e}function Rae(e){this.a=e}function Vu(e){this.a=e}function Hu(e){this.a=e}function Uu(e){this.a=e}function Wu(e){this.a=e}function zae(e){this.a=e}function Bae(e){this.a=e}function Vae(e){this.a=e}function Hae(e){this.a=e}function Gu(e){this.a=e}function Uae(e){this.a=e}function Wae(e){this.a=e}function Gae(e){this.a=e}function Kae(e){this.a=e}function qae(e){this.a=e}function Ku(e){this.a=e}function qu(e){this.c=e}function Jae(e){this.b=e}function Yae(e){this.a=e}function Xae(e){this.a=e}function Ju(e){this.a=e}function Zae(e){this.a=e}function Yu(e){this.a=e}function Qae(e){this.a=e}function $ae(e){this.a=e}function eoe(e){this.a=e}function toe(e){this.a=e}function noe(e){this.a=e}function roe(e){this.a=e}function ioe(e){this.a=e}function aoe(e){this.a=e}function ooe(e){this.a=e}function soe(e){this.a=e}function coe(e){this.a=e}function loe(e){this.a=e}function uoe(e){this.a=e}function doe(e){this.a=e}function foe(e){this.a=e}function poe(e){this.a=e}function moe(e){this.a=e}function hoe(e){this.a=e}function goe(e){this.a=e}function Xu(e){this.a=e}function _oe(e){this.a=e}function voe(e){this.a=e}function Zu(e){this.a=e}function Qu(e){this.a=e}function yoe(e){this.a=e}function boe(e){this.a=e}function xoe(e){this.a=e}function Soe(e){this.a=e}function Coe(e){this.a=e}function woe(e){this.a=e}function Toe(e){this.a=e}function Eoe(e){this.a=e}function Doe(e){this.a=e}function Ooe(e){this.a=e}function koe(e){this.a=e}function Aoe(e){this.a=e}function $u(e){this.a=e}function joe(e){this.a=e}function Moe(e){this.a=e}function ed(e){this.a=e}function Noe(e){this.a=e}function td(e){this.a=e}function nd(e){this.a=e}function rd(e){this.a=e}function Poe(e){this.a=e}function Foe(e){this.a=e}function Ioe(e){this.a=e}function Loe(e){this.a=e}function Roe(e){this.a=e}function zoe(e){this.a=e}function id(e){this.a=e}function Boe(e){this.a=e}function Voe(e){this.a=e}function ad(e){this.a=e}function Hoe(e){this.a=e}function Uoe(e){this.a=e}function Woe(e){this.a=e}function Goe(e){this.a=e}function od(e){this.a=e}function Koe(e){this.a=e}function qoe(e){this.a=e}function Joe(e){this.a=e}function Yoe(e){this.a=e}function Xoe(e){this.a=e}function Zoe(e){this.a=e}function Qoe(e){this.a=e}function $oe(e){this.a=e}function sd(e){this.a=e}function cd(e){this.a=e}function ese(e){this.a=e}function ld(e){this.a=e}function ud(e){this.a=e}function dd(e){this.a=e}function fd(e){this.a=e}function tse(e){this.a=e}function nse(e){this.a=e}function rse(e){this.a=e}function pd(e){this.a=e}function md(e){this.a=e}function hd(e){this.b=e}function ise(e){this.f=e}function gd(e){this.a=e}function ase(e){this.a=e}function ose(e){this.a=e}function sse(e){this.a=e}function cse(e){this.a=e}function lse(e){this.a=e}function use(e){this.a=e}function dse(e){this.a=e}function fse(e){this.a=e}function _d(e){this.a=e}function pse(e){this.a=e}function mse(e){this.a=e}function vd(e){this.a=e}function yd(e){this.a=e}function bd(e){this.b=e}function xd(e){this.c=e}function Sd(e){this.e=e}function Cd(e){this.d=e}function wd(e){this.a=e}function hse(e){this.a=e}function Td(e){this.a=e}function Ed(e){this.a=e}function Dd(e){this.e=e}function Od(){this.a=0}function kd(){zv(this)}function Ad(){IS(this)}function jd(){WEe(this)}function Md(){}function Nd(){this.c=qBt}function gse(e,t){e.b+=t}function _se(e,t){t.Wb(e)}function vse(e){return e.a}function yse(e){return e.a}function bse(e){return e.a}function Pd(e){return e.a}function xse(e){return e.a}function O(e){return e.e}function Sse(){return null}function Cse(){return null}function wse(e){throw O(e)}function Fd(e){this.a=XS(e)}function Tse(){this.a=this}function Id(){Dge.call(this)}function Ese(e){e.b.Mf(e.e)}function Dse(e){e.b=new lm}function Ld(e,t){e.b=t-e.b}function Rd(e,t){e.a=t-e.a}function zd(e,t){t.gd(e.a)}function Bd(e,t){RI(t,e)}function Vd(e,t){e.push(t)}function Hd(e,t){e.sort(t)}function Ud(e,t,n){e.Wd(n,t)}function Wd(e,t){e.e=t,t.b=e}function Gd(e){ww(),mbt.je(e)}function Kd(){fle(),wut()}function qd(){Id.call(this)}function Jd(){Id.call(this)}function Yd(){Dge.call(this)}function Ose(){Id.call(this)}function Xd(){Id.call(this)}function Zd(){Id.call(this)}function Qd(){Id.call(this)}function $d(){Id.call(this)}function ef(){Id.call(this)}function tf(){Id.call(this)}function nf(){Id.call(this)}function kse(){Id.call(this)}function rf(){this.Bb|=256}function Ase(){this.b=new Hpe}function af(){af=C,new Ad}function of(e,t){e.length=t}function sf(e,t){fy(e.a,t)}function jse(e,t){W2e(e.c,t)}function Mse(e,t){PS(e.b,t)}function cf(e,t){PP(e.a,t)}function Nse(e,t){DM(e.a,t)}function lf(e,t){fA(e.e,t)}function uf(e){tL(e.c,e.b)}function df(e,t){e.kc().Nb(t)}function ff(e){this.a=LKe(e)}function pf(){this.a=new Ad}function mf(){this.a=new Ad}function hf(){this.a=new kd}function gf(){this.a=new kd}function _f(){this.a=new kd}function vf(){this.a=new Be}function yf(){this.a=new DFe}function bf(){this.a=new Fue}function xf(){this.a=new Jke}function Sf(){this.a=new Rve}function Cf(){this.a=new at}function Pse(){this.a=new Oje}function wf(){this.a=new kd}function Fse(){this.a=new kd}function Tf(){this.a=new kd}function Ef(){this.a=new kd}function Df(){this.d=new kd}function Of(){this.a=new pf}function kf(){this.a=new Ad}function Af(){this.b=new Ad}function jf(){this.b=new kd}function Mf(){this.e=new kd}function Ise(){this.a=new Wre}function Nf(){this.d=new kd}function Pf(){kd.call(this)}function Ff(){qd.call(this)}function If(){hf.call(this)}function Lf(){Tf.call(this)}function Rf(){Md.call(this)}function zf(){Rf.call(this)}function Bf(){jb.call(this)}function Vf(){Md.call(this)}function Hf(){Vf.call(this)}function Uf(){zOe.call(this)}function Lse(){zOe.call(this)}function Rse(){sp.call(this)}function zse(){sp.call(this)}function Bse(){sp.call(this)}function Wf(){lp.call(this)}function Gf(){uo.call(this)}function Kf(){uo.call(this)}function qf(){vh.call(this)}function Vse(){pp.call(this)}function Jf(){pp.call(this)}function Yf(){Ad.call(this)}function Xf(){Ad.call(this)}function Hse(){Ad.call(this)}function Zf(){aBe.call(this)}function Use(){pf.call(this)}function Qf(){rf.call(this)}function $f(){Zhe.call(this)}function ep(){Ad.call(this)}function tp(){Zhe.call(this)}function np(){Ad.call(this)}function rp(){Ad.call(this)}function ip(){To.call(this)}function ap(){ip.call(this)}function Wse(){To.call(this)}function op(){nc.call(this)}function sp(){this.a=new pf}function cp(){this.a=new Ad}function lp(){this.a=new Ad}function up(){this.a=new vh}function dp(){this.a=new kd}function fp(){this.j=new kd}function pp(){this.a=new So}function mp(){this.a=new ya}function hp(){this.a=new zle}function gp(){gp=C,UJ=new yp}function _p(){_p=C,LJ=new o}function vp(){vp=C,HJ=new Gse}function Gse(){Jc.call(this,``)}function yp(){Jc.call(this,``)}function bp(e){uze.call(this,e)}function Kse(e){uze.call(this,e)}function xp(e){Rc.call(this,e)}function Sp(e){tue.call(this,e)}function qse(e){tue.call(this,e)}function Cp(e){Sp.call(this,e)}function Jse(e){Sp.call(this,e)}function Yse(e){Sp.call(this,e)}function Xse(e){fE.call(this,e)}function wp(e){fE.call(this,e)}function Tp(e){khe.call(this,e)}function Zse(e){_ue.call(this,e)}function Ep(e){lh.call(this,e)}function Dp(e){lh.call(this,e)}function Qse(e){lh.call(this,e)}function Op(e){Vwe.call(this,e)}function $se(e){Op.call(this,e)}function kp(){al.call(this,{})}function Ap(e){xy(),this.a=e}function ece(e){e.b=null,e.c=0}function tce(e,t){e.e=t,iet(e,t)}function jp(e,t){e.a=t,K4e(e)}function Mp(e,t,n){e.a[t.g]=n}function Np(e,t,n){c$e(n,e,t)}function nce(e,t){oye(t.i,e.n)}function Pp(e,t){uWe(e).Ad(t)}function rce(e,t){return e*e/t}function Fp(e,t){return e.g-t.g}function ice(e,t){e.a.ec().Kc(t)}function Ip(e){return new il(e)}function Lp(e){return new oC(e)}function Rp(e){Op.call(this,e)}function zp(e){Op.call(this,e)}function Bp(e){Op.call(this,e)}function Vp(e){Vwe.call(this,e)}function Hp(e){$Ve(),this.a=e}function Up(e){zwe(),this.f=e}function Wp(e){zwe(),this.f=e}function Gp(e){mbe(),this.a=e}function Kp(e){Op.call(this,e)}function qp(e){Op.call(this,e)}function Jp(e){Op.call(this,e)}function ace(e){Op.call(this,e)}function Yp(e){Op.call(this,e)}function Xp(e){return bC(e),e}function k(e){return bC(e),e}function Zp(e){return bC(e),e}function oce(e){return bC(e),e}function sce(e){return bC(e),e}function Qp(e){return e.b==e.c}function $p(e){return!!e&&e.b}function cce(e){return!!e&&e.k}function lce(e){return!!e&&e.j}function em(e){bC(e),this.a=e}function uce(e){return fj(e),e}function tm(e){CTe(e,e.length)}function nm(e){Op.call(this,e)}function rm(e){Op.call(this,e)}function im(e){Op.call(this,e)}function am(e){Op.call(this,e)}function om(e){Op.call(this,e)}function sm(e){Op.call(this,e)}function cm(e){Xge.call(this,e,0)}function lm(){Eje.call(this,12,3)}function um(){this.a=fb(XS(pB))}function dce(){throw O(new tf)}function fce(){throw O(new tf)}function pce(){throw O(new tf)}function mce(){throw O(new tf)}function hce(){throw O(new tf)}function gce(){throw O(new tf)}function _ce(){_ce=C,ubt=new a}function vce(){vce=C,pbt=new v}function dm(){dm=C,QJ=new x}function fm(){fm=C,KJ=new Ohe}function yce(){yce=C,vbt=new ee}function pm(){pm=C,ww()}function mm(){Ml.call(this,``)}function hm(){Ml.call(this,``)}function gm(){Ml.call(this,``)}function _m(){Ml.call(this,``)}function bce(e){zp.call(this,e)}function xce(e){zp.call(this,e)}function vm(e){qp.call(this,e)}function ym(e){Hl.call(this,e)}function Sce(e){ym.call(this,e)}function bm(e){Oy.call(this,e)}function Cce(e,t,n){e.c.Cf(t,n)}function wce(e,t,n){t.Ad(e.a[n])}function Tce(e,t,n){t.Ne(e.a[n])}function Ece(e,t){return e.a-t.a}function Dce(e,t){return e.a-t.a}function Oce(e,t){return e.a-t.a}function xm(e,t){return AD(e,t)}function A(e,t){return sAe(e,t)}function kce(e,t){return t in e.a}function Ace(e){return e.a?e.b:0}function jce(e){return e.a?e.b:0}function Mce(e,t){return e.f=t,e}function Nce(e,t){return e.b=t,e}function Pce(e,t){return e.c=t,e}function Fce(e,t){return e.g=t,e}function Ice(e,t){return e.a=t,e}function Lce(e,t){return e.f=t,e}function Rce(e,t){return e.k=t,e}function zce(e,t){return e.a=t,e}function Bce(e,t){return e.e=t,e}function Vce(e,t){return e.e=t,e}function Hce(e,t){return e.f=t,e}function Uce(e,t){e.b=new Sv(t)}function Wce(e,t){e._d(t),t.$d(e)}function Gce(e,t){ix(),t.n.a+=e}function Kce(e,t){cI(),Qw(t,e)}function qce(e,t){return e.b-t.b}function Jce(e,t){return e.g-t.g}function Yce(e,t){return e.s-t.s}function Xce(e,t){return e?0:t-1}function Zce(e,t){return e?0:t-1}function Qce(e,t){return e?t-1:0}function $ce(e,t){return t.pg(e)}function Sm(e,t){return e.b=t,e}function Cm(e,t){return e.a=t,e}function wm(e,t){return e.c=t,e}function Tm(e,t){return e.d=t,e}function Em(e,t){return e.e=t,e}function ele(e,t){return e.f=t,e}function Dm(e,t){return e.a=t,e}function Om(e,t){return e.b=t,e}function km(e,t){return e.c=t,e}function Am(e,t){return e.c=t,e}function jm(e,t){return e.b=t,e}function Mm(e,t){return e.d=t,e}function Nm(e,t){return e.e=t,e}function tle(e,t){return e.f=t,e}function Pm(e,t){return e.g=t,e}function Fm(e,t){return e.a=t,e}function Im(e,t){return e.i=t,e}function Lm(e,t){return e.j=t,e}function nle(e,t){return e.j=t,e}function rle(e,t){return e.k=t,e}function Rm(){this.a=0,this.b=0}function ile(){this.b=0,this.a=0}function ale(e){GDe.call(this,e)}function ole(e){GDe.call(this,e)}function zm(e){Kb.call(this,e)}function Bm(e){TO.call(this,e)}function sle(e){ZC.call(this,e)}function cle(e){ZC.call(this,e)}function lle(){ihe.call(this,``)}function ule(){ule=C,ext=$$e()}function Vm(){Vm=C,Bzt=HQe()}function dle(){dle=C,l7=V1e()}function fle(){fle=C,T7=sk()}function Hm(){Hm=C,NBt=UQe()}function ple(){ple=C,bVt=WQe()}function mle(){mle=C,x9=U4e()}function Um(e){return e.e&&e.e()}function hle(e,t){return e.c._b(t)}function gle(e,t){return DGe(e.b,t)}function _le(e,t){return mde(e.a,t)}function vle(e,t){e.b=0,$O(e,t)}function yle(e,t){e.c=t,e.b=!0}function Wm(e,t){return e.a+=t,e}function Gm(e,t){return e.a+=t,e}function Km(e,t){return e.a+=t,e}function qm(e,t){return e.a+=t,e}function Jm(e){return ub(e),e.o}function ble(e){Clt(),Uut(this,e)}function xle(){throw O(new tf)}function Sle(){throw O(new tf)}function Cle(){throw O(new tf)}function wle(){throw O(new tf)}function Tle(){throw O(new tf)}function Ele(){throw O(new tf)}function Ym(e){this.a=new wh(e)}function Xm(e){this.a=new uTe(e)}function Zm(e,t){for(;e.Pe(t););}function Dle(e,t){for(;e.zd(t););}function Ole(e,t,n){vwe(e.a,t,n)}function kle(e,t,n){e.splice(t,n)}function Ale(e,t){return bot(t,e)}function jle(e,t){return e.d[t.p]}function Qm(e){return e.b!=e.d.c}function Mle(e){return e.l|e.m<<22}function $m(e){return e?e.d:null}function Nle(e){return e?e.g:null}function Ple(e){return e?e.i:null}function Fle(e,t){return net(e,t)}function eh(e){return hC(e),e.a}function Ile(e){e.c?$et(e):ett(e)}function Lle(){this.b=new LL(CMt)}function Rle(){this.b=new LL(B3)}function zle(){this.b=new LL(B3)}function Ble(){this.a=new LL(LNt)}function Vle(){this.a=new LL(NPt)}function th(e){this.a=0,this.b=e}function Hle(){throw O(new tf)}function Ule(){throw O(new tf)}function Wle(){throw O(new tf)}function Gle(){throw O(new tf)}function Kle(){throw O(new tf)}function qle(){throw O(new tf)}function Jle(){throw O(new tf)}function Yle(){throw O(new tf)}function Xle(){throw O(new tf)}function Zle(){throw O(new tf)}function Qle(){throw O(new nf)}function $le(){throw O(new nf)}function nh(e){this.a=new wue(e)}function rh(e){this.b=F(XS(e),92)}function eue(e,t){this.b=e,this.c=t}function ih(e,t){this.e=e,this.d=t}function tue(e){$he(e.dc()),this.c=e}function nue(e,t){this.a=e,this.b=t}function rue(e,t){this.a=e,this.b=t}function iue(e,t){this.a=e,this.b=t}function aue(e,t){this.a=e,this.b=t}function oue(e,t){this.a=e,this.b=t}function sue(e,t){this.a=e,this.b=t}function cue(e,t){this.a=e,this.b=t}function lue(e,t){this.b=e,this.a=t}function ah(e,t){this.g=e,this.i=t}function uue(e,t){this.b=e,this.a=t}function oh(e,t){by.call(this,e,t)}function sh(e,t){oh.call(this,e,t)}function due(e,t){this.a=e,this.b=t}function fue(e,t){this.a=e,this.b=t}function pue(e,t){this.b=e,this.a=t}function mue(e,t){this.b=e,this.a=t}function ch(e,t){this.f=e,this.g=t}function lh(e){this.b=F(XS(e),50)}function uh(e,t){this.a=e,this.b=t}function hue(e,t){this.a=e,this.f=t}function gue(e){this.a=F(XS(e),16)}function _ue(e){this.a=F(XS(e),16)}function vue(e,t){this.b=e,this.c=t}function yue(e){this.a=F(XS(e),92)}function bue(e,t){this.a=e,this.b=t}function xue(e,t){this.a=e,this.b=t}function Sue(e,t){return kS(e.b,t)}function Cue(e,t){return e>t&&t0}function rg(e,t){return qj(e,t)<0}function gde(e,t){return t.split(e)}function ig(e){return e.b=0}function tv(e,t){return qj(e,t)!=0}function kpe(e,t){return e.a+=``+t,e}function Ape(e){return``+(bC(e),e)}function jpe(e,t){e.q.setTime(zT(t))}function nv(e,t){return e.a+=``+t,e}function rv(e,t){return e.a+=``+t,e}function iv(e,t){return e.a+=``+t,e}function av(e,t){return e.a+=``+t,e}function ov(e,t){return e.a+=``+t,e}function Mpe(e){return gT(e,0),null}function Npe(e){IS(this),nA(this,e)}function Ppe(e,t){cTe.call(this,e,t)}function Fpe(e,t){cTe.call(this,e,t)}function sv(e,t){cTe.call(this,e,t)}function Ipe(){vAe(),BOe.call(this)}function Lpe(){vAe(),BOe.call(this)}function Rpe(){gAe(),Mwe.call(this)}function zpe(){zpe=C,LMt=Bj(QVe())}function Bpe(){Bpe=C,cSt=Bj(tP())}function Vpe(){Vpe=C,Pwt=Bj(O9e())}function Hpe(){this.b=new wh(gA(12))}function Upe(){this.b=0,this.a=!1}function Wpe(){this.b=0,this.a=!1}function cv(e,t){bE(e,t,e.a,e.a.a)}function lv(e,t){bE(e,t,e.c.b,e.c)}function uv(e,t){Jh(),TC(D7,e,t)}function dv(e,t){kb.call(this,e,t)}function fv(e,t){Rb.call(this,e,t)}function pv(e,t){mpe.call(this,e,t)}function Gpe(e,t){By.call(this,e,t)}function mv(e,t){EA.call(this,e,t)}function hv(e){this.a=e,rc.call(this)}function Kpe(e){this.a=e,rc.call(this)}function gv(e){return e.a=0,e.b=0,e}function qpe(e,t){return e.a=t.g+1,e}function Jpe(e,t){return e.j[t.p]==2}function _v(e,t){return yw(e.a,0,t)}function Ype(e,t){return vM(e.a,t.a)}function Xpe(e,t){return Zv(e.a,t.a)}function Zpe(e,t){return zTe(e.a,t.a)}function Qpe(e,t){return M(e)===M(t)}function vv(e,t){return e.indexOf(t)}function $pe(e){return XS(e),new hv(e)}function eme(e){return Qv(e.l,e.m,e.h)}function yv(e){return Nw((bC(e),e))}function tme(e){return Nw((bC(e),e))}function nme(e,t){return Zv(e.g,t.g)}function bv(e){return typeof e===jdt}function rme(e){return e==NX||e==PX}function ime(e){return e==NX||e==IX}function xv(e){return e<10?`0`+e:``+e}function ame(e){return VD(e.b.b,e,0)}function ome(e,t){kD(e,0,e.length,t)}function sme(e,t){return fy(e.a,t),t}function cme(e,t){return ix(),t.a+=e}function lme(e,t){return ix(),t.a+=e}function ume(e,t){return ix(),t.c+=e}function dme(e,t){return fy(e.c,t),e}function fme(e,t){return dA(e.a,t),e}function pme(e){this.a=Tde(),this.b=e}function mme(e){this.a=Tde(),this.b=e}function Sv(e){this.a=e.a,this.b=e.b}function Cv(){Xl.call(this,new gE)}function hme(){Ux.call(this,0,0,0,0)}function wv(){GC.call(this,0,0,0,0)}function Tv(e){return dA(new vC,e)}function gme(e){return AC(F(e,125))}function Ev(e){return e.sh()&&e.th()}function Dv(e){return e!=i5&&e!=a5}function Ov(e){return e==y8||e==b8}function kv(e){return e==S8||e==v8}function _me(e){return e==n2||e==t2}function vme(e,t){return vM(t.f,e.f)}function yme(e,t){return Zv(e.g,t.g)}function bme(e,t){return new EA(t,e)}function xme(e,t){return new EA(t,e)}function Av(e,t,n){HO(e,t),UO(e,n)}function jv(e,t,n){KO(e,t),VO(e,n)}function Mv(e,t,n){qO(e,t),JO(e,n)}function Nv(e,t,n){WO(e,t),GO(e,n)}function Pv(e,t,n){YO(e,t),XO(e,n)}function Fv(e,t){Ij(e,t),ek(e,e.D)}function Iv(e){lpe.call(this,e,!0)}function Sme(e,t,n){J_e.call(this,e,t,n)}function Cme(){ug.call(this,`Head`,1)}function wme(){ug.call(this,`Tail`,3)}function Lv(e){pR(),BVe.call(this,e)}function Rv(e){Ux.call(this,e,e,e,e)}function zv(e){e.c=H(IJ,mB,1,0,5,1)}function Tme(e){kO(e.Qf(),new fu(e))}function Bv(e){return e==null?0:Rk(e)}function Eme(e,t){return EO(t,Hw(e))}function Dme(e,t){return EO(t,Hw(e))}function Ome(e,t){return e[e.length]=t}function kme(e,t){return e[e.length]=t}function Ame(e,t){return vk(mEe(e.f),t)}function jme(e,t){return vk(mEe(e.n),t)}function Mme(e,t){return vk(mEe(e.p),t)}function Nme(e){return ySe(e.b.Jc(),e.a)}function Pme(e){return e==null?0:Rk(e)}function Vv(e,t){kb.call(this,e.b,t)}function Fme(e,t){hD(cE(e.a),TAe(t))}function Ime(e,t){hD(qD(e.a),EAe(t))}function Lme(e,t,n){Mv(n,n.i+e,n.j+t)}function Rme(e,t,n){eC(e.c[t.g],t.g,n)}function zme(e,t,n){F(e.c,72).Ei(t,n)}function Hv(e,t,n){return eC(e,t,n),n}function Bme(e,t){FY||(e.b=t)}function Vme(){Vme=C,af(),hbt=new Ad}function Hme(){Hme=C,J2=new aN(kRt)}function Uv(){Uv=C,r.Math.log(2)}function Wv(){Wv=C,f9=(ide(),Zzt)}function Gv(){Gv=C,new Ume,new kd}function Ume(){new Ad,new Ad,new Ad}function Wme(){throw O(new nm(Kyt))}function Gme(){throw O(new nm(Gyt))}function Kme(){throw O(new nm(Gyt))}function qme(){throw O(new nm(Kyt))}function Kv(e){eB(),Dd.call(this,e)}function Jme(e){this.a=e,SSe.call(this,e)}function qv(e){this.a=e,rh.call(this,e)}function Jv(e){this.a=e,rh.call(this,e)}function Yv(e,t){lwe(e.c,e.c.length,t)}function Xv(e){return e.at)}function Zme(e,t){return qj(e,t)>0?e:t}function Qv(e,t,n){return{l:e,m:t,h:n}}function Qme(e,t){e.a!=null&&Dpe(t,e.a)}function $me(e){Yw(e,null),Zw(e,null)}function ehe(e,t,n){return TC(e.g,n,t)}function the(e,t){XS(t),PC(e).Ic(new h)}function nhe(){CF(),this.a=new LL(_Ct)}function $v(e){this.b=e,this.a=new kd}function rhe(e){this.b=new rt,this.a=e}function ihe(e){Lve.call(this),this.a=e}function ahe(e){VOe.call(this),this.b=e}function ohe(){ug.call(this,`Range`,2)}function ey(e){e.j=H(Pbt,OB,325,0,0,1)}function she(e){e.a=new pe,e.c=new pe}function che(e){e.a=new Ad,e.e=new Ad}function lhe(e){cT(e,null),lT(e,null)}function uhe(e,t,n){return vct(e,t,n),n}function dhe(e,t){return rT(),t.n.b+=e}function ty(e,t,n){return uJe(t,n,e.c)}function fhe(e,t,n){return TC(e.k,n,t)}function phe(e,t){return TC(e.a,t.a,t)}function mhe(e,t){return Sct(e.a,t,null)}function hhe(e,t){return P(tC(e.i,t))}function ghe(e,t){return P(tC(e.j,t))}function ny(e,t){return lst(e.c,e.b,t)}function _he(e){return new j(e.c,e.d)}function vhe(e){return new j(e.c,e.d)}function ry(e){return new j(e.a,e.b)}function N(e,t){return e!=null&&xP(e,t)}function iy(e,t){return iUe(e.Jc(),t)!=-1}function ay(e){return e.Ob()?e.Pb():null}function yhe(e,t){return new hge(e.Jc(),t)}function bhe(e,t){e.q.setHours(t),KR(e,t)}function xhe(e,t,n){e.c._c(t,F(n,136))}function She(e,t,n){e.c.Si(t,F(n,136))}function Che(e,t){yz(e),e.Fc(F(t,16))}function whe(e,t){return e.a.Ac(t)!=null}function The(e){return IN(e,0,e.length)}function Ehe(){By.call(this,null,null)}function Dhe(){Vy.call(this,null,null)}function Ohe(){ch.call(this,`INSTANCE`,0)}function khe(e){this.a=(ew(),new ym(e))}function Ahe(e){this.b=(ew(),new Ql(e))}function jhe(e){this.a=e,Ad.call(this)}function oy(){this.a=H(IJ,mB,1,8,5,1)}function Mhe(e,t,n,r){eC(e.a[t.g],n.g,r)}function sy(e,t,n){return e.a[t.g][n.g]}function cy(e,t){return e.a[t.c.p][t.p]}function Nhe(e,t){return e.c[t.c.p][t.p]}function Phe(e,t){return e.e[t.c.p][t.p]}function Fhe(e,t){return e.j[t.p]=d7e(t)}function Ihe(e,t){return CFe(e.f,t.Og())}function Lhe(e,t){return k(P(t.a))<=e}function Rhe(e,t){return k(P(t.a))>=e}function ly(e,t){return e.a.Ac(t)!=null}function zhe(e,t){return e.a0?t*t/e:t*t*100}function g_e(e,t){return e>0?t/(e*e):t*100}function __e(e,t){return e.a=t.a,e.b=t.b,e}function ab(e){return e.a=-e.a,e.b=-e.b,e}function v_e(e,t,n){return e.a-=t,e.b-=n,e}function ob(e,t,n){return e.a+=t,e.b+=n,e}function y_e(e,t,n){ED(),e.nf(t)&&n.Ad(e)}function b_e(e){this.c=e,qO(e,0),JO(e,0)}function x_e(e){vh.call(this),fk(this,e)}function S_e(){ch.call(this,`GROW_TREE`,0)}function sb(e,t,n){yD.call(this,e,t,n,2)}function C_e(e,t){Yh(),By.call(this,e,t)}function w_e(e,t){Xh(),Vy.call(this,e,t)}function T_e(e,t){Xh(),Vy.call(this,e,t)}function E_e(e,t){Xh(),w_e.call(this,e,t)}function D_e(e,t){return e.c.Ec(F(t,136))}function O_e(e,t){return F(tC(e.e,t),26)}function k_e(e,t){return F(tC(e.e,t),26)}function A_e(e,t,n){gM(qD(e.a),t,EAe(n))}function j_e(e,t,n){gM(cE(e.a),t,TAe(n))}function cb(e,t){Wv(),Jx.call(this,e,t)}function M_e(e,t){Wv(),Jx.call(this,e,t)}function N_e(e,t){Wv(),Jx.call(this,e,t)}function P_e(e,t){Wv(),cb.call(this,e,t)}function F_e(e,t){Wv(),cb.call(this,e,t)}function I_e(e,t){Wv(),F_e.call(this,e,t)}function L_e(e,t){Wv(),M_e.call(this,e,t)}function R_e(e,t,n){return fz(WD(e,t),n)}function z_e(e,t,n){return t.xl(e.e,e.c,n)}function B_e(e,t,n){return t.yl(e.e,e.c,n)}function lb(e,t){return eM(e.e,F(t,52))}function V_e(e,t){return bC(e),e+Wb(t)}function H_e(e){return e==null?null:eN(e)}function U_e(e){return e==null?null:eN(e)}function W_e(e){return e==null?null:Tlt(e)}function G_e(e){return e==null?null:F2e(e)}function ub(e){e.o??v5e(e)}function db(e){return wx(e==null||G_(e)),e}function P(e){return wx(e==null||K_(e)),e}function fb(e){return wx(e==null||q_(e)),e}function pb(e){N(e,161)&&F(e,161).mi()}function K_e(){aBe.call(this),this.Bb|=VV}function q_e(e,t){this.d=e,Ol(this),this.b=t}function mb(e,t){this.c=e,ih.call(this,e,t)}function hb(e,t){this.a=e,mb.call(this,e,t)}function J_e(e,t,n){iD.call(this,e,t,n,null)}function Y_e(e,t,n){iD.call(this,e,t,n,null)}function X_e(e,t){dD.call(this,e),this.a=t}function Z_e(e,t){dD.call(this,e),this.a=t}function Q_e(e,t){return HP(e,t),new cDe(e,t)}function $_e(e,t,n){return e.Le(t,n)<=0?n:t}function eve(e,t,n){return e.Le(t,n)<=0?t:n}function tve(e){return bC(e),e?1231:1237}function nve(e,t){t.a?m8e(e,t):ly(e.a,t.b)}function rve(e,t){FY||fy(e.a,t)}function ive(e,t){return Ph(),hA(t.d.i,e)}function ave(e,t){return Lk(),new _nt(t,e)}function ove(e,t){return F(oO(e.b,t),144)}function sve(e,t){return F(oO(e.c,t),233)}function gb(e){return F(zx(e.a,e.b),295)}function cve(e){return new j(e.c,e.d+e.a)}function lve(e){return rT(),_me(F(e,203))}function uve(e,t){return F(tC(e.b,t),278)}function _b(e,t){return xw(t,zft),e.f=t,e}function dve(e,t,n){return n=kR(e,t,3,n),n}function fve(e,t,n){return n=kR(e,t,6,n),n}function pve(e,t,n){return n=kR(e,t,9,n),n}function vb(e,t,n){++e.j,e.rj(),cD(e,t,n)}function mve(e,t,n){++e.j,e.oj(t,e.Xi(t,n))}function hve(e,t,n){e.dd(t).Rb(n)}function gve(e,t){this.c=e,TO.call(this,t)}function _ve(e,t){this.a=e,bd.call(this,t)}function yb(e,t){this.a=e,bd.call(this,t)}function vve(e){this.q=new r.Date(zT(e))}function yve(){this.a=new Ow,this.b=new Ow}function bb(){bb=C,E7=new Vse,new Jf}function xb(){xb=C,B4=new hd(`root`)}function Sb(){Sb=C,lSt=JM((AN(),z5))}function Cb(e){e.b?Cb(e.b):e.f.c.yc(e.e,e.d)}function wb(e){this.a=(ew(),new Rl(XS(e)))}function bve(e){this.a=(_k(e,GB),new pD(e))}function xve(e){this.a=(_k(e,GB),new pD(e))}function Sve(e){return e==null?null:e.message}function Tb(e){return String.fromCharCode(e)}function Cve(e){return $x(hS(e,32))^$x(e)}function wve(e,t){return(t&lB)%e.d.length}function Tve(e,t,n){return Lat(e.c,e.b,t,n)}function Eve(e,t,n){return e.apply(t,n)}function Dve(e,t,n){return NS(e,F(t,24),n)}function Ove(e,t,n){return e.a+=IN(t,0,n),e}function kve(e,t){var n=e.e;return e.e=t,n}function Ave(e,t){var n=t;return!!e.De(n)}function jve(e,t){e[QV].call(e,t)}function Mve(e,t){e[QV].call(e,t)}function Eb(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function Nve(e){IS(e.e),e.d.b=e.d,e.d.a=e.d}function Pve(e,t,n){Th(),Die(e,t.Te(e.a,n))}function Db(e,t){return ky(),e==t?0:e?1:-1}function Ob(e,t){return xm(Array(t),e)}function kb(e,t){hd.call(this,e),this.a=t}function Fve(e,t){xd.call(this,e),this.a=t}function Ab(e,t){xd.call(this,e),this.a=t}function Ive(){jb.call(this),this.a=new Rm}function Lve(){this.n=new Rm,this.o=new Rm}function Rve(){this.b=new Rm,this.c=new kd}function zve(){this.a=new kd,this.b=new kd}function Bve(){this.a=new at,this.b=new Ase}function Vve(){this.b=new gE,this.a=new gE}function Hve(){this.b=new pf,this.a=new pf}function Uve(){this.a=new kd,this.d=new kd}function Wve(){this.b=new Ad,this.a=new Ad}function Gve(){this.b=new Lle,this.a=new Vte}function Kve(){this.a=new Gre,this.b=new Ur}function jb(){this.n=new Vf,this.i=new wv}function Mb(e){return!e.a&&(e.a=new te),e.a}function Nb(e,t){return e.a+=t.a,e.b+=t.b,e}function Pb(e,t){return e.a-=t.a,e.b-=t.b,e}function qve(e){return of(e.j.c,0),e.a=-1,e}function Jve(e,t,n){return n=kR(e,t,11,n),n}function Yve(e,t,n){n!=null&&Sk(t,qP(e,n))}function Xve(e,t,n){n!=null&&Ck(t,qP(e,n))}function Fb(e,t,n,r){I.call(this,e,t,n,r)}function Zve(e,t,n,r){Ux.call(this,e,t,n,r)}function Qve(e,t,n,r){I.call(this,e,t,n,r)}function $ve(e,t,n,r){Qve.call(this,e,t,n,r)}function eye(e,t,n,r){TS.call(this,e,t,n,r)}function Ib(e,t,n,r){TS.call(this,e,t,n,r)}function tye(e,t,n,r){Ib.call(this,e,t,n,r)}function nye(e,t,n,r){TS.call(this,e,t,n,r)}function Lb(e,t,n,r){nye.call(this,e,t,n,r)}function rye(e,t,n,r){Ib.call(this,e,t,n,r)}function iye(e,t,n,r){rye.call(this,e,t,n,r)}function aye(e,t,n,r){gTe.call(this,e,t,n,r)}function Rb(e,t){zp.call(this,Eq+e+fq+t)}function oye(e,t){Ov(e.f)?c5e(e,t):t0e(e,t)}function sye(e,t){return e.hk().ti().oi(e,t)}function cye(e,t){return e.hk().ti().qi(e,t)}function lye(e,t){return e.n.a=(bC(t),t+10)}function uye(e,t){return e.n.a=(bC(t),t+10)}function dye(e,t){return e.e=F(e.d.Kb(t),162)}function fye(e,t){return t==e||TF(CL(t),e)}function pye(e,t,n){return e.lastIndexOf(t,n)}function zb(e,t){return bC(e),M(e)===M(t)}function mye(e,t){return bC(e),M(e)===M(t)}function hye(e,t){return TC(e.a,t,``)==null}function gye(e,t){return e.b.zd(new Ode(e,t))}function _ye(e,t){return e.b.zd(new kde(e,t))}function vye(e,t){return e.b.zd(new Ade(e,t))}function yye(e,t){return G(t,(Yz(),E1),e)}function bye(e,t,n){return vM(e[t.a],e[n.a])}function xye(e,t){return Zv(e.a.d.p,t.a.d.p)}function Sye(e,t){return Zv(t.a.d.p,e.a.d.p)}function Cye(e,t){return Ph(),!hA(t.d.i,e)}function wye(e,t){FY||t&&(e.d=t)}function Tye(e,t){OSe.call(this,e,e.length,t)}function Eye(e){this.c=e,sv.call(this,NB,0)}function Dye(e,t,n){this.a=e,Xge.call(this,t,n)}function Oye(e,t){this.c=e,LTe.call(this,e,t)}function kye(e,t,n){this.c=t,this.b=n,this.a=e}function Bb(e){vx(),this.d=e,this.a=new oy}function Aye(e){return e<100?null:new Bm(e)}function jye(e){return e.c?VD(e.c.a,e,0):-1}function Mye(e,t){return vM(e.c.e.a,t.c.e.a)}function Nye(e,t){return vM(e.b.e.a,t.b.e.a)}function Pye(e,t){return vM(e.c-e.s,t.c-t.s)}function Fye(e,t,n){return F(e.c,72).Uk(t,n)}function Vb(e,t,n){return F(e.c,72).Vk(t,n)}function Iye(e,t,n){return z_e(e,F(t,344),n)}function Lye(e,t,n){return B_e(e,F(t,344),n)}function Rye(e,t,n){return _1e(e,F(t,344),n)}function zye(e,t,n){return y0e(e,F(t,344),n)}function Bye(e,t){return N(t,16)&&htt(e.c,t)}function Hb(e,t){return t==null?null:Kj(e.b,t)}function Ub(e){return e==e5||e==n5||e==t5}function Wb(e){return K_(e)?(bC(e),e):e.se()}function Gb(e){return!isNaN(e)&&!isFinite(e)}function Kb(e){she(this),rw(this),Kk(this,e)}function qb(e){zv(this),ASe(this.c,0,e.Nc())}function Jb(e,t,n){this.a=e,this.b=t,this.c=n}function Vye(e,t,n){this.a=e,this.b=t,this.c=n}function Hye(e,t,n){this.d=e,this.b=n,this.a=t}function Uye(e){this.a=e,xh(),_A(Date.now())}function Yb(e){if(!e)throw O(new Jp(Pdt))}function Wye(e,t){if(!e)throw O(new qp(t))}function Xb(e,t){if(e!=t)throw O(new Xd)}function Zb(){Zb=C,rxt=new me,ixt=new he}function Qb(e){var t=new Ge;return t.e=e,t}function Gye(e,t){return t.ni(e.a)}function Kye(e,t,n){return Th(),e.a.Wd(t,n),t}function qye(e){_C(e.a),kIe(e.c,e.b),e.b=null}function Jye(e){return tB(),ak((Bpe(),cSt),e)}function Yye(e){return lO(),ak((JFe(),zxt),e)}function Xye(e){return jD(),ak((qFe(),Ixt),e)}function Zye(e){return MD(),ak((xLe(),fxt),e)}function Qye(e){return jj(),ak((XFe(),Sxt),e)}function $ye(e){return MO(),ak((YFe(),Pxt),e)}function ebe(e){return NA(),ak((wLe(),dSt),e)}function tbe(e){return hO(),ak((DPe(),ESt),e)}function nbe(e){return JD(),ak((ZFe(),pCt),e)}function rbe(e){return rI(),ak((ARe(),vCt),e)}function ibe(e){return XA(),ak((TLe(),wCt),e)}function abe(e){return KN(),ak((CLe(),NCt),e)}function obe(e){return _L(),ak((XVe(),RCt),e)}function sbe(e){Ux.call(this,e.d,e.c,e.a,e.b)}function $b(e){Ux.call(this,e.d,e.c,e.a,e.b)}function cbe(e,t,n){this.b=e,this.c=t,this.a=n}function ex(e,t,n){this.b=e,this.a=t,this.c=n}function lbe(e,t,n){this.a=e,this.b=t,this.c=n}function ube(e,t,n){this.a=e,this.b=t,this.c=n}function dbe(e,t,n){this.a=e,this.b=t,this.c=n}function fbe(e,t,n){this.b=e,this.a=t,this.c=n}function tx(e,t,n){this.e=t,this.b=e,this.d=n}function pbe(e){var t=new Df;return t.b=e,t}function nx(){nx=C,tZ=new vee,nZ=new fn}function rx(){rx=C,Bwt=new Rn,zwt=new zn}function ix(){ix=C,Jwt=new Cr,Ywt=new wr}function mbe(){mbe=C,pBt=H(IJ,mB,1,0,5,1)}function hbe(){hbe=C,HBt=H(IJ,mB,1,0,5,1)}function gbe(){gbe=C,UBt=H(IJ,mB,1,0,5,1)}function _be(e){return Pk(),ak((OPe(),XCt),e)}function vbe(e){return $z(),ak((Vpe(),Pwt),e)}function ybe(e){return YA(),ak((SLe(),Rwt),e)}function bbe(e){return MA(),ak((kLe(),Qwt),e)}function xbe(e){return zF(),ak((MRe(),eTt),e)}function Sbe(e){return aD(),ak((fPe(),dTt),e)}function Cbe(e){return DI(),ak((jze(),cTt),e)}function wbe(e){return sN(),ak((ELe(),hTt),e)}function Tbe(e){return lk(),ak((fIe(),vTt),e)}function Ebe(e){return vL(),ak((kHe(),xTt),e)}function Dbe(e){return gO(),ak((pPe(),wTt),e)}function Obe(e){return QA(),ak((pIe(),ETt),e)}function kbe(e){return Ik(),ak((tIe(),aTt),e)}function Abe(e){return kF(),ak((Nze(),LTt),e)}function jbe(e){return fI(),ak((Mze(),OTt),e)}function Mbe(e){return ND(),ak((dPe(),jTt),e)}function Nbe(e){return lI(),ak((Pze(),WTt),e)}function Pbe(e){return YL(),ak((uUe(),GTt),e)}function Fbe(e){return AA(),ak((QFe(),KTt),e)}function Ibe(e){return ZA(),ak(($Fe(),JTt),e)}function Lbe(e){return uO(),ak((eIe(),XTt),e)}function Rbe(e){return tE(),ak((mPe(),$Tt),e)}function zbe(e){return nR(),ak((ZVe(),sTt),e)}function Bbe(e){return oN(),ak((IRe(),mEt),e)}function Vbe(e){return SE(),ak((hPe(),gEt),e)}function Hbe(e){return NL(),ak((AHe(),PAt),e)}function Ube(e){return Xj(),ak((oIe(),LAt),e)}function Wbe(e){return CP(),ak((DLe(),RAt),e)}function Gbe(e){return hP(),ak((jRe(),BAt),e)}function Kbe(e){return hR(),ak((lUe(),KAt),e)}function qbe(e){return LN(),ak((OLe(),YAt),e)}function Jbe(e){return YD(),ak((gPe(),ZAt),e)}function Ybe(e){return uk(),ak((iIe(),$At),e)}function Xbe(e){return kA(),ak((rIe(),rjt),e)}function Zbe(e){return Aj(),ak((nIe(),ajt),e)}function Qbe(e){return Pj(),ak((aIe(),cjt),e)}function $be(e){return ck(),ak((sIe(),fjt),e)}function exe(e){return FA(),ak((cIe(),mjt),e)}function txe(e){return Yj(),ak((ALe(),Fjt),e)}function nxe(e){return nE(),ak((_Pe(),Hjt),e)}function rxe(e){return Aw(),ak((vPe(),Zjt),e)}function ixe(e){return Ww(),ak((yPe(),$jt),e)}function axe(e){return QE(),ak((bPe(),hMt),e)}function oxe(e){return kw(),ak((xPe(),SMt),e)}function sxe(e){return uF(),ak((NLe(),wMt),e)}function cxe(e){return vR(),ak((zpe(),LMt),e)}function lxe(e){return gj(),ak((lIe(),BMt),e)}function uxe(e){return Nj(),ak((MLe(),kNt),e)}function dxe(e){return DT(),ak((SPe(),MNt),e)}function fxe(e){return Fk(),ak((CPe(),RNt),e)}function pxe(e){return HF(),ak((NRe(),BNt),e)}function mxe(e){return kj(),ak((uIe(),qNt),e)}function hxe(e){return DD(),ak((wPe(),UNt),e)}function gxe(e){return KP(),ak((jLe(),OPt),e)}function _xe(e){return jA(),ak((hIe(),MPt),e)}function vxe(e){return kN(),ak((mIe(),PPt),e)}function yxe(e){return $F(),ak((PLe(),IPt),e)}function bxe(e){return YM(),ak((dIe(),HPt),e)}function xxe(e){return OE(),ak((TPe(),OFt),e)}function Sxe(e){return PD(),ak((_Ie(),MFt),e)}function Cxe(e){return SM(),ak((gIe(),IFt),e)}function wxe(e){return Vh(),ak((JMe(),WFt),e)}function Txe(e){return xM(),ak((vIe(),BFt),e)}function Exe(e){return Bh(),ak((qMe(),HFt),e)}function Dxe(e){return $E(),ak((EPe(),KFt),e)}function Oxe(e){return hI(),ak((FRe(),ZFt),e)}function kxe(e){return OL(),ak((PRe(),zFt),e)}function Axe(e){return Hh(),ak((YMe(),kIt),e)}function jxe(e){return IA(),ak((kPe(),MIt),e)}function Mxe(e){return iP(),ak((LRe(),HIt),e)}function Nxe(e){return CI(),ak((JVe(),GIt),e)}function Pxe(e){return wP(),ak((Fze(),YIt),e)}function Fxe(e){return IF(),ak((Rze(),sLt),e)}function Ixe(e){return yM(),ak((RRe(),xRt),e)}function Lxe(e){return Zj(),ak((FLe(),TRt),e)}function Rxe(e){return NO(),ak((yIe(),DRt),e)}function zxe(e){return CM(),ak((ILe(),ARt),e)}function Bxe(e){return eI(),ak((zze(),RRt),e)}function Vxe(e){return Oj(),ak((bIe(),KRt),e)}function Hxe(e){return dF(),ak((LLe(),YRt),e)}function Uxe(e){return cL(),ak((DHe(),XRt),e)}function Wxe(e){return aP(),ak((BRe(),$Rt),e)}function Gxe(e){return VF(),ak((Ize(),tzt),e)}function Kxe(e){return BI(),ak((Lze(),nzt),e)}function qxe(e){return Lz(),ak((zRe(),rzt),e)}function Jxe(e){return BO(),ak((xIe(),fzt),e)}function Yxe(e){return AN(),ak((zLe(),pzt),e)}function Xxe(e){return wR(),ak((OHe(),gzt),e)}function Zxe(e){return bM(),ak((SIe(),yzt),e)}function Qxe(e){return xE(),ak((RLe(),wzt),e)}function $xe(e){return cN(),ak((BLe(),Azt),e)}function eSe(e){return Mj(),ak((VLe(),Lzt),e)}function tSe(e,t){return bC(e),e+(bC(t),t)}function ax(e,t){this.c=e,this.a=t,this.b=t-e}function nSe(e,t,n){this.a=e,this.c=t,this.b=n}function rSe(e,t,n){this.a=e,this.c=t,this.b=n}function iSe(e,t,n){this.a=e,this.b=t,this.c=n}function aSe(e,t,n){this.a=e,this.b=t,this.c=n}function oSe(e,t,n){this.a=e,this.b=t,this.c=n}function ox(e,t,n){this.a=e,this.b=t,this.c=n}function sSe(e,t,n){this.a=e,this.b=t,this.c=n}function cSe(e,t,n){this.a=e,this.b=t,this.c=n}function sx(e,t,n){this.e=e,this.a=t,this.c=n}function lSe(e,t,n){Wv(),xke.call(this,e,t,n)}function cx(e,t,n){Wv(),jEe.call(this,e,t,n)}function uSe(e,t,n){Wv(),jEe.call(this,e,t,n)}function dSe(e,t,n){Wv(),jEe.call(this,e,t,n)}function fSe(e,t,n){Wv(),cx.call(this,e,t,n)}function pSe(e,t,n){Wv(),cx.call(this,e,t,n)}function mSe(e,t,n){Wv(),pSe.call(this,e,t,n)}function hSe(e,t,n){Wv(),uSe.call(this,e,t,n)}function gSe(e,t,n){Wv(),dSe.call(this,e,t,n)}function _Se(e){return oL(),ak((YVe(),oBt),e)}function lx(e,t){return XS(e),XS(t),new rue(e,t)}function ux(e,t){return XS(e),XS(t),new iCe(e,t)}function vSe(e,t){return XS(e),XS(t),new aCe(e,t)}function ySe(e,t){return XS(e),XS(t),new mue(e,t)}function bSe(e,t){bue.call(this,e,zM(new em(t)))}function xSe(e,t){this.c=e,this.b=t,this.a=!1}function SSe(e){this.d=e,Ol(this),this.b=Iwe(e.d)}function CSe(e,t,n){this.c=e,cg.call(this,t,n)}function wSe(e){return!e.c&&(e.c=new Vo),e.c}function TSe(e){return!e.e&&(e.e=new kd),e.e}function dx(e){var t=new kd;return aO(t,e),t}function ESe(e){var t=new pf;return aO(t,e),t}function DSe(e){var t=new bf;return zk(t,e),t}function fx(e){var t=new vh;return zk(t,e),t}function F(e,t){return wx(e==null||xP(e,t)),e}function OSe(e,t,n){lTe.call(this,t,n),this.a=e}function kSe(e,t,n){this.b=e,Ppe.call(this,t,n)}function ASe(e,t,n){L6e(n,0,e,t,n.length,!1)}function px(e,t){if(!e)throw O(new qp(t))}function mx(e,t){if(!e)throw O(new Jp(t))}function jSe(e,t){if(!e)throw O(new Bp(t))}function MSe(e,t){t&&(e.b=t,e.a=(hC(t),t.a))}function hx(e,t,n,r,i){e.b=t,e.c=n,e.d=r,e.a=i}function NSe(e,t,n,r,i){e.d=t,e.c=n,e.a=r,e.b=i}function PSe(e){var t,n=e.d;t=e.a,e.d=t,e.a=n}function FSe(e){var t=e.b;e.b=e.c,e.c=t}function ISe(e){return tb(e.b!=0),DO(e,e.c.b)}function gx(e){return tb(e.b!=0),DO(e,e.a.a)}function LSe(e,t){return FO(),vM(e.e.a,t.e.a)}function RSe(e,t){return FO(),vM(e.e.b,t.e.b)}function zSe(e,t){return zh(),Zv(e.d.p,t.d.p)}function BSe(e,t){return Zv(mCe(e.d),mCe(t.d))}function _x(e,t){return t&&fC(e,t.d)?t:null}function VSe(e,t){return t==(Lz(),N5)?e.c:e.d}function vx(){vx=C,Rjt=(Lz(),N5),z2=p5}function HSe(){this.b=k(P(cP((MR(),mX))))}function USe(){this.a=`;,;`,this.b=``,this.c=``}function WSe(e,t,n){yg.call(this,e,t),this.b=n}function yx(e,t,n){hpe.call(this,e,t),this.c=n}function GSe(e){gbe(),To.call(this),this._h(e)}function KSe(e,t,n){this.a=e,pv.call(this,t,n)}function qSe(e,t,n){this.a=e,pv.call(this,t,n)}function bx(e,t,n){hpe.call(this,e,t),this.c=n}function JSe(){ZE(),PEe.call(this,(qh(),V7))}function YSe(e){return eB(),++W9,new qx(0,e)}function XSe(){XSe=C,hVt=(ew(),new Rl(pJ))}function ZSe(e){return new j(e.c+e.b,e.d+e.a)}function QSe(e){return e!=null&&!iN(e,O7,k7)}function $Se(e,t){return(tKe(e)<<4|tKe(t))&iV}function eCe(e,t){var n=e.c;return jBe(e,t),n}function tCe(e,t){return e.g=t<0?-1:t,e}function xx(e,t){return vze(e),e.a*=t,e.b*=t,e}function nCe(e,t,n,r,i){e.c=t,e.d=n,e.b=r,e.a=i}function Sx(e,t){return bE(e,t,e.c.b,e.c),!0}function rCe(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function Cx(e){this.b=e,this.a=uS(this.b.a).Md()}function iCe(e,t){this.b=e,this.a=t,rc.call(this)}function aCe(e,t){this.a=e,this.b=t,rc.call(this)}function oCe(e,t){lTe.call(this,t,1040),this.a=e}function sCe(e){Xge.call(this,e.length,0),this.a=e}function wx(e){if(!e)throw O(new Kp(null))}function Tx(e){return AD(e.slice(),e)}function Ex(e){var t=e.n;return e.a.b+t.d+t.a}function cCe(e){var t=e.n;return e.e.b+t.d+t.a}function lCe(e){var t=e.n;return e.e.a+t.b+t.c}function uCe(e){return e.a?e.a:XC(e)}function Dx(e,t){return xF(e,new yg(t.a,t.b))}function dCe(e){return!AE(e)&&e.c.i.c==e.d.i.c}function fCe(e,t){return e.c=t)throw O(new Ff)}function eTe(e,t,n){e.a.Mb(n)&&(e.b=!0,t.Ad(n))}function tTe(e){e.d||(e.d=e.b.Jc(),e.c=e.b.gc())}function nTe(e){return e.e?PFe(e.e):null}function rTe(e,t,n){return xdt(e,F(t,12),F(n,12))}function iTe(e,t,n){t.of(n,k(P(tC(e.b,n)))*e.a)}function aTe(e,t,n){return XL(),aA(e,t)&&aA(e,n)}function oTe(e,t){t.Tg(`General 'Rotator`,1),olt(e)}function bS(e,t,n,r){var i=e.i;i.i=t,i.a=n,i.b=r}function sTe(e){for(var t=e;t.f;)t=t.f;return t}function cTe(e,t){this.e=e,this.d=t&64?t|kB:t}function lTe(e,t){this.c=0,this.d=e,this.b=t|64|kB}function xS(e){this.b=new pD(11),this.a=(tw(),e)}function uTe(e){this.b=null,this.a=(tw(),e||Jbt)}function dTe(e){this.a=aXe(e.a),this.b=new qb(e.b)}function fTe(e){this.b=e,Hy.call(this,e),ige(this)}function pTe(e){this.b=e,Wy.call(this,e),age(this)}function SS(e,t,n){this.a=e,Fb.call(this,t,n,5,6)}function CS(e,t,n,r,i){bD.call(this,e,t,n,r,i,-1)}function wS(e,t,n,r,i){xD.call(this,e,t,n,r,i,-1)}function I(e,t,n,r){hy.call(this,e,t,n),this.b=r}function TS(e,t,n,r){yx.call(this,e,t,n),this.b=r}function mTe(e){lpe.call(this,e,!1),this.a=!1}function hTe(){R_.call(this,`LAYOUT_NEXT_LEVEL`,3)}function gTe(e,t,n,r){this.b=e,hy.call(this,t,n,r)}function _Te(e,t){this.b=e,mie.call(this,e.b),this.a=t}function ES(e,t){var n=e.a.gc();return xFe(t,n),n-t}function vTe(e,t){return t.Sh()?eM(e.b,F(t,52)):t}function yTe(e,t){return zb(e.substr(0,t.length),t)}function DS(e){return new fS(new dge(e.a.length,e.a))}function OS(e){return new j(e.c+e.b/2,e.d+e.a/2)}function bTe(e){return Qv(~e.l&OV,~e.m&OV,~e.h&kV)}function xTe(e){return typeof e===aB||typeof e===cB}function kS(e,t){return q_(t)?fw(e,t):!!nS(e.f,t)}function AS(e,t){return eB(),++W9,new IEe(e,t,0)}function STe(e,t){return eB(),++W9,new IEe(6,e,t)}function jS(e,t){for(bC(t);e.Ob();)t.Ad(e.Pb())}function MS(e,t,n){pR(),this.e=e,this.d=t,this.a=n}function L(e,t,n,r){kWe(t,n,e.length),wTe(e,t,n,r)}function NS(e,t,n){return Dk(e.a,t),SCe(e.b,t.g,n)}function PS(e,t){return e.a.yc(t,e)==null}function CTe(e,t){for(var n=0;n0?r.Math.log(e/t):-100}function OTe(e){return new Hx(null,BTe(e,e.length))}function IS(e){e.f=new pme(e),e.i=new mme(e),++e.g}function kTe(e){if(!e)throw O(new nf);return e.d}function ATe(e,t){if(e==null)throw O(new Yp(t))}function jTe(e,t){return t?Kk(e,t):!1}function LS(e){return BI(),!e.Gc(c5)&&!e.Gc(u5)}function RS(e){eb(e.b!=-1),WE(e.c,e.a=e.b),e.b=-1}function zS(e,t,n){return OWe(e,t.g,n),Dk(e.c,t),e}function MTe(e,t,n){dlt(e.a,e.b,e.d,e.c,F(t,170),n)}function BS(e,t){Che(e,N(t,163)?t:F(t,2001).Pl())}function NTe(e){return Nz(e,(yM(),y8)),e.d=!0,e}function PTe(e){return!e.j&&Tl(e,Unt(e.g,e.b)),e.j}function VS(e){var t=aj(e);return tb(t!=null),t}function FTe(e){var t=lKe(e);return tb(t!=null),t}function ITe(e,t,n){var r=pO(e,t);return lE(e,t,n),r}function LTe(e,t){this.d=e,yy.call(this,e),this.e=t}function RTe(e,t){Dd.call(this,1),this.a=e,this.b=t}function zTe(e,t){return qj(e,t)<0?-1:+(qj(e,t)>0)}function BTe(e,t){return lze(t,e.length),new oCe(e,t)}function HS(e){return e.e==0?e:new MS(-e.e,e.d,e.a)}function VTe(e){return e==LV?vJ:e==RV?`-INF`:``+e}function HTe(e){return e==LV?vJ:e==RV?`-INF`:``+e}function UTe(e,t){return vM(e.c.c+e.c.b,t.c.c+t.c.b)}function US(e,t){bE(e.d,t,e.b.b,e.b),++e.a,e.c=null}function WTe(e,t){return e.c?WTe(e.c,t):fy(e.b,t),e}function WS(e,t){Eh(BC(e.Mc(),new rte),new Uu(t))}function GS(e,t,n,r,i){KF(e,F(zE(t.k,n),16),n,r,i)}function GTe(e,t,n,r,i){for(;t=e.g}function iC(e,t,n){return Qtt(e,jk(e,t,n))}function aC(e,t){var n=e.a.length;pO(e,n),lE(e,n,t)}function kEe(e,t){var n;++e.j,n=e.Cj(),e.pj(e.Xi(n,t))}function AEe(e,t,n){F(t.b,68),kO(t.a,new aSe(e,n,t))}function jEe(e,t,n){Sd.call(this,t),this.a=e,this.b=n}function MEe(e,t,n){this.a=e,xd.call(this,t),this.b=n}function NEe(e,t,n){this.a=e,LMe.call(this,8,t,null,n)}function PEe(e){this.a=(bC(Hq),Hq),this.b=e,new ep}function FEe(e){this.c=e,this.a=new vh,this.b=new vh}function IEe(e,t,n){Dd.call(this,e),this.a=t,this.b=n}function oC(e){if(e==null)throw O(new ef);this.a=e}function LEe(e){return!e.a&&(e.a=new hy(Q5,e,4)),e.a}function sC(e){return!e.d&&(e.d=new hy(z7,e,1)),e.d}function cC(e,t){return e.a+=String.fromCharCode(t),e}function lC(e,t){return e.a+=String.fromCharCode(t),e}function uC(e){if(e==null)throw O(new ef);return e}function REe(e){return z9?fw(z9,e):!1}function zEe(e){return e?e.dc():!e.Jc().Ob()}function BEe(e){return uC(e),N(e,472)?F(e,472):eN(e)}function VEe(e){return N(e,103)&&(F(e,19).Bb&FK)!=0}function dC(e){return r.Math.sqrt(e.a*e.a+e.b*e.b)}function fC(e,t){return sF(e.c,e.f,t,e.b,e.a,e.e,e.d)}function pC(e,t){return yS(t,e.a.c.length),zx(e.a,t)}function mC(e,t){return M(e)===M(t)||e!=null&&lM(e,t)}function HEe(e,t){gwe(F(t.b,68),e),kO(t.a,new gu(e))}function hC(e){e.c?hC(e.c):(PM(e),e.d=!0)}function gC(e){e.c?e.c.Ye():(e.d=!0,o9e(e))}function UEe(e){MDe(e.a),e.b=H(IJ,mB,1,e.b.length,5,1)}function _C(e){eb(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function WEe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function GEe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function vC(){fp.call(this),of(this.j.c,0),this.a=-1}function KEe(){ch.call(this,`DELAUNAY_TRIANGULATION`,0)}function qEe(e,t){var n=e.Fh(t);n>=0?e.hi(n):L3e(e,t)}function JEe(e){return e.c.i.c==e.d.i.c}function yC(e){return!e.a&&e.c?e.c.b:e.a}function YEe(e){return 0>=e?new Iue:RBe(e-1)}function bC(e){if(e==null)throw O(new ef);return e}function XEe(e){if(e.p!=6)throw O(new $d);return e.f}function ZEe(e){if(e.p!=6)throw O(new $d);return e.k}function QEe(e){if(e.p!=3)throw O(new $d);return e.e}function $Ee(e){if(e.p!=4)throw O(new $d);return e.e}function eDe(e){if(e.p!=4)throw O(new $d);return e.j}function tDe(e){if(e.p!=3)throw O(new $d);return e.j}function nDe(e){return!e.b&&(e.b=new vd(new np)),e.b}function xC(e){return e.c==-2&&Kie(e,T0e(e.g,e.b)),e.c}function SC(e,t){var n=aEe(``,e);return n.n=t,n.i=1,n}function CC(e,t,n,r){ah.call(this,e,n),this.a=t,this.f=r}function rDe(e,t,n,r){ah.call(this,e,t),this.d=n,this.a=r}function iDe(e,t){this.b=e,LTe.call(this,e,t),ige(this)}function aDe(e,t){this.b=e,Oye.call(this,e,t),age(this)}function oDe(){F0e.call(this,Xq,(Hm(),NBt)),uot(this)}function sDe(){F0e.call(this,fJ,(ple(),bVt)),mst(this)}function cDe(e,t){Ahe.call(this,zBe(XS(e),XS(t))),this.a=t}function lDe(e,t){e.c<0||e.b.b0;)e=e<<1|e<0;return e}function CDe(e,t){e.u.Gc((BI(),c5))&&i6e(e,t),UFe(e,t)}function wDe(e,t){PKe(e,k(nk(t,`x`)),k(nk(t,`y`)))}function TDe(e,t){PKe(e,k(nk(t,`x`)),k(nk(t,`y`)))}function EDe(){return Hh(),W(A(OIt,1),Z,528,0,[Z3])}function DDe(){return Vh(),W(A(UFt,1),Z,547,0,[H3])}function ODe(){return Bh(),W(A(VFt,1),Z,477,0,[V3])}function NC(){NC=C,cbt=new bde(W(A(VJ,1),LB,45,0,[]))}function kDe(e){return e!=null&&ph(A7,e.toLowerCase())}function ADe(e,t){return new EOe(F(XS(e),51),F(XS(t),51))}function jDe(e,t,n){var r=F(e.d.Kb(n),162);r&&r.Nb(t)}function MDe(e){for(var t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function PC(e){var t=e.b;return!t&&(e.b=t=new die(e)),t}function FC(e){return e.e==mJ&&Xie(e,eYe(e.g,e.b)),e.e}function IC(e){return e.f==mJ&&Qie(e,bQe(e.g,e.b)),e.f}function LC(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function NDe(e,t){this.b=e,this.c=t,this.a=new _h(this.b)}function RC(e,t,n){this.a=Xdt,this.d=e,this.b=t,this.c=n}function PDe(e,t){this.d=(bC(e),e),this.a=16449,this.c=t}function FDe(e,t){return vM(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function IDe(e,t){return vM(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function LDe(e,t){return Yue(),vM((bC(e),e),(bC(t),t))}function zC(e,t){return PM(e),new Hx(e,new vLe(t,e.a))}function BC(e,t){return PM(e),new Hx(e,new MFe(t,e.a))}function VC(e,t){return PM(e),new X_e(e,new AFe(t,e.a))}function HC(e,t){return PM(e),new Z_e(e,new jFe(t,e.a))}function RDe(e,t,n){not(e.a,n),UHe(n),z8e(e.b,n),Aot(t,n)}function UC(e,t,n,r){this.a=e,this.c=t,this.b=n,this.d=r}function zDe(e,t,n,r){this.c=e,this.b=t,this.a=n,this.d=r}function BDe(e,t,n,r){this.c=e,this.b=t,this.d=n,this.a=r}function WC(e,t,n,r){this.a=e,this.e=t,this.d=n,this.c=r}function VDe(e,t,n,r){this.a=e,this.d=t,this.c=n,this.b=r}function GC(e,t,n,r){this.c=e,this.d=t,this.b=n,this.a=r}function KC(e,t,n,r){ch.call(this,e,t),this.a=n,this.b=r}function HDe(e,t,n,r){JUe.call(this,e,n,r,!1),this.f=t}function qC(e,t,n){var r=Wlt(e);return t.qi(n,r)}function JC(e){var t,n=(t=new Nd,t);return IO(n,e),n}function YC(e){var t,n=(t=new Nd,t);return J0e(n,e),n}function UDe(e){return!e.b&&(e.b=new I(i7,e,12,3)),e.b}function XC(e){return WBe(e)||null}function WDe(e){ix();var t=F(e.g,9);t.n.a=e.d.c+t.d.b}function GDe(e){this.a=new kd,this.e=H(q9,OB,54,e,0,2)}function ZC(e){this.f=e,this.c=this.f.e,e.f>0&&i$e(this)}function KDe(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function qDe(e,t,n,r){this.a=e,this.b=t,this.d=n,this.c=r}function JDe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function YDe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function QC(e,t,n,r){this.e=e,this.a=t,this.c=n,this.d=r}function XDe(e,t,n,r){Wv(),TFe.call(this,t,n,r),this.a=e}function ZDe(e,t,n,r){Wv(),TFe.call(this,t,n,r),this.a=e}function QDe(e,t){this.a=e,q_e.call(this,e,F(e.d,16).dd(t))}function $De(e,t){return vM(Qx(e)*Zx(e),Qx(t)*Zx(t))}function eOe(e,t){return vM(Qx(e)*Zx(e),Qx(t)*Zx(t))}function $C(e){return e.f||=new ih(e,e.c)}function ew(){ew=C,CY=new ae,wY=new se,TY=new w}function tw(){tw=C,Jbt=new le,DY=new le,Ybt=new ue}function nw(e){if(rN(e.d),e.d.d!=e.c)throw O(new Xd)}function tOe(e){return tb(e.b0?BE(e):new kd}function oOe(e,t){return F(q(e,(X(),S$)),16).Ec(t),t}function sOe(e,t){return YI(e,F(q(t,(Yz(),m0)),15),t)}function cOe(e){return qI(e)&&Xp(db(Y(e,(Yz(),G1))))}function lOe(e,t,n){return Rh(),ZKe(F(tC(e.e,t),517),n)}function uOe(e,t,n){e.i=0,e.e=0,t!=n&&WUe(e,t,n)}function dOe(e,t,n){e.i=0,e.e=0,t!=n&&GUe(e,t,n)}function fOe(e,t,n,r){this.b=e,this.c=r,sv.call(this,t,n)}function pOe(e,t){this.g=e,this.d=W(A(UX,1),OU,9,0,[t])}function mOe(e,t){e.d&&!e.d.a&&(gse(e.d,t),mOe(e.d,t))}function hOe(e,t){e.e&&!e.e.a&&(gse(e.e,t),hOe(e.e,t))}function gOe(e,t){return iM(e.j,t.s,t.c)+iM(t.e,e.s,e.c)}function _Oe(e){return F(e.jd(),147).Og()+`:`+eN(e.kd())}function vOe(e,t){return-vM(Qx(e)*Zx(e),Qx(t)*Zx(t))}function yOe(e,t){return Tj(e),Tj(t),Fp(F(e,24),F(t,24))}function aw(e,t,n){vO(e,t,new il(Wb(n)))}function bOe(e,t){new vh,this.a=new qf,this.b=e,this.c=t}function xOe(e){this.b=new kd,HA(this.b,this.b),this.a=e}function SOe(e){this.b=new ui,this.a=e,r.Math.random()}function COe(){uI(this,new Ac),this.wb=(qS(),K7),Hm()}function wOe(){Op.call(this,`There is no more element.`)}function TOe(e,t,n,r){hpe.call(this,t,n),this.b=e,this.a=r}function ow(e,t,n,r,i,a){xD.call(this,e,t,n,r,i,a?-2:-1)}function sw(e){return!e.a&&(e.a=new I(p7,e,10,11)),e.a}function cw(e){return!e.q&&(e.q=new I(B7,e,11,10)),e.q}function z(e){return!e.s&&(e.s=new I(N7,e,21,17)),e.s}function lw(e,t){if(e==null)throw O(new Yp(t));return e}function EOe(e,t){Cp.call(this,new uTe(e)),this.a=e,this.b=t}function DOe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function OOe(e){pm(),r.setTimeout(function(){throw e},0)}function kOe(e){return XS(e),RXe(new fS(Sy(e.a.Jc(),new f)))}function uw(e){return ew(),N(e,59)?new bm(e):new Oy(e)}function dw(e){return N(e,18)?new Vx(F(e,18)):ESe(e.Jc())}function AOe(e){return new cge(e,e.e.Pd().gc()*e.c.Pd().gc())}function jOe(e){return new lge(e,e.e.Pd().gc()*e.c.Pd().gc())}function MOe(e){return e&&e.hashCode?e.hashCode():Py(e)}function fw(e,t){return t==null?!!nS(e.f,null):fwe(e.i,t)}function NOe(e,t){var n=whe(e.a,t);return n&&(t.d=null),n}function POe(e,t,n){return e.f?e.f.cf(t,n):!1}function pw(e,t,n,r){eC(e.c[t.g],n.g,r),eC(e.c[n.g],t.g,r)}function mw(e,t,n,r){eC(e.c[t.g],t.g,n),eC(e.b[t.g],t.g,r)}function FOe(e){e.Tg(`No crossing minimization`,1),e.Ug()}function IOe(e){this.c=e,this.b=new Xm(F(XS(new He),51))}function LOe(e){this.c=e,this.b=new Xm(F(XS(new vt),51))}function ROe(e){this.b=e,this.a=new Xm(F(XS(new nt),51))}function zOe(){this.b=new pf,this.d=new vh,this.e=new If}function BOe(){this.d=new vh,this.b=new Ad,this.c=new kd}function VOe(){this.c=new Rm,this.d=new Rm,this.e=new Rm}function hw(){this.a=new qf,this.b=(_k(3,GB),new pD(3))}function gw(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function HOe(e,t,n,r,i,a){this.a=e,mk.call(this,t,n,r,i,a)}function UOe(e,t,n,r,i,a){this.a=e,mk.call(this,t,n,r,i,a)}function _w(e,t){this.e=e,this.a=IJ,this.b=$tt(t),this.c=t}function WOe(e,t){return N(t,147)&&zb(e.b,F(t,147).Og())}function GOe(e,t){return e.a?t.Dh().Jc():F(t.Dh(),72).Gi()}function KOe(e,t,n){return k(P(n.a))<=e&&k(P(n.b))>=t}function qOe(e,t,n){return n>=0&&zb(e.substr(n,t.length),t)}function vw(e,t,n,r,i,a,o){return new hE(e.e,t,n,r,i,a,o)}function yw(e,t,n){return uD(t,n,e.length),e.substr(t,n-t)}function bw(e,t){var n=Jm(e.Pm);return t==null?n:n+`: `+t}function JOe(e,t){var n=e.b.Oc(t);return ZNe(n,e.b.gc()),n}function xw(e,t){if(e==null)throw O(new Yp(t));return e}function Sw(e){return e.u||=(jE(e),new _ve(e,e)),e.u}function Cw(e){return F(bA(e,16),29)||e.fi()}function YOe(e){!e||bw(e,e.ge())}function XOe(){XOe=C,Oxt=new Fe,Axt=new Awe,kxt=new Ve}function ww(){ww=C;var e,t=!gJe();e=new b,mbt=t?new y:e}function ZOe(){return aD(),W(A(uTt,1),Z,422,0,[lTt,sQ])}function QOe(){return gO(),W(A(CTt,1),Z,419,0,[bQ,STt])}function $Oe(){return ND(),W(A(ATt,1),Z,476,0,[kTt,AQ])}function eke(){return tE(),W(A(QTt,1),Z,420,0,[t$,ZTt])}function tke(){return SE(),W(A(hEt,1),Z,423,0,[o1,a1])}function nke(){return YD(),W(A(XAt,1),Z,421,0,[b2,x2])}function rke(){return nE(),W(A(Vjt,1),Z,519,0,[V2,B2])}function ike(){return Aw(),W(A(Xjt,1),Z,510,0,[G2,W2])}function ake(){return Ww(),W(A(Qjt,1),Z,509,0,[K2,q2])}function oke(){return QE(),W(A(mMt,1),Z,516,0,[Z2,X2])}function ske(){return kw(),W(A(xMt,1),Z,454,0,[Q2,$2])}function cke(){return DT(),W(A(jNt,1),Z,425,0,[z4,ANt])}function lke(){return Fk(),W(A(LNt,1),Z,487,0,[V4,H4])}function uke(){return DD(),W(A(HNt,1),Z,426,0,[VNt,J4])}function dke(){return OE(),W(A(DFt,1),Z,478,0,[k3,EFt])}function fke(){return $E(),W(A(GFt,1),Z,428,0,[W3,U3])}function pke(){return hO(),W(A(TSt,1),Z,424,0,[cX,lX])}function mke(){return Pk(),W(A(YCt,1),Z,503,0,[eZ,$X])}function hke(){return IA(),W(A(jIt,1),Z,427,0,[Q3,AIt])}function Tw(e,t,n,r){return n>=0?e.Rh(t,n,r):e.zh(null,n,r)}function Ew(e){return e.b.b==0?e.a.uf():gx(e.b)}function gke(e){if(e.p!=5)throw O(new $d);return $x(e.f)}function _ke(e){if(e.p!=5)throw O(new $d);return $x(e.k)}function vke(e){return M(e.a)===M((Qk(),GBt))&&cst(e),e.a}function yke(e,t){Iie(this,new j(e.a,e.b)),Lie(this,fx(t))}function bke(e,t){jb.call(this),yze(this),this.a=e,this.c=t}function xke(e,t,n){Wv(),Sd.call(this,t),this.a=e,this.b=n}function Dw(e,t,n){eB(),Dd.call(this,e),this.b=t,this.a=n}function Ow(){Jse.call(this,new wh(gA(12))),$he(!0),this.a=2}function Ske(){R_.call(this,`FIXED_INTEGER_RATIO_BOXES`,2)}function kw(){kw=C,Q2=new xfe(bH,0),$2=new xfe(xH,1)}function Aw(){Aw=C,G2=new hfe(xH,0),W2=new hfe(bH,1)}function Cke(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=Gx(e.c,e.b,e.a))}function wke(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=Gx(e.c,e.b,e.a))}function Tke(e){var t=e.c.d.b;e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function jw(e){var t;dBe(e.a),Tme(e.a),t=new pu(e.a),lN(t)}function Mw(e,t){return t==null?Y_(nS(e.f,null)):og(e.i,t)}function Eke(e){return e.b==0?null:(tb(e.b!=0),DO(e,e.a.a))}function Nw(e){return Math.max(Math.min(e,lB),-2147483648)|0}function Dke(e,t,n,r,i){return new vI(e,(MD(),jY),t,n,r,i)}function Pw(e,t){return ePe(t),eBe(e,H(q9,vV,30,t,15,1),t)}function Oke(e,t){return FO(),F(q(t,(zR(),P4)),15).a==e}function kke(e,t){Ett(e,!0),kO(e.e.Pf(),new cbe(e,!0,t))}function Fw(e,t){return lw(e,`set1`),lw(t,`set2`),new xue(e,t)}function Ake(e,t){return YJ[e.charCodeAt(0)]??e}function jke(e,t){return Nb(ab(kze(e.f,t)),e.f.d)}function Mke(e,t){var n=t,r=new _e;return xct(e,n,r),r.d}function Iw(e,t,n,r){var i=new Ive;t.a[n.g]=i,NS(e.b,r,i)}function Nke(e,t,n){var r=e.Fh(t);r>=0?e.$h(r,n):_7e(e,t,n)}function Lw(e,t,n){nT(),e&&TC(uBt,e,t),e&&TC(C7,e,n)}function Pke(e,t,n){this.i=new kd,this.b=e,this.g=t,this.a=n}function Rw(e,t,n){this.c=new kd,this.e=e,this.f=t,this.b=n}function Fke(e,t,n){this.a=new kd,this.e=e,this.f=t,this.c=n}function Ike(e){jb.call(this),yze(this),this.a=e,this.c=!0}function Lke(e){this.a=F(XS(e),277),this.b=(ew(),new wge(e))}function Rke(e,t){ey(this),this.f=t,this.g=e,iw(this),this.he()}function zw(e,t){var n=e.q.getHours();e.q.setDate(t),KR(e,n)}function zke(e,t){var n;for(XS(t),n=e.a;n;n=n.c)t.Wd(n.g,n.i)}function Bke(e){var t=new Ym(gA(e.length));return jUe(t,e),t}function Vke(e){function t(){}return t.prototype=e||{},new t}function Hke(e,t){return zHe(e,t)?(oBe(e),!0):!1}function Bw(e,t){if(t==null)throw O(new ef);return EJe(e,t)}function Uke(e){if(e.ye())return null;var t=e.n;return FJ[t]}function Vw(e){return e.Db>>16==3?F(e.Cb,26):null}function Hw(e){return e.Db>>16==9?F(e.Cb,26):null}function Wke(e){return e.Db>>16==6?F(e.Cb,85):null}function Gke(e,t){var n=e.Fh(t);return n>=0?e.Th(n):GI(e,t)}function Uw(e,t,n){e.b=new Ak(FUe(e,t,n).c.length)}function Ww(){Ww=C,K2=new gfe(DH,0),q2=new gfe(`UP`,1)}function Kke(){Kke=C,obt=Bj((fm(),W(A(abt,1),Z,538,0,[KJ])))}function qke(e){this.a=e,this.b=H(Ijt,OB,2008,e.e.length,0,2)}function Jke(){this.a=new Cv,this.e=new pf,this.g=0,this.i=0}function Yke(e){return!e.a&&(e.a=new I(p7,e,10,11)),e.a.i>0}function Gw(e,t){return r.Math.abs(e)>16==7?F(e.Cb,241):null}function Kw(e){return e.Db>>16==6?F(e.Cb,241):null}function iAe(e){return e.Db>>16==7?F(e.Cb,174):null}function aAe(e){return e.Db>>16==3?F(e.Cb,158):null}function qw(e){return e.Db>>16==11?F(e.Cb,26):null}function Jw(e){return e.Db>>16==17?F(e.Cb,29):null}function oAe(e){var t;return PM(e),t=new pf,zC(e,new su(t))}function sAe(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.te(t))}function cAe(e,t){var n=e.q.getHours();e.q.setMonth(t),KR(e,n)}function Yw(e,t){e.c&&BD(e.c.g,e),e.c=t,e.c&&fy(e.c.g,e)}function Xw(e,t){e.c&&BD(e.c.a,e),e.c=t,e.c&&fy(e.c.a,e)}function Zw(e,t){e.d&&BD(e.d.e,e),e.d=t,e.d&&fy(e.d.e,e)}function Qw(e,t){e.i&&BD(e.i.j,e),e.i=t,e.i&&fy(e.i.j,e)}function $w(e,t,n){return t==null?NI(e.f,null,n):FM(e.i,t,n)}function eT(e,t,n,r,i,a){return new ZD(e.e,t,e.Jj(),n,r,i,a)}function lAe(e){return Ej(),ky(),F(e.a,82).d.e!=0}function uAe(e,t){this.a=e,this.c=ry(this.a),this.b=new gw(t)}function dAe(e,t,n){this.a=t,this.c=e,this.b=(XS(n),new qb(n))}function fAe(e,t,n){this.a=t,this.c=e,this.b=(XS(n),new qb(n))}function tT(e,t){if(e<0||e>t)throw O(new zp(bft+e+xft+t))}function nT(){nT=C,uBt=new Ad,C7=new Ad,xpe(Qbt,new yo)}function pAe(){pAe=C,hjt=oS(new vC,(rI(),DX),($z(),SZ))}function mAe(){mAe=C,gjt=oS(new vC,(rI(),DX),($z(),SZ))}function hAe(){hAe=C,_jt=oS(new vC,(rI(),DX),($z(),SZ))}function gAe(){gAe=C,vjt=oS(new vC,(rI(),DX),($z(),SZ))}function _Ae(){_Ae=C,bjt=oS(new vC,(rI(),DX),($z(),SZ))}function vAe(){vAe=C,xjt=oS(new vC,(rI(),DX),($z(),SZ))}function yAe(){yAe=C,Ujt=Mx(new vC,(rI(),DX),($z(),oZ))}function rT(){rT=C,Kjt=Mx(new vC,(rI(),DX),($z(),oZ))}function bAe(){bAe=C,Yjt=Mx(new vC,(rI(),DX),($z(),oZ))}function iT(){iT=C,eMt=Mx(new vC,(rI(),DX),($z(),oZ))}function xAe(){xAe=C,NNt=oS(new vC,(uF(),n4),(vR(),DMt))}function aT(e,t,n,r){this.c=e,this.d=r,cT(this,t),lT(this,n)}function oT(e){this.c=new vh,this.b=e.b,this.d=e.c,this.a=e.a}function sT(e){this.a=r.Math.cos(e),this.b=r.Math.sin(e)}function cT(e,t){e.a&&BD(e.a.k,e),e.a=t,e.a&&fy(e.a.k,e)}function lT(e,t){e.b&&BD(e.b.f,e),e.b=t,e.b&&fy(e.b.f,e)}function SAe(e,t){AEe(e,e.b,e.c),F(e.b.b,68),t&&F(t.b,68).b}function CAe(e,t){RKe(e,t),N(e.Cb,88)&&II(jE(F(e.Cb,88)),2)}function uT(e,t){N(e.Cb,88)&&II(jE(F(e.Cb,88)),4),Bk(e,t)}function dT(e,t){N(e.Cb,184)&&(F(e.Cb,184).tb=null),Bk(e,t)}function wAe(e,t){var n=F(Kj($C(e.a),t),18);return n?n.gc():0}function TAe(e){var t,n=(Hm(),t=new Nd,t);return IO(n,e),n}function EAe(e){var t,n=(Hm(),t=new Nd,t);return IO(n,e),n}function DAe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function fT(e){return pR(),qj(e,0)>=0?CN(e):HS(CN(RD(e)))}function OAe(e,t){Hhe(e,$x(CT(mS(t,24),rH)),$x(CT(t,rH)))}function kAe(e,t){return vM(F(e.c,65).c.e.b,F(t.c,65).c.e.b)}function AAe(e,t){return vM(F(e.c,65).c.e.a,F(t.c,65).c.e.a)}function pT(e,t){return Qh(),iO(t)?new Nx(t,e):new Q_(t,e)}function jAe(e,t,n){return new vI(e,(MD(),AY),null,!1,t,n)}function MAe(e,t,n){return new vI(e,(MD(),MY),t,n,null,!1)}function NAe(e,t,n){var r;JGe(t,n,e.c.length),r=n-t,kle(e.c,t,r)}function mT(e,t,n){JGe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function hT(e,t){this.b=(bC(e),e),this.a=(t&zV)==0?t|64|kB:t}function gT(e,t){if(e<0||e>=t)throw O(new zp(bft+e+xft+t))}function _T(e,t){if(e<0||e>=t)throw O(new bce(bft+e+xft+t))}function PAe(e,t){t.c!=null&&aC(e,new oC(t.c))}function FAe(e,t,n){var r=new Sv(n.d);Nb(r,e),PKe(t,r.a,r.b)}function IAe(e){var t;return PM(e),t=(tw(),tw(),DY),SO(e,t)}function vT(e){return lj(W(A(h6,1),OB,8,0,[e.i.n,e.n,e.a]))}function LAe(){return JD(),W(A(fCt,1),Z,384,0,[xX,bX,SX])}function RAe(){return jj(),W(A(LY,1),Z,130,0,[bxt,IY,xxt])}function zAe(){return MO(),W(A(WY,1),Z,237,0,[VY,HY,UY])}function BAe(){return jD(),W(A(Fxt,1),Z,461,0,[JY,qY,YY])}function VAe(){return lO(),W(A(Rxt,1),Z,462,0,[QY,ZY,XY])}function HAe(){return Xj(),W(A(IAt,1),Z,352,0,[$0,FAt,e2])}function UAe(){return AA(),W(A(JQ,1),Z,302,0,[KQ,qQ,GQ])}function WAe(){return ZA(),W(A(ZQ,1),Z,329,0,[XQ,qTt,YQ])}function GAe(){return uO(),W(A(YTt,1),Z,316,0,[$Q,e$,QQ])}function KAe(){return Ik(),W(A(WZ,1),Z,368,0,[UZ,HZ,VZ])}function qAe(){return Aj(),W(A(ijt,1),Z,348,0,[O2,E2,D2])}function JAe(){return kA(),W(A(njt,1),Z,381,0,[ejt,T2,tjt])}function YAe(){return uk(),W(A(QAt,1),Z,452,0,[w2,S2,C2])}function XAe(){return Pj(),W(A(sjt,1),Z,349,0,[k2,ojt,A2])}function ZAe(){return ck(),W(A(djt,1),Z,351,0,[ujt,j2,ljt])}function QAe(){return FA(),W(A(pjt,1),Z,382,0,[N2,P2,M2])}function $Ae(){return gj(),W(A(zMt,1),Z,385,0,[RMt,s4,o4])}function eje(){return kj(),W(A(KNt,1),Z,386,0,[Y4,WNt,GNt])}function tje(){return YM(),W(A(VPt,1),Z,387,0,[BPt,b3,zPt])}function nje(){return lk(),W(A(_Tt,1),Z,350,0,[gTt,dQ,uQ])}function rje(){return QA(),W(A(TTt,1),Z,449,0,[SQ,xQ,CQ])}function ije(){return kN(),W(A(NPt,1),Z,436,0,[i3,a3,o3])}function aje(){return jA(),W(A(jPt,1),Z,304,0,[r3,APt,kPt])}function oje(){return SM(),W(A(FFt,1),Z,430,0,[NFt,PFt,j3])}function sje(){return PD(),W(A(jFt,1),Z,429,0,[A3,AFt,kFt])}function cje(){return xM(),W(A(B3,1),Z,435,0,[L3,R3,z3])}function lje(){return NO(),W(A(ERt,1),Z,279,0,[E8,D8,O8])}function uje(){return Oj(),W(A(GRt,1),Z,347,0,[P8,N8,F8])}function dje(){return BO(),W(A(dzt,1),Z,300,0,[F5,lzt,uzt])}function fje(){return bM(),W(A(vzt,1),Z,281,0,[_zt,Y5,X5])}function yT(e){return Rh(),N(e.g,9)?F(e.g,9):null}function pje(e){return e.a==(ZE(),h9)&&Wie(e,_tt(e.g,e.b)),e.a}function bT(e){return e.d==(ZE(),h9)&&Jie(e,qit(e.g,e.b)),e.d}function mje(e,t){var n=(bC(e),e).g;return n_e(!!n),bC(t),n(t)}function hje(e,t,n){var r=new ki;r.b=t,r.a=n,++t.b,fy(e.d,r)}function gje(e,t,n){var r=$R(e,t,!1);return r.b<=t&&r.a<=n}function _je(e,t){var n,r=ES(e,t);return n=e.a.dd(r),new vue(e,n)}function vje(e){return e.Db>>16==6?F(aL(e),241):null}function yje(e){if(e.p!=2)throw O(new $d);return $x(e.f)&iV}function bje(e){if(e.p!=2)throw O(new $d);return $x(e.k)&iV}function xT(e){return XS(e),N(e,18)?new qb(F(e,18)):dx(e.Jc())}function ST(e){Ix(),this.a=(ew(),N(e,59)?new bm(e):new Oy(e))}function CT(e,t){return mA(Kwe(bv(e)?wA(e):e,bv(t)?wA(t):t))}function wT(e,t){return mA(qwe(bv(e)?wA(e):e,bv(t)?wA(t):t))}function TT(e,t){return mA(Jwe(bv(e)?wA(e):e,bv(t)?wA(t):t))}function xje(e,t){return dwe(e.a,t)?SCe(e.b,F(t,24).g,null):null}function Sje(e){return BM(pS(_A(xL(e,32)),32),_A(xL(e,32)))}function Cje(e){var t=F(Tx(e.b),10);return new Jb(e.a,t,e.c)}function wje(e,t){iut(e,t,k(P(e.a.mf((Qz(),u8)))))}function Tje(e,t){MS.call(this,1,2,W(A(q9,1),vV,30,15,[e,t]))}function Eje(e,t){qse.call(this,new wh(gA(e))),_k(t,Bdt),this.a=t}function Dje(e,t,n){Dd.call(this,25),this.b=e,this.a=t,this.c=n}function ET(e){eB(),Dd.call(this,e),this.c=!1,this.a=!1}function Oje(){this.c=new nhe,this.a=new OFe,this.b=new Af,Xue()}function DT(){DT=C,z4=new Dfe(`DFS`,0),ANt=new Dfe(`BFS`,1)}function kje(e){return e.b==null||e.b.length==0?`n_`+e.a:`n_`+e.b}function OT(e){return F(ZN(e,H(UX,OU,9,e.c.length,0,1)),199)}function Aje(e,t){return e&&e.equals?e.equals(t):M(e)===M(t)}function jje(e,t){return dO(),e.c==t.c?vM(t.d,e.d):vM(e.c,t.c)}function Mje(e,t){return dO(),e.c==t.c?vM(e.d,t.d):vM(e.c,t.c)}function Nje(e,t){return dO(),e.c==t.c?vM(e.d,t.d):vM(t.c,e.c)}function Pje(e,t){return dO(),e.c==t.c?vM(t.d,e.d):vM(t.c,e.c)}function Fje(e,t){e.b|=t.b,e.c|=t.c,e.d|=t.d,e.a|=t.a}function kT(e,t,n){var r=e.d[t.p];e.d[t.p]=e.d[n.p],e.d[n.p]=r}function Ije(e,t,n){var r;e.n&&t&&n&&(r=new Une,fy(e.e,r))}function Lje(e,t){var n=F(tC(e.g,t),60);kO(t.d,new Qde(e,n))}function Rje(e,t){var n=pZe(e),r=pZe(t);return nr)}function zje(e,t){var n=KD(t);return F(tC(e.c,n),15).a}function Bje(e,t){for(var n=e+``;n.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function uMe(e){return tb(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function dMe(e,t){var n=1-t;return e.a[n]=kk(e.a[n],n),kk(e,t)}function fMe(e,t){var n,r=CT(e,GV);return n=pS(t,32),wT(n,r)}function pMe(e,t,n){var r=F(e.Zb().xc(t),18);return!!r&&r.Gc(n)}function mMe(e,t,n){var r=F(e.Zb().xc(t),18);return!!r&&r.Kc(n)}function hMe(e,t,n){VZe(new dAe((XS(e),new qb(e)),t,n))}function NT(e,t,n){HZe(new fAe((XS(e),new qb(e)),t,n))}function gMe(e,t,n){e.a=t,e.c=n,e.b.a.$b(),rw(e.d),of(e.e.a.c,0)}function PT(e,t,n,r,i,a){return qVe(e,t,n,a),YGe(e,r),XGe(e,i),e}function _Me(e,t,n,r){return e.a+=``+yw(t==null?hB:eN(t),n,r),e}function FT(e,t){this.a=e,Wl.call(this,e),tT(t,e.gc()),this.b=t}function vMe(e,t){var n;e.e=new mp,n=qL(t),Yv(n,e.c),Xet(e,n,0)}function IT(e,t,n,r){var i=new Ua;i.a=t,i.b=n,i.c=r,Sx(e.a,i)}function V(e,t,n,r){var i=new Ua;i.a=t,i.b=n,i.c=r,Sx(e.b,i)}function yMe(e,t){return new ox(t,v_e(ry(t.e),e,e),(ky(),!0))}function bMe(e,t){return PO(),F(q(t,(zR(),j4)),15).a>=e.gc()}function xMe(e){return rT(),!AE(e)&&!(!AE(e)&&e.c.i.c==e.d.i.c)}function LT(e){return F(ZN(e,H(HX,DU,17,e.c.length,0,1)),324)}function RT(e){return new pD((_k(e,qB),bO(BM(BM(5,e),e/10|0))))}function SMe(e){return Fx(e.e.Pd().gc()*e.c.Pd().gc(),273,new pie(e))}function CMe(e){oqe((!e.a&&(e.a=new I(p7,e,10,11)),e.a),new Sa)}function wMe(){var e,t=(n=(e=new Nd,e),n),n;return fy(aVt,t),t}function zT(e){var t;return bv(e)?(t=e,t==-0?0:t):fRe(e)}function TMe(e,t){return N(t,45)?GP(e.a,F(t,45)):!1}function EMe(e,t){return N(t,45)?GP(e.a,F(t,45)):!1}function DMe(e,t){return N(t,45)?GP(e.a,F(t,45)):!1}function OMe(e,t){return e.a<=e.b&&(t.Bd(e.a++),!0)}function BT(e,t){if(e<0||e>=t)throw O(new zp(v3e(e,t)));return e}function kMe(e,t,n){if(e<0||tn)throw O(new zp(s4e(e,t,n)))}function AMe(e,t,n){e.d&&BD(e.d.e,e),e.d=t,e.d&&tS(e.d.e,n,e)}function VT(e,t){Eut(t,e),FSe(e.d),FSe(F(q(e,(Yz(),t0)),213))}function HT(e,t){Dut(t,e),PSe(e.d),PSe(F(q(e,(Yz(),t0)),213))}function jMe(e){var t;return hC(e),t=new de,Zm(e.a,new ou(t)),t}function UT(e){var t;return hC(e),t=new fe,Zm(e.a,new sae(t)),t}function MMe(e){return!PC(e).dc()&&(the(e,new g),!0)}function NMe(e){if(!(`stack`in e))try{throw e}catch{}return e}function PMe(e,t,n){var r=aYe();try{return Eve(e,t,n)}finally{cFe(r)}}function WT(e,t){var n=Bw(e,t),r=null;return n&&(r=n.ne()),r}function GT(e,t){var n=pO(e,t),r=null;return n&&(r=n.qe()),r}function KT(e,t){var n=Bw(e,t),r=null;return n&&(r=n.qe()),r}function qT(e,t){var n=Bw(e,t),r=null;return n&&(r=h4e(n)),r}function FMe(e,t,n){var r=RN(n);return mR(e.n,r,t),mR(e.o,t,n),t}function IMe(e,t,n){this.d=new qae(this),this.e=e,this.i=t,this.f=n}function LMe(e,t,n,r){this.d=e,this.n=t,this.g=n,this.o=r,this.p=-1}function RMe(e,t,n,r){return N(n,59)?new Uge(e,t,n,r):new Hwe(e,t,n,r)}function zMe(e){return F(ZN(e,H(KCt,ppt,12,e.c.length,0,1)),2007)}function BMe(e){this.a=H(IJ,mB,1,CUe(r.Math.max(8,e))<<1,5,1)}function VMe(e){qk.call(this,e,(MD(),kY),null,!1,null,!1)}function HMe(e){var t=e.Dh();this.a=N(t,72)?F(t,72).Gi():t.Jc()}function UMe(e){return new hT(Cze(F(e.a.kd(),18).gc(),e.a.jd()),16)}function JT(e){return N(e,18)?F(e,18).dc():!e.Jc().Ob()}function WMe(e){if(e.e.g!=e.b)throw O(new Xd);return!!e.c&&e.d>0}function YT(e){return tb(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function GMe(e,t){bC(t),eC(e.a,e.c,t),e.c=e.c+1&e.a.length-1,OZe(e)}function XT(e,t){bC(t),e.b=e.b-1&e.a.length-1,eC(e.a,e.b,t),OZe(e)}function KMe(){KMe=C,Ojt=hDe(K(1),K(4)),Djt=hDe(K(1),K(2))}function qMe(){qMe=C,HFt=Bj((Bh(),W(A(VFt,1),Z,477,0,[V3])))}function JMe(){JMe=C,WFt=Bj((Vh(),W(A(UFt,1),Z,547,0,[H3])))}function YMe(){YMe=C,kIt=Bj((Hh(),W(A(OIt,1),Z,528,0,[Z3])))}function XMe(){return XA(),W(A(CCt,1),Z,408,0,[NX,IX,PX,FX])}function ZMe(){return NA(),W(A(uSt,1),Z,409,0,[iX,tX,nX,rX])}function QMe(){return MD(),W(A(NY,1),Z,310,0,[kY,AY,jY,MY])}function $Me(){return YA(),W(A(Lwt,1),Z,367,0,[jZ,kZ,AZ,OZ])}function eNe(){return KN(),W(A(MCt,1),Z,383,0,[BX,jCt,RX,zX])}function tNe(){return MA(),W(A(Zwt,1),Z,413,0,[MZ,NZ,PZ,FZ])}function nNe(e){var t;return e.j==(Lz(),j5)&&(t=d8e(e),Ly(t,p5))}function rNe(){return sN(),W(A(mTt,1),Z,301,0,[lQ,fTt,cQ,pTt])}function iNe(){return CP(),W(A(a2,1),Z,203,0,[r2,i2,n2,t2])}function aNe(){return LN(),W(A(JAt,1),Z,269,0,[_2,qAt,v2,y2])}function oNe(e,t){return F(My(gS(F(zE(e.k,t),16).Mc(),$Z)),113)}function sNe(e,t){return F(My(_S(F(zE(e.k,t),16).Mc(),$Z)),113)}function cNe(e,t){var n=t.a;Yw(n,t.c.d),Zw(n,t.d.d),iA(n.a,e.n)}function lNe(e,t){var n=F(oO(e.b,t),66);return!n&&(n=new vh),n}function ZT(e){return Rh(),N(e.g,156)?F(e.g,156):null}function uNe(e){e.a=null,e.e=null,of(e.b.c,0),of(e.f.c,0),e.c=null}function dNe(e,t,n,r){this.e=null,this.c=e,this.d=t,this.a=n,this.b=r}function fNe(e,t,n,r,i){this.i=e,this.a=t,this.e=n,this.j=r,this.f=i}function pNe(e,t,n,r){var i=r[t.g][n.g];return k(P(q(e.a,i)))}function mNe(e,t){for(var n=e.j.c.length;n0&&LR(e.g,0,t,0,e.i),t}function $T(e){for(var t=0;e.Ob();)e.Pb(),t=BM(t,1);return bO(t)}function NNe(e,t){var n=new _m;return e.Ed(n),n.a+=`..`,t.Fd(n),n.a}function PNe(e,t){Jh();var n=F(tC(D7,e),58);return!n||n.dk(t)}function FNe(e,t,n){if(n){var r=n.me();e.a[t]=r(n)}else delete e.a[t]}function eE(e,t){return t.e==0||e.e==0?yY:(ZL(),ML(e,t))}function INe(e){if(e.p!=1)throw O(new $d);return $x(e.f)<<24>>24}function LNe(e){if(e.p!=1)throw O(new $d);return $x(e.k)<<24>>24}function RNe(e){if(e.p!=7)throw O(new $d);return $x(e.k)<<16>>16}function zNe(e){if(e.p!=7)throw O(new $d);return $x(e.f)<<16>>16}function tE(){tE=C,t$=new sfe(yH,0),ZTt=new sfe(`TOP_LEFT`,1)}function nE(){nE=C,V2=new dfe(`UPPER`,0),B2=new dfe(`LOWER`,1)}function BNe(e,t,n){var r=F(tC(e.g,n),60);fy(e.a.c,new B_(t,r))}function VNe(e,t,n,r,i){fy(t,i3e(i,X5e(i,n,r))),t2e(e,i,t)}function HNe(e,t,n){e.i=0,e.e=0,t!=n&&(GUe(e,t,n),WUe(e,t,n))}function UNe(e,t,n){return Wwe(P(Y_(nS(e.f,t))),P(Y_(nS(e.f,n))))}function WNe(e,t){return F(t==null?Y_(nS(e.f,null)):og(e.i,t),290)}function GNe(e,t){return M(t)===M(e)?`(this Map)`:t==null?hB:eN(t)}function KNe(e,t){return e==(_L(),YX)&&t==YX?4:e==YX||t==YX?8:32}function rE(e,t,n){return UR(e,t,n,N(t,103)&&(F(t,19).Bb&VV)!=0)}function qNe(e,t,n){return JR(e,t,n,N(t,103)&&(F(t,19).Bb&VV)!=0)}function JNe(e,t,n){return L5e(e,t,n,N(t,103)&&(F(t,19).Bb&VV)!=0)}function iE(e,t){Qh();var n=F(e,69).tk();return E2e(n,t),n.vl(t)}function aE(e,t){pR(),MS.call(this,e,1,W(A(q9,1),vV,30,15,[t]))}function oE(e,t){eB(),Dd.call(this,e),this.a=t,this.c=-1,this.b=-1}function YNe(e,t){VOe.call(this),this.a=e,this.b=t,fy(this.a.b,this)}function sE(e){return tb(e.a`+kje(e.d):`e_`+Py(e)}function nPe(e,t){return J_(t==null?Y_(nS(e.f,t)):Mw(e,t))}function rPe(e,t){return J_(t==null?Y_(nS(e.f,t)):Mw(e,t))}function iPe(e,t){return xh(),hD(z(e.a),t)}function aPe(e,t){return xh(),hD(z(e.a),t)}function dE(e,t,n){this.e=e,this.a=IJ,this.b=$tt(t),this.c=t,this.d=n}function fE(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function oPe(e){this.c=e,this.a=F(vF(e),159),this.b=this.a.hk().ti()}function pE(e,t,n,r){Gje.call(this,1,n,r),this.c=e,this.b=t}function mE(e,t,n,r){Kje.call(this,1,n,r),this.c=e,this.b=t}function hE(e,t,n,r,i,a,o){mk.call(this,t,r,i,a,o),this.c=e,this.a=n}function gE(){Ad.call(this),e_e(this),this.d.b=this.d,this.d.a=this.d}function sPe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function _E(e){Y1e(),Hhe(this,$x(CT(mS(e,24),rH)),$x(CT(e,rH)))}function vE(e,t){var n;return t.b.Kb(WLe(e,t.c.Ve(),(n=new cu(t),n)))}function cPe(e,t){var n;return ePe(t),n=e.slice(0,t),n.length=t,AD(n,e)}function yE(e){var t;return e?new JCe(e):(t=new Cv,zk(t,e),t)}function lPe(e,t){for(var n=e.d-1;n>=0&&e.a[n]===t[n];n--);return n<0}function uPe(e,t){var n,r=!1;do n=yUe(e,t),r|=n;while(n);return r}function bE(e,t,n,r){var i=new pe;i.c=t,i.b=n,i.a=r,r.b=n.a=i,++e.b}function xE(){xE=C,bzt=new TCe,Czt=new Bwe,xzt=new Ske,Szt=new hTe}function SE(){SE=C,o1=new cfe(bU,0),a1=new cfe(`ALTERNATING`,1)}function dPe(){dPe=C,jTt=Bj((ND(),W(A(ATt,1),Z,476,0,[kTt,AQ])))}function fPe(){fPe=C,dTt=Bj((aD(),W(A(uTt,1),Z,422,0,[lTt,sQ])))}function pPe(){pPe=C,wTt=Bj((gO(),W(A(CTt,1),Z,419,0,[bQ,STt])))}function mPe(){mPe=C,$Tt=Bj((tE(),W(A(QTt,1),Z,420,0,[t$,ZTt])))}function hPe(){hPe=C,gEt=Bj((SE(),W(A(hEt,1),Z,423,0,[o1,a1])))}function gPe(){gPe=C,ZAt=Bj((YD(),W(A(XAt,1),Z,421,0,[b2,x2])))}function _Pe(){_Pe=C,Hjt=Bj((nE(),W(A(Vjt,1),Z,519,0,[V2,B2])))}function vPe(){vPe=C,Zjt=Bj((Aw(),W(A(Xjt,1),Z,510,0,[G2,W2])))}function yPe(){yPe=C,$jt=Bj((Ww(),W(A(Qjt,1),Z,509,0,[K2,q2])))}function bPe(){bPe=C,hMt=Bj((QE(),W(A(mMt,1),Z,516,0,[Z2,X2])))}function xPe(){xPe=C,SMt=Bj((kw(),W(A(xMt,1),Z,454,0,[Q2,$2])))}function SPe(){SPe=C,MNt=Bj((DT(),W(A(jNt,1),Z,425,0,[z4,ANt])))}function CPe(){CPe=C,RNt=Bj((Fk(),W(A(LNt,1),Z,487,0,[V4,H4])))}function wPe(){wPe=C,UNt=Bj((DD(),W(A(HNt,1),Z,426,0,[VNt,J4])))}function TPe(){TPe=C,OFt=Bj((OE(),W(A(DFt,1),Z,478,0,[k3,EFt])))}function EPe(){EPe=C,KFt=Bj(($E(),W(A(GFt,1),Z,428,0,[W3,U3])))}function DPe(){DPe=C,ESt=Bj((hO(),W(A(TSt,1),Z,424,0,[cX,lX])))}function OPe(){OPe=C,XCt=Bj((Pk(),W(A(YCt,1),Z,503,0,[eZ,$X])))}function kPe(){kPe=C,MIt=Bj((IA(),W(A(jIt,1),Z,427,0,[Q3,AIt])))}function APe(){return yM(),W(A(C8,1),Z,86,0,[x8,b8,y8,v8,S8])}function jPe(){return Lz(),W(A(P5,1),SU,64,0,[M5,m5,p5,j5,N5])}function MPe(e,t,n){return F(t==null?NI(e.f,null,n):FM(e.i,t,n),290)}function NPe(e){return(e.k==(_L(),YX)||e.k==GX)&&ib(e,(X(),l$))}function PPe(e){e.b!=e.c&&(e.a=H(IJ,mB,1,8,5,1),e.b=0,e.c=0)}function FPe(e,t){var n=t.jd();return new ah(n,e.e.pc(n,F(t.kd(),18)))}function IPe(e,t){for(var n=t;n;)ob(e,-n.i,-n.j),n=qw(n);return e}function LPe(e,t){for(var n=t,r=0;n>0;)r+=e.a[n],n-=n&-n;return r}function CE(e,t,n){var r=(gT(t,e.c.length),e.c[t]);return e.c[t]=n,r}function wE(e,t){var n,r;for(bC(t),r=e.Jc();r.Ob();)n=r.Pb(),t.Ad(n)}function RPe(e,t){var n=t.jd(),r=e.De(n);return!!r&&EC(r.e,t.kd())}function zPe(e,t){return e.a.get(t)??H(IJ,mB,1,0,5,1)}function TE(e){e.i=0,ag(e.b,null),ag(e.c,null),e.a=null,e.e=null,++e.g}function BPe(e,t,n){e.a.c.length=0,pst(e,t,n),e.a.c.length==0||vrt(e,t)}function VPe(e,t){this.c=0,this.b=t,Fpe.call(this,e,17493),this.a=this.c}function HPe(e){udt(),Dse(this),this.a=new vh,oWe(this,e),Sx(this.a,e)}function UPe(){zv(this),this.b=new j(LV,LV),this.a=new j(RV,RV)}function EE(e){DE(),!FY&&(this.c=e,this.e=!0,this.a=new kd)}function DE(){DE=C,FY=!0,gxt=!1,_xt=!1,yxt=!1,vxt=!1}function OE(){OE=C,k3=new Pfe(kpt,0),EFt=new Pfe(`TARGET_WIDTH`,1)}function kE(e,t){return(PM(e),eh(new Hx(e,new vLe(t,e.a)))).zd(RY)}function WPe(){return rI(),W(A(_Ct,1),Z,363,0,[CX,wX,TX,EX,DX])}function GPe(){return HF(),W(A(zNt,1),Z,364,0,[K4,U4,q4,W4,G4])}function KPe(){return OL(),W(A(RFt,1),Z,369,0,[N3,M3,F3,P3,I3])}function qPe(){return hI(),W(A(XFt,1),Z,330,0,[qFt,G3,YFt,K3,JFt])}function JPe(){return zF(),W(A($wt,1),Z,371,0,[LZ,zZ,BZ,RZ,IZ])}function YPe(){return hP(),W(A(u2,1),Z,303,0,[zAt,s2,c2,o2,l2])}function XPe(){return oN(),W(A(pEt,1),Z,165,0,[i1,e1,t1,n1,r1])}function ZPe(){return iP(),W(A(o6,1),Z,160,0,[i6,r6,t6,a6,n6])}function QPe(){return aP(),W(A($8,1),Z,257,0,[Z8,Q8,ZRt,X8,QRt])}function $Pe(e){return pm(),function(){return PMe(e,this,arguments)}}function AE(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function eFe(e,t){return N(t,144)?zb(e.c,F(t,144).c):!1}function jE(e){return e.t||(e.t=new use(e),gM(new Gp(e),0,e.t)),e.t}function tFe(e){var t;return e.c||(t=e.r,N(t,88)&&(e.c=F(t,29))),e.c}function ME(e,t){return F(oO(e.d,t),21)||F(oO(e.e,t),21)}function nFe(e){this.b=e,yy.call(this,e),this.a=F(bA(this.b.a,4),129)}function rFe(e){this.b=e,Uy.call(this,e),this.a=F(bA(this.b.a,4),129)}function NE(e,t,n,r,i){EFe.call(this,t,r,i),this.c=e,this.b=n}function iFe(e,t,n,r,i){EFe.call(this,t,r,i),this.c=e,this.a=n}function aFe(e,t,n,r,i){Kje.call(this,t,r,i),this.c=e,this.a=n}function oFe(e,t,n,r,i){Gje.call(this,t,r,i),this.c=e,this.a=n}function sFe(e){vde.call(this,e==null?hB:eN(e),N(e,80)?F(e,80):null)}function cFe(e){e&&SRe((vce(),pbt)),--XJ,e&&ZJ!=-1&&(yfe(ZJ),ZJ=-1)}function lFe(e,t){var n=F(aGe(e.c,t),18),r;n&&(r=n.gc(),n.$b(),e.d-=r)}function PE(e){return Qv(e&OV,e>>22&OV,e<0?kV:0)}function uFe(e){var t=e.c.i,n=e.d.i;return t.k==(_L(),GX)&&n.k==GX}function dFe(e){var t=e.length;return zb(BV.substr(BV.length-t,t),e)}function FE(e){if(sL(e))return e.c=e.a,e.a.Pb();throw O(new nf)}function IE(e,t){return t==0||e.e==0?e:t>0?sJe(e,t):aet(e,-t)}function fFe(e,t){return t==0||e.e==0?e:t>0?aet(e,t):sJe(e,-t)}function pFe(e){return e.e=3,e.d=e.Yb(),e.e!=2&&(e.e=0,!0)}function LE(e){var t=new hw;return TA(t,e),G(t,(Yz(),K1),null),t}function RE(e,t,n){var r=e.Fh(t);return r>=0?e.Ih(r,n,!0):ZI(e,t,n)}function mFe(e,t,n){return vM(uy(nP(e),ry(t.b)),uy(nP(e),ry(n.b)))}function hFe(e,t,n){return vM(uy(nP(e),ry(t.e)),uy(nP(e),ry(n.e)))}function gFe(e,t){return r.Math.min(mD(t.a,e.d.d.c),mD(t.b,e.d.d.c))}function _Fe(e,t,n){var r=new jhe(e.a);nA(r,e.a.a),NI(r.f,t,n),e.a.a=r}function vFe(e,t,n,r){for(var i=0;it)throw O(new zp($4e(e,t,`index`)));return e}function SFe(e){var t=e.e+e.f;return isNaN(t)&&Gb(e.d)?e.d:t}function CFe(e,t){var n=(bC(e),e),r=(bC(t),t);return n==r?0:nt.p?-1:0}function IFe(e,t){return kS(e.a,t)?(UE(e.a,t),!0):!1}function LFe(e){var t=e.jd();return lx(F(e.kd(),18).Lc(),new uie(t))}function tD(e){var t=e.b;return t.b==0?null:F(vP(t,0),65).b}function RFe(e,t){var n=Lst(e,t);return e.b=new Ak(n.c.length),Uot(e,n)}function zFe(e){var t;return PM(e),t=new kSe(e,e.a.e,e.a.d|4),new X_e(e,t)}function BFe(e){var t;for(hC(e),t=0;e.a.zd(new Ae);)t=BM(t,1);return t}function VFe(e){var t;return e.a||(t=e.r,N(t,159)&&(e.a=F(t,159))),e.a}function HFe(e,t,n){var r;return++e.e,--e.f,r=F(e.d[t].ed(n),136),r.kd()}function nD(e,t,n){return BT(t,e.e.Pd().gc()),BT(n,e.c.Pd().gc()),e.a[t][n]}function rD(e,t){return bC(t),e.cn||t=0,`Initial capacity must not be negative`)}function mD(e,t){var n=e.a-t.a,i=e.b-t.b;return r.Math.sqrt(n*n+i*i)}function LIe(e,t,n){var r=e.b[n.c.p][n.p];r.b+=t.b,r.c+=t.c,r.a+=t.a,++r.a}function RIe(){RIe=C,yjt=oS(Mx(new vC,(rI(),CX),($z(),sZ)),DX,SZ)}function zIe(){return DI(),W(A(oQ,1),Z,231,0,[nQ,iQ,tQ,rQ,aQ,eQ])}function BIe(){return fI(),W(A(DTt,1),Z,284,0,[TQ,wQ,DQ,EQ,kQ,OQ])}function VIe(){return kF(),W(A(ITt,1),Z,282,0,[MQ,NTt,FTt,MTt,PTt,jQ])}function HIe(){return lI(),W(A(UTt,1),Z,283,0,[NQ,zTt,HTt,VTt,BTt,RTt])}function UIe(){return wP(),W(A(JIt,1),Z,256,0,[g6,y6,b6,x6,_6,v6])}function WIe(){return VF(),W(A(ezt,1),Z,102,0,[a5,i5,r5,e5,n5,t5])}function GIe(){return BI(),W(A(f5,1),Z,280,0,[u5,c5,l5,s5,o5,d5])}function KIe(){return IF(),W(A(k6,1),Z,299,0,[O6,D6,E6,w6,C6,T6])}function qIe(){return eI(),W(A(LRt,1),Z,328,0,[FRt,NRt,IRt,jRt,PRt,MRt])}function JIe(e){var t;return!e.a&&e.b!=-1&&(t=e.c.Ah(),e.a=yO(t,e.b)),e.a}function hD(e,t){return e.Qi()&&e.Gc(t)?!1:(e.Fi(t),!0)}function gD(e,t){return xw(t,`Horizontal alignment cannot be null`),e.b=t,e}function YIe(e,t,n){eB();var r=Bz(e,t);return n&&r&&REe(e)&&(r=null),r}function _D(e,t,n){for(var r,i=e.Jc();i.Ob();)r=F(i.Pb(),36),uR(r,t,n)}function XIe(e,t){for(var n,r=t.Jc();r.Ob();)n=F(r.Pb(),36),Bnt(e,n,0,0)}function ZIe(e){for(var t,n=oP(e.a,0);n.b!=n.d.c;)t=F(YT(n),65),Z3e(t)}function QIe(e,t){return Cde(e.e,t)||eP(e.e,t,new wYe(t)),F(oO(e.e,t),113)}function vD(e,t,n,r){return bC(e),bC(t),bC(n),bC(r),new TTe(e,t,new Te)}function yD(e,t,n,r){this.$j(),this.a=t,this.b=e,this.c=new gTe(this,t,n,r)}function bD(e,t,n,r,i,a){LMe.call(this,t,r,i,a),this.c=e,this.b=n}function xD(e,t,n,r,i,a){LMe.call(this,t,r,i,a),this.c=e,this.a=n}function SD(e,t){var n,r,i=e.r;return r=e.d,n=$R(e,t,!0),n.b!=i||n.a!=r}function CD(e,t,n){var r,i=(r=mL(e.b,t),r);return i?fz(WD(e,i),n):null}function $Ie(e,t,n){var r=Bw(e,n),i=null,a;r&&(i=h4e(r)),a=i,gYe(t,n,a)}function eLe(e,t,n){var r=Bw(e,n),i=null,a;r&&(i=h4e(r)),a=i,gYe(t,n,a)}function tLe(e,t,n){var i;e.d[t.g]=n,i=e.g.c,i[t.g]=r.Math.max(i[t.g],n+1)}function wD(e,t){var n=e.Fh(t);return n>=0?e.Ih(n,!0,!0):ZI(e,t,!0)}function nLe(e,t){var n=tC(e.k,t);return i9e(e,t),gR(e,t),b5e(e,t,n),null}function rLe(e){var t;if(!e.a)throw O(new wOe);return t=e.a,e.a=qw(e.a),t}function iLe(e){if(e.b<=0)throw O(new nf);return--e.b,e.a-=e.c.c,K(e.a)}function aLe(e,t,n){var r=FUe(e,t,n);return e.b=new Ak(r.c.length),Pet(e,r)}function TD(e){var t;return XS(e),N(e,204)?(t=F(e,204),t):new vie(e)}function oLe(e){for(;!e.a;)if(!vye(e.c,new cae(e)))return!1;return!0}function sLe(e,t){e.a.Le(t.d,e.b)>0&&(fy(e.c,new WSe(t.c,t.d,e.d)),e.b=t.d)}function cLe(e,t){if(e.g==null||t>=e.i)throw O(new fv(t,e.i));return e.g[t]}function lLe(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)U(e,t);return MNe(e)}function uLe(e){ED(),F(e.mf((Qz(),i8)),182).Ec((BI(),l5)),e.of(JLt,null)}function ED(){ED=C,RIt=new kne,BIt=new Ane,zIt=dUe((Qz(),JLt),RIt,X6,BIt)}function DD(){DD=C,VNt=new Nfe(`LEAF_NUMBER`,0),J4=new Nfe(`NODE_SIZE`,1)}function dLe(){dLe=C,QR(),LVt=LV,IVt=RV,zVt=new Al(LV),RVt=new Al(RV)}function fLe(e){return N(e,180)?``+F(e,180).a:e==null?null:eN(e)}function pLe(e){return N(e,180)?``+F(e,180).a:e==null?null:eN(e)}function OD(e,t,n,r,i){return t<0?ZI(e,n,r):F(n,69).uk().wk(e,e.ei(),t,r,i)}function kD(e,t,n,r){var i;r=(tw(),r||Jbt),i=e.slice(t,n),e3e(i,e,t,n,-t,r)}function mLe(e,t){var n,r=t/e.c.Pd().gc()|0;return n=t%e.c.Pd().gc(),nD(e,r,n)}function hLe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function gLe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[1];)n=t;return n}function _Le(e,t,n){if(vj(e,n),n!=null&&!e.dk(n))throw O(new Jd);return n}function AD(e,t){return mO(t)!=10&&W(Tj(t),t.Qm,t.__elementTypeId$,mO(t),e),e}function vLe(e,t){sv.call(this,t.xd(),t.wd()&-16449),bC(e),this.a=e,this.c=t}function yLe(e,t,n,r,i){che(this),this.b=e,this.d=t,this.f=n,this.g=r,this.c=i}function bLe(e,t){if(t.a)throw O(new Op(wft));PS(e.a,t),t.a=e,!e.j&&(e.j=t)}function jD(){jD=C,JY=new pg(bH,0),qY=new pg(yH,1),YY=new pg(xH,2)}function MD(){MD=C,kY=new ug(`All`,0),AY=new Cme,jY=new ohe,MY=new wme}function xLe(){xLe=C,fxt=Bj((MD(),W(A(NY,1),Z,310,0,[kY,AY,jY,MY])))}function SLe(){SLe=C,Rwt=Bj((YA(),W(A(Lwt,1),Z,367,0,[jZ,kZ,AZ,OZ])))}function CLe(){CLe=C,NCt=Bj((KN(),W(A(MCt,1),Z,383,0,[BX,jCt,RX,zX])))}function wLe(){wLe=C,dSt=Bj((NA(),W(A(uSt,1),Z,409,0,[iX,tX,nX,rX])))}function TLe(){TLe=C,wCt=Bj((XA(),W(A(CCt,1),Z,408,0,[NX,IX,PX,FX])))}function ELe(){ELe=C,hTt=Bj((sN(),W(A(mTt,1),Z,301,0,[lQ,fTt,cQ,pTt])))}function DLe(){DLe=C,RAt=Bj((CP(),W(A(a2,1),Z,203,0,[r2,i2,n2,t2])))}function OLe(){OLe=C,YAt=Bj((LN(),W(A(JAt,1),Z,269,0,[_2,qAt,v2,y2])))}function kLe(){kLe=C,Qwt=Bj((MA(),W(A(Zwt,1),Z,413,0,[MZ,NZ,PZ,FZ])))}function ALe(){ALe=C,Fjt=Bj((Yj(),W(A(Pjt,1),Z,404,0,[F2,L2,R2,I2])))}function jLe(){jLe=C,OPt=Bj((KP(),W(A(DPt,1),Z,354,0,[n3,TPt,EPt,wPt])))}function MLe(){MLe=C,kNt=Bj((Nj(),W(A(ONt,1),Z,353,0,[R4,I4,L4,F4])))}function NLe(){NLe=C,wMt=Bj((uF(),W(A(CMt,1),Z,398,0,[e4,t4,n4,r4])))}function PLe(){PLe=C,IPt=Bj(($F(),W(A(FPt,1),Z,401,0,[u3,s3,l3,c3])))}function FLe(){FLe=C,TRt=Bj((Zj(),W(A(wRt,1),Z,278,0,[T8,w8,SRt,CRt])))}function ILe(){ILe=C,ARt=Bj((CM(),W(A(kRt,1),Z,222,0,[ORt,A8,k8,j8])))}function LLe(){LLe=C,YRt=Bj((dF(),W(A(JRt,1),Z,292,0,[z8,I8,L8,R8])))}function RLe(){RLe=C,wzt=Bj((xE(),W(A(Z5,1),Z,288,0,[bzt,Czt,xzt,Szt])))}function zLe(){zLe=C,pzt=Bj((AN(),W(A(B5,1),Z,380,0,[R5,z5,L5,I5])))}function BLe(){BLe=C,Azt=Bj((cN(),W(A(kzt,1),Z,327,0,[Ozt,Tzt,Dzt,Ezt])))}function VLe(){VLe=C,Lzt=Bj((Mj(),W(A(Izt,1),Z,407,0,[Nzt,Pzt,Mzt,Fzt])))}function ND(){ND=C,kTt=new ofe(bU,0),AQ=new ofe(`IMPROVE_STRAIGHTNESS`,1)}function PD(){PD=C,A3=new p_(Vht,0),AFt=new p_(hht,1),kFt=new p_(bU,2)}function FD(e){e.a=H(q9,vV,30,e.b+1,15,1),e.c=H(q9,vV,30,e.b,15,1),e.d=0}function ID(e){for(var t=e.p+1;t=0?bP(e,n,!0,!0):ZI(e,t,!0)}function aRe(e,t){Ub(F(F(e.f,26).mf((Qz(),r8)),102))&&oqe(SDe(F(e.f,26)),t)}function oRe(e,t){qO(e,t==null||Gb((bC(t),t))||isNaN((bC(t),t))?0:(bC(t),t))}function sRe(e,t){KO(e,t==null||Gb((bC(t),t))||isNaN((bC(t),t))?0:(bC(t),t))}function cRe(e,t){VO(e,t==null||Gb((bC(t),t))||isNaN((bC(t),t))?0:(bC(t),t))}function lRe(e,t){JO(e,t==null||Gb((bC(t),t))||isNaN((bC(t),t))?0:(bC(t),t))}function uRe(e){(this.q?this.q:(ew(),ew(),wY)).zc(e.q?e.q:(ew(),ew(),wY))}function nO(e,t,n){var r=e.g[t];return py(e,t,e.Xi(t,n)),e.Pi(t,n,r),e.Li(),r}function rO(e,t){var n=e.bd(t);return n>=0&&(e.ed(n),!0)}function iO(e){var t;return e.d!=e.r&&(t=vF(e),e.e=!!t&&t.jk()==Yvt,e.d=t),e.e}function aO(e,t){var n;for(XS(e),XS(t),n=!1;t.Ob();)n|=e.Ec(t.Pb());return n}function oO(e,t){var n=F(tC(e.e,t),393);return n?(Whe(e,n),n.e):null}function sO(e){var t=e.b.c.length==0?null:zx(e.b,0);return t!=null&&Ok(e,0),t}function cO(e,t){var n,r;return PM(e),r=new MFe(t,e.a),n=new Eye(r),new Hx(e,n)}function lO(){lO=C,QY=new mg(`TOP`,0),ZY=new mg(yH,1),XY=new mg(Bft,2)}function uO(){uO=C,$Q=new Bg(bU,0),e$=new Bg(`TOP`,1),QQ=new Bg(Bft,2)}function dO(){dO=C,DCt=new xt,OCt=new tee,TCt=new nee,ECt=new ree,kCt=new St}function fO(){fO=C,ybt=Qv(OV,OV,524287),bbt=Qv(0,0,AV),xbt=PE(1),PE(2),Sbt=PE(0)}function pO(e,t){var n=e.a[t],r=(ej(),eY)[typeof n];return r?r(n):oGe(typeof n)}function dRe(e){var t=e/60|0,n=e%60;return n==0?``+t:``+t+`:`+(``+n)}function fRe(e){return LQe(e,(fO(),Sbt))<0?-yge(ij(e)):e.l+e.m*jV+e.h*MV}function pRe(e){switch(e.g){case 0:return lB;case 1:return ZB;default:return 0}}function mO(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function mRe(e,t){return N(t,103)&&(F(t,19).Bb&VV)!=0?new mv(t,e):new EA(t,e)}function hRe(e,t){return N(t,103)&&(F(t,19).Bb&VV)!=0?new mv(t,e):new EA(t,e)}function gRe(e,t,n){return uy(new j(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(bC(t),t)}function _Re(e,t){var n,r,i=t.c.i;n=F(tC(e.f,i),60),r=n.d.c-n.e.c,bVe(t.a,r,0)}function vRe(e,t){var n;for(++e.d,++e.c[t],n=t+1;ne.a[r]&&(r=n);return r}function DRe(e){var t=F(q(e,(X(),r$)),318);return t?t.a==e:!1}function ORe(e){var t=F(q(e,(X(),r$)),318);return t?t.i==e:!1}function kRe(e,t){return t==(Zb(),Zb(),ixt)?e.toLocaleLowerCase():e.toLowerCase()}function ARe(){ARe=C,vCt=Bj((rI(),W(A(_Ct,1),Z,363,0,[CX,wX,TX,EX,DX])))}function jRe(){jRe=C,BAt=Bj((hP(),W(A(u2,1),Z,303,0,[zAt,s2,c2,o2,l2])))}function MRe(){MRe=C,eTt=Bj((zF(),W(A($wt,1),Z,371,0,[LZ,zZ,BZ,RZ,IZ])))}function NRe(){NRe=C,BNt=Bj((HF(),W(A(zNt,1),Z,364,0,[K4,U4,q4,W4,G4])))}function PRe(){PRe=C,zFt=Bj((OL(),W(A(RFt,1),Z,369,0,[N3,M3,F3,P3,I3])))}function FRe(){FRe=C,ZFt=Bj((hI(),W(A(XFt,1),Z,330,0,[qFt,G3,YFt,K3,JFt])))}function IRe(){IRe=C,mEt=Bj((oN(),W(A(pEt,1),Z,165,0,[i1,e1,t1,n1,r1])))}function LRe(){LRe=C,HIt=Bj((iP(),W(A(o6,1),Z,160,0,[i6,r6,t6,a6,n6])))}function RRe(){RRe=C,xRt=Bj((yM(),W(A(C8,1),Z,86,0,[x8,b8,y8,v8,S8])))}function zRe(){zRe=C,rzt=Bj((Lz(),W(A(P5,1),SU,64,0,[M5,m5,p5,j5,N5])))}function BRe(){BRe=C,$Rt=Bj((aP(),W(A($8,1),Z,257,0,[Z8,Q8,ZRt,X8,QRt])))}function hO(){hO=C,cX=new Fde(`EADES`,0),lX=new Fde(`FRUCHTERMAN_REINGOLD`,1)}function gO(){gO=C,bQ=new afe(`READING_DIRECTION`,0),STt=new afe(`ROTATION`,1)}function VRe(e){this.g=e,this.f=new kd,this.a=r.Math.min(this.g.c.c,this.g.d.c)}function HRe(e){this.b=new kd,this.a=new kd,this.c=new kd,this.d=new kd,this.e=e}function URe(e,t,n,r){eB(),Dd.call(this,26),this.c=e,this.a=t,this.d=n,this.b=r}function WRe(e,t,n){jb.call(this),yze(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function GRe(e,t,n){for(var r,i=new D(n);i.a=0&&t0?lB:qj(e,ZB)<0?ZB:$x(e)}function JRe(e,t){return PO(),-Zv(F(q(e,(zR(),j4)),15).a,F(q(t,j4),15).a)}function YRe(){return _L(),W(A(QX,1),Z,249,0,[YX,qX,GX,XX,KX,WX,ZX,JX])}function XRe(){return oL(),W(A(S7,1),Z,244,0,[aBt,b7,x7,y7,iBt,v7,_7,rBt])}function ZRe(){return CI(),W(A(WIt,1),Z,285,0,[UIt,s6,d6,p6,c6,l6,u6,f6])}function QRe(){return nR(),W(A(oTt,1),Z,275,0,[KZ,YZ,GZ,QZ,JZ,qZ,ZZ,XZ])}function $Re(e,t){return!!Yk(e,t,$x(VM(VB,MC($x(VM(t==null?0:Rk(t),HB)),15))))}function eze(e,t){var n=t>0?t-1:t;return rle(nle(Vze(tCe(new up,n),e.n),e.j),e.k)}function xO(e){var t,n=(t=new $f,t);hD((!e.q&&(e.q=new I(B7,e,11,10)),e.q),n)}function tze(e,t){var n=F(Kj(e.d,t),18),r;return n?(r=t,e.e.pc(r,n)):null}function SO(e,t){var n;return PM(e),n=new fOe(e,e.a.xd(),e.a.wd()|4,t),new Hx(e,n)}function CO(e){var t;eb(!!e.c),t=e.c.a,DO(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function nze(e){return e.a>=-.01&&e.a<=wH&&(e.a=0),e.b>=-.01&&e.b<=wH&&(e.b=0),e}function rze(e){var t=k(P(q(e,(Yz(),B1))));return t<0&&(t=0,G(e,B1,t)),t}function ize(e,t){Ub(F(q(F(e.e,9),(Yz(),_0)),102))&&(ew(),Yv(F(e.e,9).j,t))}function wO(e,t){for(var n,r=e.Jc();r.Ob();)n=F(r.Pb(),70),G(n,(X(),C$),t)}function aze(e,t,n){var i=r.Math.max(0,e.b/2-.5);bF(n,i,1),fy(t,new qde(n,i))}function oze(e,t,n,r){var i;e.j=-1,Z6e(e,g4e(e,t,n),(Qh(),i=F(t,69).tk(),i.vl(r)))}function sze(e,t,n,r,i,a){var o=LE(r);Yw(o,i),Zw(o,a),YI(e.a,r,new ex(o,t,n.f))}function cze(e,t){_P(e,(aR(),g3),t.f),_P(e,RPt,t.e),_P(e,h3,t.d),_P(e,LPt,t.c)}function lze(e,t){if(0>e||e>t)throw O(new xce(`fromIndex: 0, toIndex: `+e+fft+t))}function TO(e){if(e<0)throw O(new qp(`Illegal Capacity: `+e));this.g=this.$i(e)}function uze(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(fm(),KJ)}function EO(e,t){for(var n=e;qw(n);)if(n=qw(n),n==t)return!0;return!1}function dze(e,t){return t&&e.b[t.g]==t?(eC(e.b,t.g,null),--e.c,!0):!1}function DO(e,t){var n=t.c;return t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,n}function fze(e,t){var n=PL(e.Ah(),t);if(!n)throw O(new qp(MK+t+PK));return n}function OO(e){XL();var t,n=wht;for(t=0;tn&&(n=e[t]);return n}function pze(e){for(var t=0;t0&&(e.a/=t,e.b/=t),e}function jO(e){this.b=(XS(e),new qb(e)),this.a=new kd,this.d=new kd,this.e=new Rm}function yze(e){e.b=(jD(),qY),e.f=(lO(),ZY),e.d=(_k(2,GB),new pD(2)),e.e=new Rm}function MO(){MO=C,VY=new fg(`BEGIN`,0),HY=new fg(yH,1),UY=new fg(`END`,2)}function NO(){NO=C,E8=new w_(yH,0),D8=new w_(`HEAD`,1),O8=new w_(`TAIL`,2)}function PO(){PO=C,PNt=VN(VN(VN(Gh(new vC,(uF(),t4)),(vR(),a4)),kMt),NMt)}function FO(){FO=C,INt=VN(VN(VN(Gh(new vC,(uF(),r4)),(vR(),jMt)),EMt),AMt)}function bze(){bze=C,KY=(MO(),W(A(WY,1),Z,237,0,[VY,HY,UY])).length,GY=KY}function xze(e,t){for(;t[0]=0;)++t[0]}function IO(e,t){var n,r=e.a;n=QGe(e,t,null),r!=t&&!e.e&&(n=kz(e,t,n)),n&&n.mj()}function LO(e){var t;return e.w?e.w:(t=vje(e),t&&!t.Sh()&&(e.w=t),t)}function Sze(e){var t;return e==null?null:(t=F(e,195),h0e(t,t.length))}function U(e,t){if(e.g==null||t>=e.i)throw O(new fv(t,e.i));return e.Ui(t,e.g[t])}function Cze(e,t){ew();var n,r=new kd;for(n=0;n=14&&t<=16))),e}function jze(){jze=C,cTt=Bj((DI(),W(A(oQ,1),Z,231,0,[nQ,iQ,tQ,rQ,aQ,eQ])))}function Mze(){Mze=C,OTt=Bj((fI(),W(A(DTt,1),Z,284,0,[TQ,wQ,DQ,EQ,kQ,OQ])))}function Nze(){Nze=C,LTt=Bj((kF(),W(A(ITt,1),Z,282,0,[MQ,NTt,FTt,MTt,PTt,jQ])))}function Pze(){Pze=C,WTt=Bj((lI(),W(A(UTt,1),Z,283,0,[NQ,zTt,HTt,VTt,BTt,RTt])))}function Fze(){Fze=C,YIt=Bj((wP(),W(A(JIt,1),Z,256,0,[g6,y6,b6,x6,_6,v6])))}function Ize(){Ize=C,tzt=Bj((VF(),W(A(ezt,1),Z,102,0,[a5,i5,r5,e5,n5,t5])))}function Lze(){Lze=C,nzt=Bj((BI(),W(A(f5,1),Z,280,0,[u5,c5,l5,s5,o5,d5])))}function Rze(){Rze=C,sLt=Bj((IF(),W(A(k6,1),Z,299,0,[O6,D6,E6,w6,C6,T6])))}function zze(){zze=C,RRt=Bj((eI(),W(A(LRt,1),Z,328,0,[FRt,NRt,IRt,jRt,PRt,MRt])))}function Bze(){return cL(),W(A(Y8,1),Z,96,0,[V8,B8,U8,J8,q8,K8,W8,G8,H8])}function BO(){BO=C,F5=new N_(p_t,0),lzt=new N_(`PARENT`,1),uzt=new N_(`ROOT`,2)}function Vze(e,t){return e.n=t,e.n?(e.f=new kd,e.e=new kd):(e.f=null,e.e=null),e}function VO(e,t){var n=e.f;e.f=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,3,n,e.f))}function HO(e,t){var n=e.a;e.a=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,0,n,e.a))}function UO(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,1,n,e.b))}function WO(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,3,n,e.b))}function GO(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,4,n,e.c))}function KO(e,t){var n=e.g;e.g=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,4,n,e.g))}function qO(e,t){var n=e.i;e.i=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,5,n,e.i))}function JO(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,6,n,e.j))}function YO(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,1,n,e.j))}function XO(e,t){var n=e.k;e.k=t,e.Db&4&&!(e.Db&1)&&fA(e,new pE(e,2,n,e.k))}function ZO(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&fA(e,new mE(e,2,n,e.d))}function QO(e,t){var n=e.s;e.s=t,e.Db&4&&!(e.Db&1)&&fA(e,new mE(e,4,n,e.s))}function $O(e,t){var n=e.t;e.t=t,e.Db&4&&!(e.Db&1)&&fA(e,new mE(e,5,n,e.t))}function ek(e,t){var n=e.F;e.F=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,5,n,t))}function tk(e,t){var n=F(tC((Jh(),D7),e),58);return n?n.ek(t):H(IJ,mB,1,t,5,1)}function nk(e,t){var n=t in e.a,r;return n&&(r=Bw(e,t).pe(),r)?r.a:null}function Hze(e,t){var n=(r=(Vm(),i=new go,i),t&&f9e(r,t),r),r,i;return NBe(n,e),n}function Uze(e,t,n){var r=RN(n);return TC(e.c,r,t),TC(e.d,t,n),TC(e.e,t,Vw(t)),t}function rk(e,t,n,r,i,a){var o=aEe(e,t);return $ze(n,o),o.i=i?8:0,o.f=r,o.e=i,o.g=a,o}function Wze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=1,this.c=e,this.a=n}function Gze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=2,this.c=e,this.a=n}function Kze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=6,this.c=e,this.a=n}function qze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=7,this.c=e,this.a=n}function Jze(e,t,n,r,i){this.d=t,this.j=r,this.e=i,this.o=-1,this.p=4,this.c=e,this.a=n}function Yze(e,t){for(var n,r=t,i=0,a=r.length;i0?F(zx(n.a,r-1),9):null}function ok(e){if(!(e>=0))throw O(new qp(`tolerance (`+e+`) must be >= 0`));return e}function sk(){return $3||($3=new Ztt,Sj($3,W(A(sX,1),mB,148,0,[new Oc]))),$3}function ck(){ck=C,ujt=new Qg(`NO`,0),j2=new Qg(kpt,1),ljt=new Qg(`LOOK_BACK`,2)}function lk(){lk=C,gTt=new jg(`ARD`,0),dQ=new jg(`MSD`,1),uQ=new jg(`MANUAL`,2)}function uk(){uk=C,w2=new Yg(CH,0),S2=new Yg(`INPUT`,1),C2=new Yg(`OUTPUT`,2)}function dk(e,t){var n=e.gc();if(t<0||t>n)throw O(new Rb(t,n));return new Oye(e,t)}function fk(e,t){for(var n,r=t,i=0,a=r.length;i=0),PJe(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function hk(e,t){e.b=r.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),fy(e.a,t)}function sBe(e,t){t.Tg(`Hierarchical port constraint processing`,1),RYe(e),edt(e),t.Ug()}function gk(e){for(var t,n=e.c.Bc().Jc();n.Ob();)t=F(n.Pb(),18),t.$b();e.c.$b(),e.d=0}function cBe(e,t){for(var n=0,r=e.gc();n=0}function kBe(e,t){e.r>0&&e.c0&&e.g!=0&&kBe(e.i,t/e.r*e.i.d))}function ABe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,1,n,e.c))}function yk(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,4,n,e.c))}function jBe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,1,n,e.c))}function MBe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,1,n,e.d))}function bk(e,t){var n=e.k;e.k=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,2,n,e.k))}function xk(e,t){var n=e.D;e.D=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,2,n,e.D))}function Sk(e,t){var n=e.f;e.f=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,8,n,e.f))}function Ck(e,t){var n=e.i;e.i=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,7,n,e.i))}function NBe(e,t){var n=e.a;e.a=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,8,n,e.a))}function PBe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,0,n,e.b))}function FBe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,0,n,e.b))}function IBe(e,t,n){var r;e.b=t,e.a=n,r=(e.a&512)==512?new op:new nc,e.c=Det(r,e.b,e.a)}function LBe(e,t){return WL(e.e,t)?(Qh(),iO(t)?new Nx(t,e):new Q_(t,e)):new Ope(t,e)}function RBe(e){var t,n;return 0>e?new Iue:(t=e+1,n=new VPe(t,e),new Z_e(null,n))}function zBe(e,t){ew();var n=new wh(1);return q_(e)?$w(n,e,t):NI(n.f,e,t),new Ql(n)}function BBe(e,t){var n=new it;F(t.b,68),F(t.b,68),F(t.b,68),kO(t.a,new oSe(e,n,t))}function VBe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,11,n,e.d))}function HBe(e,t){for(var n,r=t.vc().Jc();r.Ob();)n=F(r.Pb(),45),wF(e,n.jd(),n.kd())}function wk(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,13,n,e.j))}function UBe(e,t){var n;return N(t,8)?(n=F(t,8),e.a==n.a&&e.b==n.b):!1}function WBe(e){var t=q(e,(X(),M$));return N(t,174)?Oqe(F(t,174)):null}function GBe(e){var t;return e=r.Math.max(e,2),t=CUe(e),e>t?(t<<=1,t>0?t:WB):t}function KBe(e){var t;return e.b==null?(Xh(),Xh(),u9):(t=e.sl()?e.rl():e.ql(),t)}function Tk(e){var t;return Xb(e.f.g,e.d),tb(e.b),e.c=e.a,t=F(e.a.Pb(),45),e.b=BHe(e),t}function Ek(e,t){var n=e.a,r=0;for(var i in n)n.hasOwnProperty(i)&&(t[r++]=i);return t}function Dk(e,t){var n;return bC(t),n=t.g,!e.b[n]&&(eC(e.b,n,t),++e.c,!0)}function qBe(e,t){var n=t==null?-1:VD(e.b,t,0);return n<0?!1:(Ok(e,n),!0)}function Ok(e,t){var n=WE(e.b,e.b.c.length-1);t0):(!e.c&&(e.c=fT(_A(e.f))),e.c).e}function dVe(e,t){t?e.B??(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function fVe(e,t){typeof window===aB&&typeof window.$gwt===aB&&(window.$gwt[e]=t)}function pVe(e,t,n){for(var r=0,i=0,a;i>>31;r!=0&&(e[n]=r)}function qk(e,t,n,r,i,a){var o;this.c=e,o=new kd,XXe(e,o,t,e.b,n,r,i,a),this.a=new FT(o,0)}function mVe(){this.c=new th(0),this.b=new th(Cht),this.d=new th(xht),this.a=new th(Sht)}function hVe(e,t){return k(P(My(cM(BC(new Hx(null,new hT(e.c.b,16)),new Gu(e)),t))))}function gVe(e,t){return k(P(My(cM(BC(new Hx(null,new hT(e.c.b,16)),new Hae(e)),t))))}function _Ve(e,t){var n=F(Y(e,(_I(),Q4)),15),r=F(Y(t,Q4),15);return Zv(n.a,r.a)}function vVe(e,t){var n;t.Tg(`General Compactor`,1),n=bqe(F(Y(e,(_I(),Z4)),386)),n.Bg(e)}function yVe(e,t,n){n.Tg(`DFS Treeifying phase`,1),cJe(e,t),j9e(e,t),e.a=null,e.b=null,n.Ug()}function bVe(e,t,n){for(var r,i=oP(e,0);i.b!=i.d.c;)r=F(YT(i),8),r.a+=t,r.b+=n;return e}function Jk(e,t,n){for(var r=e.b[n&e.f];r;r=r.b)if(n==r.a&&mC(t,r.g))return r;return null}function Yk(e,t,n){for(var r=e.c[n&e.f];r;r=r.d)if(n==r.f&&mC(t,r.i))return r;return null}function xVe(e,t,n,r){var i=new kp;aw(i,`x`,LF(e,t,r.a)),aw(i,`y`,RF(e,t,r.b)),aC(n,i)}function SVe(e,t,n,r){var i=new kp;aw(i,`x`,LF(e,t,r.a)),aw(i,`y`,RF(e,t,r.b)),aC(n,i)}function Xk(e,t,n,r,i,a,o,s,c,l,u,d,f){return Q4e(e,t,n,r,i,a,o,s,c,l,u,d,f),qM(e,!1),e}function Zk(e,t,n,r,i,a,o){ch.call(this,e,t),this.d=n,this.e=r,this.c=i,this.b=a,this.a=BE(o)}function CVe(e,t){return Uv(),ok(wH),r.Math.abs(0-t)<=wH||t==0?0:e/t}function wVe(e,t){return XA(),e==NX&&t==IX||e==IX&&t==NX||e==FX&&t==PX||e==PX&&t==FX}function TVe(e,t){return XA(),e==NX&&t==PX||e==NX&&t==FX||e==IX&&t==FX||e==IX&&t==PX}function EVe(){return YL(),W(A(WQ,1),Z,261,0,[FQ,LQ,RQ,zQ,BQ,VQ,UQ,PQ,IQ,HQ])}function DVe(){return hR(),W(A(GAt,1),Z,243,0,[h2,p2,m2,HAt,UAt,VAt,WAt,g2,d2,f2])}function Qk(){Qk=C,l9=new Use,GBt=W(A(N7,1),zq,179,0,[]),WBt=W(A(B7,1),Zvt,62,0,[])}function $k(){$k=C,UCt=new see,VCt=new kt,HCt=new At,BCt=new jt,WCt=new Mt,GCt=new Nt}function OVe(e,t){t.Tg(Cpt,1),lN(Wue(new pu((Fh(),new WC(e,!1,!1,new Dt))))),t.Ug()}function eA(e){var t=jMe(e);return $_(t.a,0)?(yh(),yh(),OY):(yh(),new nb(t.b))}function tA(e){var t=jMe(e);return $_(t.a,0)?(yh(),yh(),OY):(yh(),new nb(t.c))}function kVe(e){var t=UT(e);return $_(t.a,0)?(Sh(),Sh(),oxt):(Sh(),new i_e(t.b))}function AVe(e){return e.b.c.i.k==(_L(),GX)?F(q(e.b.c.i,(X(),M$)),12):e.b.c}function jVe(e){return e.b.d.i.k==(_L(),GX)?F(q(e.b.d.i,(X(),M$)),12):e.b.d}function MVe(e){switch(e.g){case 2:return Lz(),N5;case 4:return Lz(),p5;default:return e}}function NVe(e){switch(e.g){case 1:return Lz(),j5;case 3:return Lz(),m5;default:return e}}function PVe(e,t){var n=d0e(e);return l6e(new j(n.c,n.d),new j(n.b,n.a),e.Kf(),t,e.$f())}function nA(e,t){var n,r;for(bC(t),r=t.vc().Jc();r.Ob();)n=F(r.Pb(),45),e.yc(n.jd(),n.kd())}function FVe(e,t,n){for(var r=n.Jc();r.Ob();)if(!rE(e,t,r.Pb()))return!1;return!0}function IVe(e,t){var n;for(XS(t);e.Ob();)if(n=e.Pb(),!EHe(F(n,9)))return!1;return!0}function LVe(e,t,n,r,i){var a;return n&&(a=mN(t.Ah(),e.c),i=n.Oh(t,-1-(a==-1?r:a),null,i)),i}function RVe(e,t,n,r,i){var a;return n&&(a=mN(t.Ah(),e.c),i=n.Qh(t,-1-(a==-1?r:a),null,i)),i}function zVe(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function BVe(e){if(bC(e),e.length==0)throw O(new vm(`Zero length BigInteger`));Ynt(this,e)}function VVe(e){this.i=e.gc(),this.i>0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}function HVe(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new kd,k3e(this),ew(),Yv(this.a,null)}function UVe(e,t){t.q=e,e.d=r.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),fy(e.a,t)}function WVe(e,t){return ti&&t.aa&&t.bi?n=i:_T(t,n+1),e.a=yw(e.a,0,t)+(``+r)+_Ee(e.a,n)}function qVe(e,t,n,r){N(e.Cb,184)&&(F(e.Cb,184).tb=null),Bk(e,n),t&&m6e(e,t),r&&e.el(!0)}function JVe(){JVe=C,GIt=Bj((CI(),W(A(WIt,1),Z,285,0,[UIt,s6,d6,p6,c6,l6,u6,f6])))}function YVe(){YVe=C,oBt=Bj((oL(),W(A(S7,1),Z,244,0,[aBt,b7,x7,y7,iBt,v7,_7,rBt])))}function XVe(){XVe=C,RCt=Bj((_L(),W(A(QX,1),Z,249,0,[YX,qX,GX,XX,KX,WX,ZX,JX])))}function ZVe(){ZVe=C,sTt=Bj((nR(),W(A(oTt,1),Z,275,0,[KZ,YZ,GZ,QZ,JZ,qZ,ZZ,XZ])))}function QVe(){return vR(),W(A(IMt,1),Z,264,0,[a4,kMt,NMt,PMt,MMt,OMt,FMt,EMt,jMt,AMt,DMt])}function $Ve(){$Ve=C,Njt=VN(qpe(Mx(Mx(new vC,(rI(),TX),($z(),_Z)),EX,lZ),DX),gZ)}function eHe(){eHe=C,Ljt=VN(qpe(Mx(Mx(new vC,(rI(),TX),($z(),_Z)),EX,lZ),DX),gZ)}function tHe(){var e;return PY||(PY=new mf,e=new EE(``),Bme(e,(Ch(),hxt)),JBe(PY,e)),PY}function nHe(e){return Sb(),e.A.Gc((AN(),I5))&&!e.B.Gc((wR(),W5))?Gqe(e):null}function rHe(e,t){var n=fnt(sk(),e);return n?(_P(t,(Qz(),c8),n),!0):!1}function dA(e,t){for(var n=0;n1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw O(new nf)}function hHe(e){Hme();var t;return _de(J2,e)||(t=new Ai,t.a=e,Dve(J2,e,t)),F(DC(J2,e),636)}function gHe(e){switch(e.a.g){case 1:return new dpe;case 3:return new TZe;default:return new rie}}function _He(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Hje(e,t)}function SA(e){var t;return e<128?(jCe(),t=Ebt[e],!t&&(t=Ebt[e]=new Nl(e)),t):new Nl(e)}function vHe(e){for(var t=1,n,r=e.Jc();r.Ob();)n=r.Pb(),t=31*t+(n==null?0:Rk(n)),t=~~t;return t}function CA(e){var t,n,r=0;for(n=new _h(e.a);n.a>22),i=e.h+t.h+(r>>22);return Qv(n&OV,r&OV,i&kV)}function ZHe(e,t){var n=e.l-t.l,r=e.m-t.m+(n>>22),i=e.h-t.h+(r>>22);return Qv(n&OV,r&OV,i&kV)}function QHe(e){var t;WR(e,!0),t=rV,ib(e,(Yz(),S0))&&(t+=F(q(e,S0),15).a),G(e,S0,K(t))}function qA(e){var t,n,r,i=new kd;for(r=e.Jc();r.Ob();)n=F(r.Pb(),26),t=qL(n),HA(i,t);return i}function $He(e,t,n){var r;IS(e.a),kO(n.i,new td(e)),r=new $v(F(tC(e.a,t.b),68)),WJe(e,r,t),n.f=r}function eUe(e,t){return!e||!t||e==t?!1:CJe(e.d.c,t.d.c+t.d.b)&&CJe(t.d.c,e.d.c+e.d.b)}function tUe(e,t,n,i,a){return XL(),r.Math.min(pct(e,t,n,i,a),pct(n,i,e,t,ab(new j(a.a,a.b))))}function nUe(e,t){if(!e)throw O(new qp(sR(`value already present: %s`,W(A(IJ,1),mB,1,5,[t]))))}function rUe(e){var t,n=(Vm(),t=new mo,t);return e&&hD((!e.a&&(e.a=new I(a7,e,6,6)),e.a),n),n}function JA(e,t){var n,r=0;if(e<64&&e<=t)for(t=t<64?t:63,n=e;n<=t;n++)r=wT(r,pS(1,n));return r}function iUe(e,t){var n,r;for(lw(t,`predicate`),r=0;e.Ob();r++)if(n=e.Pb(),t.Lb(n))return r;return-1}function aUe(e,t){t===0?(!e.o&&(e.o=new yD((Wz(),d7),g7,e,0)),e.o.c.$b()):xI(e,t)}function oUe(e){switch(e.g){case 1:return L8;case 2:return I8;case 3:return R8;default:return z8}}function sUe(e){ew();var t,n,r=0;for(n=e.Jc();n.Ob();)t=n.Pb(),r+=t==null?0:Rk(t),r|=0;return r}function cUe(e){var t=new S;return t.a=e,t.b=wUe(e),t.c=H(pY,OB,2,2,6,1),t.c[0]=lVe(e),t.c[1]=lVe(e),t}function YA(){YA=C,jZ=new wg(bU,0),kZ=new wg(Ept,1),AZ=new wg(Dpt,2),OZ=new wg(`BOTH`,3)}function XA(){XA=C,NX=new bg(`Q1`,0),IX=new bg(`Q4`,1),PX=new bg(`Q2`,2),FX=new bg(`Q3`,3)}function ZA(){ZA=C,XQ=new zg(`ONLY_WITHIN_GROUP`,0),qTt=new zg(xU,1),YQ=new zg(`ENFORCED`,2)}function QA(){QA=C,SQ=new Ng(bU,0),xQ=new Ng(`INCOMING_ONLY`,1),CQ=new Ng(`OUTGOING_ONLY`,2)}function $A(){$A=C,new hd(`org.eclipse.elk.addLayoutConfig`),FIt=new Fa,PIt=new Ia,IIt=new Dne}function ej(){ej=C,eY={boolean:Mue,number:Ip,string:Lp,object:l3e,function:l3e,undefined:Cse}}function lUe(){lUe=C,KAt=Bj((hR(),W(A(GAt,1),Z,243,0,[h2,p2,m2,HAt,UAt,VAt,WAt,g2,d2,f2])))}function uUe(){uUe=C,GTt=Bj((YL(),W(A(WQ,1),Z,261,0,[FQ,LQ,RQ,zQ,BQ,VQ,UQ,PQ,IQ,HQ])))}function dUe(e,t,n,r){return new bde(W(A(VJ,1),LB,45,0,[(HP(e,t),new ah(e,t)),(HP(n,r),new ah(n,r))]))}function fUe(e,t){return Sit(F(F(tC(e.g,t.a),49).a,68),F(F(tC(e.g,t.b),49).a,68))}function pUe(e,t,n){var r=e.gc();if(t>r)throw O(new Rb(t,r));return e.Qi()&&(n=eAe(e,n)),e.Ci(t,n)}function mUe(e){var t,n=e.n,r=e.o;return t=e.d,new GC(n.a-t.b,n.b-t.d,r.a+(t.b+t.c),r.b+(t.d+t.a))}function hUe(e,t){return!e||!t||e==t?!1:tN(e.b.c,t.b.c+t.b.b)<0&&tN(t.b.c,e.b.c+e.b.b)<0}function tj(e,t,n){return e>=128?!1:tv(e<64?CT(pS(1,e),n):CT(pS(1,e-64),t),0)}function nj(e,t,n){switch(n.g){case 2:e.b=t;break;case 1:e.c=t;break;case 4:e.d=t;break;case 3:e.a=t}}function gUe(e,t){for(;e.g==null&&!e.c?$ke(e):e.g==null||e.i!=0&&F(e.g[e.i-1],50).Ob();)t.Bi(gL(e))}function rj(e,t,n){return n==null?(!e.q&&(e.q=new Ad),UE(e.q,t)):(!e.q&&(e.q=new Ad),TC(e.q,t,n)),e}function G(e,t,n){return n==null?(!e.q&&(e.q=new Ad),UE(e.q,t)):(!e.q&&(e.q=new Ad),TC(e.q,t,n)),e}function _Ue(e){var t,n=new JE;return TA(n,e),G(n,(Nk(),_X),e),t=new Ad,aat(e,n,t),Uct(e,n,t),n}function vUe(e){XL();var t,n=H(h6,OB,8,2,0,1),r=0;for(t=0;t<2;t++)r+=.5,n[t]=WXe(r,e);return n}function yUe(e,t){for(var n=!1,r=e.a[t].length,i,a=0;ae.f,n=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d;return t||n}function SUe(e){var t;return(!e.c||!(e.Bb&1)&&e.c.Db&64)&&(t=vF(e),N(t,88)&&(e.c=F(t,29))),e.c}function CUe(e){var t;if(e<0)return ZB;if(e==0)return 0;for(t=WB;(t&e)==0;t>>=1);return t}function wUe(e){var t;return e==0?`Etc/GMT`:(e<0?(e=-e,t=`Etc/GMT-`):t=`Etc/GMT+`,t+dRe(e))}function TUe(e){var t,n=XI(e.h);return n==32?(t=XI(e.m),t==32?XI(e.l)+32:t+20-10):n-12}function aj(e){var t=e.a[e.b];return t==null?null:(eC(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function EUe(){++ebt,this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function DUe(e,t){this.c=e,this.d=t,this.b=this.d/this.c.c.Pd().gc()|0,this.a=this.d%this.c.c.Pd().gc()}function OUe(e,t){this.b=e,pv.call(this,(F(U(z((qS(),K7).o),10),19),t.i),t.g),this.a=(Qk(),GBt)}function kUe(e,t,n){this.q=new r.Date,this.q.setFullYear(e+_V,t,n),this.q.setHours(0,0,0,0),KR(this,0)}function AUe(e,t,n){var r=new fD(t,n),i=new _e;return e.b=bet(e,e.b,r,i),i.b||++e.c,e.b.b=!1,i.d}function jUe(e,t){ew();var n,r,i,a,o=!1;for(r=t,i=0,a=r.length;io||r+i>a)throw O(new qd)}function NUe(e,t,n){var r,i,a,o=uM(t,n);for(a=0,i=o.Jc();i.Ob();)r=F(i.Pb(),12),TC(e.c,r,K(a++))}function oj(e){for(var t,n=new D(e.a.b);n.a1||t>=0&&e.b<3)}function nWe(){eB();var e;return WVt||(e=qge(Bz(`M`,!0)),e=Kx(Bz(`M`,!1),e),WVt=e,WVt)}function rWe(e){switch(e.g){case 1:return xht;default:case 2:return 0;case 3:return Sht;case 4:return Cht}}function vj(e,t){if(!e.Ji()&&t==null)throw O(new qp(`The 'no null' constraint is violated`));return t}function iWe(e,t){px(e>=0,`Negative initial capacity`),px(t>=0,`Non-positive load factor`),IS(this)}function aWe(e,t){for(var n,r,i=e.b;i;){if(n=e.a.Le(t,i.d),n==0)return i;r=n<0?0:1,i=i.a[r]}return null}function yj(e,t){var n;return t===e?!0:N(t,229)?(n=F(t,229),lM(e.Zb(),n.Zb())):!1}function oWe(e,t){return t9e(e,t)?(YI(e.b,F(q(t,(X(),d$)),22),t),Sx(e.a,t),!0):!1}function sWe(e,t){return ib(e,(X(),j$))&&ib(t,j$)?F(q(t,j$),15).a-F(q(e,j$),15).a:0}function cWe(e,t){return ib(e,(X(),j$))&&ib(t,j$)?F(q(e,j$),15).a-F(q(t,j$),15).a:0}function lWe(e,t){var n=F(Y(e,(tR(),S3)),15).a,r=F(Y(t,S3),15).a;return n==r||nr)}function uWe(e){return fy(e.c,($A(),FIt)),Dze(e.a,k(P(cP((wN(),q0)))))?new Kne:new Loe(e)}function dWe(e){for(;!e.d||!e.d.Ob();)if(e.b&&!Qp(e.b))e.d=F(VS(e.b),50);else return null;return e.d}function fWe(e,t,n){return e.d[t.p][n.p]||(iXe(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function bj(e,t,n){var r,i=(r=new $f,r);return pk(i,t,n),hD((!e.q&&(e.q=new I(B7,e,11,10)),e.q),i),i}function xj(e){var t,n,r,i=gde($zt,e);for(n=i.length,r=H(pY,OB,2,n,6,1),t=0;t=e.b.c.length||(pWe(e,2*t+1),n=2*t+2,n0&&(t.Ad(n),n.i&&TYe(n))}function hWe(e,t,n){for(var r=n-1;r>=0&&e[r]===t[r];r--);return r<0?0:rg(CT(e[r],GV),CT(t[r],GV))?-1:1}function gWe(e,t){var n;return!e||e==t||!ib(t,(X(),x$))?!1:(n=F(q(t,(X(),x$)),9),n!=e)}function Cj(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.Yl()}}function _We(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}function vWe(e,t){for(var n,r=e.Zb().Bc().Jc();r.Ob();)if(n=F(r.Pb(),18),n.Gc(t))return!0;return!1}function yWe(e,t,n){var r,i,a,o;for(bC(n),o=!1,a=e.dd(t),i=n.Jc();i.Ob();)r=i.Pb(),a.Rb(r),o=!0;return o}function bWe(e,t,n){var r,i;this.g=e,this.c=t,this.a=this,this.d=this,i=GBe(n),r=H(sbt,UB,227,i,0,1),this.b=r}function wj(e,t){var n,r=F(bA(e.a,4),129);return n=H(dBt,Dq,415,t,0,1),r!=null&&LR(r,0,n,0,r.length),n}function xWe(e,t){var n=new rR(!!(e.f&256),e.i,e.a,e.d,!!(e.f&16),e.j,e.g,t);return e.e??(n.c=e),n}function SWe(e,t){var n;return e===t?!0:N(t,92)?(n=F(t,92),U2e(uS(e),n.vc())):!1}function CWe(e,t,n){for(var r,i=n.Jc();i.Ob();)if(r=F(i.Pb(),45),e.ze(t,r.kd()))return!0;return!1}function Tj(e){return q_(e)?pY:K_(e)?sY:G_(e)?iY:Xwe(e)||pwe(e)?e.Pm:e.Pm||Array.isArray(e)&&A(dbt,1)||dbt}function Ej(){Ej=C,kX=Bke(W(A(C8,1),Z,86,0,[(yM(),y8),b8])),AX=Bke(W(A(C8,1),Z,86,0,[S8,v8]))}function Dj(){Dj=C,WRt=new Rv(15),URt=new Vv((Qz(),$6),WRt),M8=o8,zRt=uLt,BRt=q6,HRt=Y6,VRt=J6}function Oj(){Oj=C,P8=new D_(p_t,0),N8=new D_(`INCLUDE_CHILDREN`,1),F8=new D_(`SEPARATE_CHILDREN`,2)}function kj(){kj=C,Y4=new s_(bU,0),WNt=new s_(`RADIAL_COMPACTION`,1),GNt=new s_(`WEDGE_COMPACTION`,2)}function Aj(){Aj=C,O2=new Xg(`STACKED`,0),E2=new Xg(`REVERSE_STACKED`,1),D2=new Xg(`SEQUENCED`,2)}function jj(){jj=C,bxt=new dg(`CONCURRENT`,0),IY=new dg(`IDENTITY_FINISH`,1),xxt=new dg(`UNORDERED`,2)}function Mj(){Mj=C,Nzt=new V_(`ELK`,0),Pzt=new V_(`JSON`,1),Mzt=new V_(`DOT`,2),Fzt=new V_(`SVG`,3)}function Nj(){Nj=C,R4=new a_(xU,0),I4=new a_(Dht,1),L4=new a_(`FAN`,2),F4=new a_(`CONSTRAINT`,3)}function Pj(){Pj=C,k2=new Zg(`CONSERVATIVE`,0),ojt=new Zg(`CONSERVATIVE_SOFT`,1),A2=new Zg(`SLOPPY`,2)}function Fj(e,t,n){for(var r=new vh,i,a=oP(n,0);a.b!=a.d.c;)i=F(YT(a),8),Sx(r,new Sv(i));yWe(e,t,r)}function wWe(e){var t=0,n,r=H(h6,OB,8,e.b,0,1);for(n=oP(e,0);n.b!=n.d.c;)r[t++]=F(YT(n),8);return r}function TWe(e,t){var n=F(e.d.Ac(t),18),r;return n?(r=e.e.hc(),r.Fc(n),e.e.d-=n.gc(),n.$b(),r):null}function EWe(e,t){var n,r=e.c[t];if(r!=0)for(e.c[t]=0,e.d-=r,n=t+1;n0)return yS(t-1,e.a.c.length),WE(e.a,t-1);throw O(new Zd)}function OWe(e,t,n){if(t<0)throw O(new zp(Mgt+t));tt)throw O(new qp(lH+e+vft+t));if(e<0||t>n)throw O(new xce(lH+e+yft+t+fft+n))}function AWe(e){if(!e.a||!(e.a.i&8))throw O(new Jp(`Enumeration class expected for layout option `+e.f))}function jWe(e){Rke.call(this,`The given string does not match the expected format for individual spacings.`,e)}function MWe(){Yse.call(this,new FIe(gA(16))),_k(2,Bdt),this.b=2,this.a=new rDe(null,null,0,null),Wd(this.a,this.a)}function NWe(e){_ce(),ey(this),iw(this),this.e=e,iet(this,e),this.g=e==null?hB:eN(e),this.a=``,this.b=e,this.a=``}function Ij(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),xk(e,t==null?null:(bC(t),t)),e.C&&e.fl(null)}function PWe(e,t){var n=e.a.length-1,r;for(e.c=e.c-1&n;t!=e.c;)r=t+1&n,eC(e.a,t,e.a[r]),t=r;eC(e.a,e.c,null)}function FWe(e,t){for(var n=e.a.length-1,r;t!=e.b;)r=t-1&n,eC(e.a,t,e.a[r]),t=r;eC(e.a,e.b,null),e.b=e.b+1&n}function IWe(e,t,n){var r,i;return tT(t,e.c.length),r=n.Nc(),i=r.length,i!=0&&(ASe(e.c,t,r),!0)}function LWe(e){var t=(!e.a&&(e.a=new I(R7,e,9,5)),e.a);return t.i==0?null:pde(F(U(t,0),684))}function RWe(e,t){var n=BM(e,t);return rg(TT(e,t),0)|ev(TT(e,n),0)?n:BM(NB,TT(hS(n,63),1))}function zWe(e,t){var n=cP((wN(),q0))!=null&&t.Rg()!=null?k(P(t.Rg()))/k(P(cP(q0))):1;TC(e.b,t,n)}function Lj(e){var t;++e.j,e.i==0?e.g=null:e.ii&&(X$e(t.q,i),r=n!=t.q.d)),r}function $We(e,t){for(var n=0;n=e.c.b:e.a<=e.c.b))throw O(new nf);return t=e.a,e.a+=e.c.c,++e.b,K(t)}function Gj(e,t){var n=F(e.c.Ac(t),18),r;return n?(r=e.hc(),r.Fc(n),e.d-=n.gc(),n.$b(),e.mc(r)):e.jc()}function aGe(e,t){XS(e);try{return e.Ac(t)}catch(e){if(e=WA(e),N(e,211)||N(e,172))return null;throw O(e)}}function Kj(e,t){XS(e);try{return e.xc(t)}catch(e){if(e=WA(e),N(e,211)||N(e,172))return null;throw O(e)}}function qj(e,t){var n;return bv(e)&&bv(t)&&(n=e-t,!isNaN(n))?n:LQe(bv(e)?wA(e):e,bv(t)?wA(t):t)}function Jj(e,t,n){return r.Math.abs(t-e)wG?e-n>wG:n-e>wG}function oGe(e){throw ej(),O(new $se(`Unexpected typeof result '`+e+`'; please report this bug to the GWT team`))}function sGe(){this.a=new Ma,this.f=new koe(this),this.b=new Aoe(this),this.i=new $u(this),this.e=new joe(this)}function Yj(){Yj=C,F2=new e_(`BARYCENTER`,0),L2=new e_(wpt,1),R2=new e_(Tpt,2),I2=new e_(`MEDIAN`,3)}function Xj(){Xj=C,$0=new Wg(`DUMMY_NODE_OVER`,0),FAt=new Wg(`DUMMY_NODE_UNDER`,1),e2=new Wg(`EQUAL`,2)}function Zj(){Zj=C,T8=new C_(p_t,0),w8=new C_(`CONTAINER`,1),SRt=new C_(`PARENT`,2),CRt=new C_(`ROOT`,3)}function cGe(e,t,n){var r=new V6e(e,t);YI(e.r,t.$f(),r),n&&!LS(e.u)&&(r.c=new Ike(e.d),kO(t.Pf(),new mu(r)))}function Qj(e){var t=new ihe(e.a);return TA(t,e),G(t,(X(),M$),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function $j(e){var t;return tb(e.a!=e.b),t=e.d.a[e.a],t_e(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function lGe(e){var t;if(e.c!=0)return e.c;for(t=0;t=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function _Ge(e,t){var n,r,i=1;for(n=e,r=t>=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function vGe(e){var t,n,r,i;if(e!=null){for(n=0;n0&&(n=F(zx(e.a,e.a.c.length-1),565),oWe(n,t))||fy(e.a,new HPe(t))}function jGe(e,t){var n;e.c.length!=0&&(n=F(ZN(e,H(UX,OU,9,e.c.length,0,1)),199),ome(n,new cn),x6e(n,t))}function MGe(e,t){var n;e.c.length!=0&&(n=F(ZN(e,H(UX,OU,9,e.c.length,0,1)),199),ome(n,new ln),x6e(n,t))}function NGe(e,t,n,r,i){t!=0&&r!=0&&(t==1?i[r]=fXe(i,n,r,e[0]):r==1?i[t]=fXe(i,e,t,n[0]):u8e(e,n,i,t,r))}function K(e){var t,n;return e>-129&&e<128?(DCe(),t=e+128,n=Dbt[t],!n&&(n=Dbt[t]=new jl(e)),n):new jl(e)}function nM(e){var t,n;return e>-129&&e<128?(NCe(),t=e+128,n=Nbt[t],!n&&(n=Nbt[t]=new Il(e)),n):new Il(e)}function PGe(e){var t=new gm;return t.a+=`VerticalSegment `,av(t,e.e),t.a+=` `,ov(t,Qhe(new um,new D(e.k))),t.a}function FGe(e){ix();var t=e.d.c-e.e.c,n=F(e.g,156);kO(n.b,new Pae(t)),kO(n.c,new Fae(t)),wE(n.i,new zu(t))}function IGe(e,t){var n;e.c=t,e.a=Eqe(t),e.a<54&&(e.f=(n=t.d>1?fMe(t.a[0],t.a[1]):fMe(t.a[0],0),zT(t.e>0?n:RD(n))))}function rM(e,t){for(var n=0,r,i=IM(e,t).Jc();i.Ob();)r=F(i.Pb(),12),n+=q(r,(X(),F$))==null?0:1;return n}function iM(e,t,n){for(var r=0,i,a=oP(e,0);a.b!=a.d.c&&(i=k(P(YT(a))),!(i>n));)i>=t&&++r;return r}function LGe(e,t,n){var r,i=e.sb;return e.sb=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,4,i,t),n?n.lj(r):n=r),n}function RGe(e){var t=F(oO(e.c.c,``),233);return t||(t=new oT(km(Om(new Ha,``),`Other`)),eP(e.c.c,``,t)),t}function aM(e){var t;return e.Db&64?fL(e):(t=new Ty(fL(e)),t.a+=` (name: `,rv(t,e.zb),t.a+=`)`,t.a)}function zGe(e,t,n){var r,i=e.r;return e.r=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,8,i,e.r),n?n.lj(r):n=r),n}function BGe(e,t,n){var r=new ZD(e.e,4,13,(i=t.c,i||(nB(),e9)),null,EP(e,t),!1),i;return n?n.lj(r):n=r,n}function VGe(e,t,n){var r=new ZD(e.e,3,13,null,(i=t.c,i||(nB(),e9)),EP(e,t),!1),i;return n?n.lj(r):n=r,n}function oM(e,t){var n=F(t,681),r=n.cl();return!r&&n.dl(r=N(t,88)?new vpe(e,F(t,29)):new nMe(e,F(t,159))),r}function sM(e,t,n){var r;e.Zi(e.i+1),r=e.Xi(t,n),t!=e.i&&LR(e.g,t,e.g,t+1,e.i-t),eC(e.g,t,r),++e.i,e.Ki(t,n),e.Li()}function HGe(e,t,n,r,i,a,o,s){for(var c=n;a=r||tn)throw O(new zp(lH+e+yft+t+`, size: `+n));if(e>t)throw O(new qp(lH+e+vft+t))}function fM(e,t){var n=!!(e.Bb&256);t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,2,n,t))}function pM(e,t){var n=!!(e.Bb&512);t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,3,n,t))}function YGe(e,t){var n=!!(e.Bb&256);t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,8,n,t))}function XGe(e,t){var n=!!(e.Bb&512);t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,9,n,t))}function ZGe(e){var t;return e.Db&64?fL(e):(t=new Ty(fL(e)),t.a+=` (source: `,rv(t,e.d),t.a+=`)`,t.a)}function mM(e,t){var n=!!(e.Bb&256);t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,8,n,t))}function QGe(e,t,n){var r,i=e.a;return e.a=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,5,i,e.a),n?g1e(n,r):n=r),n}function hM(e,t){var n;return e.b==-1&&e.a&&(n=e.a.nk(),e.b=n?e.c.Eh(e.a.Jj(),n):mN(e.c.Ah(),e.a)),e.c.vh(e.b,t)}function $Ge(e,t){for(var n,r=new yy(e);r.e!=r.i.gc();)if(n=F(lP(r),29),M(t)===M(n))return!0;return!1}function eKe(e){tB();for(var t,n=tP(),r=0,i=n.length;r=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function nKe(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function rKe(e){var t=e.k,n;return t==(_L(),GX)&&(n=F(q(e,(X(),m$)),64),n==(Lz(),m5)||n==j5)}function iKe(e){var t=jMe(e);return $_(t.a,0)?(yh(),yh(),OY):(yh(),new nb(ng(t.a,0)?SFe(t)/zT(t.a):0))}function aKe(e,t){var n=PL(e,t);if(N(n,335))return F(n,38);throw O(new qp(MK+t+`' is not a valid attribute`))}function gM(e,t,n){var r=e.gc();if(t>r)throw O(new Rb(t,r));if(e.Qi()&&e.Gc(n))throw O(new qp(uq));e.Ei(t,n)}function oKe(e,t){for(var n,r=new yy(e);r.e!=r.i.gc();)if(n=F(lP(r),143),M(t)===M(n))return!0;return!1}function sKe(e,t,n){var r,i,a=(i=mL(e.b,t),i);return a&&(r=F(fz(WD(e,a),``),29),r)?S5e(e,r,t,n):null}function _M(e,t,n){var r,i,a=(i=mL(e.b,t),i);return a&&(r=F(fz(WD(e,a),``),29),r)?C5e(e,r,t,n):null}function cKe(e){var t,n,r=0;for(n=e.length,t=0;tt?1:e==t?e==0?vM(1/e,1/t):0:isNaN(e)?+!isNaN(t):-1}function fKe(e,t){t.Tg(`Sort end labels`,1),Eh(zC(cO(new Hx(null,new hT(e.b,16)),new qt),new Jt),new Yt),t.Ug()}function yM(){yM=C,x8=new S_(CH,0),b8=new S_(xH,1),y8=new S_(bH,2),v8=new S_(DH,3),S8=new S_(`UP`,4)}function bM(){bM=C,_zt=new L_(`PARALLEL_NODE`,0),Y5=new L_(`HIERARCHICAL_NODE`,1),X5=new L_(`ROOT_NODE`,2)}function xM(){xM=C,L3=new g_(`P1_STRUCTURE`,0),R3=new g_(`P2_PROCESSING_ORDER`,1),z3=new g_(`P3_EXECUTION`,2)}function SM(){SM=C,NFt=new m_(`EQUAL_BETWEEN_STRUCTURES`,0),PFt=new m_(`TO_ASPECT_RATIO`,1),j3=new m_(bU,2)}function CM(){CM=C,ORt=new T_(CH,0),A8=new T_(`POLYLINE`,1),k8=new T_(`ORTHOGONAL`,2),j8=new T_(`SPLINES`,3)}function pKe(){pKe=C,FNt=VN(VN(Gh(VN(VN(Gh(Mx(new vC,(uF(),t4),(vR(),a4)),n4),MMt),PMt),r4),OMt),FMt)}function mKe(e){switch(F(q(e,(X(),b$)),316).g){case 1:G(e,b$,(uO(),QQ));break;case 2:G(e,b$,(uO(),e$))}}function hKe(e){switch(e){case 0:return new Bse;case 1:return new Rse;case 2:return new zse;default:throw O(new Qd)}}function gKe(e){switch(e.g){case 2:return b8;case 1:return y8;case 4:return v8;case 3:return S8;default:return x8}}function _Ke(e){switch(e.g){case 1:return N5;case 2:return m5;case 3:return p5;case 4:return j5;default:return M5}}function wM(e){switch(e.g){case 1:return j5;case 2:return N5;case 3:return m5;case 4:return p5;default:return M5}}function TM(e){switch(e.g){case 1:return p5;case 2:return j5;case 3:return N5;case 4:return m5;default:return M5}}function EM(e,t,n){var r,i;return e.Nj()?(i=e.Oj(),r=JI(e,t,n),e.Hj(e.Gj(7,K(n),r,t,i)),r):JI(e,t,n)}function DM(e,t){var n,r,i;e.d==null?(++e.e,--e.f):(i=t.jd(),n=t.yi(),r=(n&lB)%e.d.length,HFe(e,r,P5e(e,r,n,i)))}function OM(e,t){var n=(e.Bb&jq)!=0;t?e.Bb|=jq:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,15,n,t))}function kM(e,t){var n=(e.Bb&Oq)!=0;t?e.Bb|=Oq:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,10,n,t))}function AM(e,t){var n=(e.Bb&zV)!=0;t?e.Bb|=zV:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,12,n,t))}function jM(e,t){var n=(e.Bb&LK)!=0;t?e.Bb|=LK:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,11,n,t))}function vKe(e,t){var n=vM(e.b.c,t.b.c);return n!=0||(n=vM(e.a.a,t.a.a),n!=0)?n:vM(e.a.b,t.a.b)}function yKe(e){var t,n=lC(new gm,91);for(t=!0;e.Ob();)t||(n.a+=pB),t=!1,av(n,e.Pb());return(n.a+=`]`,n).a}function bKe(e){for(var t=new kd,n,r=new D(e.b);r.a=1?b8:v8):n}function TKe(e){switch(F(q(e,(Yz(),L1)),222).g){case 1:return new hte;case 3:return new Wr;default:return new mte}}function PM(e){if(e.c)PM(e.c);else if(e.d)throw O(new Jp(`Stream already terminated, can't be modified or used`))}function EKe(e){var t;if(!e.a)throw O(new Jp(`Cannot offset an unassigned cut.`));t=e.c-e.b,e.b+=t,mOe(e,t),hOe(e,t)}function DKe(e,t,n){var r,i;if(e.c)k0e(e.c,t,n);else for(i=new D(e.b);i.a=0?CN(e):HS(CN(RD(e))))}function AKe(e,t,n,r,i,a){this.e=new kd,this.f=(uk(),w2),fy(this.e,e),this.d=t,this.a=n,this.b=r,this.f=i,this.c=a}function jKe(e,t,n,r,i){che(this),this.b=e,this.d=H(UX,OU,9,t.a.c.length,0,1),this.f=n,ZN(t.a,this.d),this.g=r,this.c=i}function MKe(e,t,n){var r=n;!r&&(r=tCe(new up,0)),r.Tg(lpt,2),sXe(e.b,t,r.dh(1)),nst(e,t,r.dh(1)),Zlt(t,r.dh(1)),r.Ug()}function NKe(e,t,n){var r=0;return t&&(kv(e.a)?r+=t.f.a/2:r+=t.f.b/2),n&&(kv(e.a)?r+=n.f.a/2:r+=n.f.b/2),r}function PKe(e,t,n){var r=(Vm(),i=new po,i),i;return HO(r,t),UO(r,n),e&&hD((!e.a&&(e.a=new hy(e7,e,5)),e.a),r),r}function RM(e){var t;return e.Db&64?fL(e):(t=new Ty(fL(e)),t.a+=` (identifier: `,rv(t,e.k),t.a+=`)`,t.a)}function zM(e){var t;switch(e.gc()){case 0:return Ix(),qJ;case 1:return new wb(XS(e.Xb(0)));default:return t=e,new ST(t)}}function BM(e,t){var n;return bv(e)&&bv(t)&&(n=e+t,PV>10)+HV&iV,t[1]=(e&1023)+56320&iV,IN(t,0,t.length)}function UM(e){for(var t=new kd,n,r=new D(e.j);r.a34028234663852886e22?LV:t<-34028234663852886e22?RV:t}function KM(e,t){var n=(e.Bb&kB)!=0;t?e.Bb|=kB:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,16,n,t))}function qM(e,t){var n=(e.Bb&FK)!=0;t?e.Bb|=FK:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,18,n,t))}function RKe(e,t){var n=(e.Bb&FK)!=0;t?e.Bb|=FK:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,18,n,t))}function zKe(e,t){var n=(e.Bb&VV)!=0;t?e.Bb|=VV:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&fA(e,new NE(e,1,20,n,t))}function BKe(e,t){e.n.c.length==0&&fy(e.n,new Rw(e.s,e.t,e.i)),fy(e.b,t),UXe(F(zx(e.n,e.n.c.length-1),208),t),Uit(e,t)}function VKe(e,t,n){var r;n.Tg(`Straight Line Edge Routing`,1),n.bh(t,zht),r=F(Y(t,(xb(),B4)),26),Hat(e,r),n.bh(t,IG)}function HKe(e){for(var t,n=L8e(LO(Jw(e))).Jc();n.Ob();)if(t=fb(n.Pb()),AR(e,t))return rPe((ode(),jBt),t);return null}function UKe(e){var t=new xve(e.Pd().gc()),n,r,i=0;for(r=TD(e.Pd().Jc());r.Ob();)n=r.Pb(),rOe(t,n,K(i++));return I2e(t.a)}function JM(e){var t,n=(t=F(Um((r=e.Pm,i=r.f,i==GJ?r:i)),10),new Jb(t,F(Ob(t,t.length),10),0)),r,i;return Dk(n,e),n}function WKe(e){for(var t,n=0,r=e.length;nt){uMe(n);break}}US(n,t)}function QM(e,t){var n=t.f,r,i,a,o;if(eP(e.c.d,n,t),t.g!=null)for(i=t.g,a=0,o=i.length;at&&r.Le(e[a-1],e[a])>0;--a)o=e[a],eC(e,a,e[a-1]),eC(e,a-1,o)}function $M(e,t,n,r){if(t<0)_7e(e,n,r);else{if(!n.pk())throw O(new qp(MK+n.ve()+NK));F(n,69).uk().Ak(e,e.ei(),t,r)}}function YKe(e,t){var n=PL(e.Ah(),t);if(N(n,103))return F(n,19);throw O(new qp(MK+t+`' is not a valid reference`))}function eN(e){var t;return Array.isArray(e)&&e.Rm===ne?Jm(Tj(e))+`@`+(t=Rk(e)>>>0,t.toString(16)):e.toString()}function XKe(e,t){return e.h==AV&&e.m==0&&e.l==0?(t&&(tY=Qv(0,0,0)),eme((fO(),xbt))):(t&&(tY=Qv(e.l,e.m,e.h)),Qv(0,0,0))}function ZKe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function QKe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function $Ke(e,t,n,r){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return qGe(e,t,n,r)}function eqe(e,t,n){switch(t.g){case 1:e.b-=n.b/2;break;case 3:e.b+=n.b/2;break;case 4:e.a-=n.a/2;break;case 2:e.a+=n.a/2}}function tqe(e,t){return zb(t.b&&t.c?AT(t.b)+`->`+AT(t.c):`e_`+Rk(t),e.b&&e.c?AT(e.b)+`->`+AT(e.c):`e_`+Rk(e))}function nqe(e,t){return zb(t.b&&t.c?AT(t.b)+`->`+AT(t.c):`e_`+Rk(t),e.b&&e.c?AT(e.b)+`->`+AT(e.c):`e_`+Rk(e))}function tN(e,t){return Uv(),ok(XB),r.Math.abs(e-t)<=XB||e==t||isNaN(e)&&isNaN(t)?0:et?1:Db(isNaN(e),isNaN(t))}function nN(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw O(new qp(`Node `+t+` not part of edge `+e))}function rqe(e){return e.e==null?e:(!e.c&&(e.c=new rR(!!(e.f&256),e.i,e.a,e.d,!!(e.f&16),e.j,e.g,null)),e.c)}function iqe(e){return e.k==(_L(),YX)&&kE(new Hx(null,new ZS(new fS(Sy(GM(e).a.Jc(),new f)))),new ete)}function rN(e){var t;if(e.b){if(rN(e.b),e.b.d!=e.c)throw O(new Xd)}else e.d.dc()&&(t=F(e.f.c.xc(e.e),18),t&&(e.d=t))}function aqe(e){Sb();for(var t=e.o.b,n,r=F(F(zE(e.r,(Lz(),j5)),22),83).Jc(),i;r.Ob();)n=F(r.Pb(),115),i=n.e,i.b+=t}function oqe(e,t){bb();var n,r=lLe(e),i=t,a;for(kD(r,0,r.length,i),n=0;n=i)return t.c+n;return t.c+t.b.gc()}function iN(e,t,n){for(var r=0,i=e.length;r0&&(_T(t-1,e.length),e.charCodeAt(t-1)==58)&&!iN(e,O7,k7))}function aN(e){var t;this.a=(t=F(e.e&&e.e(),10),new Jb(t,F(Ob(t,t.length),10),0)),this.b=H(IJ,mB,1,this.a.a.length,5,1)}function lqe(e){wN(),this.c=BE(W(A(LIt,1),mB,830,0,[DAt])),this.b=new Ad,this.a=e,TC(this.b,q0,1),kO(OAt,new Ioe(this))}function oN(){oN=C,i1=new Vg(bU,0),e1=new Vg(`FIRST`,1),t1=new Vg(Ept,2),n1=new Vg(`LAST`,3),r1=new Vg(Dpt,4)}function sN(){sN=C,lQ=new kg(`LAYER_SWEEP`,0),fTt=new kg(`MEDIAN_LAYER_SWEEP`,1),cQ=new kg(GU,2),pTt=new kg(bU,3)}function cN(){cN=C,Ozt=new z_(hht,0),Tzt=new z_(`GROUP_DEC`,1),Dzt=new z_(`GROUP_MIXED`,2),Ezt=new z_(`GROUP_INC`,3)}function uqe(e){var t,n,r,i,a=r0e(e);return n=fh(e.c),r=!n,r&&(i=new sl,vO(a,`knownLayouters`,i),t=new rse(i),wE(e.c,t)),a}function dqe(e,t,n,r,i){for(var a,o=i,s;t.b!=t.c;)a=F(VS(t),9),s=F(IM(a,r).Xb(0),12),e.d[s.p]=o++,Vd(n.c,s);return o}function fqe(e,t){var n,r=0,i,a,o,s;for(n=0,a=t,o=0,s=a.length;o0&&(r+=i,++n);return n>1&&(r+=e.d*(n-1)),r}function pqe(e){var t,n,r=new mm;for(r.a+=`[`,t=0,n=e.gc();t>5,t=e&31,r=H(q9,vV,30,n+1,15,1),r[n]=1<=0;--r)for(t=n[r],i=0;i0&&(t.lengthe.i&&eC(t,e.i,null),t}function gN(e){var t;return e.Db&64?aM(e):(t=new Ty(aM(e)),t.a+=` (instanceClassName: `,rv(t,e.D),t.a+=`)`,t.a)}function _N(e){var t,n,r,i=0;for(n=0,r=e.length;n0&&(e.Zj(),r=t==null?0:Rk(t),i=(r&lB)%e.d.length,n=P5e(e,i,r,t),n!=-1)}function yN(e,t){var n,r,i,a=VL(e.e.Ah(),t);for(n=F(e.g,122),i=0;i3;)i*=10,--a;e=(e+(i>>1))/i|0}return r.i=e,!0}function Wqe(e,t,n){for(var r=CT(n,GV),i=0;qj(r,0)!=0&&i0&&(e.Zj(),r=t==null?0:Rk(t),i=(r&lB)%e.d.length,n=w6e(e,i,r,t),n)?n.kd():null}function Zqe(e,t){var n,r,i;return N(t,45)?(n=F(t,45),r=n.jd(),i=Kj(e.Pc(),r),mC(i,n.kd())&&(i!=null||e.Pc()._b(r))):!1}function CN(e){pR();var t,n=$x(e);return t=$x(hS(e,32)),t==0?n>10||n<0?new aE(1,n):Wbt[n]:new Tje(n,t)}function Qqe(e){return CP(),(e.q?e.q:(ew(),ew(),wY))._b((Yz(),a0))?F(q(e,a0),203):F(q(yC(e),o0),203)}function wN(){wN=C,Lh(),q0=(Yz(),L0),OAt=BE(W(A(e6,1),pht,147,0,[E0,D0,k0,A0,N0,P0,F0,I0,z0,V0,O0,j0,R0]))}function $qe(e,t,n){bze(),Bf.call(this),this.a=Wx(Nxt,[OB,Rft],[593,216],0,[KY,GY],2),this.c=new wv,this.g=e,this.f=t,this.d=n}function eJe(e){this.e=H(q9,vV,30,e.length,15,1),this.c=H(J9,_H,30,e.length,16,1),this.b=H(J9,_H,30,e.length,16,1),this.f=0}function tJe(e){var t,n;for(e.j=H(Z9,UV,30,e.p.c.length,15,1),n=new D(e.p);n.a>5,r,i,a;return t&=31,i=e.d+n+(t==0?0:1),r=H(q9,vV,30,i,15,1),s0e(r,e.a,n,t),a=new MS(e.e,i,r),MT(a),a}function cJe(e,t){var n,r,i,a=t.b.b;for(e.a=new vh,e.b=H(q9,vV,30,a,15,1),n=0,i=oP(t.b,0);i.b!=i.d.c;)r=F(YT(i),40),r.g=n++}function lJe(e,t,n){var r,i,a=t-e.e,o=n-e.f;for(i=new D(e.a);i.a=0?a=a.a[1]:(i=a,a=a.a[0])}return i}function NN(e,t,n){for(var r,i=null,a=e.b;a;){if(r=e.a.Le(t,a.d),n&&r==0)return a;r<=0?a=a.a[0]:(i=a,a=a.a[1])}return i}function fJe(e,t,n){var r,i=F(tC(e.b,n),171),a,o;for(r=0,o=new D(t.j);o.a0?(r.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):`stack`in Error()}function PN(e){var t;e.c!=0&&(t=F(zx(e.a,e.b),295),t.b==1?(++e.b,e.bt?1:Db(isNaN(e),isNaN(t)))>0}function SJe(e,t){return Uv(),Uv(),ok(XB),(r.Math.abs(e-t)<=XB||e==t||isNaN(e)&&isNaN(t)?0:et?1:Db(isNaN(e),isNaN(t)))<0}function CJe(e,t){return Uv(),Uv(),ok(XB),(r.Math.abs(e-t)<=XB||e==t||isNaN(e)&&isNaN(t)?0:et?1:Db(isNaN(e),isNaN(t)))<=0}function wJe(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function LN(){LN=C,_2=new Jg(bU,0),qAt=new Jg(`NODES_AND_EDGES`,1),v2=new Jg(`PREFER_EDGES`,2),y2=new Jg(`PREFER_NODES`,3)}function TJe(e,t,n,r,i,a){this.a=e,this.c=t,this.b=n,this.f=r,this.d=i,this.e=a,this.c>0&&this.b>0&&(this.g=Gx(this.c,this.b,this.a))}function EJe(e,t){var n=e.a,r;t=String(t),n.hasOwnProperty(t)&&(r=n[t]);var i=(ej(),eY)[typeof r];return i?i(r):oGe(typeof r)}function RN(e){var t,n,r=null;if(t=rq in e.a,n=!t,n)throw O(new am(`Every element must have an id.`));return r=VI(Bw(e,rq)),r}function zN(e){var t,n=o4e(e);for(t=null;e.c==2;)Jz(e),t||(t=(eB(),eB(),++W9,new Kv(2)),vz(t,n),n=t),n.Hm(o4e(e));return n}function BN(e,t){var n,r,i;return e.Zj(),r=t==null?0:Rk(t),i=(r&lB)%e.d.length,n=w6e(e,i,r,t),n?(rBe(e,n),n.kd()):null}function DJe(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+r.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function kJe(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw O(new qp(`Input edge is not connected to the input port.`))}function VN(e,t){if(e.a<0)throw O(new Jp(`Did not call before(...) or after(...) before calling add(...).`));return Wge(e,e.a,t),e}function AJe(e,t){var n,r,i;if(e.c)VO(e.c,t);else for(n=t-Zx(e),i=new D(e.a);i.a=a?(PWe(e,t),-1):(FWe(e,t),1)}function FJe(e,t){for(var n=(_T(t,e.length),e.charCodeAt(t)),r=t+1;rt.e?1:e.ft.f?1:Rk(e)-Rk(t)}function BJe(e,t){var n;return M(t)===M(e)?!0:!N(t,22)||(n=F(t,22),n.gc()!=e.gc())?!1:e.Hc(n)}function WN(e,t){return bC(e),t==null?!1:zb(e,t)?!0:e.length==t.length&&zb(e.toLowerCase(),t.toLowerCase())}function GN(e){var t,n;return qj(e,-129)>0&&qj(e,128)<0?(MCe(),t=$x(e)+128,n=kbt[t],!n&&(n=kbt[t]=new kl(e)),n):new kl(e)}function VJe(e){for(var t,n=new D(e.a.b);n.aWV)return n.Nh();if(r=n.Gh(),r||n==e)break}return r}function UJe(e,t,n){var r=F(U(qD(e.a),t),87),i,a=(i=r.c,i||(nB(),e9));return(a.Sh()?eM(e.b,F(a,52)):a)==n?NR(r):IO(r,n),a}function WJe(e,t,n){for(var r,i,a=new D(n.a);a.a2e3&&(fbt=e,ZJ=r.setTimeout(Nue,10))),XJ++==0&&(xRe((vce(),pbt)),!0)}function oYe(e,t,n){var r;(gxt?(Tqe(e),1):_xt||yxt?(Ch(),1):vxt&&(Ch(),0))&&(r=new Uye(t),r.b=n,d2e(e,r))}function XN(e,t){var n=!e.A.Gc((AN(),z5))||e.q==(VF(),t5);e.u.Gc((BI(),c5))?n?Vlt(e,t):glt(e,t):e.u.Gc(u5)&&(n?qct(e,t):lut(e,t))}function sYe(e){var t;M(Y(e,(Qz(),z6)))===M((Oj(),P8))&&(qw(e)?(t=F(Y(qw(e),z6),347),_P(e,z6,t)):_P(e,z6,F8))}function cYe(e,t,n){var r,i;nI(e.e,t,n,(Lz(),N5)),nI(e.i,t,n,p5),e.a&&(i=F(q(t,(X(),M$)),12),r=F(q(n,M$),12),kT(e.g,i,r))}function lYe(e,t,n){return new GC(r.Math.min(e.a,t.a)-n/2,r.Math.min(e.b,t.b)-n/2,r.Math.abs(e.a-t.a)+n,r.Math.abs(e.b-t.b)+n)}function uYe(e){var t;this.d=new kd,this.j=new Rm,this.g=new Rm,t=e.g.b,this.f=F(q(yC(t),(Yz(),M1)),86),this.e=k(P(fP(t,N0)))}function dYe(e){this.d=new kd,this.e=new gE,this.c=H(q9,vV,30,(Lz(),W(A(P5,1),SU,64,0,[M5,m5,p5,j5,N5])).length,15,1),this.b=e}function fYe(e,t,n){var r=n[e.g][t];switch(e.g){case 1:case 3:return new j(0,r);case 2:case 4:return new j(r,0);default:return null}}function pYe(e,t){var n=RO(e.o,t);if(n==null)throw O(new am(`Node did not exist in input.`));return i9e(e,t),gR(e,t),b5e(e,t,n),null}function mYe(e,t){var n,r=e.a.length;for(t.lengthr&&eC(t,r,null),t}function ZN(e,t){var n,r=e.c.length;for(t.lengthr&&eC(t,r,null),t}function QN(e,t,n,r){var i=e.length;if(t>=i)return i;for(t=t>0?t:0;t0&&(fy(e.b,new xSe(t.a,n)),r=t.a.length,0r&&(t.a+=The(H(K9,nV,30,-r,15,1))))}function yYe(e,t,n){var r,i,a;if(!n[t.d])for(n[t.d]=!0,i=new D(Rj(t));i.a=e.b>>1)for(r=e.c,n=e.b;n>t;--n)r=r.b;else for(r=e.a.a,n=0;n=0?e.Th(i):GI(e,r)):n<0?GI(e,r):F(r,69).uk().zk(e,e.ei(),n)}function jYe(e){var t,n,r=(!e.o&&(e.o=new yD((Wz(),d7),g7,e,0)),e.o);for(n=r.c.Jc();n.e!=n.i.gc();)t=F(n.Wj(),45),t.kd();return oD(r)}function cP(e){var t;if(N(e.a,4)){if(t=MJe(e.a),t==null)throw O(new Jp(Fgt+e.b+`'. `+Ngt+(ub(w7),w7.k)+Pgt));return t}return e.a}function MYe(e){var t;if(e==null)return null;if(t=eut(sz(e,!0)),t==null)throw O(new sm(`Invalid base64Binary value: '`+e+`'`));return t}function lP(e){var t;try{return t=e.i.Xb(e.e),e.Vj(),e.g=e.e++,t}catch(t){throw t=WA(t),N(t,99)?(e.Vj(),O(new nf)):O(t)}}function uP(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(t){throw t=WA(t),N(t,99)?(e.Vj(),O(new nf)):O(t)}}function dP(e){var t,n,r,i=0;for(n=0,r=e.length;n=64&&t<128&&(i=wT(i,pS(1,t-64)));return i}function fP(e,t){var n,r=null;return ib(e,(Qz(),l8))&&(n=F(q(e,l8),105),n.nf(t)&&(r=n.mf(t))),r==null&&yC(e)&&(r=q(yC(e),t)),r}function NYe(e,t){var n=F(q(e,(Yz(),K1)),79);return iy(t,PCt)?n?rw(n):(n=new qf,G(e,K1,n)):n&&G(e,K1,null),n}function PYe(e,t){var n,r,i=new pD(t.gc());for(r=t.Jc();r.Ob();)n=F(r.Pb(),294),n.c==n.f?bI(e,n,n.c):n4e(e,n)||Vd(i.c,n);return i}function FYe(e,t){for(var n=e.o,r,i=F(F(zE(e.r,t),22),83).Jc();i.Ob();)r=F(i.Pb(),115),r.e.a=kZe(r,n.a),r.e.b=n.b*k(P(r.b.mf(eX)))}function IYe(e,t){var n,r,i=e.k,a;return n=k(P(q(e,(X(),I$)))),a=t.k,r=k(P(q(t,I$))),a==(_L(),GX)?i==GX?n==r?0:nn.b)}function GYe(e){var t=new gm;return t.a+=`n`,e.k!=(_L(),YX)&&ov(ov((t.a+=`(`,t),$y(e.k).toLowerCase()),`)`),ov((t.a+=`_`,t),rF(e)),t.a}function hP(){hP=C,zAt=new Kg(hht,0),s2=new Kg(GU,1),c2=new Kg(`LINEAR_SEGMENTS`,2),o2=new Kg(`BRANDES_KOEPF`,3),l2=new Kg(mht,4)}function gP(e,t,n,r){var i;return n>=0?e.Ph(t,n,r):(e.Mh()&&(r=(i=e.Ch(),i>=0?e.xh(r):e.Mh().Qh(e,-1-i,null,r))),e.zh(t,n,r))}function KYe(e,t){switch(t){case 7:!e.e&&(e.e=new Lb(i7,e,7,4)),yz(e.e);return;case 8:!e.d&&(e.d=new Lb(i7,e,8,5)),yz(e.d);return}zqe(e,t)}function _P(e,t,n){return n==null?(!e.o&&(e.o=new yD((Wz(),d7),g7,e,0)),BN(e.o,t)):(!e.o&&(e.o=new yD((Wz(),d7),g7,e,0)),wF(e.o,t,n)),e}function vP(e,t){var n=e.dd(t);try{return n.Pb()}catch(e){throw e=WA(e),N(e,112)?O(new zp(`Can't get element `+t)):O(e)}}function qYe(e,t){var n=F(DC(e.b,t),127).n;switch(t.g){case 1:e.t>=0&&(n.d=e.t);break;case 3:e.t>=0&&(n.a=e.t)}e.C&&(n.b=e.C.b,n.c=e.C.c)}function JYe(e){var t=e.a;do t=F(FE(new fS(Sy(UM(t).a.Jc(),new f))),17).c.i,t.k==(_L(),qX)&&e.b.Ec(t);while(t.k==(_L(),qX));e.b=fN(e.b)}function YYe(e,t){var n,i,a=e;for(i=new fS(Sy(UM(t).a.Jc(),new f));sL(i);)n=F(FE(i),17),n.c.i.c&&(a=r.Math.max(a,n.c.i.c.p));return a}function XYe(e,t){var n,r,i=0;for(r=F(F(zE(e.r,t),22),83).Jc();r.Ob();)n=F(r.Pb(),115),i+=n.d.d+n.b.Kf().b+n.d.a,r.Ob()&&(i+=e.w);return i}function ZYe(e,t){var n,r,i=0;for(r=F(F(zE(e.r,t),22),83).Jc();r.Ob();)n=F(r.Pb(),115),i+=n.d.b+n.b.Kf().a+n.d.c,r.Ob()&&(i+=e.w);return i}function QYe(e){var t,n,r=0,i=qL(e);if(i.c.length==0)return 1;for(n=new D(i);n.a=0?e.Ih(o,n,!0):ZI(e,a,n)):F(a,69).uk().wk(e,e.ei(),i,n,r)}function nXe(e,t,n,r){var i=eKe(t.nf((Qz(),K6))?F(t.mf(K6),22):e.j);i!=(tB(),$Y)&&(!n||wJe(i))&&W2e(I5e(e,i,r),t)}function xP(e,t){return q_(e)?!!$yt[t]:e.Qm?!!e.Qm[t]:K_(e)?!!Qyt[t]:G_(e)?!!Zyt[t]:!1}function rXe(e){switch(e.g){case 1:return NA(),iX;case 3:return NA(),tX;case 2:return NA(),rX;case 4:return NA(),nX;default:return null}}function iXe(e,t,n){if(e.e)switch(e.b){case 1:uOe(e.c,t,n);break;case 0:dOe(e.c,t,n)}else HNe(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function aXe(e){var t,n;if(e==null)return null;for(n=H(UX,OB,199,e.length,0,2),t=0;ta)):0}function CP(){CP=C,r2=new Gg(bU,0),i2=new Gg(`PORT_POSITION`,1),n2=new Gg(`NODE_SIZE_WHERE_SPACE_PERMITS`,2),t2=new Gg(`NODE_SIZE`,3)}function uXe(e,t){var n,r,i;for(t.Tg(`Untreeify`,1),n=F(q(e,(Iz(),GMt)),16),i=n.Jc();i.Ob();)r=F(i.Pb(),65),Sx(r.b.d,r),Sx(r.c.b,r);t.Ug()}function wP(){wP=C,g6=new b_(`AUTOMATIC`,0),y6=new b_(bH,1),b6=new b_(xH,2),x6=new b_(`TOP`,3),_6=new b_(Bft,4),v6=new b_(yH,5)}function TP(e,t,n){var r,i=e.gc();if(t>=i)throw O(new Rb(t,i));if(e.Qi()&&(r=e.bd(n),r>=0&&r!=t))throw O(new qp(uq));return e.Vi(t,n)}function EP(e,t){var n,r,i=tQe(e,t);if(i>=0)return i;if(e.ml()){for(r=0;r0||e==(vp(),HJ)||t==(gp(),UJ))throw O(new qp(`Invalid range: `+NNe(e,t)))}function fXe(e,t,n,r){ZL();for(var i=0,a=0;a0),(t&-t)==t)return Nw(t*xL(e,31)*4656612873077393e-25);do n=xL(e,31),r=n%t;while(n-r+(t-1)<0);return Nw(r)}function mXe(e,t){for(var n=jy(new yf,e),r,i=new D(t);i.a1&&(a=mXe(e,t)),a}function xXe(e){for(var t=0,n,r=new D(e.c.a);r.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function HP(e,t){if(e==null)throw O(new Yp(`null key in entry: null=`+t));if(t==null)throw O(new Yp(`null value in entry: `+e+`=null`))}function kXe(e,t){var n=W(A(Z9,1),UV,30,15,[Vj(e.a[0],t),Vj(e.a[1],t),Vj(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function AXe(e,t){var n=W(A(Z9,1),UV,30,15,[Hj(e.a[0],t),Hj(e.a[1],t),Hj(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function jXe(e,t,n){Ub(F(q(t,(Yz(),_0)),102))||(BPe(e,t,gI(t,n)),BPe(e,t,gI(t,(Lz(),j5))),BPe(e,t,gI(t,m5)),ew(),Yv(t.j,new Kae(e)))}function MXe(e){var t,n;for(e.c||fst(e),n=new qf,t=new D(e.a),B(t);t.a0&&(_T(0,t.length),t.charCodeAt(0)==43)?(_T(1,t.length+1),t.substr(1)):t))}function YXe(e){var t;return e==null?null:new Lv((t=sz(e,!0),t.length>0&&(_T(0,t.length),t.charCodeAt(0)==43)?(_T(1,t.length+1),t.substr(1)):t))}function XXe(e,t,n,r,i,a,o,s){var c,l;r&&(c=r.a[0],c&&XXe(e,t,n,c,i,a,o,s),sF(e,n,r.d,i,a,o,s)&&t.Ec(r),l=r.a[1],l&&XXe(e,t,n,l,i,a,o,s))}function WP(e,t){var n,r,i,a=e.gc();for(t.lengtha&&eC(t,a,null),t}function ZXe(e,t){var n,r=e.gc();if(t==null){for(n=0;n0&&(c+=i),l[u]=o,o+=s*(c+r)}function oZe(e){for(var t=0;t0?e.c:0),++a;e.b=i,e.d=o}function mZe(e,t){var n=W(A(Z9,1),UV,30,15,[pXe(e,(MO(),VY),t),pXe(e,HY,t),pXe(e,UY,t)]);return e.f&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function hZe(e){var t;ib(e,(Yz(),n0))&&(t=F(q(e,n0),22),t.Gc((cL(),V8))?(t.Kc(V8),t.Ec(U8)):t.Gc(U8)&&(t.Kc(U8),t.Ec(V8)))}function gZe(e){var t;ib(e,(Yz(),n0))&&(t=F(q(e,n0),22),t.Gc((cL(),J8))?(t.Kc(J8),t.Ec(K8)):t.Gc(K8)&&(t.Kc(K8),t.Ec(J8)))}function QP(e,t,n,r){var i,a,o,s;return e.a??b2e(e,t),o=t.b.j.c.length,a=n.d.p,s=r.d.p,i=s-1,i<0&&(i=o-1),a<=i?e.a[i]-e.a[a]:e.a[o-1]-e.a[a]+e.a[i]}function _Ze(e){for(var t=0;t0&&(a.b+=t),a}function tF(e,t){var n,i,a=new Rm;for(i=e.Jc();i.Ob();)n=F(i.Pb(),36),uR(n,0,a.b),a.b+=n.f.b+t,a.a=r.Math.max(a.a,n.f.a);return a.a>0&&(a.a+=t),a}function wZe(e,t){var n,r;if(t.length==0)return 0;for(n=iC(e.a,t[0],(Lz(),N5)),n+=iC(e.a,t[t.length-1],p5),r=0;r>16==6?e.Cb.Qh(e,5,c7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||e.fi()),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function EZe(e){ww();var t=e.e;if(t&&t.stack){var n=t.stack,r=t+` + `}};_p([Tt()],Vp.prototype,`data`,void 0),_p([Tt()],Vp.prototype,`activeItemIndex`,void 0),_p([Tt()],Vp.prototype,`error`,void 0),_p([Tt()],Vp.prototype,`activeMainTab`,void 0),_p([Tt()],Vp.prototype,`selectedDiffChanges`,void 0),_p([Tt()],Vp.prototype,`selectedNodeId`,void 0),_p([Tt()],Vp.prototype,`selectedNodeChanges`,void 0),_p([Ot(`.navigator-panel pb33f-model-tree`)],Vp.prototype,`modelTree`,void 0),_p([Ot(`pb33f-chart`)],Vp.prototype,`beefyChart`,void 0),_p([Ot(`.tab-content > sl-tab-group`)],Vp.prototype,`mainTabGroup`,void 0);var Hp=c(o(((e,t)=>{(function(n){if(typeof e==`object`&&t!==void 0)t.exports=n();else if(typeof define==`function`&&define.amd)define([],n);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.ELK=n()}})(function(){return(function(){function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof require==`function`&&require;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof require==`function`&&require,o=0;o0&&arguments[0]!==void 0?arguments[0]:{},r=n.defaultLayoutOptions,a=r===void 0?{}:r,o=n.algorithms,s=o===void 0?[`layered`,`stress`,`mrtree`,`radial`,`force`,`disco`,`sporeOverlap`,`sporeCompaction`,`rectpacking`]:o,c=n.workerFactory,u=n.workerUrl;if(i(this,e),this.defaultLayoutOptions=a,this.initialized=!1,u===void 0&&c===void 0)throw Error(`Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.`);var d=c;u!==void 0&&c===void 0&&(d=function(e){return new Worker(e)});var f=d(u);if(typeof f.postMessage!=`function`)throw TypeError(`Created worker does not provide the required 'postMessage' function.`);this.worker=new l(f),this.worker.postMessage({cmd:`register`,algorithms:s}).then(function(e){return t.initialized=!0}).catch(console.err)}return o(e,[{key:`layout`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.layoutOptions,r=n===void 0?this.defaultLayoutOptions:n,i=t.logging,a=i!==void 0&&i,o=t.measureExecutionTime,s=o!==void 0&&o;return e?this.worker.postMessage({cmd:`layout`,graph:e,layoutOptions:r,options:{logging:a,measureExecutionTime:s}}):Promise.reject(Error(`Missing mandatory parameter 'graph'.`))}},{key:`knownLayoutAlgorithms`,value:function(){return this.worker.postMessage({cmd:`algorithms`})}},{key:`knownLayoutOptions`,value:function(){return this.worker.postMessage({cmd:`options`})}},{key:`knownLayoutCategories`,value:function(){return this.worker.postMessage({cmd:`categories`})}},{key:`terminateWorker`,value:function(){this.worker&&this.worker.terminate()}}])}();var l=function(){function e(t){var n=this;if(i(this,e),t===void 0)throw Error(`Missing mandatory parameter 'worker'.`);this.resolvers={},this.worker=t,this.worker.onmessage=function(e){setTimeout(function(){n.receive(n,e)},0)}}return o(e,[{key:`postMessage`,value:function(e){var t=this.id||0;this.id=t+1,e.id=t;var n=this;return new Promise(function(r,i){n.resolvers[t]=function(e,t){e?(n.convertGwtStyleError(e),i(e)):r(t)},n.worker.postMessage(e)})}},{key:`receive`,value:function(e,t){var n=t.data,r=e.resolvers[n.id];r&&(delete e.resolvers[n.id],n.error?r(n.error):r(null,n.data))}},{key:`terminate`,value:function(){this.worker&&this.worker.terminate()}},{key:`convertGwtStyleError`,value:function(e){if(e){var t=e.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(e.cause=t.cause.backingJsObject,this.convertGwtStyleError(e.cause)),delete e.__java$exception)}}}])}()},{}],2:[function(e,t,n){(function(e){(function(){"use strict";var r;typeof window<`u`?r=window:e===void 0?typeof self<`u`&&(r=self):r=e;var i;function a(){}function o(){}function s(){}function c(){}function l(){}function u(){}function d(){}function f(){}function p(){}function m(){}function h(){}function g(){}function _(){}function v(){}function y(){}function b(){}function x(){}function S(){}function ee(){}function te(){}function ne(){}function C(){}function re(){}function ie(){}function ae(){}function oe(){}function se(){}function w(){}function ce(){}function le(){}function ue(){}function de(){}function fe(){}function pe(){}function me(){}function he(){}function ge(){}function _e(){}function ve(){}function ye(){}function be(){}function xe(){}function Se(){}function Ce(){}function we(){}function Te(){}function Ee(){}function De(){}function Oe(){}function ke(){}function Ae(){}function je(){}function Me(){}function Ne(){}function Pe(){}function Fe(){}function Ie(){}function Le(){}function Re(){}function ze(){}function Be(){}function Ve(){}function He(){}function Ue(){}function We(){}function Ge(){}function eee(){}function Ke(){}function qe(){}function Je(){}function Ye(){}function Xe(){}function Ze(){}function Qe(){}function $e(){}function et(){}function tt(){}function nt(){}function tee(){}function rt(){}function it(){}function T(){}function at(){}function ot(){}function st(){}function ct(){}function lt(){}function ut(){}function dt(){}function ft(){}function pt(){}function mt(){}function ht(){}function gt(){}function _t(){}function vt(){}function yt(){}function bt(){}function nee(){}function ree(){}function iee(){}function xt(){}function St(){}function aee(){}function Ct(){}function oee(){}function see(){}function wt(){}function Tt(){}function Et(){}function Dt(){}function Ot(){}function cee(){}function kt(){}function At(){}function jt(){}function Mt(){}function Nt(){}function Pt(){}function lee(){}function Ft(){}function uee(){}function dee(){}function It(){}function Lt(){}function Rt(){}function fee(){}function zt(){}function pee(){}function Bt(){}function Vt(){}function Ht(){}function mee(){}function Ut(){}function Wt(){}function Gt(){}function Kt(){}function hee(){}function qt(){}function Jt(){}function Yt(){}function Xt(){}function Zt(){}function Qt(){}function $t(){}function en(){}function tn(){}function gee(){}function _ee(){}function nn(){}function rn(){}function an(){}function on(){}function sn(){}function cn(){}function ln(){}function un(){}function dn(){}function vee(){}function fn(){}function yee(){}function pn(){}function mn(){}function hn(){}function gn(){}function _n(){}function vn(){}function yn(){}function bn(){}function xn(){}function Sn(){}function Cn(){}function bee(){}function wn(){}function Tn(){}function En(){}function Dn(){}function On(){}function kn(){}function An(){}function jn(){}function Mn(){}function Nn(){}function Pn(){}function Fn(){}function In(){}function xee(){}function Ln(){}function Rn(){}function See(){}function zn(){}function Bn(){}function Cee(){}function wee(){}function Vn(){}function Hn(){}function Un(){}function Wn(){}function Gn(){}function Tee(){}function Kn(){}function qn(){}function Jn(){}function Yn(){}function Xn(){}function Zn(){}function Qn(){}function $n(){}function Eee(){}function Dee(){}function er(){}function tr(){}function nr(){}function rr(){}function Oee(){}function kee(){}function Aee(){}function ir(){}function jee(){}function ar(){}function or(){}function sr(){}function Mee(){}function Nee(){}function Pee(){}function Fee(){}function Iee(){}function Lee(){}function Ree(){}function zee(){}function Bee(){}function Vee(){}function cr(){}function lr(){}function ur(){}function dr(){}function fr(){}function pr(){}function mr(){}function hr(){}function gr(){}function Hee(){}function _r(){}function Uee(){}function Wee(){}function vr(){}function yr(){}function br(){}function Gee(){}function xr(){}function Sr(){}function Cr(){}function wr(){}function Tr(){}function Er(){}function Dr(){}function Or(){}function kr(){}function Ar(){}function jr(){}function Kee(){}function Mr(){}function qee(){}function Nr(){}function Pr(){}function Fr(){}function Jee(){}function Yee(){}function Xee(){}function Ir(){}function Zee(){}function Qee(){}function $ee(){}function ete(){}function tte(){}function nte(){}function rte(){}function ite(){}function Lr(){}function ate(){}function ote(){}function ste(){}function cte(){}function Rr(){}function zr(){}function lte(){}function ute(){}function dte(){}function fte(){}function pte(){}function Br(){}function mte(){}function hte(){}function gte(){}function Vr(){}function _te(){}function vte(){}function Hr(){}function Ur(){}function Wr(){}function Gr(){}function E(){}function Kr(){}function qr(){}function Jr(){}function Yr(){}function Xr(){}function Zr(){}function Qr(){}function $r(){}function ei(){}function ti(){}function ni(){}function ri(){}function ii(){}function ai(){}function yte(){}function bte(){}function oi(){}function si(){}function ci(){}function xte(){}function li(){}function ui(){}function di(){}function fi(){}function pi(){}function mi(){}function Ste(){}function hi(){}function gi(){}function Cte(){}function _i(){}function wte(){}function vi(){}function Tte(){}function yi(){}function Ete(){}function bi(){}function xi(){}function Dte(){}function Si(){}function Ote(){}function Ci(){}function kte(){}function Ate(){}function wi(){}function jte(){}function Ti(){}function Mte(){}function Ei(){}function Nte(){}function Di(){}function Pte(){}function Oi(){}function Fte(){}function ki(){}function Ai(){}function Ite(){}function ji(){}function Lte(){}function Mi(){}function Rte(){}function Ni(){}function zte(){}function Pi(){}function Fi(){}function Bte(){}function Ii(){}function Vte(){}function Li(){}function Hte(){}function Ute(){}function Ri(){}function Wte(){}function zi(){}function Bi(){}function Vi(){}function Hi(){}function Ui(){}function Gte(){}function Wi(){}function Kte(){}function qte(){}function Jte(){}function Yte(){}function Xte(){}function Zte(){}function Qte(){}function $te(){}function ene(){}function tne(){}function Gi(){}function Ki(){}function nne(){}function rne(){}function qi(){}function ine(){}function ane(){}function one(){}function Ji(){}function sne(){}function cne(){}function lne(){}function une(){}function dne(){}function fne(){}function pne(){}function mne(){}function hne(){}function gne(){}function Yi(){}function Xi(){}function _ne(){}function vne(){}function yne(){}function Zi(){}function Qi(){}function $i(){}function ea(){}function ta(){}function bne(){}function xne(){}function na(){}function ra(){}function ia(){}function aa(){}function oa(){}function Sne(){}function sa(){}function Cne(){}function ca(){}function la(){}function wne(){}function ua(){}function da(){}function fa(){}function pa(){}function ma(){}function ha(){}function ga(){}function Tne(){}function Ene(){}function _a(){}function Dne(){}function va(){}function ya(){}function One(){}function ba(){}function kne(){}function xa(){}function Ane(){}function jne(){}function Mne(){}function Nne(){}function Sa(){}function Ca(){}function wa(){}function Ta(){}function Ea(){}function Da(){}function Oa(){}function ka(){}function Aa(){}function ja(){}function Pne(){}function Ma(){}function Na(){}function Pa(){}function Fne(){}function Fa(){}function Ine(){}function Ia(){}function La(){}function Lne(){}function Ra(){}function za(){}function Ba(){}function Va(){}function Ha(){}function Ua(){}function Wa(){}function Ga(){}function Ka(){}function Rne(){}function zne(){}function qa(){}function Bne(){}function Vne(){}function Hne(){}function Une(){}function Wne(){}function Ja(){}function Gne(){}function Ya(){}function Kne(){}function Xa(){}function Za(){}function Qa(){}function qne(){}function Jne(){}function $a(){}function eo(){}function Yne(){}function to(){}function Xne(){}function Zne(){}function Qne(){}function no(){}function $ne(){}function ere(){}function tre(){}function nre(){}function ro(){}function io(){}function ao(){}function oo(){}function so(){}function co(){}function rre(){}function lo(){}function uo(){}function ire(){}function fo(){}function po(){}function mo(){}function ho(){}function go(){}function _o(){}function vo(){}function yo(){}function bo(){}function xo(){}function So(){}function Co(){}function wo(){}function are(){}function To(){}function Eo(){}function ore(){}function Do(){}function sre(){}function cre(){}function Oo(){}function ko(){}function Ao(){}function jo(){}function lre(){}function ure(){}function Mo(){}function No(){}function Po(){}function Fo(){}function dre(){}function Io(){}function Lo(){}function Ro(){}function zo(){}function Bo(){}function Vo(){}function Ho(){}function fre(){}function pre(){}function Uo(){}function mre(){}function Wo(){}function Go(){}function Ko(){}function qo(){}function Jo(){}function Yo(){}function hre(){}function Xo(){}function Zo(){}function Qo(){}function gre(){}function $o(){}function es(){}function ts(){}function _re(){}function vre(){}function ns(){}function yre(){}function rs(){}function is(){}function as(){}function os(){}function bre(){}function ss(){}function cs(){}function xre(){}function ls(){}function us(){}function ds(){}function fs(){}function ps(){}function ms(){}function hs(){}function gs(){}function _s(){}function Sre(){}function Cre(){}function wre(){}function Tre(){}function vs(){}function Ere(){}function ys(){}function bs(){}function Dre(){}function xs(){}function Ore(){}function Ss(){}function Cs(){}function ws(){}function Ts(){}function Es(){}function kre(){}function Ds(){}function Are(){}function Os(){}function ks(){}function As(){}function js(){}function Ms(){}function Ns(){}function Ps(){}function jre(){}function Mre(){}function Nre(){}function Pre(){}function Fre(){}function Fs(){}function Is(){}function Ire(){}function Lre(){}function Rre(){}function zre(){}function Ls(){}function Rs(){}function zs(){}function Bs(){}function Vs(){}function Hs(){}function Bre(){}function Us(){}function Ws(){}function Gs(){}function Ks(){}function Vre(){}function qs(){}function Js(){}function Hre(){}function Ure(){}function Wre(){}function Gre(){}function Kre(){}function Ys(){dp()}function Xs(){k2e()}function qre(){CR()}function Jre(){JZe()}function Yre(){uF()}function Xre(){kh()}function Zs(){nde()}function Zre(){Ik()}function Qs(){MFe()}function Qre(){jh()}function $s(){Kb()}function ec(){pj()}function $re(){iI()}function eie(){Ph()}function tie(){Ndt()}function nie(){aAe()}function tc(){RIe()}function rie(){xBe()}function iie(){nAe()}function nc(){tAe()}function rc(){rAe()}function ic(){zz()}function ac(){EBe()}function aie(){PMe()}function oie(){CBe()}function oc(){wBe()}function sie(){TBe()}function cie(){DBe()}function sc(){lAe()}function lie(){PO()}function cc(){tHe()}function uie(){Vnt()}function lc(){pI()}function die(){sAe()}function uc(){tQe()}function dc(){cAe()}function fie(){Trt()}function pie(){w8e()}function mie(){AR()}function hie(){JL()}function fc(){mit()}function pc(){_Ke()}function mc(){FO()}function hc(){eI()}function gc(){Rtt()}function gie(){FP()}function _c(){ED()}function vc(){Hz()}function _ie(){tI()}function vie(){Tj()}function yie(){cJe()}function yc(){UR()}function bc(){Zk()}function xc(){Tbe()}function bie(){Cit()}function Sc(e){MC(e)}function xie(e){this.a=e}function Cc(e){this.a=e}function wc(e){this.a=e}function Tc(e){this.a=e}function Sie(e){this.a=e}function Ec(e){this.a=e}function Dc(e){this.a=e}function Cie(e){this.a=e}function Oc(e){this.a=e}function kc(e){this.a=e}function wie(e){this.a=e}function Tie(e){this.a=e}function Ac(e){this.a=e}function jc(e){this.c=e}function Eie(e){this.a=e}function Mc(e){this.a=e}function Die(e){this.a=e}function Oie(e){this.a=e}function kie(e){this.a=e}function Nc(e){this.a=e}function Pc(e){this.a=e}function Fc(e){this.a=e}function Ic(e){this.a=e}function Aie(e){this.a=e}function Lc(e){this.a=e}function Rc(e){this.a=e}function zc(e){this.a=e}function jie(e){this.a=e}function Bc(e){this.a=e}function Mie(e){this.a=e}function Nie(e){this.a=e}function Pie(e){this.a=e}function Fie(e){this.a=e}function Iie(e){this.a=e}function Vc(e){this.a=e}function Hc(e){this.a=e}function Uc(e){this.a=e}function Lie(e){this.a=e}function Rie(e){this.a=e}function Wc(e){this.a=e}function Gc(e){this.a=e}function Kc(e){this.a=e}function qc(e){this.a=e}function Jc(e){this.b=e}function Yc(){this.a=[]}function zie(e,t){e.a=t}function Bie(e,t){e.a=t}function Xc(e,t){e.b=t}function Vie(e,t){e.c=t}function Hie(e,t){e.c=t}function Uie(e,t){e.d=t}function Zc(e,t){e.d=t}function Qc(e,t){e.k=t}function $c(e,t){e.j=t}function el(e,t){e.c=t}function tl(e,t){e.c=t}function nl(e,t){e.a=t}function Wie(e,t){e.a=t}function Gie(e,t){e.f=t}function rl(e,t){e.a=t}function Kie(e,t){e.b=t}function il(e,t){e.d=t}function al(e,t){e.i=t}function ol(e,t){e.o=t}function qie(e,t){e.r=t}function sl(e,t){e.a=t}function Jie(e,t){e.b=t}function Yie(e,t){e.e=t}function Xie(e,t){e.e=t}function Zie(e,t){e.f=t}function Qie(e,t){e.f=t}function cl(e,t){e.g=t}function $ie(e,t){e.f=t}function ll(e,t){e.a=t}function ul(e,t){e.b=t}function dl(e,t){e.n=t}function fl(e,t){e.a=t}function eae(e,t){e.a=t}function pl(e,t){e.a=t}function tae(e,t){e.c=t}function nae(e,t){e.c=t}function ml(e,t){e.c=t}function rae(e,t){e.d=t}function iae(e,t){e.d=t}function aae(e,t){e.e=t}function oae(e,t){e.e=t}function sae(e,t){e.g=t}function cae(e,t){e.f=t}function lae(e,t){e.j=t}function hl(e,t){e.a=t}function uae(e,t){e.a=t}function dae(e,t){e.b=t}function gl(e){e.b=e.a}function _l(e){e.c=e.d.d}function vl(e){this.a=e}function yl(e){this.a=e}function bl(e){this.a=e}function xl(e){this.a=e}function Sl(e){this.a=e}function Cl(e){this.a=e}function wl(e){this.a=e}function Tl(e){this.a=e}function El(e){this.a=e}function Dl(e){this.a=e}function Ol(e){this.a=e}function kl(e){this.a=e}function Al(e){this.a=e}function jl(e){this.b=e}function Ml(e){this.b=e}function Nl(e){this.b=e}function Pl(e){this.d=e}function Fl(e){this.a=e}function Il(e){this.a=e}function Ll(e){this.a=e}function fae(e){this.a=e}function pae(e){this.a=e}function Rl(e){this.a=e}function zl(e){this.a=e}function Bl(e){this.a=e}function Vl(e){this.c=e}function D(e){this.c=e}function mae(e){this.c=e}function Hl(e){this.a=e}function Ul(e){this.a=e}function Wl(e){this.a=e}function Gl(e){this.a=e}function Kl(e){this.a=e}function ql(e){this.a=e}function hae(e){this.a=e}function Jl(e){this.a=e}function gae(e){this.a=e}function _ae(e){this.a=e}function vae(e){this.a=e}function Yl(e){this.a=e}function yae(e){this.a=e}function bae(e){this.a=e}function Xl(e){this.a=e}function xae(e){this.a=e}function Zl(e){this.a=e}function Ql(e){this.a=e}function Sae(e){this.a=e}function $l(e){this.a=e}function eu(e){this.a=e}function tu(e){this.a=e}function nu(e){this.a=e}function ru(e){this.a=e}function iu(e){this.a=e}function au(e){this.a=e}function ou(e){this.a=e}function Cae(e){this.a=e}function su(e){this.a=e}function cu(e){this.a=e}function lu(e){this.a=e}function uu(e){this.a=e}function du(e){this.a=e}function fu(e){this.a=e}function pu(e){this.a=e}function mu(e){this.a=e}function hu(e){this.a=e}function gu(e){this.a=e}function _u(e){this.a=e}function vu(e){this.a=e}function wae(e){this.a=e}function Tae(e){this.a=e}function yu(e){this.a=e}function bu(e){this.a=e}function Eae(e){this.a=e}function Dae(e){this.a=e}function Oae(e){this.a=e}function kae(e){this.a=e}function xu(e){this.a=e}function Su(e){this.a=e}function Aae(e){this.a=e}function jae(e){this.a=e}function Mae(e){this.a=e}function Cu(e){this.a=e}function Nae(e){this.a=e}function Pae(e){this.a=e}function wu(e){this.a=e}function Fae(e){this.a=e}function Tu(e){this.e=e}function Eu(e){this.a=e}function Iae(e){this.a=e}function Lae(e){this.a=e}function Rae(e){this.a=e}function zae(e){this.a=e}function Bae(e){this.a=e}function Du(e){this.a=e}function Ou(e){this.a=e}function Vae(e){this.a=e}function ku(e){this.a=e}function Au(e){this.a=e}function Hae(e){this.a=e}function Uae(e){this.a=e}function Wae(e){this.a=e}function ju(e){this.a=e}function Gae(e){this.a=e}function Kae(e){this.a=e}function Mu(e){this.a=e}function qae(e){this.a=e}function Nu(e){this.a=e}function Pu(e){this.a=e}function Fu(e){this.a=e}function Iu(e){this.a=e}function Jae(e){this.a=e}function Yae(e){this.a=e}function Xae(e){this.a=e}function Zae(e){this.a=e}function Lu(e){this.a=e}function Qae(e){this.a=e}function $ae(e){this.a=e}function eoe(e){this.a=e}function toe(e){this.a=e}function noe(e){this.a=e}function Ru(e){this.c=e}function zu(e){this.b=e}function roe(e){this.a=e}function ioe(e){this.a=e}function aoe(e){this.a=e}function Bu(e){this.a=e}function ooe(e){this.a=e}function Vu(e){this.a=e}function Hu(e){this.a=e}function Uu(e){this.a=e}function Wu(e){this.a=e}function soe(e){this.a=e}function coe(e){this.a=e}function loe(e){this.a=e}function uoe(e){this.a=e}function doe(e){this.a=e}function foe(e){this.a=e}function poe(e){this.a=e}function moe(e){this.a=e}function hoe(e){this.a=e}function goe(e){this.a=e}function Gu(e){this.a=e}function _oe(e){this.a=e}function voe(e){this.a=e}function yoe(e){this.a=e}function boe(e){this.a=e}function xoe(e){this.a=e}function Ku(e){this.a=e}function Soe(e){this.a=e}function qu(e){this.a=e}function Ju(e){this.a=e}function Yu(e){this.a=e}function Coe(e){this.a=e}function Xu(e){this.a=e}function woe(e){this.a=e}function Zu(e){this.a=e}function Toe(e){this.a=e}function Qu(e){this.a=e}function Eoe(e){this.a=e}function Doe(e){this.a=e}function Ooe(e){this.a=e}function $u(e){this.a=e}function koe(e){this.a=e}function Aoe(e){this.a=e}function ed(e){this.a=e}function joe(e){this.a=e}function Moe(e){this.a=e}function td(e){this.a=e}function Noe(e){this.a=e}function nd(e){this.a=e}function rd(e){this.a=e}function id(e){this.a=e}function Poe(e){this.a=e}function Foe(e){this.a=e}function Ioe(e){this.a=e}function Loe(e){this.a=e}function Roe(e){this.a=e}function ad(e){this.a=e}function zoe(e){this.a=e}function Boe(e){this.a=e}function Voe(e){this.a=e}function od(e){this.a=e}function Hoe(e){this.a=e}function Uoe(e){this.a=e}function Woe(e){this.a=e}function Goe(e){this.a=e}function sd(e){this.a=e}function Koe(e){this.a=e}function qoe(e){this.a=e}function Joe(e){this.a=e}function Yoe(e){this.a=e}function Xoe(e){this.a=e}function Zoe(e){this.a=e}function Qoe(e){this.a=e}function $oe(e){this.a=e}function ese(e){this.a=e}function cd(e){this.a=e}function tse(e){this.a=e}function ld(e){this.a=e}function ud(e){this.a=e}function nse(e){this.a=e}function rse(e){this.a=e}function ise(e){this.a=e}function ase(e){this.a=e}function ose(e){this.a=e}function dd(e){this.a=e}function fd(e){this.b=e}function pd(e){this.f=e}function md(e){this.a=e}function sse(e){this.a=e}function cse(e){this.a=e}function lse(e){this.a=e}function use(e){this.a=e}function dse(e){this.a=e}function fse(e){this.a=e}function pse(e){this.a=e}function mse(e){this.a=e}function hd(e){this.a=e}function gd(e){this.a=e}function hse(e){this.a=e}function _d(e){this.a=e}function vd(e){this.a=e}function yd(e){this.b=e}function bd(e){this.c=e}function xd(e){this.e=e}function Sd(e){this.d=e}function Cd(e){this.a=e}function gse(e){this.a=e}function wd(e){this.a=e}function Td(e){this.a=e}function Ed(e){this.e=e}function Dd(){this.a=0}function Od(){Av(this)}function kd(){BS(this)}function Ad(){MEe(this)}function _se(){}function jd(){this.c=qBt}function vse(e,t){e.b+=t}function yse(e,t){t.Wb(e)}function bse(e){return e.a}function xse(e){return e.a}function Sse(e){return e.a}function Cse(e){return e.a}function Md(e){return e.a}function O(e){return e.e}function wse(){return null}function Tse(){return null}function Ese(e){throw O(e)}function Nd(e){this.a=aC(e)}function Dse(){this.a=this}function Pd(){Ige.call(this)}function Ose(e){e.b.Mf(e.e)}function kse(e){e.b=new im}function Fd(e,t){e.b=t-e.b}function Id(e,t){e.a=t-e.a}function Ld(e,t){t.gd(e.a)}function Rd(e,t){PI(t,e)}function zd(e,t){e.push(t)}function Ase(e,t){e.sort(t)}function Bd(e,t,n){e.Wd(n,t)}function Vd(e,t){e.e=t,t.b=e}function jse(e){Iw(),Fbt.je(e)}function Mse(){_le(),Put()}function Hd(){Pd.call(this)}function Ud(){Pd.call(this)}function Wd(){Ige.call(this)}function Gd(){Pd.call(this)}function Kd(){Pd.call(this)}function qd(){Pd.call(this)}function Jd(){Pd.call(this)}function Yd(){Pd.call(this)}function Xd(){Pd.call(this)}function Zd(){Pd.call(this)}function Qd(){Pd.call(this)}function $d(){Pd.call(this)}function ef(){this.Bb|=256}function tf(){this.b=new Xpe}function nf(){nf=C,new kd}function rf(e,t){e.length=t}function af(e,t){ry(e.a,t)}function of(e,t){J2e(e.c,t)}function Nse(e,t){LS(e.b,t)}function Pse(e,t){AP(e.a,t)}function sf(e,t){CM(e.a,t)}function cf(e,t){dA(e.e,t)}function lf(e){ZI(e.c,e.b)}function Fse(e,t){e.kc().Nb(t)}function uf(e){this.a=VKe(e)}function df(){this.a=new kd}function Ise(){this.a=new kd}function ff(){this.a=new Od}function pf(){this.a=new Od}function mf(){this.a=new Od}function hf(){this.a=new Be}function gf(){this.a=new EFe}function _f(){this.a=new Bue}function vf(){this.a=new Ike}function yf(){this.a=new qve}function bf(){this.a=new it}function xf(){this.a=new gje}function Lse(){this.a=new Od}function Sf(){this.a=new Od}function Cf(){this.a=new Od}function wf(){this.a=new Od}function Tf(){this.d=new Od}function Ef(){this.a=new df}function Df(){this.a=new kd}function Of(){this.b=new kd}function kf(){this.b=new Od}function Af(){this.e=new Od}function jf(){this.a=new $re}function Rse(){this.d=new Od}function Mf(){Od.call(this)}function Nf(){Hd.call(this)}function Pf(){ff.call(this)}function zse(){Cf.call(this)}function Ff(){_se.call(this)}function If(){Ff.call(this)}function Bse(){Sb.call(this)}function Lf(){_se.call(this)}function Rf(){Lf.call(this)}function zf(){DOe.call(this)}function Bf(){DOe.call(this)}function Vse(){np.call(this)}function Hse(){np.call(this)}function Use(){np.call(this)}function Wse(){rp.call(this)}function Vf(){nre.call(this)}function Hf(){nre.call(this)}function Uf(){ph.call(this)}function Gse(){sp.call(this)}function Kse(){sp.call(this)}function Wf(){kd.call(this)}function Gf(){kd.call(this)}function Kf(){kd.call(this)}function qf(){aBe.call(this)}function qse(){df.call(this)}function Jse(){ef.call(this)}function Jf(){oge.call(this)}function Yf(){kd.call(this)}function Xf(){oge.call(this)}function Zf(){kd.call(this)}function Qf(){kd.call(this)}function $f(){vo.call(this)}function ep(){$f.call(this)}function tp(){vo.call(this)}function Yse(){Wre.call(this)}function np(){this.a=new df}function Xse(){this.a=new kd}function rp(){this.a=new kd}function ip(){this.a=new ph}function ap(){this.a=new Od}function op(){this.j=new Od}function sp(){this.a=new mo}function cp(){this.a=new pa}function lp(){this.a=new Wle}function up(){up=C,SJ=new Zse}function dp(){dp=C,gJ=new o}function fp(){fp=C,xJ=new pp}function pp(){Ic.call(this,``)}function Zse(){Ic.call(this,``)}function mp(e){uze.call(this,e)}function hp(e){uze.call(this,e)}function gp(e){Ec.call(this,e)}function _p(e){oue.call(this,e)}function Qse(e){oue.call(this,e)}function $se(e){_p.call(this,e)}function vp(e){_p.call(this,e)}function ece(e){_p.call(this,e)}function yp(e){XNe.call(this,e)}function tce(e){XNe.call(this,e)}function bp(e){Rhe.call(this,e)}function xp(e){Sue.call(this,e)}function Sp(e){ih.call(this,e)}function Cp(e){ih.call(this,e)}function nce(e){ih.call(this,e)}function wp(e){Uwe.call(this,e)}function Tp(e){wp.call(this,e)}function Ep(){qc.call(this,{})}function Dp(e){fy(),this.a=e}function Op(e){e.b=null,e.c=0}function rce(e,t){e.e=t,cet(e,t)}function ice(e,t){e.a=t,X4e(e)}function kp(e,t,n){e.a[t.g]=n}function ace(e,t,n){f$e(n,e,t)}function Ap(e,t){gye(t.i,e.n)}function oce(e,t){fWe(e).Ad(t)}function jp(e,t){return e*e/t}function sce(e,t){return e.g-t.g}function Mp(e,t){e.a.ec().Kc(t)}function cce(e){return new Kc(e)}function Np(e){return new vC(e)}function Pp(e){wp.call(this,e)}function Fp(e){wp.call(this,e)}function Ip(e){wp.call(this,e)}function Lp(e){Uwe.call(this,e)}function Rp(e){eHe(),this.a=e}function zp(e){lS(),this.f=e}function Bp(e){lS(),this.f=e}function lce(e){wbe(),this.a=e}function Vp(e){wp.call(this,e)}function Hp(e){wp.call(this,e)}function Up(e){wp.call(this,e)}function uce(e){wp.call(this,e)}function Wp(e){wp.call(this,e)}function Gp(e){return MC(e),e}function k(e){return MC(e),e}function Kp(e){return MC(e),e}function dce(e){return MC(e),e}function fce(e){return MC(e),e}function qp(e){return e.b==e.c}function Jp(e){return!!e&&e.b}function pce(e){return!!e&&e.k}function mce(e){return!!e&&e.j}function Yp(e){MC(e),this.a=e}function hce(e){return uj(e),e}function Xp(e){bTe(e,e.length)}function Zp(e){wp.call(this,e)}function Qp(e){wp.call(this,e)}function $p(e){wp.call(this,e)}function em(e){wp.call(this,e)}function tm(e){wp.call(this,e)}function nm(e){wp.call(this,e)}function rm(e){a_e.call(this,e,0)}function im(){mje.call(this,12,3)}function am(){this.a=rb(aC(rB))}function gce(){throw O(new Zd)}function _ce(){throw O(new Zd)}function vce(){throw O(new Zd)}function yce(){throw O(new Zd)}function bce(){throw O(new Zd)}function xce(){throw O(new Zd)}function Sce(){Sce=C,jbt=new a}function Cce(){Cce=C,Pbt=new v}function om(){om=C,jJ=new x}function sm(){sm=C,TJ=new Lhe}function wce(){wce=C,zbt=new ee}function cm(){cm=C,Iw()}function lm(){xl.call(this,``)}function um(){xl.call(this,``)}function dm(){xl.call(this,``)}function fm(){xl.call(this,``)}function Tce(e){Fp.call(this,e)}function Ece(e){Fp.call(this,e)}function pm(e){Hp.call(this,e)}function mm(e){Ml.call(this,e)}function Dce(e){mm.call(this,e)}function hm(e){yy.call(this,e)}function Oce(e,t,n){e.c.Cf(t,n)}function kce(e,t,n){t.Ad(e.a[n])}function Ace(e,t,n){t.Ne(e.a[n])}function jce(e,t){return e.a-t.a}function Mce(e,t){return e.a-t.a}function Nce(e,t){return e.a-t.a}function gm(e,t){return AD(e,t)}function A(e,t){return Yke(e,t)}function Pce(e,t){return t in e.a}function Fce(e){return e.a?e.b:0}function Ice(e){return e.a?e.b:0}function Lce(e,t){return e.f=t,e}function Rce(e,t){return e.b=t,e}function zce(e,t){return e.c=t,e}function Bce(e,t){return e.g=t,e}function Vce(e,t){return e.a=t,e}function Hce(e,t){return e.f=t,e}function Uce(e,t){return e.k=t,e}function Wce(e,t){return e.a=t,e}function Gce(e,t){return e.e=t,e}function Kce(e,t){return e.e=t,e}function qce(e,t){return e.f=t,e}function Jce(e,t){e.b=new pv(t)}function Yce(e,t){e._d(t),t.$d(e)}function Xce(e,t){Jb(),t.n.a+=e}function Zce(e,t){iI(),uT(t,e)}function Qce(e,t){return e.b-t.b}function $ce(e,t){return e.g-t.g}function ele(e,t){return e.s-t.s}function tle(e,t){return e?0:t-1}function nle(e,t){return e?0:t-1}function rle(e,t){return e?t-1:0}function ile(e,t){return t.pg(e)}function _m(e,t){return e.b=t,e}function vm(e,t){return e.a=t,e}function ym(e,t){return e.c=t,e}function bm(e,t){return e.d=t,e}function xm(e,t){return e.e=t,e}function ale(e,t){return e.f=t,e}function Sm(e,t){return e.a=t,e}function Cm(e,t){return e.b=t,e}function wm(e,t){return e.c=t,e}function Tm(e,t){return e.c=t,e}function Em(e,t){return e.b=t,e}function Dm(e,t){return e.d=t,e}function Om(e,t){return e.e=t,e}function ole(e,t){return e.f=t,e}function km(e,t){return e.g=t,e}function Am(e,t){return e.a=t,e}function jm(e,t){return e.i=t,e}function Mm(e,t){return e.j=t,e}function sle(e,t){return e.j=t,e}function cle(e,t){return e.k=t,e}function Nm(){this.a=0,this.b=0}function lle(){this.b=0,this.a=0}function ule(e){NDe.call(this,e)}function dle(e){NDe.call(this,e)}function Pm(e){Ib.call(this,e)}function Fm(e){TO.call(this,e)}function fle(e){lw.call(this,e)}function ple(e){lw.call(this,e)}function mle(){phe.call(this,``)}function hle(){hle=C,xxt=r1e()}function Im(){Im=C,qzt=KQe()}function gle(){gle=C,r7=G1e()}function _le(){_le=C,C7=sk()}function Lm(){Lm=C,NBt=qQe()}function vle(){vle=C,bVt=JQe()}function yle(){yle=C,x9=q4e()}function Rm(e){return e.e&&e.e()}function ble(e,t){return e.c._b(t)}function xle(e,t){return AGe(e.b,t)}function Sle(e,t){return yde(e.a,t)}function Cle(e,t){e.b=0,$O(e,t)}function wle(e,t){e.c=t,e.b=!0}function zm(e,t){return e.a+=t,e}function Bm(e,t){return e.a+=t,e}function Vm(e,t){return e.a+=t,e}function Hm(e,t){return e.a+=t,e}function Um(e){return tb(e),e.o}function Tle(e){Nlt(),$ut(this,e)}function Ele(){throw O(new Zd)}function Dle(){throw O(new Zd)}function Ole(){throw O(new Zd)}function kle(){throw O(new Zd)}function Ale(){throw O(new Zd)}function jle(){throw O(new Zd)}function Wm(e){this.a=new yh(e)}function Gm(e){this.a=new xS(e)}function Km(e,t){for(;e.Pe(t););}function Mle(e,t){for(;e.zd(t););}function Nle(e,t,n){Cwe(e.a,t,n)}function Ple(e,t,n){e.splice(t,n)}function Fle(e,t){return kot(t,e)}function Ile(e,t){return e.d[t.p]}function qm(e){return e.b!=e.d.c}function Lle(e){return e.l|e.m<<22}function Jm(e){return e?e.d:null}function Rle(e){return e?e.g:null}function zle(e){return e?e.i:null}function Ble(e,t){return oet(e,t)}function Ym(e){return DC(e),e.a}function Vle(e){e.c?att(e):ott(e)}function Hle(){this.b=new NL(WMt)}function Ule(){this.b=new NL(y3)}function Wle(){this.b=new NL(y3)}function Gle(){this.a=new NL(iPt)}function Kle(){this.a=new NL(eFt)}function Xm(e){this.a=0,this.b=e}function qle(){throw O(new Zd)}function Jle(){throw O(new Zd)}function Yle(){throw O(new Zd)}function Xle(){throw O(new Zd)}function Zle(){throw O(new Zd)}function Qle(){throw O(new Zd)}function $le(){throw O(new Zd)}function eue(){throw O(new Zd)}function tue(){throw O(new Zd)}function nue(){throw O(new Zd)}function rue(){throw O(new Qd)}function iue(){throw O(new Qd)}function Zm(e){this.a=new kue(e)}function Qm(e){this.b=F(aC(e),92)}function aue(e,t){this.b=e,this.c=t}function $m(e,t){this.e=e,this.d=t}function oue(e){cge(e.dc()),this.c=e}function sue(e,t){this.a=e,this.b=t}function cue(e,t){this.a=e,this.b=t}function lue(e,t){this.a=e,this.b=t}function uue(e,t){this.a=e,this.b=t}function due(e,t){this.a=e,this.b=t}function fue(e,t){this.a=e,this.b=t}function pue(e,t){this.a=e,this.b=t}function mue(e,t){this.b=e,this.a=t}function eh(e,t){this.g=e,this.i=t}function hue(e,t){this.b=e,this.a=t}function th(e,t){dy.call(this,e,t)}function nh(e,t){th.call(this,e,t)}function gue(e,t){this.a=e,this.b=t}function _ue(e,t){this.a=e,this.b=t}function vue(e,t){this.b=e,this.a=t}function yue(e,t){this.b=e,this.a=t}function rh(e,t){this.f=e,this.g=t}function ih(e){this.b=F(aC(e),50)}function ah(e,t){this.a=e,this.b=t}function bue(e,t){this.a=e,this.f=t}function xue(e){this.a=F(aC(e),16)}function Sue(e){this.a=F(aC(e),16)}function Cue(e,t){this.b=e,this.c=t}function wue(e){this.a=F(aC(e),92)}function Tue(e,t){this.a=e,this.b=t}function Eue(e,t){this.a=e,this.b=t}function Due(e,t){return jS(e.b,t)}function Oue(e,t){return e>t&&t0}function Qh(e,t){return Gj(e,t)<0}function xde(e,t){return t.split(e)}function $h(e){return e.b=0}function q_(e,t){return Gj(e,t)!=0}function Lpe(e,t){return e.a+=``+t,e}function Rpe(e){return``+(MC(e),e)}function zpe(e,t){e.q.setTime(ZT(t))}function J_(e,t){return e.a+=``+t,e}function Y_(e,t){return e.a+=``+t,e}function X_(e,t){return e.a+=``+t,e}function Z_(e,t){return e.a+=``+t,e}function Q_(e,t){return e.a+=``+t,e}function Bpe(e){return OT(e,0),null}function Vpe(e){BS(this),tA(this,e)}function Hpe(e,t){lTe.call(this,e,t)}function Upe(e,t){lTe.call(this,e,t)}function $_(e,t){lTe.call(this,e,t)}function Wpe(){oAe(),OOe.call(this)}function Gpe(){oAe(),OOe.call(this)}function Kpe(){iAe(),Iwe.call(this)}function qpe(){qpe=C,iNt=Rj($Ve())}function Jpe(){Jpe=C,kSt=Rj(ZN())}function Ype(){Ype=C,tTt=Rj(M9e())}function Xpe(){this.b=new yh(hA(12))}function Zpe(){this.b=0,this.a=!1}function Qpe(){this.b=0,this.a=!1}function ev(e,t){DE(e,t,e.a,e.a.a)}function tv(e,t){DE(e,t,e.c.b,e.c)}function nv(e,t){Uh(),LC(E7,e,t)}function rv(e,t){bb.call(this,e,t)}function iv(e,t){Ob.call(this,e,t)}function av(e,t){Spe.call(this,e,t)}function $pe(e,t){jy.call(this,e,t)}function ov(e,t){TA.call(this,e,t)}function sv(e){this.a=e,Ys.call(this)}function eme(e){this.a=e,Ys.call(this)}function cv(e){return e.a=0,e.b=0,e}function tme(e,t){return e.a=t.g+1,e}function nme(e,t){return e.j[t.p]==2}function rme(e,t){return jw(e.a,0,t)}function ime(e,t){return mM(e.a,t.a)}function ame(e,t){return Hv(e.a,t.a)}function ome(e,t){return NTe(e.a,t.a)}function sme(e,t){return M(e)===M(t)}function lv(e,t){return e.indexOf(t)}function cme(e){return aC(e),new sv(e)}function lme(e){return Uv(e.l,e.m,e.h)}function uv(e){return Gw((MC(e),e))}function ume(e){return Gw((MC(e),e))}function dme(e,t){return Hv(e.g,t.g)}function dv(e){return typeof e===Vdt}function fme(e){return e==fX||e==pX}function pme(e){return e==fX||e==hX}function fv(e){return e<10?`0`+e:``+e}function mme(e){return VD(e.b.b,e,0)}function hme(e,t){kD(e,0,e.length,t)}function gme(e,t){return ry(e.a,t),t}function _me(e,t){return Jb(),t.a+=e}function vme(e,t){return Jb(),t.a+=e}function yme(e,t){return Jb(),t.c+=e}function bme(e,t){return ry(e.c,t),e}function xme(e,t){return uA(e.a,t),e}function Sme(e){this.a=Ade(),this.b=e}function Cme(e){this.a=Ade(),this.b=e}function pv(e){this.a=e.a,this.b=e.b}function mv(){zl.call(this,new CE)}function wme(){Nx.call(this,0,0,0,0)}function hv(){rw.call(this,0,0,0,0)}function gv(e){return uA(new AC,e)}function Tme(e){return HC(F(e,125))}function _v(e){return e.sh()&&e.th()}function vv(e){return e!=K8&&e!=q8}function yv(e){return e==i8||e==a8}function bv(e){return e==s8||e==r8}function Eme(e){return e==F0||e==P0}function Dme(e,t){return mM(t.f,e.f)}function Ome(e,t){return Hv(e.g,t.g)}function kme(e,t){return new TA(t,e)}function Ame(e,t){return new TA(t,e)}function xv(e,t,n){HO(e,t),UO(e,n)}function Sv(e,t,n){KO(e,t),VO(e,n)}function Cv(e,t,n){qO(e,t),JO(e,n)}function wv(e,t,n){WO(e,t),GO(e,n)}function Tv(e,t,n){YO(e,t),XO(e,n)}function Ev(e,t){Pj(e,t),ek(e,e.D)}function Dv(e){_pe.call(this,e,!0)}function jme(e,t,n){rve.call(this,e,t,n)}function Mme(){ag.call(this,`Head`,1)}function Nme(){ag.call(this,`Tail`,3)}function Ov(e){iR(),VVe.call(this,e)}function kv(e){Nx.call(this,e,e,e,e)}function Av(e){e.c=H(hJ,iB,1,0,5,1)}function Pme(e){kO(e.Qf(),new tu(e))}function jv(e){return e==null?0:Lk(e)}function Fme(e,t){return EO(t,eT(e))}function Ime(e,t){return EO(t,eT(e))}function Lme(e,t){return e[e.length]=t}function Rme(e,t){return e[e.length]=t}function zme(e,t){return vk(dC(e.f),t)}function Bme(e,t){return vk(dC(e.n),t)}function Vme(e,t){return vk(dC(e.p),t)}function Hme(e){return kSe(e.b.Jc(),e.a)}function Ume(e){return e==null?0:Lk(e)}function Mv(e,t){bb.call(this,e.b,t)}function Wme(e,t){hD(bE(e.a),pAe(t))}function Gme(e,t){hD(qD(e.a),mAe(t))}function Kme(e,t,n){Cv(n,n.i+e,n.j+t)}function qme(e,t,n){fC(e.c[t.g],t.g,n)}function Jme(e,t,n){F(e.c,72).Ei(t,n)}function Nv(e,t,n){return fC(e,t,n),n}function Yme(e,t){mY||(e.b=t)}function Xme(){Xme=C,nf(),Ibt=new kd}function Zme(){Zme=C,D2=new tN(v8)}function Pv(){Pv=C,r.Math.log(2)}function Fv(){Fv=C,f9=(lde(),rBt)}function Iv(){Iv=C,new Qme,new Od}function Qme(){new kd,new kd,new kd}function $me(){throw O(new Zp(pbt))}function ehe(){throw O(new Zp(fbt))}function the(){throw O(new Zp(fbt))}function nhe(){throw O(new Zp(pbt))}function Lv(e){Wz(),Ed.call(this,e)}function rhe(e){this.a=e,MSe.call(this,e)}function Rv(e){this.a=e,Qm.call(this,e)}function zv(e){this.a=e,Qm.call(this,e)}function Bv(e,t){qx(e.c,e.c.length,t)}function Vv(e){return e.at)}function ohe(e,t){return Gj(e,t)>0?e:t}function Uv(e,t,n){return{l:e,m:t,h:n}}function she(e,t){e.a!=null&&Fpe(t,e.a)}function che(e){sT(e,null),lT(e,null)}function lhe(e,t,n){return LC(e.g,n,t)}function uhe(e,t){aC(t),KC(e).Ic(new h)}function dhe(){yF(),this.a=new NL(RCt)}function Wv(e){this.b=e,this.a=new Od}function fhe(e){this.b=new tee,this.a=e}function phe(e){Kve.call(this),this.a=e}function mhe(e){kOe.call(this),this.b=e}function hhe(){ag.call(this,`Range`,2)}function Gv(e){e.j=H(txt,vB,325,0,0,1)}function ghe(e){e.a=new pe,e.c=new pe}function _he(e){e.a=new kd,e.e=new kd}function vhe(e){bT(e,null),xT(e,null)}function yhe(e,t,n){return Oct(e,t,n),n}function bhe(e,t){return hT(),t.n.b+=e}function Kv(e,t,n){return mJe(t,n,e.c)}function xhe(e,t,n){return LC(e.k,n,t)}function She(e,t){return LC(e.a,t.a,t)}function Che(e,t){return Mct(e.a,t,null)}function whe(e,t){return P(pC(e.i,t))}function The(e,t){return P(pC(e.j,t))}function qv(e,t){return vst(e.c,e.b,t)}function Ehe(e){return new j(e.c,e.d)}function Dhe(e){return new j(e.c,e.d)}function Jv(e){return new j(e.a,e.b)}function N(e,t){return e!=null&&_P(e,t)}function Yv(e,t){return oUe(e.Jc(),t)!=-1}function Xv(e){return e.Ob()?e.Pb():null}function Ohe(e,t){return new wge(e.Jc(),t)}function khe(e,t){e.q.setHours(t),LR(e,t)}function Ahe(e,t,n){e.c._c(t,F(n,136))}function jhe(e,t,n){e.c.Si(t,F(n,136))}function Mhe(e,t){uz(e),e.Fc(F(t,16))}function Nhe(e,t){return e.a.Ac(t)!=null}function Phe(e){return MN(e,0,e.length)}function Fhe(){jy.call(this,null,null)}function Ihe(){My.call(this,null,null)}function Lhe(){rh.call(this,`INSTANCE`,0)}function Rhe(e){this.a=(fw(),new mm(e))}function zhe(e){this.b=(fw(),new Vl(e))}function Bhe(e){this.a=e,kd.call(this)}function Zv(){this.a=H(hJ,iB,1,8,5,1)}function Vhe(e,t,n,r){fC(e.a[t.g],n.g,r)}function Qv(e,t,n){return e.a[t.g][n.g]}function $v(e,t){return e.a[t.c.p][t.p]}function Hhe(e,t){return e.c[t.c.p][t.p]}function Uhe(e,t){return e.e[t.c.p][t.p]}function Whe(e,t){return e.j[t.p]=h7e(t)}function Ghe(e,t){return SFe(e.f,t.Og())}function Khe(e,t){return k(P(t.a))<=e}function qhe(e,t){return k(P(t.a))>=e}function ey(e,t){return e.a.Ac(t)!=null}function Jhe(e,t){return e.a0?t*t/e:t*t*100}function T_e(e,t){return e>0?t/(e*e):t*100}function E_e(e,t){return e.a=t.a,e.b=t.b,e}function Xy(e){return e.a=-e.a,e.b=-e.b,e}function D_e(e,t,n){return e.a-=t,e.b-=n,e}function Zy(e,t,n){return e.a+=t,e.b+=n,e}function O_e(e,t,n){ED(),e.nf(t)&&n.Ad(e)}function k_e(e){this.c=e,qO(e,0),JO(e,0)}function A_e(e){ph.call(this),fk(this,e)}function j_e(){rh.call(this,`GROW_TREE`,0)}function Qy(e,t,n){yD.call(this,e,t,n,2)}function M_e(e,t){Wh(),jy.call(this,e,t)}function N_e(e,t){Gh(),My.call(this,e,t)}function P_e(e,t){Gh(),My.call(this,e,t)}function F_e(e,t){Gh(),N_e.call(this,e,t)}function I_e(e,t){return e.c.Ec(F(t,136))}function L_e(e,t){return F(pC(e.e,t),26)}function R_e(e,t){return F(pC(e.e,t),26)}function z_e(e,t,n){fM(qD(e.a),t,mAe(n))}function B_e(e,t,n){fM(bE(e.a),t,pAe(n))}function $y(e,t){Fv(),zx.call(this,e,t)}function V_e(e,t){Fv(),zx.call(this,e,t)}function H_e(e,t){Fv(),zx.call(this,e,t)}function U_e(e,t){Fv(),$y.call(this,e,t)}function W_e(e,t){Fv(),$y.call(this,e,t)}function G_e(e,t){Fv(),W_e.call(this,e,t)}function K_e(e,t){Fv(),V_e.call(this,e,t)}function q_e(e,t,n){return rz(WD(e,t),n)}function J_e(e,t,n){return t.xl(e.e,e.c,n)}function Y_e(e,t,n){return t.yl(e.e,e.c,n)}function eb(e,t){return Qj(e.e,F(t,52))}function X_e(e,t){return MC(e),e+Pb(t)}function Z_e(e){return e==null?null:XM(e)}function Q_e(e){return e==null?null:XM(e)}function $_e(e){return e==null?null:Flt(e)}function eve(e){return e==null?null:z2e(e)}function tb(e){e.o??S5e(e)}function nb(e){return mx(e==null||L_(e)),e}function P(e){return mx(e==null||R_(e)),e}function rb(e){return mx(e==null||z_(e)),e}function ib(e){N(e,161)&&F(e,161).mi()}function tve(){aBe.call(this),this.Bb|=jV}function nve(e,t){this.d=e,_l(this),this.b=t}function ab(e,t){this.c=e,$m.call(this,e,t)}function ob(e,t){this.a=e,ab.call(this,e,t)}function rve(e,t,n){iD.call(this,e,t,n,null)}function ive(e,t,n){iD.call(this,e,t,n,null)}function ave(e,t){dD.call(this,e),this.a=t}function ove(e,t){dD.call(this,e),this.a=t}function sve(e,t){return RP(e,t),new XEe(e,t)}function cve(e,t,n){return e.Le(t,n)<=0?n:t}function lve(e,t,n){return e.Le(t,n)<=0?t:n}function uve(e){return MC(e),e?1231:1237}function dve(e,t){t.a?v8e(e,t):ey(e.a,t.b)}function fve(e,t){mY||ry(e.a,t)}function pve(e,t){return kh(),mA(t.d.i,e)}function mve(e,t){return Ik(),new Ent(t,e)}function hve(e,t){return F(oO(e.b,t),144)}function gve(e,t){return F(oO(e.c,t),233)}function sb(e){return F(kx(e.a,e.b),295)}function _ve(e){return new j(e.c,e.d+e.a)}function vve(e){return hT(),Eme(F(e,203))}function yve(e,t){return F(pC(e.b,t),278)}function cb(e,t){return Nw(t,$ft),e.f=t,e}function bve(e,t,n){return n=bR(e,t,3,n),n}function xve(e,t,n){return n=bR(e,t,6,n),n}function Sve(e,t,n){return n=bR(e,t,9,n),n}function lb(e,t,n){++e.j,e.rj(),cD(e,t,n)}function Cve(e,t,n){++e.j,e.oj(t,e.Xi(t,n))}function wve(e,t,n){e.dd(t).Rb(n)}function Tve(e,t){this.c=e,TO.call(this,t)}function Eve(e,t){this.a=e,yd.call(this,t)}function ub(e,t){this.a=e,yd.call(this,t)}function Dve(e){this.q=new r.Date(ZT(e))}function Ove(){this.a=new Bw,this.b=new Bw}function db(){db=C,T7=new Gse,new Kse}function fb(){fb=C,y4=new fd(`root`)}function pb(){pb=C,ASt=WM((EN(),O5))}function mb(e){e.b?mb(e.b):e.f.c.yc(e.e,e.d)}function hb(e){this.a=(fw(),new Ol(aC(e)))}function kve(e){this.a=(_k(e,FB),new pD(e))}function Ave(e){this.a=(_k(e,FB),new pD(e))}function jve(e){return e==null?null:e.message}function gb(e){return String.fromCharCode(e)}function Mve(e){return Wx(pS(e,32))^Wx(e)}function Nve(e,t){return(t&$z)%e.d.length}function Pve(e,t,n){return Kat(e.c,e.b,t,n)}function Fve(e,t,n){return e.apply(t,n)}function Ive(e,t,n){return IS(e,F(t,24),n)}function Lve(e,t,n){return e.a+=MN(t,0,n),e}function Rve(e,t){var n=e.e;return e.e=t,n}function zve(e,t){var n=t;return!!e.De(n)}function Bve(e,t){e[wft].call(e,t)}function Vve(e,t){e[wft].call(e,t)}function _b(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function Hve(e){BS(e.e),e.d.b=e.d,e.d.a=e.d}function Uve(e,t,n){bh(),zie(e,t.Te(e.a,n))}function vb(e,t){return by(),e==t?0:e?1:-1}function yb(e,t){return gm(Array(t),e)}function bb(e,t){fd.call(this,e),this.a=t}function Wve(e,t){bd.call(this,e),this.a=t}function xb(e,t){bd.call(this,e),this.a=t}function Gve(){Sb.call(this),this.a=new Nm}function Kve(){this.n=new Nm,this.o=new Nm}function qve(){this.b=new Nm,this.c=new Od}function Jve(){this.a=new Od,this.b=new Od}function Yve(){this.a=new it,this.b=new tf}function Xve(){this.b=new CE,this.a=new CE}function Zve(){this.b=new df,this.a=new df}function Qve(){this.a=new Od,this.d=new Od}function $ve(){this.b=new kd,this.a=new kd}function eye(){this.b=new Hle,this.a=new Hte}function tye(){this.a=new eie,this.b=new Hr}function Sb(){this.n=new Lf,this.i=new hv}function Cb(e){return!e.a&&(e.a=new te),e.a}function wb(e,t){return e.a+=t.a,e.b+=t.b,e}function Tb(e,t){return e.a-=t.a,e.b-=t.b,e}function nye(e){return rf(e.j.c,0),e.a=-1,e}function rye(e,t,n){return n=bR(e,t,11,n),n}function iye(e,t,n){n!=null&&Sk(t,UP(e,n))}function aye(e,t,n){n!=null&&Ck(t,UP(e,n))}function Eb(e,t,n,r){I.call(this,e,t,n,r)}function oye(e,t,n,r){Nx.call(this,e,t,n,r)}function sye(e,t,n,r){I.call(this,e,t,n,r)}function cye(e,t,n,r){sye.call(this,e,t,n,r)}function lye(e,t,n,r){TS.call(this,e,t,n,r)}function uye(e,t,n,r){TS.call(this,e,t,n,r)}function dye(e,t,n,r){uye.call(this,e,t,n,r)}function fye(e,t,n,r){TS.call(this,e,t,n,r)}function Db(e,t,n,r){fye.call(this,e,t,n,r)}function pye(e,t,n,r){uye.call(this,e,t,n,r)}function mye(e,t,n,r){pye.call(this,e,t,n,r)}function hye(e,t,n,r){gTe.call(this,e,t,n,r)}function Ob(e,t){Fp.call(this,fq+e+QK+t)}function gye(e,t){yv(e.f)?f5e(e,t):a0e(e,t)}function _ye(e,t){return e.hk().ti().oi(e,t)}function vye(e,t){return e.hk().ti().qi(e,t)}function yye(e,t){return e.n.a=(MC(t),t+10)}function bye(e,t){return e.n.a=(MC(t),t+10)}function xye(e,t){return e.e=F(e.d.Kb(t),162)}function Sye(e,t){return t==e||xF(yL(t),e)}function Cye(e,t,n){return e.lastIndexOf(t,n)}function kb(e,t){return MC(e),M(e)===M(t)}function wye(e,t){return MC(e),M(e)===M(t)}function Tye(e,t){return LC(e.a,t,``)==null}function Eye(e,t){return e.b.zd(new Nde(e,t))}function Dye(e,t){return e.b.zd(new Pde(e,t))}function Oye(e,t){return e.b.zd(new Fde(e,t))}function kye(e,t){return G(t,(zz(),a1),e)}function Aye(e,t,n){return mM(e[t.a],e[n.a])}function jye(e,t){return Hv(e.a.d.p,t.a.d.p)}function Mye(e,t){return Hv(t.a.d.p,e.a.d.p)}function Nye(e,t){return kh(),!mA(t.d.i,e)}function Pye(e,t){mY||t&&(e.d=t)}function Fye(e,t){RSe.call(this,e,e.length,t)}function Iye(e){this.c=e,$_.call(this,CB,0)}function Lye(e,t,n){this.a=e,a_e.call(this,t,n)}function Rye(e,t){this.c=e,qS.call(this,e,t)}function zye(e,t,n){this.c=t,this.b=n,this.a=e}function Ab(e){cx(),this.d=e,this.a=new Zv}function Bye(e){return e<100?null:new Fm(e)}function Vye(e){return e.c?VD(e.c.a,e,0):-1}function Hye(e,t){return mM(e.c.e.a,t.c.e.a)}function Uye(e,t){return mM(e.b.e.a,t.b.e.a)}function Wye(e,t){return mM(e.c-e.s,t.c-t.s)}function Gye(e,t,n){return F(e.c,72).Uk(t,n)}function jb(e,t,n){return F(e.c,72).Vk(t,n)}function Kye(e,t,n){return J_e(e,F(t,344),n)}function qye(e,t,n){return Y_e(e,F(t,344),n)}function Jye(e,t,n){return x1e(e,F(t,344),n)}function Yye(e,t,n){return C0e(e,F(t,344),n)}function Xye(e,t){return N(t,16)&&Stt(e.c,t)}function Mb(e,t){return t==null?null:Wj(e.b,t)}function Nb(e){return e==H8||e==W8||e==U8}function Pb(e){return R_(e)?(MC(e),e):e.se()}function Fb(e){return!isNaN(e)&&!isFinite(e)}function Ib(e){ghe(this),hw(this),Gk(this,e)}function Lb(e){Av(this),BSe(this.c,0,e.Nc())}function Rb(e,t,n){this.a=e,this.b=t,this.c=n}function Zye(e,t,n){this.a=e,this.b=t,this.c=n}function Qye(e,t,n){this.d=e,this.b=n,this.a=t}function $ye(e){this.a=e,gh(),gA(Date.now())}function zb(e){if(!e)throw O(new Up(Wdt))}function ebe(e,t){if(!e)throw O(new Hp(t))}function Bb(e,t){if(e!=t)throw O(new Kd)}function Vb(){Vb=C,wxt=new me,Txt=new he}function Hb(e){var t=new Ge;return t.e=e,t}function tbe(e,t){return t.ni(e.a)}function nbe(e,t,n){return bh(),e.a.Wd(t,n),t}function rbe(e){kC(e.a),kIe(e.c,e.b),e.b=null}function ibe(e){return Gz(),ak((Jpe(),kSt),e)}function abe(e){return lO(),ak((JFe(),oSt),e)}function obe(e){return jD(),ak((qFe(),rSt),e)}function sbe(e){return MD(),ak((xLe(),Nxt),e)}function cbe(e){return kj(),ak((XFe(),Uxt),e)}function lbe(e){return MO(),ak((YFe(),tSt),e)}function ube(e){return MA(),ak((wLe(),MSt),e)}function dbe(e){return hO(),ak((bPe(),qSt),e)}function fbe(e){return JD(),ak((ZFe(),PCt),e)}function pbe(e){return $F(),ak((ARe(),zCt),e)}function mbe(e){return JA(),ak((TLe(),GCt),e)}function hbe(e){return HN(),ak((CLe(),ewt),e)}function gbe(e){return pL(),ak((ZVe(),awt),e)}function _be(e){Nx.call(this,e.d,e.c,e.a,e.b)}function Ub(e){Nx.call(this,e.d,e.c,e.a,e.b)}function vbe(e,t,n){this.b=e,this.c=t,this.a=n}function Wb(e,t,n){this.b=e,this.a=t,this.c=n}function ybe(e,t,n){this.a=e,this.b=t,this.c=n}function bbe(e,t,n){this.a=e,this.b=t,this.c=n}function xbe(e,t,n){this.a=e,this.b=t,this.c=n}function Sbe(e,t,n){this.b=e,this.a=t,this.c=n}function Gb(e,t,n){this.e=t,this.b=e,this.d=n}function Cbe(e){var t=new Tf;return t.b=e,t}function Kb(){Kb=C,PX=new vee,FX=new fn}function qb(){qb=C,sTt=new Rn,oTt=new zn}function Jb(){Jb=C,hTt=new wr,gTt=new Tr}function wbe(){wbe=C,mBt=H(hJ,iB,1,0,5,1)}function Tbe(){Tbe=C,HBt=H(hJ,iB,1,0,5,1)}function Ebe(){Ebe=C,UBt=H(hJ,iB,1,0,5,1)}function Dbe(e){return Nk(),ak((xPe(),_wt),e)}function Obe(e){return Uz(),ak((Ype(),tTt),e)}function kbe(e){return qA(),ak((SLe(),aTt),e)}function Abe(e){return jA(),ak((kLe(),yTt),e)}function jbe(e){return FF(),ak((MRe(),xTt),e)}function Mbe(e){return aD(),ak((aPe(),MTt),e)}function Nbe(e){return CI(),ak((jze(),kTt),e)}function Pbe(e){return rN(),ak((ELe(),ITt),e)}function Fbe(e){return lk(),ak((fIe(),zTt),e)}function Ibe(e){return mL(),ak((AHe(),HTt),e)}function Lbe(e){return gO(),ak((oPe(),GTt),e)}function Rbe(e){return XA(),ak((pIe(),qTt),e)}function zbe(e){return Fk(),ak((tIe(),ETt),e)}function Bbe(e){return TF(),ak((Nze(),iEt),e)}function Vbe(e){return cI(),ak((Mze(),YTt),e)}function Hbe(e){return ND(),ak((iPe(),QTt),e)}function Ube(e){return aI(),ak((Pze(),dEt),e)}function Wbe(e){return WL(),ak((fUe(),fEt),e)}function Gbe(e){return kA(),ak((QFe(),pEt),e)}function Kbe(e){return YA(),ak(($Fe(),hEt),e)}function qbe(e){return uO(),ak((eIe(),_Et),e)}function Jbe(e){return pE(),ak((sPe(),bEt),e)}function Ybe(e){return YL(),ak((QVe(),OTt),e)}function Xbe(e){return nN(),ak((IRe(),FEt),e)}function Zbe(e){return kE(),ak((cPe(),LEt),e)}function Qbe(e){return kL(),ak((jHe(),tjt),e)}function $be(e){return Jj(),ak((oIe(),ijt),e)}function exe(e){return yP(),ak((DLe(),ajt),e)}function txe(e){return dP(),ak((jRe(),sjt),e)}function nxe(e){return oR(),ak((dUe(),pjt),e)}function rxe(e){return NN(),ak((OLe(),gjt),e)}function ixe(e){return YD(),ak((lPe(),vjt),e)}function axe(e){return uk(),ak((iIe(),bjt),e)}function oxe(e){return OA(),ak((rIe(),wjt),e)}function sxe(e){return Oj(),ak((nIe(),Ejt),e)}function cxe(e){return Mj(),ak((aIe(),kjt),e)}function lxe(e){return ck(),ak((sIe(),Njt),e)}function uxe(e){return PA(),ak((cIe(),Fjt),e)}function dxe(e){return qj(),ak((ALe(),nMt),e)}function fxe(e){return mE(),ak((uPe(),lMt),e)}function pxe(e){return Hw(),ak((dPe(),vMt),e)}function mxe(e){return nT(),ak((fPe(),bMt),e)}function hxe(e){return $E(),ak((pPe(),IMt),e)}function gxe(e){return Vw(),ak((mPe(),UMt),e)}function _xe(e){return oF(),ak((NLe(),GMt),e)}function vxe(e){return lR(),ak((qpe(),iNt),e)}function yxe(e){return mj(),ak((lIe(),sNt),e)}function bxe(e){return jj(),ak((MLe(),XNt),e)}function xxe(e){return zT(),ak((hPe(),$Nt),e)}function Sxe(e){return Pk(),ak((gPe(),aPt),e)}function Cxe(e){return RF(),ak((NRe(),sPt),e)}function wxe(e){return Dj(),ak((uIe(),mPt),e)}function Txe(e){return DD(),ak((_Pe(),uPt),e)}function Exe(e){return HP(),ak((jLe(),YPt),e)}function Dxe(e){return AA(),ak((hIe(),$Pt),e)}function Oxe(e){return TN(),ak((mIe(),tFt),e)}function kxe(e){return YF(),ak((PLe(),rFt),e)}function Axe(e){return GM(),ak((dIe(),lFt),e)}function jxe(e){return PE(),ak((vPe(),YFt),e)}function Mxe(e){return PD(),ak((_Ie(),$Ft),e)}function Nxe(e){return vM(),ak((gIe(),rIt),e)}function Pxe(e){return Ih(),ak((IMe(),dIt),e)}function Fxe(e){return _M(),ak((vIe(),sIt),e)}function Ixe(e){return Fh(),ak((FMe(),lIt),e)}function Lxe(e){return eD(),ak((yPe(),pIt),e)}function Rxe(e){return dI(),ak((FRe(),vIt),e)}function zxe(e){return wL(),ak((PRe(),oIt),e)}function Bxe(e){return Lh(),ak((LMe(),XIt),e)}function Vxe(e){return FA(),ak((SPe(),$It),e)}function Hxe(e){return eP(),ak((LRe(),lLt),e)}function Uxe(e){return yI(),ak((YVe(),fLt),e)}function Wxe(e){return bP(),ak((Fze(),gLt),e)}function Gxe(e){return MF(),ak((Rze(),OLt),e)}function Kxe(e){return hM(),ak((RRe(),IRt),e)}function qxe(e){return Yj(),ak((FLe(),BRt),e)}function Jxe(e){return NO(),ak((yIe(),HRt),e)}function Yxe(e){return yM(),ak((ILe(),URt),e)}function Xxe(e){return XF(),ak((zze(),XRt),e)}function Zxe(e){return Ej(),ak((bIe(),izt),e)}function Qxe(e){return sF(),ak((LLe(),szt),e)}function $xe(e){return iL(),ak((OHe(),czt),e)}function eSe(e){return tP(),ak((BRe(),dzt),e)}function tSe(e){return LF(),ak((Ize(),pzt),e)}function nSe(e){return II(),ak((Lze(),mzt),e)}function rSe(e){return Dz(),ak((zRe(),hzt),e)}function iSe(e){return BO(),ak((xIe(),Czt),e)}function aSe(e){return EN(),ak((zLe(),wzt),e)}function oSe(e){return hR(),ak((kHe(),Ezt),e)}function sSe(e){return gM(),ak((SIe(),kzt),e)}function cSe(e){return OE(),ak((RLe(),Nzt),e)}function lSe(e){return iN(),ak((BLe(),Rzt),e)}function uSe(e){return Aj(),ak((VLe(),Wzt),e)}function dSe(e,t){return MC(e),e+(MC(t),t)}function Yb(e,t){this.c=e,this.a=t,this.b=t-e}function fSe(e,t,n){this.a=e,this.c=t,this.b=n}function pSe(e,t,n){this.a=e,this.c=t,this.b=n}function mSe(e,t,n){this.a=e,this.b=t,this.c=n}function hSe(e,t,n){this.a=e,this.b=t,this.c=n}function gSe(e,t,n){this.a=e,this.b=t,this.c=n}function Xb(e,t,n){this.a=e,this.b=t,this.c=n}function _Se(e,t,n){this.a=e,this.b=t,this.c=n}function vSe(e,t,n){this.a=e,this.b=t,this.c=n}function Zb(e,t,n){this.e=e,this.a=t,this.c=n}function ySe(e,t,n){Fv(),lke.call(this,e,t,n)}function Qb(e,t,n){Fv(),yEe.call(this,e,t,n)}function bSe(e,t,n){Fv(),yEe.call(this,e,t,n)}function xSe(e,t,n){Fv(),yEe.call(this,e,t,n)}function SSe(e,t,n){Fv(),Qb.call(this,e,t,n)}function CSe(e,t,n){Fv(),Qb.call(this,e,t,n)}function wSe(e,t,n){Fv(),CSe.call(this,e,t,n)}function TSe(e,t,n){Fv(),bSe.call(this,e,t,n)}function ESe(e,t,n){Fv(),xSe.call(this,e,t,n)}function DSe(e){return nL(),ak((XVe(),lBt),e)}function $b(e,t){return aC(e),aC(t),new cue(e,t)}function ex(e,t){return aC(e),aC(t),new mCe(e,t)}function OSe(e,t){return aC(e),aC(t),new hCe(e,t)}function kSe(e,t){return aC(e),aC(t),new yue(e,t)}function ASe(e,t){Tue.call(this,e,FM(new Yp(t)))}function jSe(e,t){this.c=e,this.b=t,this.a=!1}function MSe(e){this.d=e,_l(this),this.b=zwe(e.d)}function NSe(e,t,n){this.c=e,rg.call(this,t,n)}function PSe(e){return!e.c&&(e.c=new No),e.c}function FSe(e){return!e.e&&(e.e=new Od),e.e}function tx(e){var t=new Od;return aO(t,e),t}function ISe(e){var t=new df;return aO(t,e),t}function LSe(e){var t=new _f;return Rk(t,e),t}function nx(e){var t=new ph;return Rk(t,e),t}function F(e,t){return mx(e==null||_P(e,t)),e}function RSe(e,t,n){uTe.call(this,t,n),this.a=e}function zSe(e,t,n){this.b=e,Hpe.call(this,t,n)}function BSe(e,t,n){V6e(n,0,e,t,n.length,!1)}function rx(e,t){if(!e)throw O(new Hp(t))}function ix(e,t){if(!e)throw O(new Up(t))}function VSe(e,t){if(!e)throw O(new Ip(t))}function HSe(e,t){t&&(e.b=t,e.a=(DC(t),t.a))}function ax(e,t,n,r,i){e.b=t,e.c=n,e.d=r,e.a=i}function USe(e,t,n,r,i){e.d=t,e.c=n,e.a=r,e.b=i}function WSe(e){var t,n=e.d;t=e.a,e.d=t,e.a=n}function GSe(e){var t=e.b;e.b=e.c,e.c=t}function KSe(e){return Ky(e.b!=0),DO(e,e.c.b)}function ox(e){return Ky(e.b!=0),DO(e,e.a.a)}function qSe(e,t){return FO(),mM(e.e.a,t.e.a)}function JSe(e,t){return FO(),mM(e.e.b,t.e.b)}function YSe(e,t){return Ph(),Hv(e.d.p,t.d.p)}function XSe(e,t){return Hv(wCe(e.d),wCe(t.d))}function sx(e,t){return t&&wC(e,t.d)?t:null}function ZSe(e,t){return t==(Dz(),x5)?e.c:e.d}function cx(){cx=C,aMt=(Dz(),x5),v2=t5}function QSe(){this.b=k(P(iP((CR(),qY))))}function $Se(){this.a=`;,;`,this.b=``,this.c=``}function eCe(e,t,n){mg.call(this,e,t),this.b=n}function lx(e,t,n){Cpe.call(this,e,t),this.c=n}function tCe(e){Ebe(),vo.call(this),this._h(e)}function nCe(e,t,n){this.a=e,av.call(this,t,n)}function rCe(e,t,n){this.a=e,av.call(this,t,n)}function ux(e,t,n){Cpe.call(this,e,t),this.c=n}function iCe(){QE(),SEe.call(this,(Hh(),V7))}function aCe(e){return Wz(),++W9,new Rx(0,e)}function oCe(){oCe=C,hVt=(fw(),new Ol(Nyt))}function sCe(e){return new j(e.c+e.b,e.d+e.a)}function cCe(e){return e!=null&&!eN(e,D7,O7)}function lCe(e,t){return(aKe(e)<<4|aKe(t))&JB}function uCe(e,t){var n=e.c;return jBe(e,t),n}function dCe(e,t){return e.g=t<0?-1:t,e}function dx(e,t){return vze(e),e.a*=t,e.b*=t,e}function fCe(e,t,n,r,i){e.c=t,e.d=n,e.b=r,e.a=i}function fx(e,t){return DE(e,t,e.c.b,e.c),!0}function pCe(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function px(e){this.b=e,this.a=oS(this.b.a).Md()}function mCe(e,t){this.b=e,this.a=t,Ys.call(this)}function hCe(e,t){this.a=e,this.b=t,Ys.call(this)}function gCe(e,t){uTe.call(this,t,1040),this.a=e}function _Ce(e){a_e.call(this,e.length,0),this.a=e}function mx(e){if(!e)throw O(new Vp(null))}function hx(e){return AD(e.slice(),e)}function gx(e){var t=e.n;return e.a.b+t.d+t.a}function vCe(e){var t=e.n;return e.e.b+t.d+t.a}function yCe(e){var t=e.n;return e.e.a+t.b+t.c}function bCe(e){return e.a?e.a:cw(e)}function _x(e,t){return _F(e,new mg(t.a,t.b))}function xCe(e){return!IE(e)&&e.c.i.c==e.d.i.c}function SCe(e,t){return e.c=t)throw O(new Nf)}function tTe(e,t,n){e.a.Mb(n)&&(e.b=!0,t.Ad(n))}function nTe(e){e.d||(e.d=e.b.Jc(),e.c=e.b.gc())}function rTe(e){return e.e?NFe(e.e):null}function iTe(e,t,n){return jdt(e,F(t,12),F(n,12))}function aTe(e,t,n){t.of(n,k(P(pC(e.b,n)))*e.a)}function oTe(e,t,n){return GL(),iA(e,t)&&iA(e,n)}function sTe(e,t){t.Tg(`General 'Rotator`,1),glt(e)}function yS(e,t,n,r){var i=e.i;i.i=t,i.a=n,i.b=r}function cTe(e){for(var t=e;t.f;)t=t.f;return t}function lTe(e,t){this.e=e,this.d=t&64?t|yB:t}function uTe(e,t){this.c=0,this.d=e,this.b=t|64|yB}function bS(e){this.b=new pD(11),this.a=(pw(),e)}function xS(e){this.b=null,this.a=(pw(),e||hxt)}function dTe(e){this.a=lXe(e.a),this.b=new Lb(e.b)}function fTe(e){this.b=e,Ny.call(this,e),pge(this)}function pTe(e){this.b=e,Fy.call(this,e),mge(this)}function SS(e,t,n){this.a=e,Eb.call(this,t,n,5,6)}function CS(e,t,n,r,i){bD.call(this,e,t,n,r,i,-1)}function wS(e,t,n,r,i){xD.call(this,e,t,n,r,i,-1)}function I(e,t,n,r){oy.call(this,e,t,n),this.b=r}function TS(e,t,n,r){lx.call(this,e,t,n),this.b=r}function mTe(e){_pe.call(this,e,!1),this.a=!1}function hTe(){A_.call(this,`LAYOUT_NEXT_LEVEL`,3)}function gTe(e,t,n,r){this.b=e,oy.call(this,t,n,r)}function _Te(e,t){this.b=e,jc.call(this,e.b),this.a=t}function ES(e,t){var n=e.a.gc();return bFe(t,n),n-t}function DS(e,t){return t.Sh()?Qj(e.b,F(t,52)):t}function vTe(e,t){return kb(e.substr(0,t.length),t)}function OS(e){return new uS(new bge(e.a.length,e.a))}function kS(e){return new j(e.c+e.b/2,e.d+e.a/2)}function yTe(e){return Uv(~e.l&vV,~e.m&vV,~e.h&yV)}function AS(e){return typeof e===Yz||typeof e===Qz}function jS(e,t){return z_(t)?ww(e,t):!!Yx(e.f,t)}function MS(e,t){return Wz(),++W9,new wEe(e,t,0)}function NS(e,t){return Wz(),++W9,new wEe(6,e,t)}function PS(e,t){for(MC(t);e.Ob();)t.Ad(e.Pb())}function FS(e,t,n){iR(),this.e=e,this.d=t,this.a=n}function L(e,t,n,r){jWe(t,n,e.length),xTe(e,t,n,r)}function IS(e,t,n){return Dk(e.a,t),MCe(e.b,t.g,n)}function LS(e,t){return e.a.yc(t,e)==null}function bTe(e,t){for(var n=0;n0?r.Math.log(e/t):-100}function zS(e){return new Mx(null,PTe(e,e.length))}function BS(e){e.f=new Sme(e),e.i=new Cme(e),++e.g}function TTe(e){if(!e)throw O(new Qd);return e.d}function ETe(e,t){if(e==null)throw O(new Wp(t))}function DTe(e,t){return t?Gk(e,t):!1}function VS(e){return II(),!e.Gc(X8)&&!e.Gc(Q8)}function HS(e){Gy(e.b!=-1),KE(e.c,e.a=e.b),e.b=-1}function US(e,t,n){return AWe(e,t.g,n),Dk(e.c,t),e}function OTe(e,t,n){xlt(e.a,e.b,e.d,e.c,F(t,170),n)}function WS(e,t){Mhe(e,N(t,163)?t:F(t,2001).Pl())}function kTe(e){return Cz(e,(hM(),i8)),e.d=!0,e}function GS(e){return!e.j&&lae(e,Qnt(e.g,e.b)),e.j}function KS(e){var t=rj(e);return Ky(t!=null),t}function ATe(e){var t=pKe(e);return Ky(t!=null),t}function jTe(e,t,n){var r=pO(e,t);return HNe(e,t,n),r}function qS(e,t){this.d=e,uy.call(this,e),this.e=t}function MTe(e,t){Ed.call(this,1),this.a=e,this.b=t}function NTe(e,t){return Gj(e,t)<0?-1:+(Gj(e,t)>0)}function PTe(e,t){return lze(t,e.length),new gCe(e,t)}function JS(e){return e.e==0?e:new FS(-e.e,e.d,e.a)}function FTe(e){return e==DV?eJ:e==OV?`-INF`:``+e}function ITe(e){return e==DV?eJ:e==OV?`-INF`:``+e}function LTe(e,t){return mM(e.c.c+e.c.b,t.c.c+t.c.b)}function YS(e,t){DE(e.d,t,e.b.b,e.b),++e.a,e.c=null}function RTe(e,t){return e.c?RTe(e.c,t):ry(e.b,t),e}function XS(e,t){xh(QC(e.Mc(),new nte),new Pu(t))}function ZS(e,t,n,r,i){HF(e,F(VE(t.k,n),16),n,r,i)}function zTe(e,t,n,r,i){for(;t=e.g}function gC(e,t,n){return snt(e,eVe(e,t,n))}function _C(e,t){var n=e.a.length;pO(e,n),HNe(e,n,t)}function _Ee(e,t){var n;++e.j,n=e.Cj(),e.pj(e.Xi(n,t))}function vEe(e,t,n){F(t.b,68),kO(t.a,new hSe(e,n,t))}function yEe(e,t,n){xd.call(this,t),this.a=e,this.b=n}function bEe(e,t,n){this.a=e,bd.call(this,t),this.b=n}function xEe(e,t,n){this.a=e,TMe.call(this,8,t,null,n)}function SEe(e){this.a=(MC(Oq),Oq),this.b=e,new Yf}function CEe(e){this.c=e,this.a=new ph,this.b=new ph}function wEe(e,t,n){Ed.call(this,e),this.a=t,this.b=n}function vC(e){if(e==null)throw O(new Xd);this.a=e}function TEe(e){return!e.a&&(e.a=new oy(G5,e,4)),e.a}function yC(e){return!e.d&&(e.d=new oy(z7,e,1)),e.d}function bC(e,t){return e.a+=String.fromCharCode(t),e}function xC(e,t){return e.a+=String.fromCharCode(t),e}function SC(e){if(e==null)throw O(new Xd);return e}function EEe(e){return z9?ww(z9,e):!1}function DEe(e){return e?e.dc():!e.Jc().Ob()}function OEe(e){return SC(e),N(e,472)?F(e,472):XM(e)}function kEe(e){return N(e,103)&&(F(e,19).Bb&xK)!=0}function CC(e){return r.Math.sqrt(e.a*e.a+e.b*e.b)}function wC(e,t){return rF(e.c,e.f,t,e.b,e.a,e.e,e.d)}function TC(e,t){return vS(t,e.a.c.length),kx(e.a,t)}function EC(e,t){return M(e)===M(t)||e!=null&&aM(e,t)}function AEe(e,t){Zx(F(t.b,68),e),kO(t.a,new au(e))}function DC(e){e.c?DC(e.c):(AM(e),e.d=!0)}function OC(e){e.c?e.c.Ye():(e.d=!0,u9e(e))}function jEe(e){bDe(e.a),e.b=H(hJ,iB,1,e.b.length,5,1)}function kC(e){Gy(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function MEe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function NEe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function AC(){op.call(this),rf(this.j.c,0),this.a=-1}function PEe(){rh.call(this,`DELAUNAY_TRIANGULATION`,0)}function FEe(e,t){var n=e.Fh(t);n>=0?e.hi(n):V3e(e,t)}function IEe(e){return e.c.i.c==e.d.i.c}function jC(e){return!e.a&&e.c?e.c.b:e.a}function LEe(e){return 0>=e?new Vue:RBe(e-1)}function MC(e){if(e==null)throw O(new Xd);return e}function REe(e){if(e.p!=6)throw O(new Yd);return e.f}function zEe(e){if(e.p!=6)throw O(new Yd);return e.k}function BEe(e){if(e.p!=3)throw O(new Yd);return e.e}function VEe(e){if(e.p!=4)throw O(new Yd);return e.e}function HEe(e){if(e.p!=4)throw O(new Yd);return e.j}function UEe(e){if(e.p!=3)throw O(new Yd);return e.j}function WEe(e){return!e.b&&(e.b=new _d(new Zf)),e.b}function NC(e){return e.c==-2&&ml(e,k0e(e.g,e.b)),e.c}function PC(e,t){var n=iC(``,e);return n.n=t,n.i=1,n}function FC(e,t,n,r){eh.call(this,e,n),this.a=t,this.f=r}function GEe(e,t,n,r){eh.call(this,e,t),this.d=n,this.a=r}function KEe(e,t){this.b=e,qS.call(this,e,t),pge(this)}function qEe(e,t){this.b=e,Rye.call(this,e,t),mge(this)}function JEe(){z0e.call(this,Iq,(Lm(),NBt)),yot(this)}function YEe(){z0e.call(this,Yq,(vle(),bVt)),Cst(this)}function XEe(e,t){zhe.call(this,zBe(aC(e),aC(t))),this.a=t}function ZEe(e,t){e.c<0||e.b.b0;)e=e<<1|e<0;return e}function dDe(e,t){e.u.Gc((II(),X8))&&c6e(e,t),UFe(e,t)}function fDe(e,t){RKe(e,k(nk(t,`x`)),k(nk(t,`y`)))}function pDe(e,t){RKe(e,k(nk(t,`x`)),k(nk(t,`y`)))}function mDe(){return Lh(),W(A(YIt,1),Z,528,0,[A3])}function hDe(){return Ih(),W(A(uIt,1),Z,547,0,[x3])}function gDe(){return Fh(),W(A(cIt,1),Z,477,0,[b3])}function GC(){GC=C,kbt=new Tde(W(A(bJ,1),DB,45,0,[]))}function _De(e){return e!=null&&ch(k7,e.toLowerCase())}function vDe(e,t){return new mOe(F(aC(e),51),F(aC(t),51))}function yDe(e,t,n){var r=F(e.d.Kb(n),162);r&&r.Nb(t)}function bDe(e){for(var t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function KC(e){var t=e.b;return!t&&(e.b=t=new Cie(e)),t}function qC(e){return e.e==Xq&&oae(e,iYe(e.g,e.b)),e.e}function JC(e){return e.f==Xq&&cae(e,wQe(e.g,e.b)),e.f}function YC(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function xDe(e,t){this.b=e,this.c=t,this.a=new fh(this.b)}function XC(e,t,n){this.a=oft,this.d=e,this.b=t,this.c=n}function SDe(e,t){this.d=(MC(e),e),this.a=16449,this.c=t}function CDe(e,t){return mM(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function wDe(e,t){return mM(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function TDe(e,t){return ede(),mM((MC(e),e),(MC(t),t))}function ZC(e,t){return AM(e),new Mx(e,new vLe(t,e.a))}function QC(e,t){return AM(e),new Mx(e,new jFe(t,e.a))}function $C(e,t){return AM(e),new ave(e,new kFe(t,e.a))}function ew(e,t){return AM(e),new ove(e,new AFe(t,e.a))}function EDe(e,t,n){dot(e.a,n),GHe(n),U8e(e.b,n),zot(t,n)}function tw(e,t,n,r){this.a=e,this.c=t,this.b=n,this.d=r}function DDe(e,t,n,r){this.c=e,this.b=t,this.a=n,this.d=r}function ODe(e,t,n,r){this.c=e,this.b=t,this.d=n,this.a=r}function nw(e,t,n,r){this.a=e,this.e=t,this.d=n,this.c=r}function kDe(e,t,n,r){this.a=e,this.d=t,this.c=n,this.b=r}function rw(e,t,n,r){this.c=e,this.d=t,this.b=n,this.a=r}function iw(e,t,n,r){rh.call(this,e,t),this.a=n,this.b=r}function ADe(e,t,n,r){XUe.call(this,e,n,r,!1),this.f=t}function aw(e,t,n){var r=eut(e);return t.qi(n,r)}function ow(e){var t,n=(t=new jd,t);return IO(n,e),n}function sw(e){var t,n=(t=new jd,t);return Q0e(n,e),n}function jDe(e){return!e.b&&(e.b=new I(Z5,e,12,3)),e.b}function cw(e){return WBe(e)||null}function MDe(e){Jb();var t=F(e.g,9);t.n.a=e.d.c+t.d.b}function NDe(e){this.a=new Od,this.e=H(q9,vB,54,e,0,2)}function lw(e){this.f=e,this.c=this.f.e,e.f>0&&c$e(this)}function PDe(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function FDe(e,t,n,r){this.a=e,this.b=t,this.d=n,this.c=r}function IDe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function LDe(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function uw(e,t,n,r){this.e=e,this.a=t,this.c=n,this.d=r}function RDe(e,t,n,r){Fv(),wFe.call(this,t,n,r),this.a=e}function zDe(e,t,n,r){Fv(),wFe.call(this,t,n,r),this.a=e}function BDe(e,t){this.a=e,nve.call(this,e,F(e.d,16).dd(t))}function VDe(e,t){return mM(Ux(e)*Hx(e),Ux(t)*Hx(t))}function HDe(e,t){return mM(Ux(e)*Hx(e),Ux(t)*Hx(t))}function dw(e){return e.f||=new $m(e,e.c)}function fw(){fw=C,nY=new ae,rY=new se,iY=new w}function pw(){pw=C,hxt=new le,oY=new le,gxt=new ue}function mw(e){if($M(e.d),e.d.d!=e.c)throw O(new Kd)}function UDe(e){return Ky(e.b0?HE(e):new Od}function JDe(e,t){return F(q(e,(X(),t$)),16).Ec(t),t}function YDe(e,t){return GI(e,F(q(t,(zz(),q1)),15),t)}function XDe(e){return UI(e)&&Gp(nb(Y(e,(zz(),w1))))}function ZDe(e,t,n){return Nh(),tqe(F(pC(e.e,t),517),n)}function QDe(e,t,n){e.i=0,e.e=0,t!=n&&KUe(e,t,n)}function $De(e,t,n){e.i=0,e.e=0,t!=n&&qUe(e,t,n)}function eOe(e,t,n,r){this.b=e,this.c=r,$_.call(this,t,n)}function tOe(e,t){this.g=e,this.d=W(A(SX,1),mU,9,0,[t])}function nOe(e,t){e.d&&!e.d.a&&(vse(e.d,t),nOe(e.d,t))}function rOe(e,t){e.e&&!e.e.a&&(vse(e.e,t),rOe(e.e,t))}function iOe(e,t){return eM(e.j,t.s,t.c)+eM(t.e,e.s,e.c)}function aOe(e){return F(e.jd(),147).Og()+`:`+XM(e.kd())}function oOe(e,t){return-mM(Ux(e)*Hx(e),Ux(t)*Hx(t))}function sOe(e,t){return Cj(e),Cj(t),sce(F(e,24),F(t,24))}function _w(e,t,n){vO(e,t,new Kc(Pb(n)))}function cOe(e,t){new ph,this.a=new Uf,this.b=e,this.c=t}function lOe(e){this.b=new Od,VA(this.b,this.b),this.a=e}function uOe(e){this.b=new li,this.a=e,r.Math.random()}function dOe(){oI(this,new yc),this.wb=(eC(),K7),Lm()}function fOe(){wp.call(this,`There is no more element.`)}function pOe(e,t,n,r){Cpe.call(this,t,n),this.b=e,this.a=r}function vw(e,t,n,r,i,a){xD.call(this,e,t,n,r,i,a?-2:-1)}function yw(e){return!e.a&&(e.a=new I(s7,e,10,11)),e.a}function bw(e){return!e.q&&(e.q=new I(B7,e,11,10)),e.q}function z(e){return!e.s&&(e.s=new I(M7,e,21,17)),e.s}function xw(e,t){if(e==null)throw O(new Wp(t));return e}function mOe(e,t){$se.call(this,new xS(e)),this.a=e,this.b=t}function hOe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function gOe(e){cm(),r.setTimeout(function(){throw e},0)}function _Oe(e){return aC(e),HXe(new uS(py(e.a.Jc(),new f)))}function Sw(e){return fw(),N(e,59)?new hm(e):new yy(e)}function Cw(e){return N(e,18)?new jx(F(e,18)):ISe(e.Jc())}function vOe(e){return new _ge(e,e.e.Pd().gc()*e.c.Pd().gc())}function yOe(e){return new vge(e,e.e.Pd().gc()*e.c.Pd().gc())}function bOe(e){return e&&e.hashCode?e.hashCode():Ty(e)}function ww(e,t){return t==null?!!Yx(e.f,null):ywe(e.i,t)}function xOe(e,t){var n=Nhe(e.a,t);return n&&(t.d=null),n}function SOe(e,t,n){return e.f?e.f.cf(t,n):!1}function Tw(e,t,n,r){fC(e.c[t.g],n.g,r),fC(e.c[n.g],t.g,r)}function Ew(e,t,n,r){fC(e.c[t.g],t.g,n),fC(e.b[t.g],t.g,r)}function COe(e){e.Tg(`No crossing minimization`,1),e.Ug()}function wOe(e){this.c=e,this.b=new Gm(F(aC(new He),51))}function TOe(e){this.c=e,this.b=new Gm(F(aC(new _t),51))}function EOe(e){this.b=e,this.a=new Gm(F(aC(new nt),51))}function DOe(){this.b=new df,this.d=new ph,this.e=new Pf}function OOe(){this.d=new ph,this.b=new kd,this.c=new Od}function kOe(){this.c=new Nm,this.d=new Nm,this.e=new Nm}function Dw(){this.a=new Uf,this.b=(_k(3,FB),new pD(3))}function Ow(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function AOe(e,t,n,r,i,a){this.a=e,mk.call(this,t,n,r,i,a)}function jOe(e,t,n,r,i,a){this.a=e,mk.call(this,t,n,r,i,a)}function kw(e,t){this.e=e,this.a=hJ,this.b=cnt(t),this.c=t}function MOe(e,t){return N(t,147)&&kb(e.b,F(t,147).Og())}function NOe(e,t){return e.a?t.Dh().Jc():F(t.Dh(),72).Gi()}function POe(e,t,n){return k(P(n.a))<=e&&k(P(n.b))>=t}function FOe(e,t,n){return n>=0&&kb(e.substr(n,t.length),t)}function Aw(e,t,n,r,i,a,o){return new $Ne(e.e,t,n,r,i,a,o)}function jw(e,t,n){return uD(t,n,e.length),e.substr(t,n-t)}function Mw(e,t){var n=Um(e.Pm);return t==null?n:n+`: `+t}function IOe(e,t){var n=e.b.Oc(t);return zNe(n,e.b.gc()),n}function Nw(e,t){if(e==null)throw O(new Wp(t));return e}function Pw(e){return e.u||=(LE(e),new Eve(e,e)),e.u}function Fw(e){return F(yA(e,16),29)||e.fi()}function LOe(e){!e||Mw(e,e.ge())}function ROe(){ROe=C,Yxt=new Fe,Zxt=new Pwe,Xxt=new Ve}function Iw(){Iw=C;var e,t=!bJe();e=new b,Fbt=t?new y:e}function zOe(){return aD(),W(A(jTt,1),Z,422,0,[ATt,BZ])}function BOe(){return gO(),W(A(WTt,1),Z,419,0,[$Z,UTt])}function VOe(){return ND(),W(A(ZTt,1),Z,476,0,[XTt,lQ])}function HOe(){return pE(),W(A(yEt,1),Z,420,0,[PQ,vEt])}function UOe(){return kE(),W(A(IEt,1),Z,423,0,[z$,R$])}function WOe(){return YD(),W(A(_jt,1),Z,421,0,[$0,e2])}function GOe(){return mE(),W(A(cMt,1),Z,519,0,[b2,y2])}function KOe(){return Hw(),W(A(_Mt,1),Z,510,0,[w2,C2])}function qOe(){return nT(),W(A(yMt,1),Z,509,0,[T2,E2])}function JOe(){return $E(),W(A(FMt,1),Z,516,0,[A2,k2])}function YOe(){return Vw(),W(A(HMt,1),Z,454,0,[j2,M2])}function XOe(){return zT(),W(A(QNt,1),Z,425,0,[v4,ZNt])}function ZOe(){return Pk(),W(A(iPt,1),Z,487,0,[b4,x4])}function QOe(){return DD(),W(A(lPt,1),Z,426,0,[cPt,D4])}function $Oe(){return PE(),W(A(JFt,1),Z,478,0,[c3,qFt])}function eke(){return eD(),W(A(fIt,1),Z,428,0,[C3,S3])}function tke(){return hO(),W(A(KSt,1),Z,424,0,[VY,HY])}function nke(){return Nk(),W(A(gwt,1),Z,503,0,[NX,MX])}function rke(){return FA(),W(A(QIt,1),Z,427,0,[j3,ZIt])}function Lw(e,t,n,r){return n>=0?e.Rh(t,n,r):e.zh(null,n,r)}function Rw(e){return e.b.b==0?e.a.uf():ox(e.b)}function ike(e){if(e.p!=5)throw O(new Yd);return Wx(e.f)}function ake(e){if(e.p!=5)throw O(new Yd);return Wx(e.k)}function oke(e){return M(e.a)===M((Zk(),GBt))&&_st(e),e.a}function ske(e,t){sl(this,new j(e.a,e.b)),Jie(this,nx(t))}function cke(e,t){Sb.call(this),yze(this),this.a=e,this.c=t}function lke(e,t,n){Fv(),xd.call(this,t),this.a=e,this.b=n}function zw(e,t,n){Wz(),Ed.call(this,e),this.b=t,this.a=n}function Bw(){vp.call(this,new yh(hA(12))),cge(!0),this.a=2}function uke(){A_.call(this,`FIXED_INTEGER_RATIO_BOXES`,2)}function Vw(){Vw=C,j2=new Ofe(oH,0),M2=new Ofe(sH,1)}function Hw(){Hw=C,w2=new Sfe(sH,0),C2=new Sfe(oH,1)}function dke(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=Fx(e.c,e.b,e.a))}function fke(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=Fx(e.c,e.b,e.a))}function pke(e){var t=e.c.d.b;e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function Uw(e){var t;dBe(e.a),Pme(e.a),t=new nu(e.a),aN(t)}function Ww(e,t){return t==null?V_(Yx(e.f,null)):tg(e.i,t)}function mke(e){return e.b==0?null:(Ky(e.b!=0),DO(e,e.a.a))}function Gw(e){return Math.max(Math.min(e,$z),-2147483648)|0}function hke(e,t,n,r,i){return new mI(e,(MD(),uY),t,n,r,i)}function Kw(e,t){return UNe(t),eBe(e,H(q9,cV,30,t,15,1),t)}function gke(e,t){return FO(),F(q(t,(AR(),p4)),15).a==e}function _ke(e,t){Ptt(e,!0),kO(e.e.Pf(),new vbe(e,!0,t))}function qw(e,t){return xw(e,`set1`),xw(t,`set2`),new Eue(e,t)}function vke(e,t){return OJ[e.charCodeAt(0)]??e}function yke(e,t){return wb(Xy(kze(e.f,t)),e.f.d)}function bke(e,t){var n=t,r=new _e;return jct(e,n,r),r.d}function Jw(e,t,n,r){var i=new Gve;t.a[n.g]=i,IS(e.b,r,i)}function xke(e,t,n){var r=e.Fh(t);r>=0?e.$h(r,n):x7e(e,t,n)}function Yw(e,t,n){mT(),e&&LC(x7,e,t),e&&LC(b7,e,n)}function Ske(e,t,n){this.i=new Od,this.b=e,this.g=t,this.a=n}function Xw(e,t,n){this.c=new Od,this.e=e,this.f=t,this.b=n}function Cke(e,t,n){this.a=new Od,this.e=e,this.f=t,this.c=n}function wke(e){Sb.call(this),yze(this),this.a=e,this.c=!0}function Tke(e){this.a=F(aC(e),277),this.b=(fw(),new Nge(e))}function Eke(e,t){Gv(this),this.f=t,this.g=e,gw(this),this.he()}function Zw(e,t){var n=e.q.getHours();e.q.setDate(t),LR(e,n)}function Dke(e,t){var n;for(aC(t),n=e.a;n;n=n.c)t.Wd(n.g,n.i)}function Oke(e){var t=new Wm(hA(e.length));return NUe(t,e),t}function kke(e){function t(){}return t.prototype=e||{},new t}function Ake(e,t){return BHe(e,t)?(oBe(e),!0):!1}function Qw(e,t){if(t==null)throw O(new Xd);return AJe(e,t)}function jke(e){if(e.ye())return null;var t=e.n;return mJ[t]}function $w(e){return e.Db>>16==3?F(e.Cb,26):null}function eT(e){return e.Db>>16==9?F(e.Cb,26):null}function Mke(e){return e.Db>>16==6?F(e.Cb,85):null}function Nke(e,t){var n=e.Fh(t);return n>=0?e.Th(n):VI(e,t)}function tT(e,t,n){e.b=new Ak(LUe(e,t,n).c.length)}function nT(){nT=C,T2=new Cfe(pH,0),E2=new Cfe(`UP`,1)}function Pke(){Pke=C,Dbt=Rj((sm(),W(A(Ebt,1),Z,538,0,[TJ])))}function Fke(e){this.a=e,this.b=H(rMt,vB,2008,e.e.length,0,2)}function Ike(){this.a=new mv,this.e=new df,this.g=0,this.i=0}function Lke(e){return!e.a&&(e.a=new I(s7,e,10,11)),e.a.i>0}function rT(e,t){return r.Math.abs(e)>16==7?F(e.Cb,241):null}function iT(e){return e.Db>>16==6?F(e.Cb,241):null}function Kke(e){return e.Db>>16==7?F(e.Cb,174):null}function qke(e){return e.Db>>16==3?F(e.Cb,158):null}function aT(e){return e.Db>>16==11?F(e.Cb,26):null}function oT(e){return e.Db>>16==17?F(e.Cb,29):null}function Jke(e){var t;return AM(e),t=new df,ZC(e,new bae(t))}function Yke(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.te(t))}function Xke(e,t){var n=e.q.getHours();e.q.setMonth(t),LR(e,n)}function sT(e,t){e.c&&BD(e.c.g,e),e.c=t,e.c&&ry(e.c.g,e)}function cT(e,t){e.c&&BD(e.c.a,e),e.c=t,e.c&&ry(e.c.a,e)}function lT(e,t){e.d&&BD(e.d.e,e),e.d=t,e.d&&ry(e.d.e,e)}function uT(e,t){e.i&&BD(e.i.j,e),e.i=t,e.i&&ry(e.i.j,e)}function dT(e,t,n){return t==null?kI(e.f,null,n):jM(e.i,t,n)}function fT(e,t,n,r,i,a){return new ZD(e.e,t,e.Jj(),n,r,i,a)}function Zke(e){return wj(),by(),F(e.a,82).d.e!=0}function Qke(e,t){this.a=e,this.c=Jv(this.a),this.b=new Ow(t)}function $ke(e,t,n){this.a=t,this.c=e,this.b=(aC(n),new Lb(n))}function eAe(e,t,n){this.a=t,this.c=e,this.b=(aC(n),new Lb(n))}function pT(e,t){if(e<0||e>t)throw O(new Fp(Pft+e+Fft+t))}function mT(){mT=C,x7=new kd,b7=new kd,kpe(yxt,new ire)}function tAe(){tAe=C,Ijt=tS(new AC,($F(),oX),(Uz(),tZ))}function nAe(){nAe=C,Ljt=tS(new AC,($F(),oX),(Uz(),tZ))}function rAe(){rAe=C,Rjt=tS(new AC,($F(),oX),(Uz(),tZ))}function iAe(){iAe=C,zjt=tS(new AC,($F(),oX),(Uz(),tZ))}function aAe(){aAe=C,Vjt=tS(new AC,($F(),oX),(Uz(),tZ))}function oAe(){oAe=C,Hjt=tS(new AC,($F(),oX),(Uz(),tZ))}function sAe(){sAe=C,uMt=Sx(new AC,($F(),oX),(Uz(),zX))}function hT(){hT=C,pMt=Sx(new AC,($F(),oX),(Uz(),zX))}function cAe(){cAe=C,gMt=Sx(new AC,($F(),oX),(Uz(),zX))}function gT(){gT=C,xMt=Sx(new AC,($F(),oX),(Uz(),zX))}function lAe(){lAe=C,ePt=tS(new AC,(oF(),F2),(lR(),JMt))}function _T(e,t,n,r){this.c=e,this.d=r,bT(this,t),xT(this,n)}function vT(e){this.c=new ph,this.b=e.b,this.d=e.c,this.a=e.a}function yT(e){this.a=r.Math.cos(e),this.b=r.Math.sin(e)}function bT(e,t){e.a&&BD(e.a.k,e),e.a=t,e.a&&ry(e.a.k,e)}function xT(e,t){e.b&&BD(e.b.f,e),e.b=t,e.b&&ry(e.b.f,e)}function uAe(e,t){vEe(e,e.b,e.c),F(e.b.b,68),t&&F(t.b,68).b}function dAe(e,t){HKe(e,t),N(e.Cb,88)&&MI(LE(F(e.Cb,88)),2)}function ST(e,t){N(e.Cb,88)&&MI(LE(F(e.Cb,88)),4),zk(e,t)}function CT(e,t){N(e.Cb,184)&&(F(e.Cb,184).tb=null),zk(e,t)}function fAe(e,t){var n=F(Wj(dw(e.a),t),18);return n?n.gc():0}function pAe(e){var t,n=(Lm(),t=new jd,t);return IO(n,e),n}function mAe(e){var t,n=(Lm(),t=new jd,t);return IO(n,e),n}function hAe(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function wT(e){return iR(),Gj(e,0)>=0?yN(e):JS(yN(RD(e)))}function gAe(e,t){Zhe(e,Wx(FT(fS(t,24),UV)),Wx(FT(t,UV)))}function _Ae(e,t){return mM(F(e.c,65).c.e.b,F(t.c,65).c.e.b)}function vAe(e,t){return mM(F(e.c,65).c.e.a,F(t.c,65).c.e.a)}function TT(e,t){return qh(),iO(t)?new Cx(t,e):new W_(t,e)}function yAe(e,t,n){return new mI(e,(MD(),lY),null,!1,t,n)}function bAe(e,t,n){return new mI(e,(MD(),dY),t,n,null,!1)}function xAe(e,t,n){var r;QGe(t,n,e.c.length),r=n-t,Ple(e.c,t,r)}function ET(e,t,n){QGe(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function DT(e,t){this.b=(MC(e),e),this.a=(t&kV)==0?t|64|yB:t}function OT(e,t){if(e<0||e>=t)throw O(new Fp(Pft+e+Fft+t))}function kT(e,t){if(e<0||e>=t)throw O(new Tce(Pft+e+Fft+t))}function SAe(e,t){t.c!=null&&_C(e,new vC(t.c))}function CAe(e,t,n){var r=new pv(n.d);wb(r,e),RKe(t,r.a,r.b)}function wAe(e){var t;return AM(e),t=(pw(),pw(),oY),SO(e,t)}function AT(e){return sj(W(A(J3,1),vB,8,0,[e.i.n,e.n,e.a]))}function TAe(){return JD(),W(A(NCt,1),Z,384,0,[eX,$Y,tX])}function EAe(){return kj(),W(A(gY,1),Z,130,0,[Vxt,hY,Hxt])}function DAe(){return MO(),W(A(CY,1),Z,237,0,[bY,xY,SY])}function OAe(){return jD(),W(A(nSt,1),Z,461,0,[DY,EY,OY])}function kAe(){return lO(),W(A(aSt,1),Z,462,0,[jY,AY,kY])}function AAe(){return Jj(),W(A(rjt,1),Z,352,0,[M0,njt,N0])}function jAe(){return kA(),W(A(DQ,1),Z,302,0,[TQ,EQ,wQ])}function MAe(){return YA(),W(A(AQ,1),Z,329,0,[kQ,mEt,OQ])}function NAe(){return uO(),W(A(gEt,1),Z,316,0,[MQ,NQ,jQ])}function PAe(){return Fk(),W(A(CZ,1),Z,368,0,[SZ,xZ,bZ])}function FAe(){return Oj(),W(A(Tjt,1),Z,348,0,[s2,a2,o2])}function IAe(){return OA(),W(A(Cjt,1),Z,381,0,[xjt,i2,Sjt])}function LAe(){return uk(),W(A(yjt,1),Z,452,0,[r2,t2,n2])}function RAe(){return Mj(),W(A(Ojt,1),Z,349,0,[c2,Djt,l2])}function zAe(){return ck(),W(A(Mjt,1),Z,351,0,[jjt,u2,Ajt])}function BAe(){return PA(),W(A(Pjt,1),Z,382,0,[f2,p2,d2])}function VAe(){return mj(),W(A(oNt,1),Z,385,0,[aNt,B2,z2])}function HAe(){return Dj(),W(A(pPt,1),Z,386,0,[O4,dPt,fPt])}function UAe(){return GM(),W(A(cFt,1),Z,387,0,[sFt,$4,oFt])}function WAe(){return lk(),W(A(RTt,1),Z,350,0,[LTt,WZ,UZ])}function GAe(){return XA(),W(A(KTt,1),Z,449,0,[tQ,eQ,nQ])}function KAe(){return TN(),W(A(eFt,1),Z,436,0,[L4,R4,z4])}function qAe(){return AA(),W(A(QPt,1),Z,304,0,[I4,ZPt,XPt])}function JAe(){return vM(),W(A(nIt,1),Z,430,0,[eIt,tIt,u3])}function YAe(){return PD(),W(A(QFt,1),Z,429,0,[l3,ZFt,XFt])}function XAe(){return _M(),W(A(y3,1),Z,435,0,[g3,_3,v3])}function ZAe(){return NO(),W(A(VRt,1),Z,279,0,[d8,f8,p8])}function QAe(){return Ej(),W(A(rzt,1),Z,347,0,[S8,x8,C8])}function $Ae(){return BO(),W(A(Szt,1),Z,300,0,[C5,w5,xzt])}function eje(){return gM(),W(A(Ozt,1),Z,281,0,[Dzt,z5,B5])}function jT(e){return Nh(),N(e.g,9)?F(e.g,9):null}function tje(e){return e.a==(QE(),h9)&&pl(e,wtt(e.g,e.b)),e.a}function MT(e){return e.d==(QE(),h9)&&iae(e,nat(e.g,e.b)),e.d}function nje(e,t){var n=(MC(e),e).g;return d_e(!!n),MC(t),n(t)}function rje(e,t,n){var r=new Di;r.b=t,r.a=n,++t.b,ry(e.d,r)}function ije(e,t,n){var r=WR(e,t,!1);return r.b<=t&&r.a<=n}function aje(e,t){var n,r=ES(e,t);return n=e.a.dd(r),new Cue(e,n)}function oje(e){return e.Db>>16==6?F(tL(e),241):null}function sje(e){if(e.p!=2)throw O(new Yd);return Wx(e.f)&JB}function cje(e){if(e.p!=2)throw O(new Yd);return Wx(e.k)&JB}function NT(e){return aC(e),N(e,18)?new Lb(F(e,18)):tx(e.Jc())}function PT(e){Ex(),this.a=(fw(),N(e,59)?new hm(e):new yy(e))}function FT(e,t){return pA(qwe(dv(e)?CA(e):e,dv(t)?CA(t):t))}function IT(e,t){return pA(Jwe(dv(e)?CA(e):e,dv(t)?CA(t):t))}function LT(e,t){return pA(Ywe(dv(e)?CA(e):e,dv(t)?CA(t):t))}function lje(e,t){return vwe(e.a,t)?MCe(e.b,F(t,24).g,null):null}function uje(e){return IM(dS(gA(_L(e,32)),32),gA(_L(e,32)))}function dje(e){var t=F(hx(e.b),10);return new Rb(e.a,t,e.c)}function fje(e,t){mut(e,t,k(P(e.a.mf((Hz(),Y6)))))}function pje(e,t){FS.call(this,1,2,W(A(q9,1),cV,30,15,[e,t]))}function mje(e,t){Qse.call(this,new yh(hA(e))),_k(t,Xdt),this.a=t}function hje(e,t,n){Ed.call(this,25),this.b=e,this.a=t,this.c=n}function RT(e){Wz(),Ed.call(this,e),this.c=!1,this.a=!1}function gje(){this.c=new dhe,this.a=new DFe,this.b=new Of,tde()}function zT(){zT=C,v4=new Ffe(`DFS`,0),ZNt=new Ffe(`BFS`,1)}function _je(e){return e.b==null||e.b.length==0?`n_`+e.a:`n_`+e.b}function BT(e){return F(qN(e,H(SX,mU,9,e.c.length,0,1)),199)}function vje(e,t){return e&&e.equals?e.equals(t):M(e)===M(t)}function yje(e,t){return dO(),e.c==t.c?mM(t.d,e.d):mM(e.c,t.c)}function bje(e,t){return dO(),e.c==t.c?mM(e.d,t.d):mM(e.c,t.c)}function xje(e,t){return dO(),e.c==t.c?mM(e.d,t.d):mM(t.c,e.c)}function Sje(e,t){return dO(),e.c==t.c?mM(t.d,e.d):mM(t.c,e.c)}function Cje(e,t){e.b|=t.b,e.c|=t.c,e.d|=t.d,e.a|=t.a}function VT(e,t,n){var r=e.d[t.p];e.d[t.p]=e.d[n.p],e.d[n.p]=r}function wje(e,t,n){var r;e.n&&t&&n&&(r=new Yne,ry(e.e,r))}function Tje(e,t){var n=F(pC(e.g,t),60);kO(t.d,new rfe(e,n))}function Eje(e,t){var n=_Ze(e),r=_Ze(t);return nr)}function Dje(e,t){var n=KD(t);return F(pC(e.c,n),15).a}function Oje(e,t){for(var n=e+``;n.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function Qje(e){return Ky(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function $je(e,t){var n=1-t;return e.a[n]=kk(e.a[n],n),kk(e,t)}function eMe(e,t){var n,r=FT(e,PV);return n=dS(t,32),IT(n,r)}function tMe(e,t,n){var r=F(e.Zb().xc(t),18);return!!r&&r.Gc(n)}function nMe(e,t,n){var r=F(e.Zb().xc(t),18);return!!r&&r.Kc(n)}function rMe(e,t,n){GZe(new $ke((aC(e),new Lb(e)),t,n))}function GT(e,t,n){KZe(new eAe((aC(e),new Lb(e)),t,n))}function iMe(e,t,n){e.a=t,e.c=n,e.b.a.$b(),hw(e.d),rf(e.e.a.c,0)}function KT(e,t,n,r,i,a){return JVe(e,t,n,a),$Ge(e,r),eKe(e,i),e}function aMe(e,t,n,r){return e.a+=``+jw(t==null?aB:XM(t),n,r),e}function qT(e,t){this.a=e,Pl.call(this,e),pT(t,e.gc()),this.b=t}function oMe(e,t){var n;e.e=new cp,n=HL(t),Bv(n,e.c),ntt(e,n,0)}function JT(e,t,n,r){var i=new La;i.a=t,i.b=n,i.c=r,fx(e.a,i)}function V(e,t,n,r){var i=new La;i.a=t,i.b=n,i.c=r,fx(e.b,i)}function sMe(e,t){return new Xb(t,D_e(Jv(t.e),e,e),(by(),!0))}function cMe(e,t){return PO(),F(q(t,(AR(),u4)),15).a>=e.gc()}function lMe(e){return hT(),!IE(e)&&!(!IE(e)&&e.c.i.c==e.d.i.c)}function YT(e){return F(qN(e,H(xX,pU,17,e.c.length,0,1)),324)}function XT(e){return new pD((_k(e,LB),bO(IM(IM(5,e),e/10|0))))}function uMe(e){return Tx(e.e.Pd().gc()*e.c.Pd().gc(),273,new wie(e))}function dMe(e){uqe((!e.a&&(e.a=new I(s7,e,10,11)),e.a),new Ene)}function fMe(){var e,t=(n=(e=new jd,e),n),n;return ry(aVt,t),t}function ZT(e){var t;return dv(e)?(t=e,t==-0?0:t):fRe(e)}function pMe(e,t){return N(t,45)?VP(e.a,F(t,45)):!1}function mMe(e,t){return N(t,45)?VP(e.a,F(t,45)):!1}function hMe(e,t){return N(t,45)?VP(e.a,F(t,45)):!1}function gMe(e,t){return e.a<=e.b&&(t.Bd(e.a++),!0)}function QT(e,t){if(e<0||e>=t)throw O(new Fp(S3e(e,t)));return e}function _Me(e,t,n){if(e<0||tn)throw O(new Fp(d4e(e,t,n)))}function vMe(e,t,n){e.d&&BD(e.d.e,e),e.d=t,e.d&&Kx(e.d.e,n,e)}function $T(e,t){Iut(t,e),GSe(e.d),GSe(F(q(e,(zz(),P1)),213))}function eE(e,t){Lut(t,e),WSe(e.d),WSe(F(q(e,(zz(),P1)),213))}function yMe(e){var t;return DC(e),t=new de,Km(e.a,new vae(t)),t}function tE(e){var t;return DC(e),t=new fe,Km(e.a,new Yl(t)),t}function bMe(e){return!KC(e).dc()&&(uhe(e,new g),!0)}function xMe(e){if(!(`stack`in e))try{throw e}catch{}return e}function SMe(e,t,n){var r=lYe();try{return Fve(e,t,n)}finally{rFe(r)}}function nE(e,t){var n=Qw(e,t),r=null;return n&&(r=n.ne()),r}function rE(e,t){var n=pO(e,t),r=null;return n&&(r=n.qe()),r}function iE(e,t){var n=Qw(e,t),r=null;return n&&(r=n.qe()),r}function aE(e,t){var n=Qw(e,t),r=null;return n&&(r=y4e(n)),r}function CMe(e,t,n){var r=PN(n);return aR(e.n,r,t),aR(e.o,t,n),t}function wMe(e,t,n){this.d=new toe(this),this.e=e,this.i=t,this.f=n}function TMe(e,t,n,r){this.d=e,this.n=t,this.g=n,this.o=r,this.p=-1}function EMe(e,t,n,r){return N(n,59)?new Qge(e,t,n,r):new Wwe(e,t,n,r)}function DMe(e){return F(qN(e,H(pwt,Dpt,12,e.c.length,0,1)),2007)}function OMe(e){this.a=H(hJ,iB,1,TUe(r.Math.max(8,e))<<1,5,1)}function kMe(e){Kk.call(this,e,(MD(),cY),null,!1,null,!1)}function AMe(e){var t=e.Dh();this.a=N(t,72)?F(t,72).Gi():t.Jc()}function jMe(e){return new DT(Cze(F(e.a.kd(),18).gc(),e.a.jd()),16)}function oE(e){return N(e,18)?F(e,18).dc():!e.Jc().Ob()}function MMe(e){if(e.e.g!=e.b)throw O(new Kd);return!!e.c&&e.d>0}function sE(e){return Ky(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function NMe(e,t){MC(t),fC(e.a,e.c,t),e.c=e.c+1&e.a.length-1,MZe(e)}function cE(e,t){MC(t),e.b=e.b-1&e.a.length-1,fC(e.a,e.b,t),MZe(e)}function PMe(){PMe=C,Yjt=rDe(K(1),K(4)),Jjt=rDe(K(1),K(2))}function FMe(){FMe=C,lIt=Rj((Fh(),W(A(cIt,1),Z,477,0,[b3])))}function IMe(){IMe=C,dIt=Rj((Ih(),W(A(uIt,1),Z,547,0,[x3])))}function LMe(){LMe=C,XIt=Rj((Lh(),W(A(YIt,1),Z,528,0,[A3])))}function RMe(){return JA(),W(A(WCt,1),Z,408,0,[fX,hX,pX,mX])}function zMe(){return MA(),W(A(jSt,1),Z,409,0,[LY,PY,FY,IY])}function BMe(){return MD(),W(A(fY,1),Z,310,0,[cY,lY,uY,dY])}function VMe(){return qA(),W(A(iTt,1),Z,367,0,[uZ,cZ,lZ,sZ])}function HMe(){return HN(),W(A($Ct,1),Z,383,0,[yX,QCt,_X,vX])}function UMe(){return jA(),W(A(vTt,1),Z,413,0,[dZ,fZ,pZ,mZ])}function WMe(e){var t;return e.j==(Dz(),y5)&&(t=h8e(e),Oy(t,t5))}function GMe(){return rN(),W(A(FTt,1),Z,301,0,[HZ,NTt,VZ,PTt])}function KMe(){return yP(),W(A(R0,1),Z,203,0,[I0,L0,F0,P0])}function qMe(){return NN(),W(A(hjt,1),Z,269,0,[X0,mjt,Z0,Q0])}function JMe(e,t){return F(Cy(hS(F(VE(e.k,t),16).Mc(),MZ)),113)}function YMe(e,t){return F(Cy(gS(F(VE(e.k,t),16).Mc(),MZ)),113)}function XMe(e,t){var n=t.a;sT(n,t.c.d),lT(n,t.d.d),rA(n.a,e.n)}function ZMe(e,t){var n=F(oO(e.b,t),66);return!n&&(n=new ph),n}function lE(e){return Nh(),N(e.g,156)?F(e.g,156):null}function QMe(e){e.a=null,e.e=null,rf(e.b.c,0),rf(e.f.c,0),e.c=null}function $Me(e,t,n,r){this.e=null,this.c=e,this.d=t,this.a=n,this.b=r}function eNe(e,t,n,r,i){this.i=e,this.a=t,this.e=n,this.j=r,this.f=i}function tNe(e,t,n,r){var i=r[t.g][n.g];return k(P(q(e.a,i)))}function nNe(e,t){for(var n=e.j.c.length;n0&&OR(e.g,0,t,0,e.i),t}function dE(e){for(var t=0;e.Ob();)e.Pb(),t=IM(t,1);return bO(t)}function xNe(e,t){var n=new fm;return e.Ed(n),n.a+=`..`,t.Fd(n),n.a}function SNe(e,t){Uh();var n=F(pC(E7,e),58);return!n||n.dk(t)}function CNe(e,t,n){if(n){var r=n.me();e.a[t]=r(n)}else delete e.a[t]}function fE(e,t){return t.e==0||e.e==0?QJ:(KL(),OL(e,t))}function wNe(e){if(e.p!=1)throw O(new Yd);return Wx(e.f)<<24>>24}function TNe(e){if(e.p!=1)throw O(new Yd);return Wx(e.k)<<24>>24}function ENe(e){if(e.p!=7)throw O(new Yd);return Wx(e.k)<<16>>16}function DNe(e){if(e.p!=7)throw O(new Yd);return Wx(e.f)<<16>>16}function pE(){pE=C,PQ=new mfe(aH,0),vEt=new mfe(`TOP_LEFT`,1)}function mE(){mE=C,b2=new vfe(`UPPER`,0),y2=new vfe(`LOWER`,1)}function ONe(e,t,n){var r=F(pC(e.g,n),60);ry(e.a.c,new M_(t,r))}function kNe(e,t,n,r,i){ry(t,c3e(i,e7e(i,n,r))),a2e(e,i,t)}function ANe(e,t,n){e.i=0,e.e=0,t!=n&&(qUe(e,t,n),KUe(e,t,n))}function jNe(e,t,n){return mS(P(V_(Yx(e.f,t))),P(V_(Yx(e.f,n))))}function MNe(e,t){return F(t==null?V_(Yx(e.f,null)):tg(e.i,t),290)}function NNe(e,t){return M(t)===M(e)?`(this Map)`:t==null?aB:XM(t)}function PNe(e,t){return e==(pL(),OX)&&t==OX?4:e==OX||t==OX?8:32}function hE(e,t,n){return PR(e,t,n,N(t,103)&&(F(t,19).Bb&jV)!=0)}function FNe(e,t,n){return zR(e,t,n,N(t,103)&&(F(t,19).Bb&jV)!=0)}function INe(e,t,n){return V5e(e,t,n,N(t,103)&&(F(t,19).Bb&jV)!=0)}function gE(e,t){qh();var n=F(e,69).tk();return A2e(n,t),n.vl(t)}function _E(e,t){iR(),FS.call(this,e,1,W(A(q9,1),cV,30,15,[t]))}function vE(e,t){Wz(),Ed.call(this,e),this.a=t,this.c=-1,this.b=-1}function LNe(e,t){kOe.call(this),this.a=e,this.b=t,ry(this.a.b,this)}function yE(e){return Ky(e.a`+_je(e.d):`e_`+Ty(e)}function KNe(e,t){return B_(t==null?V_(Yx(e.f,t)):Ww(e,t))}function qNe(e,t){return B_(t==null?V_(Yx(e.f,t)):Ww(e,t))}function JNe(e,t){return gh(),hD(z(e.a),t)}function YNe(e,t){return gh(),hD(z(e.a),t)}function xE(e,t,n){this.e=e,this.a=hJ,this.b=cnt(t),this.c=t,this.d=n}function XNe(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function ZNe(e){this.c=e,this.a=F(mF(e),159),this.b=this.a.hk().ti()}function SE(e,t,n,r){Nje.call(this,1,n,r),this.c=e,this.b=t}function QNe(e,t,n,r){Pje.call(this,1,n,r),this.c=e,this.b=t}function $Ne(e,t,n,r,i,a,o){mk.call(this,t,r,i,a,o),this.c=e,this.a=n}function CE(){kd.call(this),l_e(this),this.d.b=this.d,this.d.a=this.d}function ePe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function wE(e){$1e(),Zhe(this,Wx(FT(fS(e,24),UV)),Wx(FT(e,UV)))}function TE(e,t){var n;return t.b.Kb(WLe(e,t.c.Ve(),(n=new xae(t),n)))}function tPe(e,t){var n;return UNe(t),n=e.slice(0,t),n.length=t,AD(n,e)}function EE(e){var t;return e?new iwe(e):(t=new mv,Rk(t,e),t)}function nPe(e,t){for(var n=e.d-1;n>=0&&e.a[n]===t[n];n--);return n<0}function rPe(e,t){var n,r=!1;do n=xUe(e,t),r|=n;while(n);return r}function DE(e,t,n,r){var i=new pe;i.c=t,i.b=n,i.a=r,r.b=n.a=i,++e.b}function OE(){OE=C,Azt=new FCe,Mzt=new Hwe,V5=new uke,jzt=new hTe}function kE(){kE=C,z$=new hfe(oU,0),R$=new hfe(`ALTERNATING`,1)}function iPe(){iPe=C,QTt=Rj((ND(),W(A(ZTt,1),Z,476,0,[XTt,lQ])))}function aPe(){aPe=C,MTt=Rj((aD(),W(A(jTt,1),Z,422,0,[ATt,BZ])))}function oPe(){oPe=C,GTt=Rj((gO(),W(A(WTt,1),Z,419,0,[$Z,UTt])))}function sPe(){sPe=C,bEt=Rj((pE(),W(A(yEt,1),Z,420,0,[PQ,vEt])))}function cPe(){cPe=C,LEt=Rj((kE(),W(A(IEt,1),Z,423,0,[z$,R$])))}function lPe(){lPe=C,vjt=Rj((YD(),W(A(_jt,1),Z,421,0,[$0,e2])))}function uPe(){uPe=C,lMt=Rj((mE(),W(A(cMt,1),Z,519,0,[b2,y2])))}function dPe(){dPe=C,vMt=Rj((Hw(),W(A(_Mt,1),Z,510,0,[w2,C2])))}function fPe(){fPe=C,bMt=Rj((nT(),W(A(yMt,1),Z,509,0,[T2,E2])))}function pPe(){pPe=C,IMt=Rj(($E(),W(A(FMt,1),Z,516,0,[A2,k2])))}function mPe(){mPe=C,UMt=Rj((Vw(),W(A(HMt,1),Z,454,0,[j2,M2])))}function hPe(){hPe=C,$Nt=Rj((zT(),W(A(QNt,1),Z,425,0,[v4,ZNt])))}function gPe(){gPe=C,aPt=Rj((Pk(),W(A(iPt,1),Z,487,0,[b4,x4])))}function _Pe(){_Pe=C,uPt=Rj((DD(),W(A(lPt,1),Z,426,0,[cPt,D4])))}function vPe(){vPe=C,YFt=Rj((PE(),W(A(JFt,1),Z,478,0,[c3,qFt])))}function yPe(){yPe=C,pIt=Rj((eD(),W(A(fIt,1),Z,428,0,[C3,S3])))}function bPe(){bPe=C,qSt=Rj((hO(),W(A(KSt,1),Z,424,0,[VY,HY])))}function xPe(){xPe=C,_wt=Rj((Nk(),W(A(gwt,1),Z,503,0,[NX,MX])))}function SPe(){SPe=C,$It=Rj((FA(),W(A(QIt,1),Z,427,0,[j3,ZIt])))}function CPe(){return hM(),W(A(c8,1),Z,86,0,[o8,a8,i8,r8,s8])}function wPe(){return Dz(),W(A(S5,1),cU,64,0,[b5,n5,t5,y5,x5])}function TPe(e,t,n){return F(t==null?kI(e.f,null,n):jM(e.i,t,n),290)}function EPe(e){return(e.k==(pL(),OX)||e.k==wX)&&Yy(e,(X(),HQ))}function DPe(e){e.b!=e.c&&(e.a=H(hJ,iB,1,8,5,1),e.b=0,e.c=0)}function OPe(e,t){var n=t.jd();return new eh(n,e.e.pc(n,F(t.kd(),18)))}function kPe(e,t){for(var n=t;n;)Zy(e,-n.i,-n.j),n=aT(n);return e}function APe(e,t){for(var n=t,r=0;n>0;)r+=e.a[n],n-=n&-n;return r}function AE(e,t,n){var r=(OT(t,e.c.length),e.c[t]);return e.c[t]=n,r}function jE(e,t){var n,r;for(MC(t),r=e.Jc();r.Ob();)n=r.Pb(),t.Ad(n)}function jPe(e,t){var n=t.jd(),r=e.De(n);return!!r&&RC(r.e,t.kd())}function MPe(e,t){return e.a.get(t)??H(hJ,iB,1,0,5,1)}function ME(e){e.i=0,eg(e.b,null),eg(e.c,null),e.a=null,e.e=null,++e.g}function NPe(e,t,n){e.a.c.length=0,Sst(e,t,n),e.a.c.length==0||Drt(e,t)}function PPe(e,t){this.c=0,this.b=t,Upe.call(this,e,17493),this.a=this.c}function FPe(e){bdt(),kse(this),this.a=new ph,cWe(this,e),fx(this.a,e)}function IPe(){Av(this),this.b=new j(DV,DV),this.a=new j(OV,OV)}function LPe(e){NE(),!mY&&(this.c=e,this.e=!0,this.a=new Od)}function NE(){NE=C,mY=!0,Lxt=!1,Rxt=!1,Bxt=!1,zxt=!1}function PE(){PE=C,c3=new Hfe(Upt,0),qFt=new Hfe(`TARGET_WIDTH`,1)}function FE(e,t){return(AM(e),Ym(new Mx(e,new vLe(t,e.a)))).zd(_Y)}function RPe(){return $F(),W(A(RCt,1),Z,363,0,[nX,rX,iX,aX,oX])}function zPe(){return RF(),W(A(oPt,1),Z,364,0,[T4,S4,E4,C4,w4])}function BPe(){return wL(),W(A(aIt,1),Z,369,0,[f3,d3,m3,p3,h3])}function VPe(){return dI(),W(A(_It,1),Z,330,0,[mIt,w3,gIt,T3,hIt])}function HPe(){return FF(),W(A(bTt,1),Z,371,0,[gZ,vZ,yZ,_Z,hZ])}function UPe(){return dP(),W(A(U0,1),Z,303,0,[ojt,B0,V0,z0,H0])}function WPe(){return nN(),W(A(PEt,1),Z,165,0,[L$,N$,P$,F$,I$])}function GPe(){return eP(),W(A(z3,1),Z,160,0,[L3,I3,P3,R3,F3])}function KPe(){return tP(),W(A(V8,1),Z,257,0,[z8,B8,lzt,R8,uzt])}function qPe(e){return cm(),function(){return SMe(e,this,arguments)}}function IE(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function JPe(e,t){return N(t,144)?kb(e.c,F(t,144).c):!1}function LE(e){return e.t||(e.t=new fse(e),fM(new lce(e),0,e.t)),e.t}function YPe(e){var t;return e.c||(t=e.r,N(t,88)&&(e.c=F(t,29))),e.c}function XPe(e,t){return F(oO(e.d,t),21)||F(oO(e.e,t),21)}function ZPe(e){this.b=e,uy.call(this,e),this.a=F(yA(this.b.a,4),129)}function QPe(e){this.b=e,Py.call(this,e),this.a=F(yA(this.b.a,4),129)}function RE(e,t,n,r,i){TFe.call(this,t,r,i),this.c=e,this.b=n}function $Pe(e,t,n,r,i){TFe.call(this,t,r,i),this.c=e,this.a=n}function eFe(e,t,n,r,i){Pje.call(this,t,r,i),this.c=e,this.a=n}function tFe(e,t,n,r,i){Nje.call(this,t,r,i),this.c=e,this.a=n}function nFe(e){Cde.call(this,e==null?aB:XM(e),N(e,80)?F(e,80):null)}function rFe(e){e&&SRe((Cce(),Pbt)),--kJ,e&&AJ!=-1&&(Efe(AJ),AJ=-1)}function iFe(e,t){var n=F(sGe(e.c,t),18),r;n&&(r=n.gc(),n.$b(),e.d-=r)}function aFe(e){return Uv(e&vV,e>>22&vV,e<0?yV:0)}function oFe(e){var t=e.c.i,n=e.d.i;return t.k==(pL(),wX)&&n.k==wX}function sFe(e){var t=e.length;return kb(AV.substr(AV.length-t,t),e)}function zE(e){if(rL(e))return e.c=e.a,e.a.Pb();throw O(new Qd)}function BE(e,t){return t==0||e.e==0?e:t>0?dJe(e,t):uet(e,-t)}function cFe(e,t){return t==0||e.e==0?e:t>0?uet(e,t):dJe(e,-t)}function lFe(e){return e.e=3,e.d=e.Yb(),e.e!=2&&(e.e=0,!0)}function uFe(e){var t=new Dw;return wA(t,e),G(t,(zz(),T1),null),t}function dFe(e,t,n){var r=e.Fh(t);return r>=0?e.Ih(r,n,!0):qI(e,t,n)}function fFe(e,t,n){return mM(ty(QN(e),Jv(t.b)),ty(QN(e),Jv(n.b)))}function pFe(e,t,n){return mM(ty(QN(e),Jv(t.e)),ty(QN(e),Jv(n.e)))}function mFe(e,t){return r.Math.min(mD(t.a,e.d.d.c),mD(t.b,e.d.d.c))}function hFe(e,t,n){var r=new Bhe(e.a);tA(r,e.a.a),kI(r.f,t,n),e.a.a=r}function gFe(e,t,n,r){for(var i=0;it)throw O(new Fp(r3e(e,t,`index`)));return e}function xFe(e){var t=e.e+e.f;return isNaN(t)&&Fb(e.d)?e.d:t}function SFe(e,t){var n=(MC(e),e),r=(MC(t),t);return n==r?0:nt.p?-1:0}function FFe(e,t){return jS(e.a,t)?(GE(e.a,t),!0):!1}function IFe(e){var t=e.jd();return $b(F(e.kd(),18).Lc(),new Sie(t))}function LFe(e){var t=e.b;return t.b==0?null:F(mP(t,0),65).b}function RFe(e,t){var n=qst(e,t);return e.b=new Ak(n.c.length),Qot(e,n)}function zFe(e){var t;return AM(e),t=new zSe(e,e.a.e,e.a.d|4),new ave(e,t)}function BFe(e){var t;for(DC(e),t=0;e.a.zd(new Ae);)t=IM(t,1);return t}function VFe(e){var t;return e.a||(t=e.r,N(t,159)&&(e.a=F(t,159))),e.a}function HFe(e,t,n){var r;return++e.e,--e.f,r=F(e.d[t].ed(n),136),r.kd()}function nD(e,t,n){return QT(t,e.e.Pd().gc()),QT(n,e.c.Pd().gc()),e.a[t][n]}function rD(e,t){return MC(t),e.cn||t=0,`Initial capacity must not be negative`)}function mD(e,t){var n=e.a-t.a,i=e.b-t.b;return r.Math.sqrt(n*n+i*i)}function LIe(e,t,n){var r=e.b[n.c.p][n.p];r.b+=t.b,r.c+=t.c,r.a+=t.a,++r.a}function RIe(){RIe=C,Bjt=tS(Sx(new AC,($F(),nX),(Uz(),BX)),oX,tZ)}function zIe(){return CI(),W(A(zZ,1),Z,231,0,[FZ,LZ,PZ,IZ,RZ,NZ])}function BIe(){return cI(),W(A(JTt,1),Z,284,0,[iQ,rQ,oQ,aQ,cQ,sQ])}function VIe(){return TF(),W(A(rEt,1),Z,282,0,[dQ,eEt,nEt,$Tt,tEt,uQ])}function HIe(){return aI(),W(A(uEt,1),Z,283,0,[fQ,oEt,lEt,cEt,sEt,aEt])}function UIe(){return bP(),W(A(hLt,1),Z,256,0,[Y3,Q3,$3,e6,X3,Z3])}function WIe(){return LF(),W(A(fzt,1),Z,102,0,[q8,K8,G8,H8,W8,U8])}function GIe(){return II(),W(A(e5,1),Z,280,0,[Q8,X8,Z8,Y8,J8,$8])}function KIe(){return MF(),W(A(c6,1),Z,299,0,[s6,o6,a6,r6,n6,i6])}function qIe(){return XF(),W(A(YRt,1),Z,328,0,[y8,KRt,JRt,WRt,qRt,GRt])}function JIe(e){var t;return!e.a&&e.b!=-1&&(t=e.c.Ah(),e.a=yO(t,e.b)),e.a}function hD(e,t){return e.Qi()&&e.Gc(t)?!1:(e.Fi(t),!0)}function gD(e,t){return Nw(t,`Horizontal alignment cannot be null`),e.b=t,e}function YIe(e,t,n){Wz();var r=Az(e,t);return n&&r&&EEe(e)&&(r=null),r}function _D(e,t,n){for(var r,i=e.Jc();i.Ob();)r=F(i.Pb(),36),tR(r,t,n)}function XIe(e,t){for(var n,r=t.Jc();r.Ob();)n=F(r.Pb(),36),Ynt(e,n,0,0)}function ZIe(e){for(var t,n=nP(e.a,0);n.b!=n.d.c;)t=F(sE(n),65),t6e(t)}function QIe(e,t){return Ode(e.e,t)||XN(e.e,t,new OYe(t)),F(oO(e.e,t),113)}function vD(e,t,n,r){return MC(e),MC(t),MC(n),MC(r),new STe(e,t,new Te)}function yD(e,t,n,r){this.$j(),this.a=t,this.b=e,this.c=new gTe(this,t,n,r)}function bD(e,t,n,r,i,a){TMe.call(this,t,r,i,a),this.c=e,this.b=n}function xD(e,t,n,r,i,a){TMe.call(this,t,r,i,a),this.c=e,this.a=n}function SD(e,t){var n,r,i=e.r;return r=e.d,n=WR(e,t,!0),n.b!=i||n.a!=r}function CD(e,t,n){var r,i=(r=uL(e.b,t),r);return i?rz(WD(e,i),n):null}function $Ie(e,t,n){var r=Qw(e,n),i=null,a;r&&(i=y4e(r)),a=i,bYe(t,n,a)}function eLe(e,t,n){var r=Qw(e,n),i=null,a;r&&(i=y4e(r)),a=i,bYe(t,n,a)}function tLe(e,t,n){var i;e.d[t.g]=n,i=e.g.c,i[t.g]=r.Math.max(i[t.g],n+1)}function wD(e,t){var n=e.Fh(t);return n>=0?e.Ih(n,!0,!0):qI(e,t,!0)}function nLe(e,t){var n=pC(e.k,t);return c9e(e,t),sR(e,t),w5e(e,t,n),null}function rLe(e){var t;if(!e.a)throw O(new fOe);return t=e.a,e.a=aT(e.a),t}function iLe(e){if(e.b<=0)throw O(new Qd);return--e.b,e.a-=e.c.c,K(e.a)}function aLe(e,t,n){var r=LUe(e,t,n);return e.b=new Ak(r.c.length),zet(e,r)}function TD(e){var t;return aC(e),N(e,204)?(t=F(e,204),t):new zc(e)}function oLe(e){for(;!e.a;)if(!Oye(e.c,new yae(e)))return!1;return!0}function sLe(e,t){e.a.Le(t.d,e.b)>0&&(ry(e.c,new eCe(t.c,t.d,e.d)),e.b=t.d)}function cLe(e,t){if(e.g==null||t>=e.i)throw O(new iv(t,e.i));return e.g[t]}function lLe(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)U(e,t);return bNe(e)}function uLe(e){ED(),F(e.mf((Hz(),V6)),182).Ec((II(),Z8)),e.of(B6,null)}function ED(){ED=C,aLt=new Pa,sLt=new Fne,oLt=pUe((Hz(),B6),aLt,k6,sLt)}function DD(){DD=C,cPt=new Vfe(`LEAF_NUMBER`,0),D4=new Vfe(`NODE_SIZE`,1)}function dLe(){dLe=C,UR(),LVt=DV,IVt=OV,zVt=new yl(DV),RVt=new yl(OV)}function fLe(e){return N(e,180)?``+F(e,180).a:e==null?null:XM(e)}function pLe(e){return N(e,180)?``+F(e,180).a:e==null?null:XM(e)}function OD(e,t,n,r,i){return t<0?qI(e,n,r):F(n,69).uk().wk(e,e.ei(),t,r,i)}function kD(e,t,n,r){var i;r=(pw(),r||hxt),i=e.slice(t,n),i3e(i,e,t,n,-t,r)}function mLe(e,t){var n,r=t/e.c.Pd().gc()|0;return n=t%e.c.Pd().gc(),nD(e,r,n)}function hLe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function gLe(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[1];)n=t;return n}function _Le(e,t,n){if(gj(e,n),n!=null&&!e.dk(n))throw O(new Ud);return n}function AD(e,t){return mO(t)!=10&&W(Cj(t),t.Qm,t.__elementTypeId$,mO(t),e),e}function vLe(e,t){$_.call(this,t.xd(),t.wd()&-16449),MC(e),this.a=e,this.c=t}function yLe(e,t,n,r,i){_he(this),this.b=e,this.d=t,this.f=n,this.g=r,this.c=i}function bLe(e,t){if(t.a)throw O(new wp(Rft));LS(e.a,t),t.a=e,!e.j&&(e.j=t)}function jD(){jD=C,DY=new cg(oH,0),EY=new cg(aH,1),OY=new cg(sH,2)}function MD(){MD=C,cY=new ag(`All`,0),lY=new Mme,uY=new hhe,dY=new Nme}function xLe(){xLe=C,Nxt=Rj((MD(),W(A(fY,1),Z,310,0,[cY,lY,uY,dY])))}function SLe(){SLe=C,aTt=Rj((qA(),W(A(iTt,1),Z,367,0,[uZ,cZ,lZ,sZ])))}function CLe(){CLe=C,ewt=Rj((HN(),W(A($Ct,1),Z,383,0,[yX,QCt,_X,vX])))}function wLe(){wLe=C,MSt=Rj((MA(),W(A(jSt,1),Z,409,0,[LY,PY,FY,IY])))}function TLe(){TLe=C,GCt=Rj((JA(),W(A(WCt,1),Z,408,0,[fX,hX,pX,mX])))}function ELe(){ELe=C,ITt=Rj((rN(),W(A(FTt,1),Z,301,0,[HZ,NTt,VZ,PTt])))}function DLe(){DLe=C,ajt=Rj((yP(),W(A(R0,1),Z,203,0,[I0,L0,F0,P0])))}function OLe(){OLe=C,gjt=Rj((NN(),W(A(hjt,1),Z,269,0,[X0,mjt,Z0,Q0])))}function kLe(){kLe=C,yTt=Rj((jA(),W(A(vTt,1),Z,413,0,[dZ,fZ,pZ,mZ])))}function ALe(){ALe=C,nMt=Rj((qj(),W(A(tMt,1),Z,404,0,[m2,g2,_2,h2])))}function jLe(){jLe=C,YPt=Rj((HP(),W(A(JPt,1),Z,354,0,[F4,KPt,qPt,GPt])))}function MLe(){MLe=C,XNt=Rj((jj(),W(A(YNt,1),Z,353,0,[_4,h4,g4,m4])))}function NLe(){NLe=C,GMt=Rj((oF(),W(A(WMt,1),Z,398,0,[N2,P2,F2,I2])))}function PLe(){PLe=C,rFt=Rj((YF(),W(A(nFt,1),Z,401,0,[U4,B4,H4,V4])))}function FLe(){FLe=C,BRt=Rj((Yj(),W(A(zRt,1),Z,278,0,[u8,l8,LRt,RRt])))}function ILe(){ILe=C,URt=Rj((yM(),W(A(v8,1),Z,222,0,[_8,h8,m8,g8])))}function LLe(){LLe=C,szt=Rj((sF(),W(A(ozt,1),Z,292,0,[D8,w8,T8,E8])))}function RLe(){RLe=C,Nzt=Rj((OE(),W(A(H5,1),Z,288,0,[Azt,Mzt,V5,jzt])))}function zLe(){zLe=C,wzt=Rj((EN(),W(A(k5,1),Z,380,0,[D5,O5,E5,T5])))}function BLe(){BLe=C,Rzt=Rj((iN(),W(A(Lzt,1),Z,327,0,[U5,Pzt,Izt,Fzt])))}function VLe(){VLe=C,Wzt=Rj((Aj(),W(A(Uzt,1),Z,407,0,[W5,Vzt,Bzt,Hzt])))}function ND(){ND=C,XTt=new ffe(oU,0),lQ=new ffe(`IMPROVE_STRAIGHTNESS`,1)}function PD(){PD=C,l3=new a_(tgt,0),ZFt=new a_(kht,1),XFt=new a_(oU,2)}function FD(e){e.a=H(q9,cV,30,e.b+1,15,1),e.c=H(q9,cV,30,e.b,15,1),e.d=0}function ID(e){for(var t=e.p+1;t=0?gP(e,n,!0,!0):qI(e,t,!0)}function aRe(e,t){Nb(F(F(e.f,26).mf((Hz(),R6)),102))&&uqe(uDe(F(e.f,26)),t)}function oRe(e,t){qO(e,t==null||Fb((MC(t),t))||isNaN((MC(t),t))?0:(MC(t),t))}function sRe(e,t){KO(e,t==null||Fb((MC(t),t))||isNaN((MC(t),t))?0:(MC(t),t))}function cRe(e,t){VO(e,t==null||Fb((MC(t),t))||isNaN((MC(t),t))?0:(MC(t),t))}function lRe(e,t){JO(e,t==null||Fb((MC(t),t))||isNaN((MC(t),t))?0:(MC(t),t))}function uRe(e){(this.q?this.q:(fw(),fw(),rY)).zc(e.q?e.q:(fw(),fw(),rY))}function nO(e,t,n){var r=e.g[t];return iy(e,t,e.Xi(t,n)),e.Pi(t,n,r),e.Li(),r}function rO(e,t){var n=e.bd(t);return n>=0&&(e.ed(n),!0)}function iO(e){var t;return e.d!=e.r&&(t=mF(e),e.e=!!t&&t.jk()==lyt,e.d=t),e.e}function aO(e,t){var n;for(aC(e),aC(t),n=!1;t.Ob();)n|=e.Ec(t.Pb());return n}function oO(e,t){var n=F(pC(e.e,t),393);return n?($he(e,n),n.e):null}function sO(e){var t=e.b.c.length==0?null:kx(e.b,0);return t!=null&&Ok(e,0),t}function cO(e,t){var n,r;return AM(e),r=new jFe(t,e.a),n=new Iye(r),new Mx(e,n)}function lO(){lO=C,jY=new lg(`TOP`,0),AY=new lg(aH,1),kY=new lg(ept,2)}function uO(){uO=C,MQ=new Ng(oU,0),NQ=new Ng(`TOP`,1),jQ=new Ng(ept,2)}function dO(){dO=C,JCt=new bt,YCt=new nee,KCt=new ree,qCt=new iee,XCt=new xt}function fO(){fO=C,Bbt=Uv(vV,vV,524287),Vbt=Uv(0,0,bV),Hbt=aFe(1),aFe(2),Ubt=aFe(0)}function pO(e,t){var n=e.a[t],r=(QA(),NJ)[typeof n];return r?r(n):cGe(typeof n)}function dRe(e){var t=e/60|0,n=e%60;return n==0?``+t:``+t+`:`+(``+n)}function fRe(e){return VQe(e,(fO(),Ubt))<0?-Oge(nj(e)):e.l+e.m*xV+e.h*SV}function pRe(e){switch(e.g){case 0:return $z;case 1:return VB;default:return 0}}function mO(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function mRe(e,t){return N(t,103)&&(F(t,19).Bb&jV)!=0?new ov(t,e):new TA(t,e)}function hRe(e,t){return N(t,103)&&(F(t,19).Bb&jV)!=0?new ov(t,e):new TA(t,e)}function gRe(e,t,n){return ty(new j(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(MC(t),t)}function _Re(e,t){var n,r,i=t.c.i;n=F(pC(e.f,i),60),r=n.d.c-n.e.c,xVe(t.a,r,0)}function vRe(e,t){var n;for(++e.d,++e.c[t],n=t+1;ne.a[r]&&(r=n);return r}function DRe(e){var t=F(q(e,(X(),IQ)),318);return t?t.a==e:!1}function ORe(e){var t=F(q(e,(X(),IQ)),318);return t?t.i==e:!1}function kRe(e,t){return t==(Vb(),Vb(),Txt)?e.toLocaleLowerCase():e.toLowerCase()}function ARe(){ARe=C,zCt=Rj(($F(),W(A(RCt,1),Z,363,0,[nX,rX,iX,aX,oX])))}function jRe(){jRe=C,sjt=Rj((dP(),W(A(U0,1),Z,303,0,[ojt,B0,V0,z0,H0])))}function MRe(){MRe=C,xTt=Rj((FF(),W(A(bTt,1),Z,371,0,[gZ,vZ,yZ,_Z,hZ])))}function NRe(){NRe=C,sPt=Rj((RF(),W(A(oPt,1),Z,364,0,[T4,S4,E4,C4,w4])))}function PRe(){PRe=C,oIt=Rj((wL(),W(A(aIt,1),Z,369,0,[f3,d3,m3,p3,h3])))}function FRe(){FRe=C,vIt=Rj((dI(),W(A(_It,1),Z,330,0,[mIt,w3,gIt,T3,hIt])))}function IRe(){IRe=C,FEt=Rj((nN(),W(A(PEt,1),Z,165,0,[L$,N$,P$,F$,I$])))}function LRe(){LRe=C,lLt=Rj((eP(),W(A(z3,1),Z,160,0,[L3,I3,P3,R3,F3])))}function RRe(){RRe=C,IRt=Rj((hM(),W(A(c8,1),Z,86,0,[o8,a8,i8,r8,s8])))}function zRe(){zRe=C,hzt=Rj((Dz(),W(A(S5,1),cU,64,0,[b5,n5,t5,y5,x5])))}function BRe(){BRe=C,dzt=Rj((tP(),W(A(V8,1),Z,257,0,[z8,B8,lzt,R8,uzt])))}function hO(){hO=C,VY=new Bde(`EADES`,0),HY=new Bde(`FRUCHTERMAN_REINGOLD`,1)}function gO(){gO=C,$Z=new dfe(`READING_DIRECTION`,0),UTt=new dfe(`ROTATION`,1)}function VRe(e){this.g=e,this.f=new Od,this.a=r.Math.min(this.g.c.c,this.g.d.c)}function HRe(e){this.b=new Od,this.a=new Od,this.c=new Od,this.d=new Od,this.e=e}function URe(e,t,n,r){Wz(),Ed.call(this,26),this.c=e,this.a=t,this.d=n,this.b=r}function WRe(e,t,n){Sb.call(this),yze(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function GRe(e,t,n){for(var r,i=new D(n);i.a=0&&t0?$z:Gj(e,VB)<0?VB:Wx(e)}function JRe(e,t){return PO(),-Hv(F(q(e,(AR(),u4)),15).a,F(q(t,u4),15).a)}function YRe(){return pL(),W(A(jX,1),Z,249,0,[OX,EX,wX,kX,TX,CX,AX,DX])}function XRe(){return nL(),W(A(y7,1),Z,244,0,[v7,h7,g7,m7,_7,f7,d7,p7])}function ZRe(){return yI(),W(A(dLt,1),Z,285,0,[uLt,B3,W3,K3,V3,H3,U3,G3])}function QRe(){return YL(),W(A(DTt,1),Z,275,0,[TZ,OZ,wZ,jZ,DZ,EZ,AZ,kZ])}function $Re(e,t){return!!Jk(e,t,Wx(LM(jB,WC(Wx(LM(t==null?0:Lk(t),MB)),15))))}function eze(e,t){var n=t>0?t-1:t;return cle(sle(Vze(dCe(new ip,n),e.n),e.j),e.k)}function xO(e){var t,n=(t=new Jf,t);hD((!e.q&&(e.q=new I(B7,e,11,10)),e.q),n)}function tze(e,t){var n=F(Wj(e.d,t),18),r;return n?(r=t,e.e.pc(r,n)):null}function SO(e,t){var n;return AM(e),n=new eOe(e,e.a.xd(),e.a.wd()|4,t),new Mx(e,n)}function CO(e){var t;Gy(!!e.c),t=e.c.a,DO(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function nze(e){return e.a>=-.01&&e.a<=uH&&(e.a=0),e.b>=-.01&&e.b<=uH&&(e.b=0),e}function rze(e){var t=k(P(q(e,(zz(),y1))));return t<0&&(t=0,G(e,y1,t)),t}function ize(e,t){Nb(F(q(F(e.e,9),(zz(),X1)),102))&&(fw(),Bv(F(e.e,9).j,t))}function wO(e,t){for(var n,r=e.Jc();r.Ob();)n=F(r.Pb(),70),G(n,(X(),n$),t)}function aze(e,t,n){var i=r.Math.max(0,e.b/2-.5);gF(n,i,1),ry(t,new Qde(n,i))}function oze(e,t,n,r){var i;e.j=-1,t8e(e,b4e(e,t,n),(qh(),i=F(t,69).tk(),i.vl(r)))}function sze(e,t,n,r,i,a){var o=uFe(r);sT(o,i),lT(o,a),GI(e.a,r,new Wb(o,t,n.f))}function cze(e,t){pP(e,(XL(),Y4),t.f),pP(e,aFt,t.e),pP(e,J4,t.d),pP(e,iFt,t.c)}function lze(e,t){if(0>e||e>t)throw O(new Ece(`fromIndex: 0, toIndex: `+e+Eft+t))}function TO(e){if(e<0)throw O(new Hp(`Illegal Capacity: `+e));this.g=this.$i(e)}function uze(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(sm(),TJ)}function EO(e,t){for(var n=e;aT(n);)if(n=aT(n),n==t)return!0;return!1}function dze(e,t){return t&&e.b[t.g]==t?(fC(e.b,t.g,null),--e.c,!0):!1}function DO(e,t){var n=t.c;return t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,n}function fze(e,t){var n=AL(e.Ah(),t);if(!n)throw O(new Hp(vK+t+bK));return n}function OO(e){GL();var t,n=Rht;for(t=0;tn&&(n=e[t]);return n}function pze(e){for(var t=0;t0&&(e.a/=t,e.b/=t),e}function jO(e){this.b=(aC(e),new Lb(e)),this.a=new Od,this.d=new Od,this.e=new Nm}function yze(e){e.b=(jD(),EY),e.f=(lO(),AY),e.d=(_k(2,FB),new pD(2)),e.e=new Nm}function MO(){MO=C,bY=new sg(`BEGIN`,0),xY=new sg(aH,1),SY=new sg(`END`,2)}function NO(){NO=C,d8=new g_(aH,0),f8=new g_(`HEAD`,1),p8=new g_(`TAIL`,2)}function PO(){PO=C,tPt=LN(LN(LN(Bh(new AC,(oF(),P2)),(lR(),R2)),XMt),eNt)}function FO(){FO=C,rPt=LN(LN(LN(Bh(new AC,(oF(),I2)),(lR(),QMt)),qMt),ZMt)}function bze(){bze=C,TY=(MO(),W(A(CY,1),Z,237,0,[bY,xY,SY])).length,wY=TY}function xze(e,t){for(;t[0]=0;)++t[0]}function IO(e,t){var n,r=e.a;n=nKe(e,t,null),r!=t&&!e.e&&(n=yz(e,t,n)),n&&n.mj()}function LO(e){var t;return e.w?e.w:(t=oje(e),t&&!t.Sh()&&(e.w=t),t)}function Sze(e){var t;return e==null?null:(t=F(e,195),y0e(t,t.length))}function U(e,t){if(e.g==null||t>=e.i)throw O(new iv(t,e.i));return e.Ui(t,e.g[t])}function Cze(e,t){fw();var n,r=new Od;for(n=0;n=14&&t<=16))),e}function jze(){jze=C,kTt=Rj((CI(),W(A(zZ,1),Z,231,0,[FZ,LZ,PZ,IZ,RZ,NZ])))}function Mze(){Mze=C,YTt=Rj((cI(),W(A(JTt,1),Z,284,0,[iQ,rQ,oQ,aQ,cQ,sQ])))}function Nze(){Nze=C,iEt=Rj((TF(),W(A(rEt,1),Z,282,0,[dQ,eEt,nEt,$Tt,tEt,uQ])))}function Pze(){Pze=C,dEt=Rj((aI(),W(A(uEt,1),Z,283,0,[fQ,oEt,lEt,cEt,sEt,aEt])))}function Fze(){Fze=C,gLt=Rj((bP(),W(A(hLt,1),Z,256,0,[Y3,Q3,$3,e6,X3,Z3])))}function Ize(){Ize=C,pzt=Rj((LF(),W(A(fzt,1),Z,102,0,[q8,K8,G8,H8,W8,U8])))}function Lze(){Lze=C,mzt=Rj((II(),W(A(e5,1),Z,280,0,[Q8,X8,Z8,Y8,J8,$8])))}function Rze(){Rze=C,OLt=Rj((MF(),W(A(c6,1),Z,299,0,[s6,o6,a6,r6,n6,i6])))}function zze(){zze=C,XRt=Rj((XF(),W(A(YRt,1),Z,328,0,[y8,KRt,JRt,WRt,qRt,GRt])))}function Bze(){return iL(),W(A(L8,1),Z,96,0,[k8,O8,j8,I8,F8,P8,M8,N8,A8])}function BO(){BO=C,C5=new T_(D_t,0),w5=new T_(`PARENT`,1),xzt=new T_(`ROOT`,2)}function Vze(e,t){return e.n=t,e.n?(e.f=new Od,e.e=new Od):(e.f=null,e.e=null),e}function VO(e,t){var n=e.f;e.f=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,3,n,e.f))}function HO(e,t){var n=e.a;e.a=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,0,n,e.a))}function UO(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,1,n,e.b))}function WO(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,3,n,e.b))}function GO(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,4,n,e.c))}function KO(e,t){var n=e.g;e.g=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,4,n,e.g))}function qO(e,t){var n=e.i;e.i=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,5,n,e.i))}function JO(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,6,n,e.j))}function YO(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,1,n,e.j))}function XO(e,t){var n=e.k;e.k=t,e.Db&4&&!(e.Db&1)&&dA(e,new SE(e,2,n,e.k))}function ZO(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&dA(e,new QNe(e,2,n,e.d))}function QO(e,t){var n=e.s;e.s=t,e.Db&4&&!(e.Db&1)&&dA(e,new QNe(e,4,n,e.s))}function $O(e,t){var n=e.t;e.t=t,e.Db&4&&!(e.Db&1)&&dA(e,new QNe(e,5,n,e.t))}function ek(e,t){var n=e.F;e.F=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,5,n,t))}function tk(e,t){var n=F(pC((Uh(),E7),e),58);return n?n.ek(t):H(hJ,iB,1,t,5,1)}function nk(e,t){var n=t in e.a,r;return n&&(r=Qw(e,t).pe(),r)?r.a:null}function Hze(e,t){var n=(r=(Im(),i=new so,i),t&&g9e(r,t),r),r,i;return NBe(n,e),n}function Uze(e,t,n){var r=PN(n);return LC(e.c,r,t),LC(e.d,t,n),LC(e.e,t,$w(t)),t}function rk(e,t,n,r,i,a){var o=iC(e,t);return $ze(n,o),o.i=i?8:0,o.f=r,o.e=i,o.g=a,o}function Wze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=1,this.c=e,this.a=n}function Gze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=2,this.c=e,this.a=n}function Kze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=6,this.c=e,this.a=n}function qze(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=7,this.c=e,this.a=n}function Jze(e,t,n,r,i){this.d=t,this.j=r,this.e=i,this.o=-1,this.p=4,this.c=e,this.a=n}function Yze(e,t){for(var n,r=t,i=0,a=r.length;i0?F(kx(n.a,r-1),9):null}function ok(e){if(!(e>=0))throw O(new Hp(`tolerance (`+e+`) must be >= 0`));return e}function sk(){return M3||(M3=new ont,bj(M3,W(A(BY,1),iB,148,0,[new vc]))),M3}function ck(){ck=C,jjt=new Gg(`NO`,0),u2=new Gg(Upt,1),Ajt=new Gg(`LOOK_BACK`,2)}function lk(){lk=C,LTt=new Tg(`ARD`,0),WZ=new Tg(`MSD`,1),UZ=new Tg(`MANUAL`,2)}function uk(){uk=C,r2=new Hg(lH,0),t2=new Hg(`INPUT`,1),n2=new Hg(`OUTPUT`,2)}function dk(e,t){var n=e.gc();if(t<0||t>n)throw O(new Ob(t,n));return new Rye(e,t)}function fk(e,t){for(var n,r=t,i=0,a=r.length;i=0),RJe(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function hk(e,t){e.b=r.Math.max(e.b,t.d),e.e+=t.r+(e.a.c.length==0?0:e.c),ry(e.a,t)}function sBe(e,t){t.Tg(`Hierarchical port constraint processing`,1),HYe(e),udt(e),t.Ug()}function gk(e){for(var t,n=e.c.Bc().Jc();n.Ob();)t=F(n.Pb(),18),t.$b();e.c.$b(),e.d=0}function cBe(e,t){for(var n=0,r=e.gc();n=0}function kBe(e,t){e.r>0&&e.c0&&e.g!=0&&kBe(e.i,t/e.r*e.i.d))}function ABe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,1,n,e.c))}function yk(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,4,n,e.c))}function jBe(e,t){var n=e.c;e.c=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,1,n,e.c))}function MBe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,1,n,e.d))}function bk(e,t){var n=e.k;e.k=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,2,n,e.k))}function xk(e,t){var n=e.D;e.D=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,2,n,e.D))}function Sk(e,t){var n=e.f;e.f=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,8,n,e.f))}function Ck(e,t){var n=e.i;e.i=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,7,n,e.i))}function NBe(e,t){var n=e.a;e.a=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,8,n,e.a))}function PBe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,0,n,e.b))}function FBe(e,t){var n=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,0,n,e.b))}function IBe(e,t,n){var r;e.b=t,e.a=n,r=(e.a&512)==512?new Yse:new Wre,e.c=Met(r,e.b,e.a)}function LBe(e,t){return BL(e.e,t)?(qh(),iO(t)?new Cx(t,e):new W_(t,e)):new Ipe(t,e)}function RBe(e){var t,n;return 0>e?new Vue:(t=e+1,n=new PPe(t,e),new ove(null,n))}function zBe(e,t){fw();var n=new yh(1);return z_(e)?dT(n,e,t):kI(n.f,e,t),new Vl(n)}function BBe(e,t){var n=new rt;F(t.b,68),F(t.b,68),F(t.b,68),kO(t.a,new gSe(e,n,t))}function VBe(e,t){var n=e.d;e.d=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,11,n,e.d))}function HBe(e,t){for(var n,r=t.vc().Jc();r.Ob();)n=F(r.Pb(),45),bF(e,n.jd(),n.kd())}function wk(e,t){var n=e.j;e.j=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,13,n,e.j))}function UBe(e,t){var n;return N(t,8)?(n=F(t,8),e.a==n.a&&e.b==n.b):!1}function WBe(e){var t=q(e,(X(),d$));return N(t,174)?Mqe(F(t,174)):null}function GBe(e){var t;return e=r.Math.max(e,2),t=TUe(e),e>t?(t<<=1,t>0?t:PB):t}function KBe(e){var t;return e.b==null?(Gh(),Gh(),u9):(t=e.sl()?e.rl():e.ql(),t)}function Tk(e){var t;return Bb(e.f.g,e.d),Ky(e.b),e.c=e.a,t=F(e.a.Pb(),45),e.b=VHe(e),t}function Ek(e,t){var n=e.a,r=0;for(var i in n)n.hasOwnProperty(i)&&(t[r++]=i);return t}function Dk(e,t){var n;return MC(t),n=t.g,!e.b[n]&&(fC(e.b,n,t),++e.c,!0)}function qBe(e,t){var n=t==null?-1:VD(e.b,t,0);return n<0?!1:(Ok(e,n),!0)}function Ok(e,t){var n=KE(e.b,e.b.c.length-1);t0):(!e.c&&(e.c=wT(gA(e.f))),e.c).e}function fVe(e,t){t?e.B??(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function pVe(e,t){typeof window===Yz&&typeof window.$gwt===Yz&&(window.$gwt[e]=t)}function mVe(e,t,n){for(var r=0,i=0,a;i>>31;r!=0&&(e[n]=r)}function Kk(e,t,n,r,i,a){var o;this.c=e,o=new Od,eZe(e,o,t,e.b,n,r,i,a),this.a=new qT(o,0)}function hVe(){this.c=new Xm(0),this.b=new Xm(Lht),this.d=new Xm(Fht),this.a=new Xm(Iht)}function gVe(e,t){return k(P(Cy(iM(QC(new Mx(null,new DT(e.c.b,16)),new Zae(e)),t))))}function _Ve(e,t){return k(P(Cy(iM(QC(new Mx(null,new DT(e.c.b,16)),new Xae(e)),t))))}function vVe(e,t){var n=F(Y(e,(pI(),j4)),15),r=F(Y(t,j4),15);return Hv(n.a,r.a)}function yVe(e,t){var n;t.Tg(`General Compactor`,1),n=wqe(F(Y(e,(pI(),A4)),386)),n.Bg(e)}function bVe(e,t,n){n.Tg(`DFS Treeifying phase`,1),fJe(e,t),F9e(e,t),e.a=null,e.b=null,n.Ug()}function xVe(e,t,n){for(var r,i=nP(e,0);i.b!=i.d.c;)r=F(sE(i),8),r.a+=t,r.b+=n;return e}function qk(e,t,n){for(var r=e.b[n&e.f];r;r=r.b)if(n==r.a&&EC(t,r.g))return r;return null}function Jk(e,t,n){for(var r=e.c[n&e.f];r;r=r.d)if(n==r.f&&EC(t,r.i))return r;return null}function SVe(e,t,n,r){var i=new Ep;_w(i,`x`,NF(e,t,r.a)),_w(i,`y`,PF(e,t,r.b)),_C(n,i)}function CVe(e,t,n,r){var i=new Ep;_w(i,`x`,NF(e,t,r.a)),_w(i,`y`,PF(e,t,r.b)),_C(n,i)}function Yk(e,t,n,r,i,a,o,s,c,l,u,d,f){return n3e(e,t,n,r,i,a,o,s,c,l,u,d,f),UM(e,!1),e}function Xk(e,t,n,r,i,a,o){rh.call(this,e,t),this.d=n,this.e=r,this.c=i,this.b=a,this.a=HE(o)}function wVe(e,t){return Pv(),ok(uH),r.Math.abs(0-t)<=uH||t==0?0:e/t}function TVe(e,t){return JA(),e==fX&&t==hX||e==hX&&t==fX||e==mX&&t==pX||e==pX&&t==mX}function EVe(e,t){return JA(),e==fX&&t==pX||e==fX&&t==mX||e==hX&&t==mX||e==hX&&t==pX}function DVe(){return WL(),W(A(CQ,1),Z,261,0,[mQ,gQ,_Q,vQ,yQ,bQ,SQ,pQ,hQ,xQ])}function OVe(){return oR(),W(A(fjt,1),Z,243,0,[J0,K0,q0,ljt,ujt,cjt,djt,Y0,W0,G0])}function Zk(){Zk=C,l9=new qse,GBt=W(A(M7,1),Tq,179,0,[]),WBt=W(A(B7,1),dyt,62,0,[])}function Qk(){Qk=C,uwt=new cee,cwt=new Ot,lwt=new kt,swt=new At,dwt=new jt,fwt=new Mt}function kVe(e,t){t.Tg(Lpt,1),aN(Yue(new nu((Ah(),new nw(e,!1,!1,new Et))))),t.Ug()}function $k(e){var t=yMe(e);return G_(t.a,0)?(mh(),mh(),sY):(mh(),new qy(t.b))}function eA(e){var t=yMe(e);return G_(t.a,0)?(mh(),mh(),sY):(mh(),new qy(t.c))}function AVe(e){var t=tE(e);return G_(t.a,0)?(_h(),_h(),Dxt):(_h(),new p_e(t.b))}function jVe(e){return e.b.c.i.k==(pL(),wX)?F(q(e.b.c.i,(X(),d$)),12):e.b.c}function MVe(e){return e.b.d.i.k==(pL(),wX)?F(q(e.b.d.i,(X(),d$)),12):e.b.d}function NVe(e){switch(e.g){case 2:return Dz(),x5;case 4:return Dz(),t5;default:return e}}function PVe(e){switch(e.g){case 1:return Dz(),y5;case 3:return Dz(),n5;default:return e}}function FVe(e,t){var n=h0e(e);return p6e(new j(n.c,n.d),new j(n.b,n.a),e.Kf(),t,e.$f())}function tA(e,t){var n,r;for(MC(t),r=t.vc().Jc();r.Ob();)n=F(r.Pb(),45),e.yc(n.jd(),n.kd())}function IVe(e,t,n){for(var r=n.Jc();r.Ob();)if(!hE(e,t,r.Pb()))return!1;return!0}function LVe(e,t){var n;for(aC(t);e.Ob();)if(n=e.Pb(),!DHe(F(n,9)))return!1;return!0}function RVe(e,t,n,r,i){var a;return n&&(a=uN(t.Ah(),e.c),i=n.Oh(t,-1-(a==-1?r:a),null,i)),i}function zVe(e,t,n,r,i){var a;return n&&(a=uN(t.Ah(),e.c),i=n.Qh(t,-1-(a==-1?r:a),null,i)),i}function BVe(e){var t;if(e.b==-2){if(e.e==0)t=-1;else for(t=0;e.a[t]==0;t++);e.b=t}return e.b}function VVe(e){if(MC(e),e.length==0)throw O(new pm(`Zero length BigInteger`));irt(this,e)}function HVe(e){this.i=e.gc(),this.i>0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}function UVe(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new Od,N3e(this),fw(),Bv(this.a,null)}function WVe(e,t){t.q=e,e.d=r.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),ry(e.a,t)}function GVe(e,t){return ti&&t.aa&&t.bi?n=i:kT(t,n+1),e.a=jw(e.a,0,t)+(``+r)+aEe(e.a,n)}function JVe(e,t,n,r){N(e.Cb,184)&&(F(e.Cb,184).tb=null),zk(e,n),t&&v6e(e,t),r&&e.el(!0)}function YVe(){YVe=C,fLt=Rj((yI(),W(A(dLt,1),Z,285,0,[uLt,B3,W3,K3,V3,H3,U3,G3])))}function XVe(){XVe=C,lBt=Rj((nL(),W(A(y7,1),Z,244,0,[v7,h7,g7,m7,_7,f7,d7,p7])))}function ZVe(){ZVe=C,awt=Rj((pL(),W(A(jX,1),Z,249,0,[OX,EX,wX,kX,TX,CX,AX,DX])))}function QVe(){QVe=C,OTt=Rj((YL(),W(A(DTt,1),Z,275,0,[TZ,OZ,wZ,jZ,DZ,EZ,AZ,kZ])))}function $Ve(){return lR(),W(A(rNt,1),Z,264,0,[R2,XMt,eNt,tNt,$Mt,YMt,nNt,qMt,QMt,ZMt,JMt])}function eHe(){eHe=C,eMt=LN(tme(Sx(Sx(new AC,($F(),iX),(Uz(),XX)),aX,HX),oX),YX)}function tHe(){tHe=C,iMt=LN(tme(Sx(Sx(new AC,($F(),iX),(Uz(),XX)),aX,HX),oX),YX)}function nHe(){var e;return pY||(pY=new Ise,e=new LPe(``),Yme(e,(vh(),Ixt)),JBe(pY,e)),pY}function rHe(e){return pb(),e.A.Gc((EN(),T5))&&!e.B.Gc((hR(),P5))?Yqe(e):null}function iHe(e,t){var n=xnt(sk(),e);return n?(pP(t,(Hz(),K6),n),!0):!1}function uA(e,t){for(var n=0;n1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw O(new Qd)}function gHe(e){Zme();var t;return Sde(D2,e)||(t=new Oi,t.a=e,Ive(D2,e,t)),F(zC(D2,e),636)}function _He(e){switch(e.a.g){case 1:return new ype;case 3:return new kZe;default:return new fie}}function vHe(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Aje(e,t)}function xA(e){var t;return e<128?(VCe(),t=qbt[e],!t&&(t=qbt[e]=new Cl(e)),t):new Cl(e)}function yHe(e){for(var t=1,n,r=e.Jc();r.Ob();)n=r.Pb(),t=31*t+(n==null?0:Lk(n)),t=~~t;return t}function SA(e){var t,n,r=0;for(n=new fh(e.a);n.a>22),i=e.h+t.h+(r>>22);return Uv(n&vV,r&vV,i&yV)}function $He(e,t){var n=e.l-t.l,r=e.m-t.m+(n>>22),i=e.h-t.h+(r>>22);return Uv(n&vV,r&vV,i&yV)}function eUe(e){var t;FR(e,!0),t=qB,Yy(e,(zz(),t0))&&(t+=F(q(e,t0),15).a),G(e,t0,K(t))}function GA(e){var t,n,r,i=new Od;for(r=e.Jc();r.Ob();)n=F(r.Pb(),26),t=HL(n),VA(i,t);return i}function tUe(e,t,n){var r;BS(e.a),kO(n.i,new Noe(e)),r=new Wv(F(pC(e.a,t.b),68)),JJe(e,r,t),n.f=r}function nUe(e,t){return!e||!t||e==t?!1:DJe(e.d.c,t.d.c+t.d.b)&&DJe(t.d.c,e.d.c+e.d.b)}function rUe(e,t,n,i,a){return GL(),r.Math.min(Cct(e,t,n,i,a),Cct(n,i,e,t,Xy(new j(a.a,a.b))))}function iUe(e,t){if(!e)throw O(new Hp(QL(`value already present: %s`,W(A(hJ,1),iB,1,5,[t]))))}function aUe(e){var t,n=(Im(),t=new ao,t);return e&&hD((!e.a&&(e.a=new I(Q5,e,6,6)),e.a),n),n}function KA(e,t){var n,r=0;if(e<64&&e<=t)for(t=t<64?t:63,n=e;n<=t;n++)r=IT(r,dS(1,n));return r}function oUe(e,t){var n,r;for(xw(t,`predicate`),r=0;e.Ob();r++)if(n=e.Pb(),t.Lb(n))return r;return-1}function sUe(e,t){t===0?(!e.o&&(e.o=new yD((Pz(),a7),u7,e,0)),e.o.c.$b()):_I(e,t)}function cUe(e){switch(e.g){case 1:return T8;case 2:return w8;case 3:return E8;default:return D8}}function lUe(e){fw();var t,n,r=0;for(n=e.Jc();n.Ob();)t=n.Pb(),r+=t==null?0:Lk(t),r|=0;return r}function uUe(e){var t=new S;return t.a=e,t.b=EUe(e),t.c=H(KJ,vB,2,2,6,1),t.c[0]=uVe(e),t.c[1]=uVe(e),t}function qA(){qA=C,uZ=new yg(oU,0),cZ=new yg(Bpt,1),lZ=new yg(Vpt,2),sZ=new yg(`BOTH`,3)}function JA(){JA=C,fX=new hg(`Q1`,0),hX=new hg(`Q4`,1),pX=new hg(`Q2`,2),mX=new hg(`Q3`,3)}function YA(){YA=C,kQ=new Mg(`ONLY_WITHIN_GROUP`,0),mEt=new Mg(sU,1),OQ=new Mg(`ENFORCED`,2)}function XA(){XA=C,tQ=new Dg(oU,0),eQ=new Dg(`INCOMING_ONLY`,1),nQ=new Dg(`OUTGOING_ONLY`,2)}function ZA(){ZA=C,new fd(`org.eclipse.elk.addLayoutConfig`),nLt=new ka,tLt=new Aa,rLt=new Oa}function QA(){QA=C,NJ={boolean:Lue,number:cce,string:Np,object:p3e,function:p3e,undefined:Tse}}function dUe(){dUe=C,pjt=Rj((oR(),W(A(fjt,1),Z,243,0,[J0,K0,q0,ljt,ujt,cjt,djt,Y0,W0,G0])))}function fUe(){fUe=C,fEt=Rj((WL(),W(A(CQ,1),Z,261,0,[mQ,gQ,_Q,vQ,yQ,bQ,SQ,pQ,hQ,xQ])))}function pUe(e,t,n,r){return new Tde(W(A(bJ,1),DB,45,0,[(RP(e,t),new eh(e,t)),(RP(n,r),new eh(n,r))]))}function mUe(e,t){return jit(F(F(pC(e.g,t.a),49).a,68),F(F(pC(e.g,t.b),49).a,68))}function hUe(e,t,n){var r=e.gc();if(t>r)throw O(new Ob(t,r));return e.Qi()&&(n=Hke(e,n)),e.Ci(t,n)}function gUe(e){var t,n=e.n,r=e.o;return t=e.d,new rw(n.a-t.b,n.b-t.d,r.a+(t.b+t.c),r.b+(t.d+t.a))}function _Ue(e,t){return!e||!t||e==t?!1:ZM(e.b.c,t.b.c+t.b.b)<0&&ZM(t.b.c,e.b.c+e.b.b)<0}function $A(e,t,n){return e>=128?!1:q_(e<64?FT(dS(1,e),n):FT(dS(1,e-64),t),0)}function ej(e,t,n){switch(n.g){case 2:e.b=t;break;case 1:e.c=t;break;case 4:e.d=t;break;case 3:e.a=t}}function vUe(e,t){for(;e.g==null&&!e.c?Vke(e):e.g==null||e.i!=0&&F(e.g[e.i-1],50).Ob();)t.Bi(fL(e))}function tj(e,t,n){return n==null?(!e.q&&(e.q=new kd),GE(e.q,t)):(!e.q&&(e.q=new kd),LC(e.q,t,n)),e}function G(e,t,n){return n==null?(!e.q&&(e.q=new kd),GE(e.q,t)):(!e.q&&(e.q=new kd),LC(e.q,t,n)),e}function yUe(e){var t,n=new YE;return wA(n,e),G(n,(Mk(),XY),e),t=new kd,mat(e,n,t),$ct(e,n,t),n}function bUe(e){GL();var t,n=H(J3,vB,8,2,0,1),r=0;for(t=0;t<2;t++)r+=.5,n[t]=JXe(r,e);return n}function xUe(e,t){for(var n=!1,r=e.a[t].length,i,a=0;ae.f,n=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d;return t||n}function wUe(e){var t;return(!e.c||!(e.Bb&1)&&e.c.Db&64)&&(t=mF(e),N(t,88)&&(e.c=F(t,29))),e.c}function TUe(e){var t;if(e<0)return VB;if(e==0)return 0;for(t=PB;(t&e)==0;t>>=1);return t}function EUe(e){var t;return e==0?`Etc/GMT`:(e<0?(e=-e,t=`Etc/GMT-`):t=`Etc/GMT+`,t+dRe(e))}function DUe(e){var t,n=KI(e.h);return n==32?(t=KI(e.m),t==32?KI(e.l)+32:t+20-10):n-12}function rj(e){var t=e.a[e.b];return t==null?null:(fC(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function OUe(){++xbt,this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function kUe(e,t){this.c=e,this.d=t,this.b=this.d/this.c.c.Pd().gc()|0,this.a=this.d%this.c.c.Pd().gc()}function AUe(e,t){this.b=e,av.call(this,(F(U(z((eC(),K7).o),10),19),t.i),t.g),this.a=(Zk(),GBt)}function jUe(e,t,n){this.q=new r.Date,this.q.setFullYear(e+sV,t,n),this.q.setHours(0,0,0,0),LR(this,0)}function MUe(e,t,n){var r=new fD(t,n),i=new _e;return e.b=Eet(e,e.b,r,i),i.b||++e.c,e.b.b=!1,i.d}function NUe(e,t){fw();var n,r,i,a,o=!1;for(r=t,i=0,a=r.length;io||r+i>a)throw O(new Hd)}function FUe(e,t,n){var r,i,a,o=oM(t,n);for(a=0,i=o.Jc();i.Ob();)r=F(i.Pb(),12),LC(e.c,r,K(a++))}function ij(e){for(var t,n=new D(e.a.b);n.a1||t>=0&&e.b<3)}function iWe(){Wz();var e;return WVt||(e=n_e(Az(`M`,!0)),e=Lx(Az(`M`,!1),e),WVt=e,WVt)}function aWe(e){switch(e.g){case 1:return Fht;default:case 2:return 0;case 3:return Iht;case 4:return Lht}}function gj(e,t){if(!e.Ji()&&t==null)throw O(new Hp(`The 'no null' constraint is violated`));return t}function oWe(e,t){rx(e>=0,`Negative initial capacity`),rx(t>=0,`Non-positive load factor`),BS(this)}function sWe(e,t){for(var n,r,i=e.b;i;){if(n=e.a.Le(t,i.d),n==0)return i;r=n<0?0:1,i=i.a[r]}return null}function _j(e,t){var n;return t===e?!0:N(t,229)?(n=F(t,229),aM(e.Zb(),n.Zb())):!1}function cWe(e,t){return a9e(e,t)?(GI(e.b,F(q(t,(X(),WQ)),22),t),fx(e.a,t),!0):!1}function lWe(e,t){return Yy(e,(X(),u$))&&Yy(t,u$)?F(q(t,u$),15).a-F(q(e,u$),15).a:0}function uWe(e,t){return Yy(e,(X(),u$))&&Yy(t,u$)?F(q(e,u$),15).a-F(q(t,u$),15).a:0}function dWe(e,t){var n=F(Y(e,(JL(),t3)),15).a,r=F(Y(t,t3),15).a;return n==r||nr)}function fWe(e){return ry(e.c,(ZA(),nLt)),Dze(e.a,k(P(iP((bN(),E0)))))?new $ne:new Ioe(e)}function pWe(e){for(;!e.d||!e.d.Ob();)if(e.b&&!qp(e.b))e.d=F(KS(e.b),50);else return null;return e.d}function mWe(e,t,n){return e.d[t.p][n.p]||(cXe(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function vj(e,t,n){var r,i=(r=new Jf,r);return pk(i,t,n),hD((!e.q&&(e.q=new I(B7,e,11,10)),e.q),i),i}function yj(e){var t,n,r,i=xde(aBt,e);for(n=i.length,r=H(KJ,vB,2,n,6,1),t=0;t=e.b.c.length||(hWe(e,2*t+1),n=2*t+2,n0&&(t.Ad(n),n.i&&kYe(n))}function _We(e,t,n){for(var r=n-1;r>=0&&e[r]===t[r];r--);return r<0?0:Qh(FT(e[r],PV),FT(t[r],PV))?-1:1}function vWe(e,t){var n;return!e||e==t||!Yy(t,(X(),e$))?!1:(n=F(q(t,(X(),e$)),9),n!=e)}function xj(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.Yl()}}function yWe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}function bWe(e,t){for(var n,r=e.Zb().Bc().Jc();r.Ob();)if(n=F(r.Pb(),18),n.Gc(t))return!0;return!1}function xWe(e,t,n){var r,i,a,o;for(MC(n),o=!1,a=e.dd(t),i=n.Jc();i.Ob();)r=i.Pb(),a.Rb(r),o=!0;return o}function SWe(e,t,n){var r,i;this.g=e,this.c=t,this.a=this,this.d=this,i=GBe(n),r=H(Obt,NB,227,i,0,1),this.b=r}function Sj(e,t){var n,r=F(yA(e.a,4),129);return n=H(w7,pq,415,t,0,1),r!=null&&OR(r,0,n,0,r.length),n}function CWe(e,t){var n=new Att(!!(e.f&256),e.i,e.a,e.d,!!(e.f&16),e.j,e.g,t);return e.e??(n.c=e),n}function wWe(e,t){var n;return e===t?!0:N(t,92)?(n=F(t,92),q2e(oS(e),n.vc())):!1}function TWe(e,t,n){for(var r,i=n.Jc();i.Ob();)if(r=F(i.Pb(),45),e.ze(t,r.kd()))return!0;return!1}function Cj(e){return z_(e)?KJ:R_(e)?BJ:L_(e)?LJ:Zwe(e)||bwe(e)?e.Pm:e.Pm||Array.isArray(e)&&A(Mbt,1)||Mbt}function wj(){wj=C,cX=Oke(W(A(c8,1),Z,86,0,[(hM(),i8),a8])),lX=Oke(W(A(c8,1),Z,86,0,[s8,r8]))}function Tj(){Tj=C,nzt=new kv(15),tzt=new Mv((Hz(),M6),nzt),b8=U6,ZRt=jLt,QRt=E6,ezt=O6,$Rt=D6}function Ej(){Ej=C,S8=new y_(D_t,0),x8=new y_(`INCLUDE_CHILDREN`,1),C8=new y_(`SEPARATE_CHILDREN`,2)}function Dj(){Dj=C,O4=new $g(oU,0),dPt=new $g(`RADIAL_COMPACTION`,1),fPt=new $g(`WEDGE_COMPACTION`,2)}function Oj(){Oj=C,s2=new Ug(`STACKED`,0),a2=new Ug(`REVERSE_STACKED`,1),o2=new Ug(`SEQUENCED`,2)}function kj(){kj=C,Vxt=new og(`CONCURRENT`,0),hY=new og(`IDENTITY_FINISH`,1),Hxt=new og(`UNORDERED`,2)}function Aj(){Aj=C,W5=new N_(`ELK`,0),Vzt=new N_(`JSON`,1),Bzt=new N_(`DOT`,2),Hzt=new N_(`SVG`,3)}function jj(){jj=C,_4=new Zg(sU,0),h4=new Zg(Vht,1),g4=new Zg(`FAN`,2),m4=new Zg(`CONSTRAINT`,3)}function Mj(){Mj=C,c2=new Wg(`CONSERVATIVE`,0),Djt=new Wg(`CONSERVATIVE_SOFT`,1),l2=new Wg(`SLOPPY`,2)}function Nj(e,t,n){for(var r=new ph,i,a=nP(n,0);a.b!=a.d.c;)i=F(sE(a),8),fx(r,new pv(i));xWe(e,t,r)}function EWe(e){var t=0,n,r=H(J3,vB,8,e.b,0,1);for(n=nP(e,0);n.b!=n.d.c;)r[t++]=F(sE(n),8);return r}function DWe(e,t){var n=F(e.d.Ac(t),18),r;return n?(r=e.e.hc(),r.Fc(n),e.e.d-=n.gc(),n.$b(),r):null}function OWe(e,t){var n,r=e.c[t];if(r!=0)for(e.c[t]=0,e.d-=r,n=t+1;n0)return vS(t-1,e.a.c.length),KE(e.a,t-1);throw O(new qd)}function AWe(e,t,n){if(t<0)throw O(new Fp(Kgt+t));tt)throw O(new Hp(YV+e+Mft+t));if(e<0||t>n)throw O(new Ece(YV+e+Nft+t+Eft+n))}function MWe(e){if(!e.a||!(e.a.i&8))throw O(new Up(`Enumeration class expected for layout option `+e.f))}function NWe(e){Eke.call(this,`The given string does not match the expected format for individual spacings.`,e)}function PWe(){ece.call(this,new FIe(hA(16))),_k(2,Xdt),this.b=2,this.a=new GEe(null,null,0,null),Vd(this.a,this.a)}function FWe(e){Sce(),Gv(this),gw(this),this.e=e,cet(this,e),this.g=e==null?aB:XM(e),this.a=``,this.b=e,this.a=``}function Pj(e,t){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),xk(e,t==null?null:(MC(t),t)),e.C&&e.fl(null)}function IWe(e,t){var n=e.a.length-1,r;for(e.c=e.c-1&n;t!=e.c;)r=t+1&n,fC(e.a,t,e.a[r]),t=r;fC(e.a,e.c,null)}function LWe(e,t){for(var n=e.a.length-1,r;t!=e.b;)r=t-1&n,fC(e.a,t,e.a[r]),t=r;fC(e.a,e.b,null),e.b=e.b+1&n}function RWe(e,t,n){var r,i;return pT(t,e.c.length),r=n.Nc(),i=r.length,i!=0&&(BSe(e.c,t,r),!0)}function zWe(e){var t=(!e.a&&(e.a=new I(R7,e,9,5)),e.a);return t.i==0?null:vde(F(U(t,0),684))}function BWe(e,t){var n=IM(e,t);return Qh(LT(e,t),0)|K_(LT(e,n),0)?n:IM(CB,LT(pS(n,63),1))}function VWe(e,t){var n=iP((bN(),E0))!=null&&t.Rg()!=null?k(P(t.Rg()))/k(P(iP(E0))):1;LC(e.b,t,n)}function Fj(e){var t;++e.j,e.i==0?e.g=null:e.ii&&(e1e(t.q,i),r=n!=t.q.d)),r}function tGe(e,t){for(var n=0;n=e.c.b:e.a<=e.c.b))throw O(new Qd);return t=e.a,e.a+=e.c.c,++e.b,K(t)}function Uj(e,t){var n=F(e.c.Ac(t),18),r;return n?(r=e.hc(),r.Fc(n),e.d-=n.gc(),n.$b(),e.mc(r)):e.jc()}function sGe(e,t){aC(e);try{return e.Ac(t)}catch(e){if(e=UA(e),N(e,211)||N(e,172))return null;throw O(e)}}function Wj(e,t){aC(e);try{return e.xc(t)}catch(e){if(e=UA(e),N(e,211)||N(e,172))return null;throw O(e)}}function Gj(e,t){var n;return dv(e)&&dv(t)&&(n=e-t,!isNaN(n))?n:VQe(dv(e)?CA(e):e,dv(t)?CA(t):t)}function Kj(e,t,n){return r.Math.abs(t-e)uG?e-n>uG:n-e>uG}function cGe(e){throw QA(),O(new Tp(`Unexpected typeof result '`+e+`'; please report this bug to the GWT team`))}function lGe(){this.a=new Sa,this.f=new $u(this),this.b=new koe(this),this.i=new Aoe(this),this.e=new ed(this)}function qj(){qj=C,m2=new qg(`BARYCENTER`,0),g2=new qg(Rpt,1),_2=new qg(zpt,2),h2=new qg(`MEDIAN`,3)}function Jj(){Jj=C,M0=new Lg(`DUMMY_NODE_OVER`,0),njt=new Lg(`DUMMY_NODE_UNDER`,1),N0=new Lg(`EQUAL`,2)}function Yj(){Yj=C,u8=new h_(D_t,0),l8=new h_(`CONTAINER`,1),LRt=new h_(`PARENT`,2),RRt=new h_(`ROOT`,3)}function uGe(e,t,n){var r=new G6e(e,t);GI(e.r,t.$f(),r),n&&!VS(e.u)&&(r.c=new wke(e.d),kO(t.Pf(),new ru(r)))}function Xj(e){var t=new phe(e.a);return wA(t,e),G(t,(X(),d$),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function Zj(e){var t;return Ky(e.a!=e.b),t=e.d.a[e.a],u_e(e.b==e.d.c&&t!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function dGe(e){var t;if(e.c!=0)return e.c;for(t=0;t=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function yGe(e,t){var n,r,i=1;for(n=e,r=t>=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,--r);return t<0?1/i:i}function bGe(e){var t,n,r,i;if(e!=null){for(n=0;n0&&(n=F(kx(e.a,e.a.c.length-1),565),cWe(n,t))||ry(e.a,new FPe(t))}function PGe(e,t){var n;e.c.length!=0&&(n=F(qN(e,H(SX,mU,9,e.c.length,0,1)),199),hme(n,new cn),T6e(n,t))}function FGe(e,t){var n;e.c.length!=0&&(n=F(qN(e,H(SX,mU,9,e.c.length,0,1)),199),hme(n,new ln),T6e(n,t))}function IGe(e,t,n,r,i){t!=0&&r!=0&&(t==1?i[r]=gXe(i,n,r,e[0]):r==1?i[t]=gXe(i,e,t,n[0]):m8e(e,n,i,t,r))}function K(e){var t,n;return e>-129&&e<128?(LCe(),t=e+128,n=Jbt[t],!n&&(n=Jbt[t]=new bl(e)),n):new bl(e)}function $j(e){var t,n;return e>-129&&e<128?(UCe(),t=e+128,n=ext[t],!n&&(n=ext[t]=new El(e)),n):new El(e)}function LGe(e){var t=new dm;return t.a+=`VerticalSegment `,Z_(t,e.e),t.a+=` `,Q_(t,sge(new am,new D(e.k))),t.a}function RGe(e){Jb();var t=e.d.c-e.e.c,n=F(e.g,156);kO(n.b,new Hae(t)),kO(n.c,new Uae(t)),jE(n.i,new Wae(t))}function zGe(e,t){var n;e.c=t,e.a=Aqe(t),e.a<54&&(e.f=(n=t.d>1?eMe(t.a[0],t.a[1]):eMe(t.a[0],0),ZT(t.e>0?n:RD(n))))}function BGe(e,t){for(var n=0,r,i=MM(e,t).Jc();i.Ob();)r=F(i.Pb(),12),n+=q(r,(X(),m$))==null?0:1;return n}function eM(e,t,n){for(var r=0,i,a=nP(e,0);a.b!=a.d.c&&(i=k(P(sE(a))),!(i>n));)i>=t&&++r;return r}function VGe(e,t,n){var r,i=e.sb;return e.sb=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,4,i,t),n?n.lj(r):n=r),n}function HGe(e){var t=F(oO(e.c.c,``),233);return t||(t=new vT(wm(Cm(new Ia,``),`Other`)),XN(e.c.c,``,t)),t}function tM(e){var t;return e.Db&64?cL(e):(t=new gy(cL(e)),t.a+=` (name: `,Y_(t,e.zb),t.a+=`)`,t.a)}function UGe(e,t,n){var r,i=e.r;return e.r=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,8,i,e.r),n?n.lj(r):n=r),n}function WGe(e,t,n){var r=new ZD(e.e,4,13,(i=t.c,i||(Kz(),e9)),null,SP(e,t),!1),i;return n?n.lj(r):n=r,n}function GGe(e,t,n){var r=new ZD(e.e,3,13,null,(i=t.c,i||(Kz(),e9)),SP(e,t),!1),i;return n?n.lj(r):n=r,n}function nM(e,t){var n=F(t,681),r=n.cl();return!r&&n.dl(r=N(t,88)?new Epe(e,F(t,29)):new Wje(e,F(t,159))),r}function rM(e,t,n){var r;e.Zi(e.i+1),r=e.Xi(t,n),t!=e.i&&OR(e.g,t,e.g,t+1,e.i-t),fC(e.g,t,r),++e.i,e.Ki(t,n),e.Li()}function KGe(e,t,n,r,i,a,o,s){for(var c=n;a=r||tn)throw O(new Fp(YV+e+Nft+t+`, size: `+n));if(e>t)throw O(new Hp(YV+e+Mft+t))}function cM(e,t){var n=!!(e.Bb&256);t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,2,n,t))}function lM(e,t){var n=!!(e.Bb&512);t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,3,n,t))}function $Ge(e,t){var n=!!(e.Bb&256);t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,8,n,t))}function eKe(e,t){var n=!!(e.Bb&512);t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,9,n,t))}function tKe(e){var t;return e.Db&64?cL(e):(t=new gy(cL(e)),t.a+=` (source: `,Y_(t,e.d),t.a+=`)`,t.a)}function uM(e,t){var n=!!(e.Bb&256);t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,8,n,t))}function nKe(e,t,n){var r,i=e.a;return e.a=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,5,i,e.a),n?b1e(n,r):n=r),n}function dM(e,t){var n;return e.b==-1&&e.a&&(n=e.a.nk(),e.b=n?e.c.Eh(e.a.Jj(),n):uN(e.c.Ah(),e.a)),e.c.vh(e.b,t)}function rKe(e,t){for(var n,r=new uy(e);r.e!=r.i.gc();)if(n=F(aP(r),29),M(t)===M(n))return!0;return!1}function iKe(e){Gz();for(var t,n=ZN(),r=0,i=n.length;r=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function oKe(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function sKe(e){var t=e.k,n;return t==(pL(),wX)&&(n=F(q(e,(X(),qQ)),64),n==(Dz(),n5)||n==y5)}function cKe(e){var t=yMe(e);return G_(t.a,0)?(mh(),mh(),sY):(mh(),new qy(Zh(t.a,0)?xFe(t)/ZT(t.a):0))}function lKe(e,t){var n=AL(e,t);if(N(n,335))return F(n,38);throw O(new Hp(vK+t+`' is not a valid attribute`))}function fM(e,t,n){var r=e.gc();if(t>r)throw O(new Ob(t,r));if(e.Qi()&&e.Gc(n))throw O(new Hp(XK));e.Ei(t,n)}function uKe(e,t){for(var n,r=new uy(e);r.e!=r.i.gc();)if(n=F(aP(r),143),M(t)===M(n))return!0;return!1}function dKe(e,t,n){var r,i,a=(i=uL(e.b,t),i);return a&&(r=F(rz(WD(e,a),``),29),r)?E5e(e,r,t,n):null}function pM(e,t,n){var r,i,a=(i=uL(e.b,t),i);return a&&(r=F(rz(WD(e,a),``),29),r)?D5e(e,r,t,n):null}function fKe(e){var t,n,r=0;for(n=e.length,t=0;tt?1:e==t?e==0?mM(1/e,1/t):0:isNaN(e)?+!isNaN(t):-1}function gKe(e,t){t.Tg(`Sort end labels`,1),xh(ZC(cO(new Mx(null,new DT(e.b,16)),new qt),new Jt),new Yt),t.Ug()}function hM(){hM=C,o8=new m_(lH,0),a8=new m_(sH,1),i8=new m_(oH,2),r8=new m_(pH,3),s8=new m_(`UP`,4)}function gM(){gM=C,Dzt=new k_(`PARALLEL_NODE`,0),z5=new k_(`HIERARCHICAL_NODE`,1),B5=new k_(`ROOT_NODE`,2)}function _M(){_M=C,g3=new c_(`P1_STRUCTURE`,0),_3=new c_(`P2_PROCESSING_ORDER`,1),v3=new c_(`P3_EXECUTION`,2)}function vM(){vM=C,eIt=new o_(`EQUAL_BETWEEN_STRUCTURES`,0),tIt=new o_(`TO_ASPECT_RATIO`,1),u3=new o_(oU,2)}function yM(){yM=C,_8=new __(lH,0),h8=new __(`POLYLINE`,1),m8=new __(`ORTHOGONAL`,2),g8=new __(`SPLINES`,3)}function _Ke(){_Ke=C,nPt=LN(LN(Bh(LN(LN(Bh(Sx(new AC,(oF(),P2),(lR(),R2)),F2),$Mt),tNt),I2),YMt),nNt)}function vKe(e){switch(F(q(e,(X(),$Q)),316).g){case 1:G(e,$Q,(uO(),jQ));break;case 2:G(e,$Q,(uO(),NQ))}}function yKe(e){switch(e){case 0:return new Use;case 1:return new Vse;case 2:return new Hse;default:throw O(new Jd)}}function bKe(e){switch(e.g){case 2:return a8;case 1:return i8;case 4:return r8;case 3:return s8;default:return o8}}function xKe(e){switch(e.g){case 1:return x5;case 2:return n5;case 3:return t5;case 4:return y5;default:return b5}}function bM(e){switch(e.g){case 1:return y5;case 2:return x5;case 3:return n5;case 4:return t5;default:return b5}}function xM(e){switch(e.g){case 1:return t5;case 2:return y5;case 3:return x5;case 4:return n5;default:return b5}}function SM(e,t,n){var r,i;return e.Nj()?(i=e.Oj(),r=WI(e,t,n),e.Hj(e.Gj(7,K(n),r,t,i)),r):WI(e,t,n)}function CM(e,t){var n,r,i;e.d==null?(++e.e,--e.f):(i=t.jd(),n=t.yi(),r=(n&$z)%e.d.length,HFe(e,r,R5e(e,r,n,i)))}function wM(e,t){var n=(e.Bb&_q)!=0;t?e.Bb|=_q:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,15,n,t))}function TM(e,t){var n=(e.Bb&mq)!=0;t?e.Bb|=mq:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,10,n,t))}function EM(e,t){var n=(e.Bb&kV)!=0;t?e.Bb|=kV:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,12,n,t))}function DM(e,t){var n=(e.Bb&CK)!=0;t?e.Bb|=CK:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,11,n,t))}function SKe(e,t){var n=mM(e.b.c,t.b.c);return n!=0||(n=mM(e.a.a,t.a.a),n!=0)?n:mM(e.a.b,t.a.b)}function CKe(e){var t,n=xC(new dm,91);for(t=!0;e.Ob();)t||(n.a+=rB),t=!1,Z_(n,e.Pb());return(n.a+=`]`,n).a}function wKe(e){for(var t=new Od,n,r=new D(e.b);r.a=1?a8:r8):n}function kKe(e){switch(F(q(e,(zz(),g1)),222).g){case 1:return new gte;case 3:return new Ur;default:return new hte}}function AM(e){if(e.c)AM(e.c);else if(e.d)throw O(new Up(`Stream already terminated, can't be modified or used`))}function AKe(e){var t;if(!e.a)throw O(new Up(`Cannot offset an unassigned cut.`));t=e.c-e.b,e.b+=t,nOe(e,t),rOe(e,t)}function jKe(e,t,n){var r,i;if(e.c)N0e(e.c,t,n);else for(i=new D(e.b);i.a=0?yN(e):JS(yN(RD(e))))}function PKe(e,t,n,r,i,a){this.e=new Od,this.f=(uk(),r2),ry(this.e,e),this.d=t,this.a=n,this.b=r,this.f=i,this.c=a}function FKe(e,t,n,r,i){_he(this),this.b=e,this.d=H(SX,mU,9,t.a.c.length,0,1),this.f=n,qN(t.a,this.d),this.g=r,this.c=i}function IKe(e,t,n){var r=n;!r&&(r=dCe(new ip,0)),r.Tg(Cpt,2),dXe(e.b,t,r.dh(1)),dst(e,t,r.dh(1)),sut(t,r.dh(1)),r.Ug()}function LKe(e,t,n){var r=0;return t&&(bv(e.a)?r+=t.f.a/2:r+=t.f.b/2),n&&(bv(e.a)?r+=n.f.a/2:r+=n.f.b/2),r}function RKe(e,t,n){var r=(Im(),i=new io,i),i;return HO(r,t),UO(r,n),e&&hD((!e.a&&(e.a=new oy(q5,e,5)),e.a),r),r}function PM(e){var t;return e.Db&64?cL(e):(t=new gy(cL(e)),t.a+=` (identifier: `,Y_(t,e.k),t.a+=`)`,t.a)}function FM(e){var t;switch(e.gc()){case 0:return Ex(),EJ;case 1:return new hb(aC(e.Xb(0)));default:return t=e,new PT(t)}}function IM(e,t){var n;return dv(e)&&dv(t)&&(n=e+t,wV>10)+MV&JB,t[1]=(e&1023)+56320&JB,MN(t,0,t.length)}function zM(e){for(var t=new Od,n,r=new D(e.j);r.a34028234663852886e22?DV:t<-34028234663852886e22?OV:t}function HM(e,t){var n=(e.Bb&yB)!=0;t?e.Bb|=yB:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,16,n,t))}function UM(e,t){var n=(e.Bb&xK)!=0;t?e.Bb|=xK:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,18,n,t))}function HKe(e,t){var n=(e.Bb&xK)!=0;t?e.Bb|=xK:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,18,n,t))}function UKe(e,t){var n=(e.Bb&jV)!=0;t?e.Bb|=jV:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&dA(e,new RE(e,1,20,n,t))}function WKe(e,t){e.n.c.length==0&&ry(e.n,new Xw(e.s,e.t,e.i)),ry(e.b,t),qXe(F(kx(e.n,e.n.c.length-1),208),t),Qit(e,t)}function GKe(e,t,n){var r;n.Tg(`Straight Line Edge Routing`,1),n.bh(t,$ht),r=F(Y(t,(fb(),y4)),26),Zat(e,r),n.bh(t,SG)}function KKe(e){for(var t,n=V8e(LO(oT(e))).Jc();n.Ob();)if(t=rb(n.Pb()),xR(e,t))return qNe((dde(),jBt),t);return null}function qKe(e){var t=new Ave(e.Pd().gc()),n,r,i=0;for(r=TD(e.Pd().Jc());r.Ob();)n=r.Pb(),GDe(t,n,K(i++));return B2e(t.a)}function WM(e){var t,n=(t=F(Rm((r=e.Pm,i=r.f,i==wJ?r:i)),10),new Rb(t,F(yb(t,t.length),10),0)),r,i;return Dk(n,e),n}function JKe(e){for(var t,n=0,r=e.length;nt){Qje(n);break}}YS(n,t)}function JM(e,t){var n=t.f,r,i,a,o;if(XN(e.c.d,n,t),t.g!=null)for(i=t.g,a=0,o=i.length;at&&r.Le(e[a-1],e[a])>0;--a)o=e[a],fC(e,a,e[a-1]),fC(e,a-1,o)}function YM(e,t,n,r){if(t<0)x7e(e,n,r);else{if(!n.pk())throw O(new Hp(vK+n.ve()+yK));F(n,69).uk().Ak(e,e.ei(),t,r)}}function $Ke(e,t){var n=AL(e.Ah(),t);if(N(n,103))return F(n,19);throw O(new Hp(vK+t+`' is not a valid reference`))}function XM(e){var t;return Array.isArray(e)&&e.Rm===ne?Um(Cj(e))+`@`+(t=Lk(e)>>>0,t.toString(16)):e.toString()}function eqe(e,t){return e.h==bV&&e.m==0&&e.l==0?(t&&(PJ=Uv(0,0,0)),lme((fO(),Hbt))):(t&&(PJ=Uv(e.l,e.m,e.h)),Uv(0,0,0))}function tqe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function nqe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function rqe(e,t,n,r){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return ZGe(e,t,n,r)}function iqe(e,t,n){switch(t.g){case 1:e.b-=n.b/2;break;case 3:e.b+=n.b/2;break;case 4:e.a-=n.a/2;break;case 2:e.a+=n.a/2}}function aqe(e,t){return kb(t.b&&t.c?HT(t.b)+`->`+HT(t.c):`e_`+Lk(t),e.b&&e.c?HT(e.b)+`->`+HT(e.c):`e_`+Lk(e))}function oqe(e,t){return kb(t.b&&t.c?HT(t.b)+`->`+HT(t.c):`e_`+Lk(t),e.b&&e.c?HT(e.b)+`->`+HT(e.c):`e_`+Lk(e))}function ZM(e,t){return Pv(),ok(BB),r.Math.abs(e-t)<=BB||e==t||isNaN(e)&&isNaN(t)?0:et?1:vb(isNaN(e),isNaN(t))}function QM(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw O(new Hp(`Node `+t+` not part of edge `+e))}function sqe(e){return e.e==null?e:(!e.c&&(e.c=new Att(!!(e.f&256),e.i,e.a,e.d,!!(e.f&16),e.j,e.g,null)),e.c)}function cqe(e){return e.k==(pL(),OX)&&FE(new Mx(null,new oC(new uS(py(VM(e).a.Jc(),new f)))),new Zee)}function $M(e){var t;if(e.b){if($M(e.b),e.b.d!=e.c)throw O(new Kd)}else e.d.dc()&&(t=F(e.f.c.xc(e.e),18),t&&(e.d=t))}function lqe(e){pb();for(var t=e.o.b,n,r=F(F(VE(e.r,(Dz(),y5)),22),83).Jc(),i;r.Ob();)n=F(r.Pb(),115),i=n.e,i.b+=t}function uqe(e,t){db();var n,r=lLe(e),i=t,a;for(kD(r,0,r.length,i),n=0;n=i)return t.c+n;return t.c+t.b.gc()}function eN(e,t,n){for(var r=0,i=e.length;r0&&(kT(t-1,e.length),e.charCodeAt(t-1)==58)&&!eN(e,D7,O7))}function tN(e){var t;this.a=(t=F(e.e&&e.e(),10),new Rb(t,F(yb(t,t.length),10),0)),this.b=H(hJ,iB,1,this.a.a.length,5,1)}function pqe(e){bN(),this.c=HE(W(A(iLt,1),iB,830,0,[JAt])),this.b=new kd,this.a=e,LC(this.b,E0,1),kO(YAt,new Foe(this))}function nN(){nN=C,L$=new Pg(oU,0),N$=new Pg(`FIRST`,1),P$=new Pg(Bpt,2),F$=new Pg(`LAST`,3),I$=new Pg(Vpt,4)}function rN(){rN=C,HZ=new wg(`LAYER_SWEEP`,0),NTt=new wg(`MEDIAN_LAYER_SWEEP`,1),VZ=new wg(jU,2),PTt=new wg(oU,3)}function iN(){iN=C,U5=new j_(kht,0),Pzt=new j_(`GROUP_DEC`,1),Izt=new j_(`GROUP_MIXED`,2),Fzt=new j_(`GROUP_INC`,3)}function mqe(e){var t,n,r,i,a=s0e(e);return n=sh(e.c),r=!n,r&&(i=new Yc,vO(a,`knownLayouters`,i),t=new ase(i),jE(e.c,t)),a}function hqe(e,t,n,r,i){for(var a,o=i,s;t.b!=t.c;)a=F(KS(t),9),s=F(MM(a,r).Xb(0),12),e.d[s.p]=o++,zd(n.c,s);return o}function gqe(e,t){var n,r=0,i,a,o,s;for(n=0,a=t,o=0,s=a.length;o0&&(r+=i,++n);return n>1&&(r+=e.d*(n-1)),r}function _qe(e){var t,n,r=new lm;for(r.a+=`[`,t=0,n=e.gc();t>5,t=e&31,r=H(q9,cV,30,n+1,15,1),r[n]=1<=0;--r)for(t=n[r],i=0;i0&&(t.lengthe.i&&fC(t,e.i,null),t}function fN(e){var t;return e.Db&64?tM(e):(t=new gy(tM(e)),t.a+=` (instanceClassName: `,Y_(t,e.D),t.a+=`)`,t.a)}function pN(e){var t,n,r,i=0;for(n=0,r=e.length;n0&&(e.Zj(),r=t==null?0:Lk(t),i=(r&$z)%e.d.length,n=R5e(e,i,r,t),n!=-1)}function hN(e,t){var n,r,i,a=LL(e.e.Ah(),t);for(n=F(e.g,122),i=0;i3;)i*=10,--a;e=(e+(i>>1))/i|0}return r.i=e,!0}function Jqe(e,t,n){for(var r=FT(n,PV),i=0;Gj(r,0)!=0&&i0&&(e.Zj(),r=t==null?0:Lk(t),i=(r&$z)%e.d.length,n=O6e(e,i,r,t),n)?n.kd():null}function tJe(e,t){var n,r,i;return N(t,45)?(n=F(t,45),r=n.jd(),i=Wj(e.Pc(),r),EC(i,n.kd())&&(i!=null||e.Pc()._b(r))):!1}function yN(e){iR();var t,n=Wx(e);return t=Wx(pS(e,32)),t==0?n>10||n<0?new _E(1,n):dxt[n]:new pje(n,t)}function nJe(e){return yP(),(e.q?e.q:(fw(),fw(),rY))._b((zz(),R1))?F(q(e,R1),203):F(q(jC(e),z1),203)}function bN(){bN=C,Mh(),E0=(zz(),g0),YAt=HE(W(A(N3,1),Dht,147,0,[a0,o0,c0,l0,f0,p0,m0,h0,v0,b0,s0,u0,_0]))}function rJe(e,t,n){bze(),Bse.call(this),this.a=Px(eSt,[vB,Qft],[593,216],0,[TY,wY],2),this.c=new hv,this.g=e,this.f=t,this.d=n}function iJe(e){this.e=H(q9,cV,30,e.length,15,1),this.c=H(J9,rH,30,e.length,16,1),this.b=H(J9,rH,30,e.length,16,1),this.f=0}function aJe(e){var t,n;for(e.j=H(Z9,NV,30,e.p.c.length,15,1),n=new D(e.p);n.a>5,r,i,a;return t&=31,i=e.d+n+(t==0?0:1),r=H(q9,cV,30,i,15,1),d0e(r,e.a,n,t),a=new FS(e.e,i,r),WT(a),a}function fJe(e,t){var n,r,i,a=t.b.b;for(e.a=new ph,e.b=H(q9,cV,30,a,15,1),n=0,i=nP(t.b,0);i.b!=i.d.c;)r=F(sE(i),40),r.g=n++}function pJe(e,t,n){var r,i,a=t-e.e,o=n-e.f;for(i=new D(e.a);i.a=0?a=a.a[1]:(i=a,a=a.a[0])}return i}function kN(e,t,n){for(var r,i=null,a=e.b;a;){if(r=e.a.Le(t,a.d),n&&r==0)return a;r<=0?a=a.a[0]:(i=a,a=a.a[1])}return i}function gJe(e,t,n){var r,i=F(pC(e.b,n),171),a,o;for(r=0,o=new D(t.j);o.a0?(r.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):`stack`in Error()}function AN(e){var t;e.c!=0&&(t=F(kx(e.a,e.b),295),t.b==1?(++e.b,e.bt?1:vb(isNaN(e),isNaN(t)))>0}function EJe(e,t){return Pv(),Pv(),ok(BB),(r.Math.abs(e-t)<=BB||e==t||isNaN(e)&&isNaN(t)?0:et?1:vb(isNaN(e),isNaN(t)))<0}function DJe(e,t){return Pv(),Pv(),ok(BB),(r.Math.abs(e-t)<=BB||e==t||isNaN(e)&&isNaN(t)?0:et?1:vb(isNaN(e),isNaN(t)))<=0}function OJe(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function NN(){NN=C,X0=new Vg(oU,0),mjt=new Vg(`NODES_AND_EDGES`,1),Z0=new Vg(`PREFER_EDGES`,2),Q0=new Vg(`PREFER_NODES`,3)}function kJe(e,t,n,r,i,a){this.a=e,this.c=t,this.b=n,this.f=r,this.d=i,this.e=a,this.c>0&&this.b>0&&(this.g=Fx(this.c,this.b,this.a))}function AJe(e,t){var n=e.a,r;t=String(t),n.hasOwnProperty(t)&&(r=n[t]);var i=(QA(),NJ)[typeof r];return i?i(r):cGe(typeof r)}function PN(e){var t,n,r=null;if(t=UK in e.a,n=!t,n)throw O(new em(`Every element must have an id.`));return r=LI(Qw(e,UK)),r}function FN(e){var t,n=u4e(e);for(t=null;e.c==2;)Rz(e),t||(t=(Wz(),Wz(),++W9,new Lv(2)),lz(t,n),n=t),n.Hm(u4e(e));return n}function IN(e,t){var n,r,i;return e.Zj(),r=t==null?0:Lk(t),i=(r&$z)%e.d.length,n=O6e(e,i,r,t),n?(rBe(e,n),n.kd()):null}function jJe(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+r.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function NJe(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw O(new Hp(`Input edge is not connected to the input port.`))}function LN(e,t){if(e.a<0)throw O(new Up(`Did not call before(...) or after(...) before calling add(...).`));return $ge(e,e.a,t),e}function PJe(e,t){var n,r,i;if(e.c)VO(e.c,t);else for(n=t-Hx(e),i=new D(e.a);i.a=a?(IWe(e,t),-1):(LWe(e,t),1)}function zJe(e,t){for(var n=(kT(t,e.length),e.charCodeAt(t)),r=t+1;rt.e?1:e.ft.f?1:Lk(e)-Lk(t)}function WJe(e,t){var n;return M(t)===M(e)?!0:!N(t,22)||(n=F(t,22),n.gc()!=e.gc())?!1:e.Hc(n)}function BN(e,t){return MC(e),t==null?!1:kb(e,t)?!0:e.length==t.length&&kb(e.toLowerCase(),t.toLowerCase())}function VN(e){var t,n;return Gj(e,-129)>0&&Gj(e,128)<0?(HCe(),t=Wx(e)+128,n=Xbt[t],!n&&(n=Xbt[t]=new vl(e)),n):new vl(e)}function GJe(e){for(var t,n=new D(e.a.b);n.agft)return n.Nh();if(r=n.Gh(),r||n==e)break}return r}function qJe(e,t,n){var r=F(U(qD(e.a),t),87),i,a=(i=r.c,i||(Kz(),e9));return(a.Sh()?Qj(e.b,F(a,52)):a)==n?wR(r):IO(r,n),a}function JJe(e,t,n){for(var r,i,a=new D(n.a);a.a2e3&&(Nbt=e,AJ=r.setTimeout(Rue,10))),kJ++==0&&(xRe((Cce(),Pbt)),!0)}function uYe(e,t,n){var r;(Lxt?(kqe(e),1):Rxt||Bxt?(vh(),1):zxt&&(vh(),0))&&(r=new $ye(t),r.b=n,h2e(e,r))}function KN(e,t){var n=!e.A.Gc((EN(),O5))||e.q==(LF(),U8);e.u.Gc((II(),X8))?n?Zlt(e,t):Elt(e,t):e.u.Gc(Q8)&&(n?rlt(e,t):yut(e,t))}function dYe(e){var t;M(Y(e,(Hz(),v6)))===M((Ej(),S8))&&(aT(e)?(t=F(Y(aT(e),v6),347),pP(e,v6,t)):pP(e,v6,C8))}function fYe(e,t,n){var r,i;QF(e.e,t,n,(Dz(),x5)),QF(e.i,t,n,t5),e.a&&(i=F(q(t,(X(),d$)),12),r=F(q(n,d$),12),VT(e.g,i,r))}function pYe(e,t,n){return new rw(r.Math.min(e.a,t.a)-n/2,r.Math.min(e.b,t.b)-n/2,r.Math.abs(e.a-t.a)+n,r.Math.abs(e.b-t.b)+n)}function mYe(e){var t;this.d=new Od,this.j=new Nm,this.g=new Nm,t=e.g.b,this.f=F(q(jC(t),(zz(),d1)),86),this.e=k(P(cP(t,f0)))}function hYe(e){this.d=new Od,this.e=new CE,this.c=H(q9,cV,30,(Dz(),W(A(S5,1),cU,64,0,[b5,n5,t5,y5,x5])).length,15,1),this.b=e}function gYe(e,t,n){var r=n[e.g][t];switch(e.g){case 1:case 3:return new j(0,r);case 2:case 4:return new j(r,0);default:return null}}function _Ye(e,t){var n=RO(e.o,t);if(n==null)throw O(new em(`Node did not exist in input.`));return c9e(e,t),sR(e,t),w5e(e,t,n),null}function vYe(e,t){var n,r=e.a.length;for(t.lengthr&&fC(t,r,null),t}function qN(e,t){var n,r=e.c.length;for(t.lengthr&&fC(t,r,null),t}function JN(e,t,n,r){var i=e.length;if(t>=i)return i;for(t=t>0?t:0;t0&&(ry(e.b,new jSe(t.a,n)),r=t.a.length,0r&&(t.a+=Phe(H(K9,KB,30,-r,15,1))))}function CYe(e,t,n){var r,i,a;if(!n[t.d])for(n[t.d]=!0,i=new D(Ij(t));i.a=e.b>>1)for(r=e.c,n=e.b;n>t;--n)r=r.b;else for(r=e.a.a,n=0;n=0?e.Th(i):VI(e,r)):n<0?VI(e,r):F(r,69).uk().zk(e,e.ei(),n)}function FYe(e){var t,n,r=(!e.o&&(e.o=new yD((Pz(),a7),u7,e,0)),e.o);for(n=r.c.Jc();n.e!=n.i.gc();)t=F(n.Wj(),45),t.kd();return oD(r)}function iP(e){var t;if(N(e.a,4)){if(t=IJe(e.a),t==null)throw O(new Up(Ygt+e.b+`'. `+qgt+(tb(S7),S7.k)+Jgt));return t}return e.a}function IYe(e){var t;if(e==null)return null;if(t=uut(QR(e,!0)),t==null)throw O(new nm(`Invalid base64Binary value: '`+e+`'`));return t}function aP(e){var t;try{return t=e.i.Xb(e.e),e.Vj(),e.g=e.e++,t}catch(t){throw t=UA(t),N(t,99)?(e.Vj(),O(new Qd)):O(t)}}function oP(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(t){throw t=UA(t),N(t,99)?(e.Vj(),O(new Qd)):O(t)}}function sP(e){var t,n,r,i=0;for(n=0,r=e.length;n=64&&t<128&&(i=IT(i,dS(1,t-64)));return i}function cP(e,t){var n,r=null;return Yy(e,(Hz(),J6))&&(n=F(q(e,J6),105),n.nf(t)&&(r=n.mf(t))),r==null&&jC(e)&&(r=q(jC(e),t)),r}function LYe(e,t){var n=F(q(e,(zz(),T1)),79);return Yv(t,twt)?n?hw(n):(n=new Uf,G(e,T1,n)):n&&G(e,T1,null),n}function RYe(e,t){var n,r,i=new pD(t.gc());for(r=t.Jc();r.Ob();)n=F(r.Pb(),294),n.c==n.f?gI(e,n,n.c):o4e(e,n)||zd(i.c,n);return i}function zYe(e,t){for(var n=e.o,r,i=F(F(VE(e.r,t),22),83).Jc();i.Ob();)r=F(i.Pb(),115),r.e.a=NZe(r,n.a),r.e.b=n.b*k(P(r.b.mf(NY)))}function BYe(e,t){var n,r,i=e.k,a;return n=k(P(q(e,(X(),h$)))),a=t.k,r=k(P(q(t,h$))),a==(pL(),wX)?i==wX?n==r?0:nn.b)}function YYe(e){var t=new dm;return t.a+=`n`,e.k!=(pL(),OX)&&Q_(Q_((t.a+=`(`,t),Wy(e.k).toLowerCase()),`)`),Q_((t.a+=`_`,t),$P(e)),t.a}function dP(){dP=C,ojt=new zg(kht,0),B0=new zg(jU,1),V0=new zg(`LINEAR_SEGMENTS`,2),z0=new zg(`BRANDES_KOEPF`,3),H0=new zg(Oht,4)}function fP(e,t,n,r){var i;return n>=0?e.Ph(t,n,r):(e.Mh()&&(r=(i=e.Ch(),i>=0?e.xh(r):e.Mh().Qh(e,-1-i,null,r))),e.zh(t,n,r))}function XYe(e,t){switch(t){case 7:!e.e&&(e.e=new Db(Z5,e,7,4)),uz(e.e);return;case 8:!e.d&&(e.d=new Db(Z5,e,8,5)),uz(e.d);return}Uqe(e,t)}function pP(e,t,n){return n==null?(!e.o&&(e.o=new yD((Pz(),a7),u7,e,0)),IN(e.o,t)):(!e.o&&(e.o=new yD((Pz(),a7),u7,e,0)),bF(e.o,t,n)),e}function mP(e,t){var n=e.dd(t);try{return n.Pb()}catch(e){throw e=UA(e),N(e,112)?O(new Fp(`Can't get element `+t)):O(e)}}function ZYe(e,t){var n=F(zC(e.b,t),127).n;switch(t.g){case 1:e.t>=0&&(n.d=e.t);break;case 3:e.t>=0&&(n.a=e.t)}e.C&&(n.b=e.C.b,n.c=e.C.c)}function QYe(e){var t=e.a;do t=F(zE(new uS(py(zM(t).a.Jc(),new f))),17).c.i,t.k==(pL(),EX)&&e.b.Ec(t);while(t.k==(pL(),EX));e.b=cN(e.b)}function $Ye(e,t){var n,i,a=e;for(i=new uS(py(zM(t).a.Jc(),new f));rL(i);)n=F(zE(i),17),n.c.i.c&&(a=r.Math.max(a,n.c.i.c.p));return a}function eXe(e,t){var n,r,i=0;for(r=F(F(VE(e.r,t),22),83).Jc();r.Ob();)n=F(r.Pb(),115),i+=n.d.d+n.b.Kf().b+n.d.a,r.Ob()&&(i+=e.w);return i}function tXe(e,t){var n,r,i=0;for(r=F(F(VE(e.r,t),22),83).Jc();r.Ob();)n=F(r.Pb(),115),i+=n.d.b+n.b.Kf().a+n.d.c,r.Ob()&&(i+=e.w);return i}function nXe(e){var t,n,r=0,i=HL(e);if(i.c.length==0)return 1;for(n=new D(i);n.a=0?e.Ih(o,n,!0):qI(e,a,n)):F(a,69).uk().wk(e,e.ei(),i,n,r)}function oXe(e,t,n,r){var i=iKe(t.nf((Hz(),T6))?F(t.mf(T6),22):e.j);i!=(Gz(),MY)&&(!n||OJe(i))&&J2e(B5e(e,i,r),t)}function _P(e,t){return z_(e)?!!bbt[t]:e.Qm?!!e.Qm[t]:R_(e)?!!ybt[t]:L_(e)?!!vbt[t]:!1}function sXe(e){switch(e.g){case 1:return MA(),LY;case 3:return MA(),PY;case 2:return MA(),IY;case 4:return MA(),FY;default:return null}}function cXe(e,t,n){if(e.e)switch(e.b){case 1:QDe(e.c,t,n);break;case 0:$De(e.c,t,n)}else ANe(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function lXe(e){var t,n;if(e==null)return null;for(n=H(SX,vB,199,e.length,0,2),t=0;ta)):0}function yP(){yP=C,I0=new Rg(oU,0),L0=new Rg(`PORT_POSITION`,1),F0=new Rg(`NODE_SIZE_WHERE_SPACE_PERMITS`,2),P0=new Rg(`NODE_SIZE`,3)}function mXe(e,t){var n,r,i;for(t.Tg(`Untreeify`,1),n=F(q(e,(Ez(),fNt)),16),i=n.Jc();i.Ob();)r=F(i.Pb(),65),fx(r.b.d,r),fx(r.c.b,r);t.Ug()}function bP(){bP=C,Y3=new f_(`AUTOMATIC`,0),Q3=new f_(oH,1),$3=new f_(sH,2),e6=new f_(`TOP`,3),X3=new f_(ept,4),Z3=new f_(aH,5)}function xP(e,t,n){var r,i=e.gc();if(t>=i)throw O(new Ob(t,i));if(e.Qi()&&(r=e.bd(n),r>=0&&r!=t))throw O(new Hp(XK));return e.Vi(t,n)}function SP(e,t){var n,r,i=aQe(e,t);if(i>=0)return i;if(e.ml()){for(r=0;r0||e==(fp(),xJ)||t==(up(),SJ))throw O(new Hp(`Invalid range: `+xNe(e,t)))}function gXe(e,t,n,r){KL();for(var i=0,a=0;a0),(t&-t)==t)return Gw(t*_L(e,31)*4656612873077393e-25);do n=_L(e,31),r=n%t;while(n-r+(t-1)<0);return Gw(r)}function vXe(e,t){for(var n=Sy(new gf,e),r,i=new D(t);i.a1&&(a=vXe(e,t)),a}function TXe(e){for(var t=0,n,r=new D(e.c.a);r.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function RP(e,t){if(e==null)throw O(new Wp(`null key in entry: null=`+t));if(t==null)throw O(new Wp(`null value in entry: `+e+`=null`))}function NXe(e,t){var n=W(A(Z9,1),NV,30,15,[zj(e.a[0],t),zj(e.a[1],t),zj(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function PXe(e,t){var n=W(A(Z9,1),NV,30,15,[Bj(e.a[0],t),Bj(e.a[1],t),Bj(e.a[2],t)]);return e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function FXe(e,t,n){Nb(F(q(t,(zz(),X1)),102))||(NPe(e,t,fI(t,n)),NPe(e,t,fI(t,(Dz(),y5))),NPe(e,t,fI(t,n5)),fw(),Bv(t.j,new eoe(e)))}function IXe(e){var t,n;for(e.c||xst(e),n=new Uf,t=new D(e.a),B(t);t.a0&&(kT(0,t.length),t.charCodeAt(0)==43)?(kT(1,t.length+1),t.substr(1)):t))}function $Xe(e){var t;return e==null?null:new Ov((t=QR(e,!0),t.length>0&&(kT(0,t.length),t.charCodeAt(0)==43)?(kT(1,t.length+1),t.substr(1)):t))}function eZe(e,t,n,r,i,a,o,s){var c,l;r&&(c=r.a[0],c&&eZe(e,t,n,c,i,a,o,s),rF(e,n,r.d,i,a,o,s)&&t.Ec(r),l=r.a[1],l&&eZe(e,t,n,l,i,a,o,s))}function BP(e,t){var n,r,i,a=e.gc();for(t.lengtha&&fC(t,a,null),t}function tZe(e,t){var n,r=e.gc();if(t==null){for(n=0;n0&&(c+=i),l[u]=o,o+=s*(c+r)}function uZe(e){for(var t=0;t0?e.c:0),++a;e.b=i,e.d=o}function vZe(e,t){var n=W(A(Z9,1),NV,30,15,[_Xe(e,(MO(),bY),t),_Xe(e,xY,t),_Xe(e,SY,t)]);return e.f&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function yZe(e){var t;Yy(e,(zz(),F1))&&(t=F(q(e,F1),22),t.Gc((iL(),k8))?(t.Kc(k8),t.Ec(j8)):t.Gc(j8)&&(t.Kc(j8),t.Ec(k8)))}function bZe(e){var t;Yy(e,(zz(),F1))&&(t=F(q(e,F1),22),t.Gc((iL(),I8))?(t.Kc(I8),t.Ec(P8)):t.Gc(P8)&&(t.Kc(P8),t.Ec(I8)))}function JP(e,t,n,r){var i,a,o,s;return e.a??w2e(e,t),o=t.b.j.c.length,a=n.d.p,s=r.d.p,i=s-1,i<0&&(i=o-1),a<=i?e.a[i]-e.a[a]:e.a[o-1]-e.a[a]+e.a[i]}function xZe(e){for(var t=0;t0&&(a.b+=t),a}function ZP(e,t){var n,i,a=new Nm;for(i=e.Jc();i.Ob();)n=F(i.Pb(),36),tR(n,0,a.b),a.b+=n.f.b+t,a.a=r.Math.max(a.a,n.f.a);return a.a>0&&(a.a+=t),a}function OZe(e,t){var n,r;if(t.length==0)return 0;for(n=gC(e.a,t[0],(Dz(),x5)),n+=gC(e.a,t[t.length-1],t5),r=0;r>16==6?e.Cb.Qh(e,5,n7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||e.fi()),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function AZe(e){Iw();var t=e.e;if(t&&t.stack){var n=t.stack,r=t+` `;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(` -`)}return[]}function DZe(e){var t=(bBe(),Obt);return t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function OZe(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=CUe(r.Math.max(8,i))<<1,e.b==0?of(e.a,n):(t=Ob(e.a,n),sVe(e,t,i),e.a=t,e.b=0),e.c=i)}function kZe(e,t){var n=e.b;return n.nf((Qz(),n8))?n.$f()==(Lz(),N5)?-n.Kf().a-k(P(n.mf(n8))):t+k(P(n.mf(n8))):n.$f()==(Lz(),N5)?-n.Kf().a:t}function rF(e){var t;return e.b.c.length!=0&&F(zx(e.b,0),70).a?F(zx(e.b,0),70).a:(t=XC(e),t??``+(e.c?VD(e.c.a,e,0):-1))}function iF(e){var t;return e.f.c.length!=0&&F(zx(e.f,0),70).a?F(zx(e.f,0),70).a:(t=XC(e),t??``+(e.i?VD(e.i.j,e,0):-1))}function AZe(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n0?e.c:0),a=r.Math.max(a,t.d),++i;e.e=o,e.b=a}function MZe(e){var t,n;if(!e.b)for(e.b=RT(F(e.f,125).jh().i),n=new yy(F(e.f,125).jh());n.e!=n.i.gc();)t=F(lP(n),157),fy(e.b,new Up(t));return e.b}function NZe(e,t){var n,r,i;if(t.dc())return bb(),bb(),E7;for(n=new gve(e,t.gc()),i=new yy(e);i.e!=i.i.gc();)r=lP(i),t.Gc(r)&&hD(n,r);return n}function PZe(e,t,n,r){return t==0?r?(!e.o&&(e.o=new yD((Wz(),d7),g7,e,0)),e.o):(!e.o&&(e.o=new yD((Wz(),d7),g7,e,0)),oD(e.o)):bP(e,t,n,r)}function aF(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t>22),i+=r>>22,i<0)?!1:(e.l=n&OV,e.m=r&OV,e.h=i&kV,!0)}function sF(e,t,n,r,i,a,o){var s,c;return!(t.Re()&&(c=e.a.Le(n,r),c<0||!i&&c==0)||t.Se()&&(s=e.a.Le(n,a),s>0||!o&&s==0))}function RZe(e,t){if(hj(),e.j.g-t.j.g!=0)return 0;switch(e.j.g){case 2:return ZM(t,Kwt)-ZM(e,Kwt);case 4:return ZM(e,Gwt)-ZM(t,Gwt)}return 0}function zZe(e){switch(e.g){case 0:return wQ;case 1:return TQ;case 2:return EQ;case 3:return DQ;case 4:return OQ;case 5:return kQ;default:return null}}function cF(e,t,n){var r=(i=new tp,Wj(i,t),Bk(i,n),hD((!e.c&&(e.c=new I(H7,e,12,10)),e.c),i),i),i;return QO(r,0),$O(r,1),pM(r,!0),fM(r,!0),r}function lF(e,t){var n,r;if(t>=e.i)throw O(new fv(t,e.i));return++e.j,n=e.g[t],r=e.i-t-1,r>0&&LR(e.g,t+1,e.g,t,r),eC(e.g,--e.i,null),e.Oi(t,n),e.Li(),n}function BZe(e,t){var n,r;return e.Db>>16==17?e.Cb.Qh(e,21,I7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||e.fi()),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function VZe(e){var t,n,r,i;for(ew(),Yv(e.c,e.a),i=new D(e.c);i.an.a.c.length))throw O(new qp(`index must be >= 0 and <= layer node count`));e.c&&BD(e.c.a,e),e.c=n,n&&tS(n.a,t,e)}function rQe(e,t){this.c=new Ad,this.a=e,this.b=t,this.d=F(q(e,(X(),U$)),317),this.e=M(q(e,(Yz(),Xkt)))===M((ND(),AQ))?new Lse:new Uf}function pF(e,t){var n=e.dd(t),r;try{return r=n.Pb(),n.Qb(),r}catch(e){throw e=WA(e),N(e,112)?O(new zp(`Can't remove element `+t)):O(e)}}function iQe(e,t){var n,r=new eg,i=new kUe(r.q.getFullYear()-_V,r.q.getMonth(),r.q.getDate());if(n=Eat(e,t,i),n==0||n0?t:0),++n;return new j(i,a)}function lQe(e,t,n){var r,i=e.o;switch(r=e.d,t.g){case 1:return-r.d-n;case 3:return i.b+r.a+n;case 2:return i.a+r.c+n;case 4:return-r.b-n;default:return 0}}function uQe(e,t,n,r){var i,a,o,s;for(Xw(t,F(r.Xb(0),25)),s=r.hd(1,r.gc()),a=F(n.Kb(t),20).Jc();a.Ob();)i=F(a.Pb(),17),o=i.c.i==t?i.d.i:i.c.i,uQe(e,o,n,s)}function dQe(e){var t=new Ad;return ib(e,(X(),q$))?F(q(e,q$),92):(Eh(zC(new Hx(null,new hT(e.j,16)),new dr),new Fu(t)),G(e,q$,t),t)}function hF(e,t){var n,r=null;return e.nf((Qz(),l8))&&(n=F(e.mf(l8),105),n.nf(t)&&(r=n.mf(t))),r==null&&e.Rf()&&(r=e.Rf().mf(t)),r??=cP(t),r}function fQe(e,t){var n,r;return e.Db>>16==6?e.Cb.Qh(e,6,i7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(Wz(),u7)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function pQe(e,t){var n,r;return e.Db>>16==7?e.Cb.Qh(e,1,t7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(Wz(),Kzt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function mQe(e,t){var n,r;return e.Db>>16==9?e.Cb.Qh(e,9,p7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(Wz(),Jzt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function hQe(e,t){var n,r;return e.Db>>16==5?e.Cb.Qh(e,9,L7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(nB(),Z7)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function gQe(e,t){var n,r;return e.Db>>16==7?e.Cb.Qh(e,6,c7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(nB(),r9)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function _Qe(e,t){var n,r;return e.Db>>16==3?e.Cb.Qh(e,0,o7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(nB(),q7)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function vQe(e,t){var n,r;return e.Db>>16==3?e.Cb.Qh(e,12,p7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(Wz(),Wzt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function yQe(e,t,n){var r,i,a;for(n<0&&(n=0),a=e.i,i=n;iWV)return gF(e,r);if(r==e)return!0}}return!1}function xQe(e){switch(Qy(),e.q.g){case 5:X3e(e,(Lz(),m5)),X3e(e,j5);break;case 4:Y5e(e,(Lz(),m5)),Y5e(e,j5);break;default:Olt(e,(Lz(),m5)),Olt(e,j5)}}function SQe(e){switch(Qy(),e.q.g){case 5:H6e(e,(Lz(),p5)),H6e(e,N5);break;case 4:FYe(e,(Lz(),p5)),FYe(e,N5);break;default:klt(e,(Lz(),p5)),klt(e,N5)}}function CQe(e){var t=F(q(e,(MR(),BSt)),15),n;t?(n=t.a,n==0?G(e,(Nk(),vX),new XM):G(e,(Nk(),vX),new _E(n))):G(e,(Nk(),vX),new _E(1))}function wQe(e,t){var n=e.i;switch(t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-n.o.a;case 3:return e.n.b-n.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function TQe(e,t){switch(e.g){case 0:return t==(oN(),t1)?kZ:AZ;case 1:return t==(oN(),t1)?kZ:OZ;case 2:return t==(oN(),t1)?OZ:AZ;default:return OZ}}function _F(e,t){var n,i,a;for(BD(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=mG,i=new D(e.a);i.a>16==11?e.Cb.Qh(e,10,p7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(Wz(),qzt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function NQe(e,t){var n,r;return e.Db>>16==10?e.Cb.Qh(e,11,I7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(nB(),n9)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function PQe(e,t){var n,r;return e.Db>>16==10?e.Cb.Qh(e,12,B7,t):(r=NP(F(yO((n=F(bA(e,16),29),n||(nB(),i9)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function FQe(e,t){var n,r,i,a,o;if(t)for(i=t.a.length,n=new sS(i),o=(n.b-n.a)*n.c<0?($h(),G9):new vy(n);o.Ob();)a=F(o.Pb(),15),r=GT(t,a.a),r&&N5e(e,r)}function IQe(){cde();var e,t;for(sdt((qS(),K7)),Wut(K7),aF(K7),qBt=(nB(),e9),t=new D(aVt);t.a>19,l=t.h>>19;return c==l?(i=e.h,s=t.h,i==s?(r=e.m,o=t.m,r==o?(n=e.l,a=t.l,n-a):r-o):i-s):l-c}function RQe(e,t,n){for(var i,a=e[n.g],o,s,c=new D(t.d);c.a0?e.b:0),++n;t.b=i,t.e=a}function BQe(e){var t,n,r=e.b;if(Cue(e.i,r.length)){for(n=r.length*2,e.b=H(WJ,UB,309,n,0,1),e.c=H(WJ,UB,309,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)zI(e,t,t);++e.g}}function xF(e,t){return e.b.a=r.Math.min(e.b.a,t.c),e.b.b=r.Math.min(e.b.b,t.d),e.a.a=r.Math.max(e.a.a,t.c),e.a.b=r.Math.max(e.a.b,t.d),Vd(e.c,t),!0}function VQe(e,t,n){var r=t.c.i;r.k==(_L(),qX)?(G(e,(X(),E$),F(q(r,E$),12)),G(e,D$,F(q(r,D$),12))):(G(e,(X(),E$),t.c),G(e,D$,n.d))}function SF(e,t,n){XL();var i,a,o,s=t/2,c,l;return o=n/2,i=r.Math.abs(e.a),a=r.Math.abs(e.b),c=1,l=1,i>s&&(c=s/i),a>o&&(l=o/a),dy(e,r.Math.min(c,l)),e}function HQe(){QR();var e,t;try{if(t=F(N$e((qh(),V7),GK),2078),t)return t}catch(t){if(t=WA(t),N(t,101))e=t,bEe((Gv(),e));else throw O(t)}return new ho}function UQe(){QR();var e,t;try{if(t=F(N$e((qh(),V7),Xq),2005),t)return t}catch(t){if(t=WA(t),N(t,101))e=t,bEe((Gv(),e));else throw O(t)}return new rre}function WQe(){dLe();var e,t;try{if(t=F(N$e((qh(),V7),fJ),2087),t)return t}catch(t){if(t=WA(t),N(t,101))e=t,bEe((Gv(),e));else throw O(t)}return new mre}function GQe(e,t,n){var r,i=e.e;return e.e=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,4,i,t),n?n.lj(r):n=r),i!=t&&(n=t?kz(e,SL(e,t),n):kz(e,e.a,n)),n}function KQe(){eg.call(this),this.e=-1,this.a=!1,this.p=ZB,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=ZB}function qQe(e,t){var n,r=e.b.d.d,i;if(e.a||(r+=e.b.d.a),i=t.b.d.d,t.a||(i+=t.b.d.a),n=vM(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function JQe(e,t){var n,r=e.b.b.d,i;if(e.a||(r+=e.b.b.a),i=t.b.b.d,t.a||(i+=t.b.b.a),n=vM(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function YQe(e,t){var n,r=e.b.g.d,i;if(e.a||(r+=e.b.g.a),i=t.b.g.d,t.a||(i+=t.b.g.a),n=vM(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function CF(){CF=C,mCt=oS(Mx(Mx(Mx(new vC,(rI(),EX),($z(),bwt)),EX,xwt),DX,Swt),DX,lwt),gCt=Mx(Mx(new vC,EX,nwt),EX,uwt),hCt=oS(new vC,DX,fwt)}function XQe(e){var t=F(q(e,(X(),l$)),92),n,r,i,a=e.n;for(r=t.Bc().Jc();r.Ob();)n=F(r.Pb(),319),i=n.i,i.c+=a.a,i.d+=a.b,n.c?$et(n):ett(n);G(e,l$,null)}function ZQe(e,t,n){var r,i=e.b;switch(r=i.d,t.g){case 1:return-r.d-n;case 2:return i.o.a+r.c+n;case 3:return i.o.b+r.a+n;case 4:return-r.b-n;default:return-1}}function QQe(e,t){for(var n,r=new D(t);r.a0&&(o=(a&lB)%e.d.length,i=w6e(e,o,a,t),i)?(s=i.ld(n),s):(r=e.ak(a,t,n),e.c.Ec(r),null)}function f$e(e,t){var n,r,i,a;switch(oM(e,t).Il()){case 3:case 2:for(n=tz(t),i=0,a=n.i;i=0;i--)if(zb(e[i].d,t)||zb(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function EF(e,t){var n;return bv(e)&&bv(t)&&(n=e/t,PV0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=r.Math.min(i,a))}function E$e(e,t){var n,r=!1;if(q_(t)&&(r=!0,aC(e,new oC(fb(t)))),r||N(t,242)&&(r=!0,aC(e,(n=Wb(F(t,242)),new il(n)))),!r)throw O(new Vp(V_t))}function D$e(e,t,n,r){var i=new ZD(e.e,1,10,(o=t.c,N(o,88)?F(o,29):(nB(),t9)),(a=n.c,N(a,88)?F(a,29):(nB(),t9)),EP(e,t),!1),a,o;return r?r.lj(i):r=i,r}function O$e(e){var t,n;switch(F(q(yC(e),(Yz(),Vkt)),420).g){case 0:return t=e.n,n=e.o,new j(t.a+n.a/2,t.b+n.b/2);case 1:return new Sv(e.n);default:return null}}function kF(){kF=C,MQ=new Fg(bU,0),NTt=new Fg(`LEFTUP`,1),FTt=new Fg(`RIGHTUP`,2),MTt=new Fg(`LEFTDOWN`,3),PTt=new Fg(`RIGHTDOWN`,4),jQ=new Fg(`BALANCED`,5)}function k$e(e,t,n){var r=vM(e.a[t.p],e.a[n.p]),i,a;if(r==0){if(i=F(q(t,(X(),S$)),16),a=F(q(n,S$),16),i.Gc(n))return-1;if(a.Gc(t))return 1}return r}function A$e(e){switch(e.g){case 1:return new fa;case 2:return new _ne;case 3:return new da;case 0:return null;default:throw O(new qp(RG+(e.f==null?``+e.g:e.f)))}}function j$e(e,t,n){switch(t){case 1:!e.n&&(e.n=new I(f7,e,1,7)),yz(e.n),!e.n&&(e.n=new I(f7,e,1,7)),YS(e.n,F(n,18));return;case 2:bk(e,fb(n));return}YUe(e,t,n)}function M$e(e,t,n){switch(t){case 3:VO(e,k(P(n)));return;case 4:KO(e,k(P(n)));return;case 5:qO(e,k(P(n)));return;case 6:JO(e,k(P(n)));return}j$e(e,t,n)}function AF(e,t,n){var r,i,a=(r=new tp,r);i=XF(a,t,null),i&&i.mj(),Bk(a,n),hD((!e.c&&(e.c=new I(H7,e,12,10)),e.c),a),QO(a,0),$O(a,1),pM(a,!0),fM(a,!0)}function N$e(e,t){var n=og(e.i,t),r,i;return N(n,241)?(i=F(n,241),i.wi(),i.ti()):N(n,493)?(r=F(n,2002),i=r.b,i):null}function P$e(e,t,n,r){var i,a;return XS(t),XS(n),a=F(Hb(e.d,t),15),$Le(!!a,`Row %s not in %s`,t,e.e),i=F(Hb(e.b,n),15),$Le(!!i,`Column %s not in %s`,n,e.c),YHe(e,a.a,i.a,r)}function F$e(e){for(var t,n=null,r,i=e,a=0,o=i.length;a1||s==-1?(a=F(c,16),i.Wb(kqe(e,a))):i.Wb(TR(e,F(c,57)))))}function W$e(e,t,n,r){Pue();var i=Yyt;Xyt=r;function a(){for(var e=0;e0)return!1;return!0}function q$e(e){switch(F(q(e.b,(Yz(),Pkt)),381).g){case 1:Eh(BC(cO(new Hx(null,new hT(e.d,16)),new Br),new cte),new lte);break;case 2:Rtt(e);break;case 0:h3e(e)}}function J$e(e,t,n){var r=n,i,a;for(!r&&(r=new up),r.Tg(`Layout`,e.a.c.length),a=new D(e.a);a.axG)return n;i>-1e-6&&++n}return n}function LF(e,t,n){if(N(t,271))return v7e(e,F(t,85),n);if(N(t,276))return EQe(e,F(t,276),n);throw O(new qp(aq+sI(new em(W(A(IJ,1),mB,1,5,[t,n])))))}function RF(e,t,n){if(N(t,271))return y7e(e,F(t,85),n);if(N(t,276))return DQe(e,F(t,276),n);throw O(new qp(aq+sI(new em(W(A(IJ,1),mB,1,5,[t,n])))))}function t1e(e,t){var n;t==e.b?e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,3,t,t)):(n=null,e.b&&(n=Tw(e.b,e,-4,n)),t&&(n=gP(t,e,-4,n)),n=mGe(e,t,n),n&&n.mj())}function n1e(e,t){var n;t==e.f?e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,0,t,t)):(n=null,e.f&&(n=Tw(e.f,e,-1,n)),t&&(n=gP(t,e,-1,n)),n=hGe(e,t,n),n&&n.mj())}function r1e(e,t,n,r){var i,a,o,s;return Ev(e.e)&&(i=t.Jk(),s=t.kd(),a=n.kd(),o=vw(e,1,i,s,a,i.Hk()?JR(e,i,a,N(i,103)&&(F(i,19).Bb&VV)!=0):-1,!0),r?r.lj(o):r=o),r}function i1e(e){var t,n,r;if(e==null)return null;if(n=F(e,16),n.dc())return``;for(r=new mm,t=n.Jc();t.Ob();)rv(r,(wz(),fb(t.Pb()))),r.a+=` `;return _v(r,r.a.length-1)}function a1e(e){var t,n,r;if(e==null)return null;if(n=F(e,16),n.dc())return``;for(r=new mm,t=n.Jc();t.Ob();)rv(r,(wz(),fb(t.Pb()))),r.a+=` `;return _v(r,r.a.length-1)}function o1e(e,t){for(var n,r,i,a=new D(t.a),o;a.a0&&wC(e,e.length-1)==33)try{return t=x5e(yw(e,0,e.length-1)),t.e==null}catch(e){if(e=WA(e),!N(e,32))throw O(e)}return!1}function f1e(e,t,n){var r=NM(yC(t)),i=new mI;switch(Qw(i,t),n.g){case 1:RI(i,wM(dN(r)));break;case 2:RI(i,dN(r))}return G(i,(Yz(),g0),P(q(e,g0))),i}function p1e(e){var t=F(FE(new fS(Sy(UM(e.a).a.Jc(),new f))),17),n=F(FE(new fS(Sy(GM(e.a).a.Jc(),new f))),17);return Xp(db(q(t,(X(),B$))))||Xp(db(q(n,B$)))}function zF(){zF=C,LZ=new Dg(`ONE_SIDE`,0),zZ=new Dg(`TWO_SIDES_CORNER`,1),BZ=new Dg(`TWO_SIDES_OPPOSING`,2),RZ=new Dg(`THREE_SIDES`,3),IZ=new Dg(`FOUR_SIDES`,4)}function m1e(e,t){var n,r,i,a=new kd;for(i=0,r=t.Jc();r.Ob();){for(n=K(F(r.Pb(),15).a+i);n.a=e.f)break;Vd(a.c,n)}return a}function h1e(e){for(var t,n=new D(e.e.b);n.a0&&KZe(this,this.c-1,(Lz(),p5)),this.c0&&e[0].length>0&&(this.c=Xp(db(q(yC(e[0][0]),(X(),aEt))))),this.a=H(Ajt,OB,2082,e.length,0,2),this.b=H(jjt,OB,2083,e.length,0,2),this.d=new MWe}function D1e(e){return e.c.length==0?!1:(gT(0,e.c.length),F(e.c[0],17)).c.i.k==(_L(),qX)||kE(BC(new Hx(null,new hT(e,16)),new mi),new hi)}function O1e(e,t){var n,i,a,o,s,c=qL(t),l;for(o=t.f,l=t.g,s=r.Math.sqrt(o*o+l*l),a=0,i=new D(c);i.a=0?(n=EF(e,NV),r=DN(e,NV)):(t=hS(e,1),n=EF(t,5e8),r=DN(t,5e8),r=BM(pS(r,1),CT(e,1))),wT(pS(r,32),CT(n,GV))}function W1e(e,t,n,r){for(var i=null,a=0,o,s=new D(t),c;s.a1;t>>=1)t&1&&(r=eE(r,n)),n=n.d==1?eE(n,n):new XJe(Irt(n.a,n.d,H(q9,vV,30,n.d<<1,15,1)));return r=eE(r,n),r}function Y1e(){Y1e=C;var e,t,n,r;for(sxt=H(Z9,UV,30,25,15,1),cxt=H(Z9,UV,30,33,15,1),r=152587890625e-16,t=32;t>=0;t--)cxt[t]=r,r*=.5;for(n=1,e=24;e>=0;e--)sxt[e]=n,n*=.5}function X1e(e){var t,n;if(Xp(db(Y(e,(Yz(),W1))))){for(n=new fS(Sy(bL(e).a.Jc(),new f));sL(n);)if(t=F(FE(n),85),qI(t)&&Xp(db(Y(t,G1))))return!0}return!1}function Z1e(e){for(var t=new vh,n=new vh,r,i=oP(e,0);i.b!=i.d.c;)r=F(YT(i),12),r.e.c.length==0?bE(n,r,n.c.b,n.c):bE(t,r,t.c.b,t.c);return fN(t).Fc(n),t}function Q1e(e,t){var n,r,i;PS(e.f,t)&&(t.b=e,r=t.c,VD(e.j,r,0)!=-1||fy(e.j,r),i=t.d,VD(e.j,i,0)!=-1||fy(e.j,i),n=t.a.b,n.c.length!=0&&(!e.i&&(e.i=new uYe(e)),lHe(e.i,n)))}function $1e(e){var t,n=e.c.d,r=n.j,i=e.d.d,a=i.j;return r==a?n.p=0&&zb(e.substr(t,3),`GMT`)||t>=0&&zb(e.substr(t,3),`UTC`))&&(n[0]=t+3),Crt(e,n,r)}function t0e(e,t){var n,r,i,a=e.g.a,o=e.g.b;for(r=new D(e.d);r.an;a--)e[a]|=t[a-n-1]>>>o,e[a-1]=t[a-n-1]<0&&LR(e.g,t,e.g,t+r,s),o=n.Jc(),e.i+=r,i=0;i>4&15,a=e[r]&15,o[i++]=Qzt[n],o[i++]=Qzt[a];return IN(o,0,o.length)}function QF(e){var t,n;return e>=VV?(t=HV+(e-VV>>10&1023)&iV,n=56320+(e-VV&1023)&iV,String.fromCharCode(t)+(``+String.fromCharCode(n))):String.fromCharCode(e&iV)}function g0e(e,t){Sb();var n,r,i=F(F(zE(e.r,t),22),83),a;return i.gc()>=2&&(r=F(i.Jc().Pb(),115),n=e.u.Gc((BI(),s5)),a=e.u.Gc(d5),!r.a&&!n&&(i.gc()==2||a))}function _0e(e,t,n,r,i){for(var a=ket(e,t,n,r,i),o,s=!1;!a;)uL(e,i,!0),s=!0,a=ket(e,t,n,r,i);s&&uL(e,i,!1),o=qA(i),o.c.length!=0&&(e.d&&e.d.Fg(o),_0e(e,i,n,r,o))}function $F(){$F=C,u3=new d_(`NODE_SIZE_REORDERER`,0),s3=new d_(`INTERACTIVE_NODE_REORDERER`,1),l3=new d_(`MIN_SIZE_PRE_PROCESSOR`,2),c3=new d_(`MIN_SIZE_POST_PROCESSOR`,3)}function eI(){eI=C,FRt=new E_(bU,0),NRt=new E_(`DIRECTED`,1),IRt=new E_(`UNDIRECTED`,2),jRt=new E_(`ASSOCIATION`,3),PRt=new E_(`GENERALIZATION`,4),MRt=new E_(`DEPENDENCY`,5)}function v0e(e,t){var n;if(!Hw(e))throw O(new Jp(m_t));switch(n=Hw(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-n.g;case 3:return e.j-n.f;case 4:return-(e.i+e.g)}return 0}function y0e(e,t,n){var r=t.Jk(),i,a=t.kd();return i=r.Hk()?vw(e,4,r,a,null,JR(e,r,a,N(r,103)&&(F(r,19).Bb&VV)!=0),!0):vw(e,r.rk()?2:1,r,a,r.gk(),-1,!0),n?n.lj(i):n=i,n}function tI(e,t){var n,r;for(bC(t),r=e.b.c.length,fy(e.b,t);r>0;){if(n=r,r=(r-1)/2|0,e.a.Le(zx(e.b,r),t)<=0)return CE(e.b,n,t),!0;CE(e.b,n,zx(e.b,r))}return CE(e.b,r,t),!0}function b0e(e,t,n,i){var a=0,o;if(n)a=Hj(e.a[n.g][t.g],i);else for(o=0;o=s)}function S0e(e){switch(e.g){case 0:return new Da;case 1:return new ka;default:throw O(new qp(`No implementation is available for the width approximator `+(e.f==null?``+e.g:e.f)))}}function C0e(e,t,n,r){var i=!1;if(q_(r)&&(i=!0,Ax(t,n,fb(r))),i||G_(r)&&(i=!0,C0e(e,t,n,r)),i||N(r,242)&&(i=!0,aw(t,n,F(r,242))),!i)throw O(new Vp(V_t))}function w0e(e,t){var n=t.ni(e.a),r,i;if(n&&(i=SN((!n.b&&(n.b=new sb((nB(),o9),d9,n)),n.b),Uq),i!=null)){for(r=1;r<(TI(),cVt).length;++r)if(zb(cVt[r],i))return r}return 0}function T0e(e,t){var n=t.ni(e.a),r,i;if(n&&(i=SN((!n.b&&(n.b=new sb((nB(),o9),d9,n)),n.b),Uq),i!=null)){for(r=1;r<(TI(),lVt).length;++r)if(zb(lVt[r],i))return r}return 0}function E0e(e,t){var n,r,i,a;if(bC(t),a=e.a.gc(),a0);a.a[i]!=n;)a=a.a[i],i=+(e.a.Le(n.d,a.d)>0);a.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function j0e(e){var t=new kd,n=H(J9,_H,30,e.a.c.length,16,1),r,i;for(CTe(n,n.length),i=new D(e.a);i.a0&&crt((gT(0,n.c.length),F(n.c[0],25)),e),n.c.length>1&&crt(F(zx(n,n.c.length-1),25),e),t.Ug()}function P0e(e){BI();var t=eS(c5,W(A(f5,1),Z,280,0,[u5])),n;return!(CA(Fw(t,e))>1||(n=eS(s5,W(A(f5,1),Z,280,0,[o5,d5])),CA(Fw(n,e))>1))}function F0e(e,t){N(Mw((qh(),V7),e),493)?$w(V7,e,new gpe(this,t)):$w(V7,e,this),uI(this,t),t==(Hm(),NBt)?(this.wb=F(this,2003),F(t,2005)):this.wb=(qS(),K7)}function I0e(e){var t,n,r;if(e==null)return null;for(t=null,n=0;na}function B0e(e,t){var n,r,i;if(K0e(e,t))return!0;for(r=new D(t);r.a=i||t<0)throw O(new zp(dq+t+fq+i));if(n>=i||n<0)throw O(new zp(pq+n+fq+i));return r=t==n?e.vj(n):(a=e.Aj(n),e.oj(t,a),a),r}function G0e(e){var t,n,r=e;if(e)for(t=0,n=e.Bh();n;n=n.Bh()){if(++t>WV)return G0e(n);if(r=n,n==e)throw O(new Jp(`There is a cycle in the containment hierarchy of `+e))}return r}function sI(e){var t,n,r=new DA(pB,`[`,`]`);for(n=e.Jc();n.Ob();)t=n.Pb(),KE(r,M(t)===M(e)?`(this Collection)`:t==null?hB:eN(t));return r.a?r.e.length==0?r.a.a:r.a.a+(``+r.e):r.c}function K0e(e,t){var n,r=!1;if(t.gc()<2)return!1;for(n=0;n1&&(e.j.b+=e.e)):(e.j.a+=n.a,e.j.b=r.Math.max(e.j.b,n.b),e.d.c.length>1&&(e.j.a+=e.e))}function cI(){cI=C,nTt=W(A(P5,1),SU,64,0,[(Lz(),m5),p5,j5]),tTt=W(A(P5,1),SU,64,0,[p5,j5,N5]),rTt=W(A(P5,1),SU,64,0,[j5,N5,m5]),iTt=W(A(P5,1),SU,64,0,[N5,m5,p5])}function Z0e(e){var t,n,r,i,a,o,s,c,l;for(this.a=aXe(e),this.b=new kd,n=e,r=0,i=n.length;rgb(e.d).c?(e.i+=e.g.c,PN(e.d)):gb(e.d).c>gb(e.g).c?(e.e+=e.d.c,PN(e.g)):(e.i+=twe(e.g),e.e+=twe(e.d),PN(e.g),PN(e.d))}function t2e(e,t,n){var r,i,a=t.q,o=t.r;for(new aT((QE(),X2),t,a,1),new aT(X2,a,o,1),i=new D(n);i.ac&&(l=c/i),a>o&&(u=o/a),s=r.Math.min(l,u),e.a+=s*(t.a-e.a),e.b+=s*(t.b-e.b)}function s2e(e,t,n,r,i){var a,o=!1;for(a=F(zx(n.b,0),26);Kit(e,t,a,r,i)&&(o=!0,Y$e(n,a),n.b.c.length!=0);)a=F(zx(n.b,0),26);return n.b.c.length==0&&_F(n.j,n),o&&ZP(t.q),o}function c2e(e,t,n,r){var i,a;return n==0?(!e.o&&(e.o=new yD((Wz(),d7),g7,e,0)),Vb(e.o,t,r)):(a=F(yO((i=F(bA(e,16),29),i||e.fi()),n),69),a.uk().yk(e,HN(e),n-JS(e.fi()),t,r))}function uI(e,t){var n;t==e.sb?e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,4,t,t)):(n=null,e.sb&&(n=F(e.sb,52).Qh(e,1,s7,n)),t&&(n=F(t,52).Oh(e,1,s7,n)),n=LGe(e,t,n),n&&n.mj())}function l2e(e,t){var n,r,i,a;if(t)i=nk(t,`x`),n=new Goe(e),WO(n.a,(bC(i),i)),a=nk(t,`y`),r=new od(e),GO(r.a,(bC(a),a));else throw O(new am(`All edge sections need an end point.`))}function u2e(e,t){var n,r,i,a;if(t)i=nk(t,`x`),n=new Hoe(e),YO(n.a,(bC(i),i)),a=nk(t,`y`),r=new Uoe(e),XO(r.a,(bC(a),a));else throw O(new am(`All edge sections need a start point.`))}function d2e(e,t){for(var n,r=eWe(e),i,a=0,o,s=r.length,c;a>22-t,i=e.h<>22-t):t<44?(n=0,r=e.l<>44-t):(n=0,r=0,i=e.l<=rV?`error`:r>=900?`warn`:r>=800?`info`:`log`),yEe(n,e.a),e.b&&h9e(t,n,e.b,`Exception: `,!0))}function v2e(e,t){var n,r,i=t==1?AX:kX,a,o;for(r=i.a.ec().Jc();r.Ob();)for(n=F(r.Pb(),86),o=F(zE(e.f.c,n),22).Jc();o.Ob();)a=F(o.Pb(),49),fy(e.b.b,F(a.b,82)),fy(e.b.a,F(a.b,82).d)}function y2e(e,t,n,r){var i,a,o,s,c=e.b;switch(a=t.d,o=a.j,s=fYe(o,c.d[o.g],n),i=Nb(ry(a.n),a.a),a.j.g){case 3:case 1:s.a+=i.a;break;case 2:s.b+=i.b;break;case 4:s.b+=i.b}bE(r,s,r.c.b,r.c)}function b2e(e,t){var n,r,i,a=t.b.j;for(e.a=H(q9,vV,30,a.c.length,15,1),i=0,r=0;re)throw O(new qp(`k must be smaller than n`));return t==0||t==e?1:e==0?0:y$e(e)/(y$e(t)*y$e(e-t))}function S2e(e,t){for(var n=new Iv(e),r,i,a;n.g==null&&!n.c?$ke(n):n.g==null||n.i!=0&&F(n.g[n.i-1],50).Ob();)if(a=F(gL(n),57),N(a,174))for(r=F(a,174),i=0;i>4],t[n*2+1]=P9[a&15];return IN(t,0,t.length)}function I2e(e){var t,n;switch(e.c.length){case 0:return NC(),cbt;case 1:return t=F(P3e(new D(e)),45),Q_e(t.jd(),t.kd());default:return n=F(ZN(e,H(VJ,LB,45,e.c.length,0,1)),175),new yde(n)}}function gI(e,t){switch(t.g){case 1:return ux(e.j,($k(),HCt));case 2:return ux(e.j,($k(),BCt));case 3:return ux(e.j,($k(),WCt));case 4:return ux(e.j,($k(),GCt));default:return ew(),ew(),CY}}function L2e(e,t){var n=VSe(t,e.e),r=F(tC(e.g.f,n),15).a,i=e.a.c.length-1;e.a.c.length!=0&&F(zx(e.a,i),295).c==r?(++F(zx(e.a,i),295).a,++F(zx(e.a,i),295).b):fy(e.a,new s_e(r))}function _I(){_I=C,vPt=(Qz(),o8),SPt=d8,fPt=q6,pPt=Y6,mPt=X6,dPt=K6,hPt=Q6,_Pt=i8,X4=(Mnt(),YNt),Z4=XNt,yPt=nPt,e3=aPt,bPt=rPt,xPt=iPt,gPt=QNt,Q4=ePt,$4=tPt,t3=oPt,CPt=cPt,uPt=JNt}function R2e(e,t){var n,r,i,a,o;if(e.e<=t||gje(e,e.g,t))return e.g;for(a=e.r,r=e.g,o=e.r,i=(a-r)/2+r;r+11&&(e.e.b+=e.a)):(e.e.a+=n.a,e.e.b=r.Math.max(e.e.b,n.b),e.d.c.length>1&&(e.e.a+=e.a))}function G2e(e){var t,n,r,i=e.i;switch(t=i.b,r=i.j,n=i.g,i.a.g){case 0:n.a=(e.g.b.o.a-r.a)/2;break;case 1:n.a=t.d.n.a+t.d.a.a;break;case 2:n.a=t.d.n.a+t.d.a.a-r.a;break;case 3:n.b=t.d.n.b+t.d.a.b}}function K2e(e,t,n){for(var r,i=new fS(Sy(WM(n).a.Jc(),new f)),a;sL(i);)r=F(FE(i),17),!(AE(r)||!AE(r)&&r.c.i.c==r.d.i.c)&&(a=u7e(e,r,n,new Pf),a.c.length>1&&Vd(t.c,a))}function q2e(e,t,n,r,i){if(rr&&(e.a=r),e.bi&&(e.b=i),e}function J2e(e){if(N(e,144))return u9e(F(e,144));if(N(e,233))return uqe(F(e,233));if(N(e,21))return m2e(F(e,21));throw O(new qp(aq+sI(new em(W(A(IJ,1),mB,1,5,[e])))))}function Y2e(e,t,n,r,i){for(var a=!0,o=0,s;o>>i|n[o+r+1]<>>i,++o}return a}function X2e(e,t,n,r){var i,a,o;if(t.k==(_L(),qX)){for(a=new fS(Sy(UM(t).a.Jc(),new f));sL(a);)if(i=F(FE(a),17),o=i.c.i.k,o==qX&&e.c.a[i.c.i.c.p]==r&&e.c.a[t.c.p]==n)return!0}return!1}function Z2e(e,t){var n,r,i,a;return t&=63,n=e.h&kV,t<22?(a=n>>>t,i=e.m>>t|n<<22-t,r=e.l>>t|e.m<<22-t):t<44?(a=0,i=n>>>t-22,r=e.m>>t-22|e.h<<44-t):(a=0,i=0,r=n>>>t-44),Qv(r&OV,i&OV,a&kV)}function Q2e(e,t,n,r){var i;this.b=r,this.e=e==(Yj(),L2),i=t[n],this.d=Wx(J9,[OB,_H],[171,30],16,[i.length,i.length],2),this.a=Wx(q9,[OB,vV],[54,30],15,[i.length,i.length],2),this.c=new w1e(t,n)}function $2e(e){var t,n,r;for(e.k=new Eje((Lz(),W(A(P5,1),SU,64,0,[M5,m5,p5,j5,N5])).length,e.j.c.length),r=new D(e.j);r.a=n)return bI(e,t,r.p),!0;return!1}function yI(e,t,n,r){var i,a,o=n.length,s,c,l;for(a=0,i=-1,l=kRe((_T(t,e.length+1),e.substr(t)),(Zb(),rxt)),s=0;sa&&yTe(l,kRe(n[s],rxt))&&(i=s,a=c);return i>=0&&(r[0]=t+a),i}function r4e(e,t,n){var r,i,a=e.d.p,o,s=a.e,c=a.r,l,u;e.g=new Bb(c),o=e.d.o.c.p,r=o>0?s[o-1]:H(UX,OU,9,0,0,1),i=s[o],l=on?$4e(e,n,`start index`):t<0||t>n?$4e(t,n,`end index`):sR(`end index (%s) must not be less than start index (%s)`,W(A(IJ,1),mB,1,5,[K(t),K(e)]))}function c4e(e,t){for(var n,r=0,i=e.length,a;r0&&d4e(e,a,n));t.p=0}function f4e(e){for(var t=lC(ov(new Ey(`Predicates.`),`and`),40),n=!0,r,i=new Wl(e);i.b=0?e.hi(i):L3e(e,r);else throw O(new qp(MK+r.ve()+NK))}else dM(e,n,r)}function h4e(e){var t,n=null;if(t=!1,N(e,210)&&(t=!0,n=F(e,210).a),t||N(e,265)&&(t=!0,n=``+F(e,265).a),t||N(e,479)&&(t=!0,n=``+F(e,479).a),!t)throw O(new Vp(V_t));return n}function g4e(e,t,n){var r,i,a,o,s,c=VL(e.e.Ah(),t);for(r=0,s=e.i,i=F(e.g,122),o=0;o=e.d.b.c.length&&(t=new nC(e.d),t.p=r.p-1,fy(e.d.b,t),n=new nC(e.d),n.p=r.p,fy(e.d.b,n)),Xw(r,F(zx(e.d.b,r.p),25))}function b4e(e){var t,n=new vh,r,i;for(Kk(n,e.o),r=new If;n.b!=0;)t=F(n.b==0?null:(tb(n.b!=0),DO(n,n.a.a)),501),i=rut(e,t,!0),i&&fy(r.a,t);for(;r.a.c.length!=0;)t=F(DWe(r),501),rut(e,t,!1)}function SI(e){var t;this.c=new vh,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,this.j=e.i?e.i:(t=F(Um(o6),10),new Jb(t,F(Ob(t,t.length),10),0)),this.g=e.f}function CI(){CI=C,UIt=new y_(CH,0),s6=new y_(`BOOLEAN`,1),d6=new y_(`INT`,2),p6=new y_(`STRING`,3),c6=new y_(`DOUBLE`,4),l6=new y_(`ENUM`,5),u6=new y_(`ENUMSET`,6),f6=new y_(`OBJECT`,7)}function wI(e,t){var n,i=r.Math.min(e.c,t.c),a,o=r.Math.min(e.d,t.d),s;a=r.Math.max(e.c+e.b,t.c+t.b),s=r.Math.max(e.d+e.a,t.d+t.a),a=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++0;)CRe(this);this.b=t,this.a=null}function k4e(e,t){var n,r;t.a?L9e(e,t):(n=F(Oh(e.b,t.b),60),n&&n==e.a[t.b.f]&&n.a&&n.a!=t.b.a&&n.c.Ec(t.b),r=F(Dh(e.b,t.b),60),r&&e.a[r.f]==t.b&&r.a&&r.a!=t.b.a&&t.b.c.Ec(r),ly(e.b,t.b))}function A4e(e,t){var n=F(DC(e.b,t),127),r;F(F(zE(e.r,t),22),83).dc()?(n.n.b=0,n.n.c=0):(n.n.b=e.C.b,n.n.c=e.C.c,e.A.Gc((AN(),z5))&&Vtt(e,t),r=ZYe(e,t),$L(e,t)==(aP(),Z8)&&(r+=2*e.w),n.a.a=r)}function j4e(e,t){var n=F(DC(e.b,t),127),r;F(F(zE(e.r,t),22),83).dc()?(n.n.d=0,n.n.a=0):(n.n.d=e.C.d,n.n.a=e.C.a,e.A.Gc((AN(),z5))&&Htt(e,t),r=XYe(e,t),$L(e,t)==(aP(),Z8)&&(r+=2*e.w),n.a.b=r)}function M4e(e,t){var n,r,i,a=new kd;for(r=new D(t);r.ar&&(_T(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return r>0||tn.a&&(r.Gc((IF(),C6))?i=(t.a-n.a)/2:r.Gc(T6)&&(i=t.a-n.a)),t.b>n.b&&(r.Gc((IF(),D6))?a=(t.b-n.b)/2:r.Gc(E6)&&(a=t.b-n.b)),k0e(e,i,a)}function Q4e(e,t,n,r,i,a,o,s,c,l,u,d,f){N(e.Cb,88)&&II(jE(F(e.Cb,88)),4),Bk(e,n),e.f=o,AM(e,s),jM(e,c),kM(e,l),OM(e,u),pM(e,d),KM(e,f),fM(e,!0),QO(e,i),e.Xk(a),Wj(e,t),r!=null&&(e.i=null,wk(e,r))}function $4e(e,t,n){if(e<0)return sR(Mdt,W(A(IJ,1),mB,1,5,[n,K(e)]));if(t<0)throw O(new qp(Ndt+t));return sR(`%s (%s) must not be greater than size (%s)`,W(A(IJ,1),mB,1,5,[n,K(e),K(t)]))}function e3e(e,t,n,r,i,a){var o=r-n,s,c,l;if(o<7)JKe(t,n,r,a);else if(c=n+i,s=r+i,l=c+(s-c>>1),e3e(t,e,c,l,-i,a),e3e(t,e,l,s,-i,a),a.Le(e[l-1],e[l])<=0)for(;n=0?e.$h(a,n):_7e(e,i,n);else throw O(new qp(MK+i.ve()+NK))}else $M(e,r,i,n)}function a3e(e){var t,n;if(e.f){for(;e.n>0;){if(t=F(e.k.Xb(e.n-1),75),n=t.Jk(),N(n,103)&&(F(n,19).Bb&FK)!=0&&(!e.e||n.nk()!=$5||n.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}return e.n>0}function o3e(e){var t,n=F(e,52).Yh(),r,i;if(n)try{if(r=null,t=mL((qh(),V7),Nrt(rqe(n))),t&&(i=t.Zh(),i&&(r=i.Dl(sce(n.e)))),r&&r!=e)return o3e(r)}catch(e){if(e=WA(e),!N(e,63))throw O(e)}return e}function s3e(e,t,n){var r,i,a;n.Tg(`Remove overlaps`,1),n.bh(t,zht),r=F(Y(t,(xb(),B4)),26),e.f=r,e.a=AP(F(Y(t,(_I(),t3)),304)),i=P(Y(t,(Qz(),d8))),yl(e,(bC(i),i)),a=qL(r),Ict(e,t,a,n),n.bh(t,IG)}function c3e(e){var t,n,r;if(Xp(db(Y(e,(Qz(),B6))))){for(r=new kd,n=new fS(Sy(bL(e).a.Jc(),new f));sL(n);)t=F(FE(n),85),qI(t)&&Xp(db(Y(t,V6)))&&Vd(r.c,t);return r}return ew(),ew(),CY}function l3e(e){if(!e)return yce(),vbt;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=eY[typeof t];return n?n(t):oGe(typeof t)}return e instanceof Array||e instanceof r.Array?new nl(e):new al(e)}function u3e(e,t,n){var i,a,o=e.o;switch(i=F(DC(e.p,n),253),a=i.i,a.b=UI(i),a.a=HI(i),a.b=r.Math.max(a.b,o.a),a.b>o.a&&!t&&(a.b=o.a),a.c=-(a.b-o.a)/2,n.g){case 1:a.d=-a.a;break;case 3:a.d=o.b}BR(i),HR(i)}function d3e(e,t,n){var i,a,o=e.o;switch(i=F(DC(e.p,n),253),a=i.i,a.b=UI(i),a.a=HI(i),a.a=r.Math.max(a.a,o.b),a.a>o.b&&!t&&(a.a=o.b),a.d=-(a.a-o.b)/2,n.g){case 4:a.c=-a.b;break;case 2:a.c=o.a}BR(i),HR(i)}function f3e(e,t){var n,i,a;return N(t.g,9)&&F(t.g,9).k==(_L(),GX)?LV:(a=ZT(t),a?r.Math.max(0,e.b/2-.5):(n=yT(t),n?(i=k(P(jN(n,(Yz(),L0)))),r.Math.max(0,i/2-.5)):LV))}function p3e(e,t){var n,i,a;return N(t.g,9)&&F(t.g,9).k==(_L(),GX)?LV:(a=ZT(t),a?r.Math.max(0,e.b/2-.5):(n=yT(t),n?(i=k(P(jN(n,(Yz(),L0)))),r.Math.max(0,i/2-.5)):LV))}function m3e(e,t){var n,r,i,a,o;if(!t.dc()){if(i=F(t.Xb(0),132),t.gc()==1)Z9e(e,i,i,1,0,t);else for(n=1;n0)try{i=ER(t,ZB,lB)}catch(e){throw e=WA(e),N(e,131)?(r=e,O(new XD(r))):O(e)}return n=(!e.a&&(e.a=new wd(e)),e.a),i=0?F(U(n,i),57):null}function v3e(e,t){if(e<0)return sR(Mdt,W(A(IJ,1),mB,1,5,[`index`,K(e)]));if(t<0)throw O(new qp(Ndt+t));return sR(`%s (%s) must be less than size (%s)`,W(A(IJ,1),mB,1,5,[`index`,K(e),K(t)]))}function y3e(e){var t,n,r,i,a;if(e==null)return hB;for(a=new DA(pB,`[`,`]`),n=e,r=0,i=n.length;r`,O(new qp(r.a))}function F3e(e){var t,n=-e.a;return t=W(A(K9,1),nV,30,15,[43,48,48,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&iV,t[2]=t[2]+(n/60|0)%10&iV,t[3]=t[3]+(n%60/10|0)&iV,t[4]=t[4]+n%10&iV,IN(t,0,t.length)}function I3e(e){var t,n,r,i;for(e.g=new aN(F(XS(P5),298)),r=0,n=(Lz(),m5),t=0;t=0?e.Ih(n,!0,!0):ZI(e,i,!0),163)),F(r,219).Xl(t);else throw O(new qp(MK+t.ve()+NK))}function R3e(e){var t,n;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),n=Nw(r.Math.floor(r.Math.log(e)/.6931471805599453)),(!t||e!=r.Math.pow(2,n))&&++n,n):GGe(_A(e))}function z3e(e){var t,n,r,i,a=new Cv,o,s;for(n=new D(e);n.a2&&s.e.b+s.j.b<=2&&(i=s,r=o),a.a.yc(i,a),i.q=r);return a}function B3e(e,t,n){n.Tg(`Eades radial`,1),n.bh(t,IG),e.d=F(Y(t,(xb(),B4)),26),e.c=k(P(Y(t,(_I(),$4)))),e.e=AP(F(Y(t,t3),304)),e.a=xqe(F(Y(t,CPt),426)),e.b=A$e(F(Y(t,gPt),354)),t$e(e),n.bh(t,IG)}function V3e(e,t){if(t.Tg(`Target Width Setter`,1),lD(e,(tR(),O3)))_P(e,(aR(),y3),P(Y(e,O3)));else throw O(new rm(`A target width has to be set if the TargetWidthWidthApproximator should be used.`));t.Ug()}function H3e(e,t){var n,r=new IP(e),i;return TA(r,t),G(r,(X(),p$),t),G(r,(Yz(),_0),(VF(),t5)),G(r,s1,(wP(),v6)),ul(r,(_L(),GX)),n=new mI,Qw(n,r),RI(n,(Lz(),N5)),i=new mI,Qw(i,r),RI(i,p5),r}function U3e(e,t){var n,r,i,a,o;for(e.c[t.p]=!0,fy(e.a,t),o=new D(t.j);o.a=a)o.$b();else for(i=o.Jc(),r=0;r0?fce():o<0&&e6e(e,t,-o),!0)}function HI(e){var t,n,r,i,a,o,s=0;if(e.b==0){for(o=kXe(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}else s=Ace(eA(VC(zC(OTe(e.a),new Ie),new ze)));return s>0?s+e.n.d+e.n.a:0}function UI(e){var t,n,r,i,a,o,s=0;if(e.b==0)s=Ace(eA(VC(zC(OTe(e.a),new Le),new Re)));else{for(o=AXe(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}return s>0?s+e.n.b+e.n.c:0}function n6e(e){var t,n;if(e.c.length!=2)throw O(new Jp(`Order only allowed for two paths.`));t=(gT(0,e.c.length),F(e.c[0],17)),n=(gT(1,e.c.length),F(e.c[1],17)),t.d.i!=n.c.i&&(e.c.length=0,Vd(e.c,n),Vd(e.c,t))}function r6e(e,t,n){var r;for(jv(n,t.g,t.f),Mv(n,t.i,t.j),r=0;r<(!t.a&&(t.a=new I(p7,t,10,11)),t.a).i;r++)r6e(e,F(U((!t.a&&(t.a=new I(p7,t,10,11)),t.a),r),26),F(U((!n.a&&(n.a=new I(p7,n,10,11)),n.a),r),26))}function i6e(e,t){var n,i,a,o=F(DC(e.b,t),127);for(n=o.a,a=F(F(zE(e.r,t),22),83).Jc();a.Ob();)i=F(a.Pb(),115),i.c&&(n.a=r.Math.max(n.a,lCe(i.c)));if(n.a>0)switch(t.g){case 2:o.n.c=e.s;break;case 4:o.n.b=e.s}}function a6e(e,t){var n=F(q(t,(MR(),dX)),15).a-F(q(e,dX),15).a,r,i;return n==0?(r=Pb(ry(F(q(e,(Nk(),hX)),8)),F(q(e,gX),8)),i=Pb(ry(F(q(t,hX),8)),F(q(t,gX),8)),vM(r.a*r.b,i.a*i.b)):n}function o6e(e,t){var n=F(q(t,(zR(),M4)),15).a-F(q(e,M4),15).a,r,i;return n==0?(r=Pb(ry(F(q(e,(Iz(),c4)),8)),F(q(e,l4),8)),i=Pb(ry(F(q(t,c4),8)),F(q(t,l4),8)),vM(r.a*r.b,i.a*i.b)):n}function s6e(e){var t,n=new gm;return n.a+=`e_`,t=SHe(e),t!=null&&(n.a+=``+t),e.c&&e.d&&(ov((n.a+=` `,n),iF(e.c)),ov(av((n.a+=`[`,n),e.c.i),`]`),ov((n.a+=EU,n),iF(e.d)),ov(av((n.a+=`[`,n),e.d.i),`]`)),n.a}function c6e(e){switch(e.g){case 0:return new $re;case 1:return new _c;case 2:return new Cc;case 3:return new wc;default:throw O(new qp(`No implementation is available for the layout phase `+(e.f==null?``+e.g:e.f)))}}function l6e(e,t,n,i,a){var o=0;switch(a.g){case 1:o=r.Math.max(0,t.b+e.b-(n.b+i));break;case 3:o=r.Math.max(0,-e.b-i);break;case 2:o=r.Math.max(0,-e.a-i);break;case 4:o=r.Math.max(0,t.a+e.a-(n.a+i))}return o}function u6e(e,t,n){var r,i,a,o,s;if(n)for(i=n.a.length,r=new sS(i),s=(r.b-r.a)*r.c<0?($h(),G9):new vy(r);s.Ob();)o=F(s.Pb(),15),a=GT(n,o.a),I_t in a.a||$K in a.a?xnt(e,a,t):Rut(e,a,t),rge(F(tC(e.c,RN(a)),85))}function d6e(e){var t,n;switch(e.b){case-1:return!0;case 0:return n=e.t,n>1||n==-1?(e.b=-1,!0):(t=vF(e),t&&(Qh(),t.jk()==Yvt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function f6e(e,t){var n,r,i,a;if(Jz(e),e.c!=0||e.a!=123)throw O(new om(iB((Gv(),lvt))));if(a=t==112,r=e.d,n=qy(e.i,125,r),n<0)throw O(new om(iB((Gv(),uvt))));return i=yw(e.i,r,n),e.d=n+1,YIe(i,a,(e.e&512)==512)}function p6e(e){var t,n,r,i,a,o,s=Ky(e.c.length);for(i=new D(e);i.a=0&&r=0?e.Ih(n,!0,!0):ZI(e,i,!0),163)),F(r,219).Ul(t);throw O(new qp(MK+t.ve()+PK))}function g6e(){cde();var e;return oVt?F(mL((qh(),V7),Xq),2003):(uv(VJ,new _s),Cct(),e=F(N(Mw((qh(),V7),Xq),549)?Mw(V7,Xq):new oDe,549),oVt=!0,ydt(e),Adt(e),TC((sde(),MBt),e,new Uo),$w(V7,Xq,e),e)}function _6e(e,t){var n,r,i,a;e.j=-1,Ev(e.e)?(n=e.i,a=e.i!=0,HE(e,t),r=new ZD(e.e,3,e.c,null,t,n,a),i=t.xl(e.e,e.c,null),i=_1e(e,t,i),i?(i.lj(r),i.mj()):fA(e.e,r)):(HE(e,t),i=t.xl(e.e,e.c,null),i&&i.mj())}function KI(e,t){var n,r,i=0;if(r=t[0],r>=e.length)return-1;for(n=(_T(r,e.length),e.charCodeAt(r));n>=48&&n<=57&&(i=i*10+(n-48),++r,!(r>=e.length));)n=(_T(r,e.length),e.charCodeAt(r));return r>t[0]?t[0]=r:i=-1,i}function v6e(e,t,n){var r,i,a,o=e.c,s=e.d;a=lj(W(A(h6,1),OB,8,0,[o.i.n,o.n,o.a])).b,i=(a+lj(W(A(h6,1),OB,8,0,[s.i.n,s.n,s.a])).b)/2,r=null,r=o.j==(Lz(),p5)?new j(t+o.i.c.c.a+n,i):new j(t-n,i),Jy(e.a,0,r)}function qI(e){for(var t=null,n,r=DS(ik(W(A(RJ,1),mB,20,0,[(!e.b&&(e.b=new Lb(r7,e,4,7)),e.b),(!e.c&&(e.c=new Lb(r7,e,5,8)),e.c)]))),i;sL(r);)if(n=F(FE(r),84),i=GF(n),!t)t=i;else if(t!=i)return!1;return!0}function JI(e,t,n){var r;if(++e.j,t>=e.i)throw O(new zp(dq+t+fq+e.i));if(n>=e.i)throw O(new zp(pq+n+fq+e.i));return r=e.g[n],t!=n&&(t>16),t=r>>16&16,n=16-t,e>>=t,r=e-256,t=r>>16&8,n+=t,e<<=t,r=e-zV,t=r>>16&4,n+=t,e<<=t,r=e-kB,t=r>>16&2,n+=t,e<<=t,r=e>>14,t=r&~(r>>1),n+2-t)}function y6e(e,t){var n,r,i=new kd;for(r=oP(t.a,0);r.b!=r.d.c;)n=F(YT(r),65),n.c.g==e.g&&M(q(n.b,(zR(),P4)))!==M(q(n.c,P4))&&!kE(new Hx(null,new hT(i,16)),new _oe(n))&&Vd(i.c,n);return Yv(i,new Hte),i}function b6e(e,t,n){var r,i,a,o;return N(t,155)&&N(n,155)?(a=F(t,155),o=F(n,155),e.a[a.a][o.a]+e.a[o.a][a.a]):N(t,251)&&N(n,251)&&(r=F(t,251),i=F(n,251),r.a==i.a)?F(q(i.a,(MR(),dX)),15).a:0}function x6e(e,t){var n,i,a,o,s,c,l,u=k(P(q(t,(Yz(),V0))));for(l=e[0].n.a+e[0].o.a+e[0].d.c+u,c=1;c=0?n:(s=dC(Pb(new j(o.c+o.b/2,o.d+o.a/2),new j(a.c+a.b/2,a.d+a.a/2))),-(eit(a,o)-1)*s)}function C6e(e,t,n){var r;Eh(new Hx(null,(!n.a&&(n.a=new I(a7,n,6,6)),new hT(n.a,16))),new qfe(e,t)),Eh(new Hx(null,(!n.n&&(n.n=new I(f7,n,1,7)),new hT(n.n,16))),new Jfe(e,t)),r=F(Y(n,(Qz(),W6)),79),r&&bVe(r,e,t)}function ZI(e,t,n){var r,i,a=Cz((TI(),p9),e.Ah(),t);if(a)return Qh(),F(a,69).vk()||(a=bT(GD(p9,a))),i=(r=e.Fh(a),F(r>=0?e.Ih(r,!0,!0):ZI(e,a,!0),163)),F(i,219).Ql(t,n);throw O(new qp(MK+t.ve()+PK))}function w6e(e,t,n,r){var i=e.d[t],a,o,s,c;if(i){if(a=i.g,c=i.i,r!=null){for(s=0;s=n&&(r=t,l=(c.c+c.a)/2,o=l-n,c.c<=l-n&&(i=new ax(c.c,o),tS(e,r++,i)),s=l+n,s<=c.a&&(a=new ax(s,c.a),tT(r,e.c.length),Tg(e.c,r,a)))}function M6e(e,t,n){var r,i,a,o,s,c;if(!t.dc()){for(i=new vh,c=t.Jc();c.Ob();)for(s=F(c.Pb(),40),TC(e.a,K(s.g),K(n)),o=(r=oP(new Zu(s).a.d,0),new Qu(r));Qm(o.a);)a=F(YT(o.a),65).c,bE(i,a,i.c.b,i.c);M6e(e,i,n+1)}}function N6e(e){var t;if(!e.c&&e.g==null)e.d=e._i(e.f),hD(e,e.d),t=e.d;else if(e.g==null)return!0;else if(e.i==0)return!1;else t=F(e.g[e.i-1],50);return t==e.b&&null.Tm>=null.Sm()?(gL(e),N6e(e)):t.Ob()}function P6e(e){if(this.a=e,e.c.i.k==(_L(),GX))this.c=e.c,this.d=F(q(e.c.i,(X(),m$)),64);else if(e.d.i.k==GX)this.c=e.d,this.d=F(q(e.d.i,(X(),m$)),64);else throw O(new qp(`Edge `+e+` is not an external edge.`))}function F6e(e,t){var n,r,i=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,3,i,e.b)),t?t!=e&&(Bk(e,t.zb),ZO(e,t.d),n=(r=t.c,r??t.zb),yk(e,n==null||zb(n,t.zb)?null:n)):(Bk(e,null),ZO(e,0),yk(e,null))}function I6e(e){var t=(!YJ&&(YJ=aut()),YJ);return`"`+e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(e){return Ake(e,t)})+`"`}function L6e(e,t,n,i,a,o){var s,c,l,u,d;if(a!=0)for(M(e)===M(n)&&(e=e.slice(t,t+a),t=0),l=n,c=t,u=t+a;c=o)throw O(new Rb(t,o));return i=n[t],o==1?r=null:(r=H(dBt,Dq,415,o-1,0,1),LR(n,0,r,0,t),a=o-t-1,a>0&&LR(n,t+1,r,t,a)),pP(e,r),H4e(e,t,i),i}function B6e(e){var t,n;if(e.f){for(;e.n0)for(o=e.c.d,s=e.d.d,i=dy(Pb(new j(s.a,s.b),o),1/(r+1)),a=new j(o.a,o.b),n=new D(e.a);n.a0?dN(n):wM(dN(n))),_P(t,b0,a)}function G6e(e,t){var n,r;if(e.c.length!=0){if(e.c.length==2)XR((gT(0,e.c.length),F(e.c[0],9)),(dF(),I8)),XR((gT(1,e.c.length),F(e.c[1],9)),L8);else for(r=new D(e);r.a0&&fR(e,n,t),a):r.a==null?i.a==null?0:(fR(e,n,t),1):(fR(e,t,n),-1)}function J6e(e){iT();for(var t,n=new gE,r,i=new D(e.e.b),a,o,s;i.a=0;)r=n[a],o.$l(r.Jk())&&hD(i,r);!gut(e,i)&&Ev(e.e)&&lf(e,t.Hk()?vw(e,6,t,(ew(),CY),null,-1,!1):vw(e,t.rk()?2:1,t,null,null,-1,!1))}function Q6e(e,t){var n,r,i,a,o;return e.a==(lI(),NQ)||(a=t.a.c,n=t.a.c+t.a.b,!(t.j&&(r=t.A,o=r.c.c.a-r.o.a/2,i=a-(r.n.a+r.o.a),i>o)||t.q&&(r=t.C,o=r.c.c.a-r.o.a/2,i=r.n.a-n,i>o)))}function $6e(e,t,n){var r=0,i,a,o,s,c=n;for(t||(r=n*(e.c.length-1),c*=-1),a=new D(e);a.a=0?e.xh(null):e.Mh().Qh(e,-1-t,null,null)),e.yh(F(i,52),n),r&&r.mj(),e.sh()&&e.th()&&n>-1&&fA(e,new CS(e,9,n,a,i)),i):a}function g8e(e,t){var n,r,i,a=e.b.Ae(t),o;for(r=(n=e.a.get(a),n??H(IJ,mB,1,0,5,1)),o=0;o>5,i>=e.d)return e.e<0;if(n=e.a[i],t=1<<(t&31),e.e<0){if(r=zVe(e),i>16)),16).bd(a),s0&&(!(Ov(e.a.c)&&t.n.d)&&!(kv(e.a.c)&&t.n.b)&&(t.g.d+=r.Math.max(0,i/2-.5)),!(Ov(e.a.c)&&t.n.a)&&!(kv(e.a.c)&&t.n.c)&&(t.g.a-=i-1))}function k8e(e,t,n){var r,i,a=F(zx(t.e,0),17).c,o,s,c;r=a.i,i=r.k,c=F(zx(n.g,0),17).d,o=c.i,s=o.k,i==(_L(),qX)?G(e,(X(),E$),F(q(r,E$),12)):G(e,(X(),E$),a),s==qX?G(e,(X(),D$),F(q(o,D$),12)):G(e,(X(),D$),c)}function A8e(e,t){for(var n,r,i,a=new D(e.b),o,s;a.a>t,a=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(o=r?kV:0,a=n>>t-22,i=e.m>>t-22|n<<44-t):(o=r?kV:0,a=r?OV:0,i=n>>t-44),Qv(i&OV,a&OV,o&kV)}function I8e(e,t){var n,r,i,a,o,s,c,l,u;if(e.a.f>0&&N(t,45)&&(e.a.Zj(),l=F(t,45),c=l.jd(),a=c==null?0:Rk(c),o=wve(e.a,a),n=e.a.d[o],n)){for(r=F(n.g,374),u=n.i,s=0;s=2)for(n=a.Jc(),t=P(n.Pb());n.Ob();)o=t,t=P(n.Pb()),i=r.Math.min(i,(bC(t),t-(bC(o),o)));return i}function Z8e(e,t){var n,r,i=new kd;for(r=oP(t.a,0);r.b!=r.d.c;)n=F(YT(r),65),n.b.g==e.g&&!zb(n.b.c,DG)&&M(q(n.b,(zR(),P4)))!==M(q(n.c,P4))&&!kE(new Hx(null,new hT(i,16)),new voe(n))&&Vd(i.c,n);return Yv(i,new Ui),i}function Q8e(e,t){var n,r,i;if(M(t)===M(XS(e)))return!0;if(!N(t,16)||(r=F(t,16),i=e.gc(),i!=r.gc()))return!1;if(N(r,59)){for(n=0;n0&&(i=n),o=new D(e.f.e);o.a0?i+=t:i+=1;return i}function u5e(e,t){var n,r,i,a,o,s,c,l=e,u,d;c=KT(l,`individualSpacings`),c&&(r=lD(t,(Qz(),l8)),o=!r,o&&(i=new oo,_P(t,l8,i)),s=F(Y(t,l8),379),d=c,a=null,d&&(a=(u=Ek(d,H(pY,OB,2,0,6,1)),new gh(d,u))),a&&(n=new ipe(d,s),wE(a,n)))}function d5e(e,t){var n,r,i,a,o,s,c=null,l,u,d=e,f;return u=null,(q_t in d.a||J_t in d.a||tq in d.a)&&(l=null,f=rUe(t),o=KT(d,q_t),n=new Joe(f),Pqe(n.a,o),s=KT(d,J_t),r=new ld(f),Fqe(r.a,s),a=WT(d,tq),i=new fd(f),l=(u1e(i.a,a),a),u=l),c=u,c}function f5e(e,t){var n,r,i;if(t===e)return!0;if(N(t,541)){if(i=F(t,834),e.a.d!=i.a.d||PC(e).gc()!=PC(i).gc())return!1;for(r=PC(i).Jc();r.Ob();)if(n=F(r.Pb(),416),wAe(e,n.a.jd())!=F(n.a.kd(),18).gc())return!1;return!0}return!1}function p5e(e,t){for(var n,r,i,a=new D(t.a);a.at.c?1:e.bt.b?1:e.a==t.a?e.d==(nE(),V2)&&t.d==B2?-1:+(e.d==B2&&t.d==V2):Rk(e.a)-Rk(t.a)}function lL(e){var t,n,i,a=LV,o,s,c,l;for(i=RV,n=new D(e.e.b);n.a0&&i0):i<0&&-i0)}function g5e(e,t,n,r){var i=(t-e.d)/e.c.c.length,a=0,o,s,c,l,u,d;for(e.a+=n,e.d=t,d=new D(e.c);d.a>24;return o}function v5e(e){if(e.xe()){var t=e.c;e.o=t.ye()?`[`+t.n:t.xe()?`[`+t.ve():`[L`+t.ve()+`;`,e.b=t.ue()+`[]`,e.k=t.we()+`[]`}else{var n=e.j,r=e.d;r=r.split(`/`),e.o=FN(`.`,[n,FN(`$`,r)]),e.b=FN(`.`,[n,FN(`.`,r)]),e.k=r[r.length-1]}}function y5e(e,t){var n,r,i,a,o=null;for(a=new D(e.e.a);a.a0&&Xz(t,(gT(r-1,e.c.length),F(e.c[r-1],9)),i)>0;)CE(e,r,(gT(r-1,e.c.length),F(e.c[r-1],9))),--r;gT(r,e.c.length),e.c[r]=i}t.b=new Ad,t.g=new Ad}function k5e(e,t,n){for(var r=1,i,a;r0&&t.Le((gT(i-1,e.c.length),F(e.c[i-1],9)),a)>0;)CE(e,i,(gT(i-1,e.c.length),F(e.c[i-1],9))),--i;gT(i,e.c.length),e.c[i]=a}n.a=new Ad,n.b=new Ad}function uL(e,t,n){for(var i,a,o=t.Jc(),s,c,l,u,d,f,p;o.Ob();)a=F(o.Pb(),26),d=a.i+a.g/2,p=a.j+a.f/2,l=e.f,s=l.i+l.g/2,c=l.j+l.f/2,u=d-s,f=p-c,i=r.Math.sqrt(u*u+f*f),u*=e.e/i,f*=e.e/i,n?(d-=u,p-=f):(d+=u,p+=f),qO(a,d-a.g/2),JO(a,p-a.f/2)}function dL(e){var t,n,r;if(!e.c&&e.b!=null){for(t=e.b.length-4;t>=0;t-=2)for(n=0;n<=t;n+=2)(e.b[n]>e.b[n+2]||e.b[n]===e.b[n+2]&&e.b[n+1]>e.b[n+3])&&(r=e.b[n+2],e.b[n+2]=e.b[n],e.b[n]=r,r=e.b[n+3],e.b[n+3]=e.b[n+1],e.b[n+1]=r);e.c=!0}}function fL(e){var t,n=new Ey(Jm(e.Pm));return n.a+=`@`,ov(n,(t=Rk(e)>>>0,t.toString(16))),e.Sh()?(n.a+=` (eProxyURI: `,av(n,e.Yh()),e.Hh()&&(n.a+=` eClass: `,av(n,e.Hh())),n.a+=`)`):e.Hh()&&(n.a+=` (eClass: `,av(n,e.Hh()),n.a+=`)`),n.a}function pL(e){var t,n,r,i;if(e.e)throw O(new Jp((ub(BY),pH+BY.k+mH)));for(e.d==(yM(),x8)&&Mz(e,y8),n=new D(e.a.a);n.a>24}return n}function I5e(e,t,n){var r,i=F(DC(e.i,t),319),a;if(!i){if(i=new WRe(e.d,t,n),NS(e.i,t,i),wJe(t))Mhe(e.a,t.c,t.b,i);else switch(a=E4e(t),r=F(DC(e.p,a),253),a.g){case 1:case 3:i.j=!0,Mp(r,t.b,i);break;case 4:case 2:i.k=!0,Mp(r,t.c,i)}}return i}function L5e(e,t,n,r){var i,a,o,s=new vo,c=VL(e.e.Ah(),t),l;if(i=F(e.g,122),Qh(),F(t,69).vk())for(o=0;o=0)return a;for(o=1,c=new D(t.j);c.a=0)return a;for(o=1,c=new D(t.j);c.a=0?(t||(t=new hm,r>0&&rv(t,(uD(0,r,e.length),e.substr(0,r)))),t.a+=`\\`,cC(t,n&iV)):t&&cC(t,n&iV);return t?t.a:e}function V5e(e){for(var t,n=new D(e.a.a.b),i;n.a0&&(!(Ov(e.a.c)&&t.n.d)&&!(kv(e.a.c)&&t.n.b)&&(t.g.d-=r.Math.max(0,i/2-.5)),!(Ov(e.a.c)&&t.n.a)&&!(kv(e.a.c)&&t.n.c)&&(t.g.a+=r.Math.max(0,i-1)))}function H5e(e,t,n){var r,i;if((e.c-e.b&e.a.length-1)==2)t==(Lz(),m5)||t==p5?(wO(F(aj(e),16),(dF(),I8)),wO(F(aj(e),16),L8)):(wO(F(aj(e),16),(dF(),L8)),wO(F(aj(e),16),I8));else for(i=new LC(e);i.a!=i.b;)r=F($j(i),16),wO(r,n)}function U5e(e,t,n){var r,i,a,o,s,c,l,u=-1,d=0;for(s=t,c=0,l=s.length;c0&&++d;++u}return d}function W5e(e,t){var n,r,i=dx(new gd(e)),a,o,s=new FT(i,i.c.length),c;for(a=dx(new gd(t)),c=new FT(a,a.c.length),o=null;s.b>0&&c.b>0&&(n=(tb(s.b>0),F(s.a.Xb(s.c=--s.b),26)),r=(tb(c.b>0),F(c.a.Xb(c.c=--c.b),26)),n==r);)o=n;return o}function G5e(e,t){var n,r,i,a;for(t.Tg(`Self-Loop pre-processing`,1),r=new D(e.a);r.azje(e,n)?(r=IM(n,(Lz(),p5)),e.d=r.dc()?0:Ox(F(r.Xb(0),12)),o=IM(t,N5),e.b=o.dc()?0:Ox(F(o.Xb(0),12))):(i=IM(n,(Lz(),N5)),e.d=i.dc()?0:Ox(F(i.Xb(0),12)),a=IM(t,p5),e.b=a.dc()?0:Ox(F(a.Xb(0),12)))}function q5e(e){var t=!0,n,r,i=null,a=null,o,s,c;j:for(c=new D(e.a);c.ae.c));o++)i.a>=e.s&&(a<0&&(a=o),s=o);return c=(e.s+e.c)/2,a>=0&&(r=ynt(e,t,a,s),c=ude((gT(r,t.c.length),F(t.c[r],340))),j6e(t,r,n)),c}function hL(e,t,n){var r,i,a,o=(a=new Do,a),s,c,l;for(MBe(o,(bC(t),t)),l=(!o.b&&(o.b=new sb((nB(),o9),d9,o)),o.b),c=1;c=2}function $5e(e,t,n,r,i){for(var a=e.c.d.j,o=F(vP(n,0),8),s,c,l,u=1;u1||(t=eS(V8,W(A(Y8,1),Z,96,0,[B8,U8])),CA(Fw(t,e))>1)||(r=eS(J8,W(A(Y8,1),Z,96,0,[q8,K8])),CA(Fw(r,e))>1))}function t7e(e){for(var t=0,n,i=new D(e.a),a,o,s,c;i.a0&&(r.b.n-=r.c,r.b.n<=0&&r.b.u>0&&Sx(t,r.b));for(i=new D(e.i);i.a0&&(r.a.u-=r.c,r.a.u<=0&&r.a.n>0&&Sx(n,r.a))}function gL(e){var t,n,r,i,a;if(e.g==null&&(e.d=e._i(e.f),hD(e,e.d),e.c))return a=e.f,a;if(t=F(e.g[e.i-1],50),i=t.Pb(),e.e=t,n=e._i(i),n.Ob())e.d=n,hD(e,n);else for(e.d=null;!t.Ob()&&(eC(e.g,--e.i,null),e.i!=0);)r=F(e.g[e.i-1],50),t=r;return i}function r7e(e,t){var n,r=t,i=r.Jk(),a,o,s;if(WL(e.e,i)){if(i.Qi()&&rE(e,i,r.kd()))return!1}else for(s=VL(e.e.Ah(),i),n=F(e.g,122),a=0;a1||n>1)return 2;return t+n==1?2:0}function xL(e,t){var n,i,a,o=e.a*tH+e.b*1502,s,c=e.b*tH+11;return n=r.Math.floor(c*nH),o+=n,c-=n*dft,o%=dft,e.a=o,e.b=c,t<=24?r.Math.floor(e.a*sxt[t]):(a=e.a*(1<=2147483648&&(i-=4294967296),i)}function f7e(e,t,n){var r,i,a=new kd,o,s,c,l=new vh;for(o=new vh,Sat(e,l,o,t),Bst(e,l,o,t,n),c=new D(e);c.ar.b.g&&Vd(a.c,r);return a}function p7e(e,t,n){var r,i,a,o,s=e.c,c;for(o=(n.q?n.q:(ew(),ew(),wY)).vc().Jc();o.Ob();)a=F(o.Pb(),45),r=!eh(zC(new Hx(null,new hT(s,16)),new au(new Rfe(t,a)))).zd((Th(),RY)),r&&(c=a.kd(),N(c,4)&&(i=MJe(c),i!=null&&(c=i)),t.of(F(a.jd(),147),c))}function m7e(e,t){var n,r,i,a;for(t.Tg(`Resize child graph to fit parent.`,1),r=new D(e.b);r.a1)for(i=new D(e.a);i.a=0?e.Ih(r,!0,!0):ZI(e,a,!0),163)),F(i,219).Vl(t,n)}else throw O(new qp(MK+t.ve()+NK))}function v7e(e,t,n){var r,i,a,o,s,c=uve(e,F(tC(e.e,t),26));if(s=null,c)switch(c.g){case 3:r=hhe(e,Vw(t)),s=(bC(n),n+(bC(r),r));break;case 2:i=hhe(e,Vw(t)),o=(bC(n),n+(bC(i),i)),a=hhe(e,F(tC(e.e,t),26)),s=o-(bC(a),a);break;default:s=n}else s=n;return s}function y7e(e,t,n){var r,i,a,o,s,c=uve(e,F(tC(e.e,t),26));if(s=null,c)switch(c.g){case 3:r=ghe(e,Vw(t)),s=(bC(n),n+(bC(r),r));break;case 2:i=ghe(e,Vw(t)),o=(bC(n),n+(bC(i),i)),a=ghe(e,F(tC(e.e,t),26)),s=o-(bC(a),a);break;default:s=n}else s=n;return s}function SL(e,t){var n,r,i,a,o;if(t){for(a=N(e.Cb,88)||N(e.Cb,103),o=!a&&N(e.Cb,335),r=new yy((!t.a&&(t.a=new Xx(t,z7,t)),t.a));r.e!=r.i.gc();)if(n=F(lP(r),87),i=NR(n),a?N(i,88):o?N(i,159):i)return i;return a?(nB(),t9):(nB(),e9)}return null}function b7e(e,t){var n=new kd,r,i=cO(new Hx(null,new hT(e,16)),new Fi),a=cO(new Hx(null,new hT(e,16)),new Lte),o=GLe(zFe(VC(R7e(W(A(Cxt,1),mB,833,0,[i,a])),new Ii)));for(r=1;r=2*t&&fy(n,new ax(o[r-1]+t,o[r]-t));return n}function x7e(e,t,n){var r,i,a,o,s,c,l,u;if(n)for(a=n.a.length,r=new sS(a),s=(r.b-r.a)*r.c<0?($h(),G9):new vy(r);s.Ob();)o=F(s.Pb(),15),i=GT(n,o.a),i&&(c=ANe(e,(l=(Vm(),u=new Kf,u),t&&P7e(l,t),l),i),bk(c,qT(i,rq)),WF(i,c),g3e(i,c),uj(e,i,c))}function CL(e){var t,n,r,i,a,o;if(!e.j){if(o=new $ne,t=l9,a=t.a.yc(e,t),a==null){for(r=new yy(Sw(e));r.e!=r.i.gc();)n=F(lP(r),29),i=CL(n),YS(o,i),hD(o,n);t.a.Ac(e)}Lj(o),e.j=new pv((F(U(z((qS(),K7).o),11),19),o.i),o.g),jE(e).b&=-33}return e.j}function S7e(e){var t,n,r,i;if(e==null)return null;if(r=sz(e,!0),i=vJ.length,zb(r.substr(r.length-i,i),vJ)){if(n=r.length,n==4){if(t=(_T(0,r.length),r.charCodeAt(0)),t==43)return zVt;if(t==45)return RVt}else if(n==3)return zVt}return new ff(r)}function C7e(e){var t,n=e.l,r;return n&n-1||(r=e.m,r&r-1)||(t=e.h,t&t-1)||t==0&&r==0&&n==0?-1:t==0&&r==0&&n!=0?fBe(n):t==0&&r!=0&&n==0?fBe(r)+22:t!=0&&r==0&&n==0?fBe(t)+44:-1}function wL(e,t){var n,r,i=t.a&e.f,a=null,o;for(r=e.b[i];;r=r.b){if(r==t){a?a.b=t.b:e.b[i]=t.b;break}a=r}for(o=t.f&e.f,a=null,n=e.c[o];;n=n.d){if(n==t){a?a.d=t.d:e.c[o]=t.d;break}a=n}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function w7e(e,t){var n;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(n=F(uC(F(UE(e.b,t.a),262)),262),n.a=0,++e.c):(n=F(uC(F(tC(e.b,t.a),262)),262),--n.a,t.e?t.e.c=t.c:n.b=F(uC(t.c),498),t.c?t.c.e=t.e:n.c=F(uC(t.e),498)),--e.d}function TL(e,t){var n,r,i,a=new FT(e,0);for(n=(tb(a.b0),a.a.Xb(a.c=--a.b),Eb(a,i),tb(a.b3&&QD(e,0,t-3))}function O7e(e){var t,n,r,i;return M(q(e,(Yz(),H1)))===M((Oj(),N8))?!e.e&&M(q(e,E1))!==M((AA(),GQ)):(r=F(q(e,D1),302),i=Xp(db(q(e,k1)))||M(q(e,A1))===M((sN(),cQ)),t=F(q(e,wkt),15).a,n=e.a.c.length,!i&&r!=(AA(),GQ)&&(t==0||t>n))}function k7e(e,t){for(var n,r,i=e.Jc(),a,o,s,c;i.Ob();)for(r=F(i.Pb(),9),s=new mI,Qw(s,r),RI(s,(Lz(),p5)),G(s,(X(),P$),(ky(),!0)),o=t.Jc();o.Ob();)a=F(o.Pb(),9),c=new mI,Qw(c,a),RI(c,N5),G(c,P$,!0),n=new hw,G(n,P$,!0),Yw(n,s),Zw(n,c)}function A7e(e){for(var t,n=0;n0);n++);if(n>0&&n0);t++);return t>0&&n>16!=6&&t){if(gF(e,t))throw O(new qp(zK+e8e(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?fQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=gP(t,e,6,r)),r=fve(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,6,t,t))}function EL(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(gF(e,t))throw O(new qp(zK+Gat(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?vQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=gP(t,e,12,r)),r=dve(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,3,t,t))}function P7e(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=9&&t){if(gF(e,t))throw O(new qp(zK+cnt(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?mQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=gP(t,e,9,r)),r=pve(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,9,t,t))}function DL(e){var t,n,r=vF(e),i,a=e.j;if(a==null&&r)return e.Hk()?null:r.gk();if(N(r,159)){if(n=r.hk(),n&&(i=n.ti(),i!=e.i)){if(t=F(r,159),t.lk())try{e.g=i.qi(t,a)}catch(t){if(t=WA(t),N(t,80))e.g=null;else throw O(t)}e.i=i}return e.g}return null}function F7e(e){var t=new kd;return fy(t,new lg(new j(e.c,e.d),new j(e.c+e.b,e.d))),fy(t,new lg(new j(e.c,e.d),new j(e.c,e.d+e.a))),fy(t,new lg(new j(e.c+e.b,e.d+e.a),new j(e.c+e.b,e.d))),fy(t,new lg(new j(e.c+e.b,e.d+e.a),new j(e.c,e.d+e.a))),t}function I7e(e){var t,n,r=e.a.d.j,i=e.c.d.j;for(n=new D(e.i.d);n.a>>0),n.toString(16)),oYe(NHe(),(Ch(),`Exception during lenientFormat for `+r),t),`<`+r+` threw `+Jm(t.Pm)+`>`;throw O(i)}}function R7e(e){var t,n,r=!1,i,a,o,s,l,u;for(t=336,n=0,a=new bve(e.length),s=e,l=0,u=s.length;l1)for(t=jy((n=new yf,++e.b,n),e.d),s=oP(a,0);s.b!=s.d.c;)o=F(YT(s),124),zL(jh(Ah(Mh(kh(new vf,1),0),t),o))}function kL(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=11&&t){if(gF(e,t))throw O(new qp(zK+snt(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?MQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=gP(t,e,10,r)),r=Jve(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,11,t,t))}function U7e(e,t,n){var r,i,a=0,o=0,s,c;if(e.c)for(c=new D(e.d.i.j);c.aa.a?-1:i.ac){for(u=e.d,e.d=H(cBt,Nvt,67,2*c+4,0,1),a=0;a=0x8000000000000000?(fO(),ybt):(i=!1,e<0&&(i=!0,e=-e),r=0,e>=MV&&(r=Nw(e/MV),e-=r*MV),n=0,e>=jV&&(n=Nw(e/jV),e-=n*jV),t=Nw(e),a=Qv(t,n,r),i&&cj(a),a)}function o9e(e){var t,n,r,i,a=new kd;if(kO(e.b,new lu(a)),e.b.c.length=0,a.c.length!=0){for(t=(gT(0,a.c.length),F(a.c[0],80)),n=1,r=a.c.length;n>16!=7&&t){if(gF(e,t))throw O(new qp(zK+i4e(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?pQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=F(t,52).Oh(e,1,t7,r)),r=xwe(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,7,t,t))}function p9e(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(gF(e,t))throw O(new qp(zK+ZGe(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?_Qe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=F(t,52).Oh(e,0,o7,r)),r=Swe(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,3,t,t))}function ML(e,t){ZL();var n,r,i,a,o,s,c,l,u;return t.d>e.d&&(s=e,e=t,t=s),t.d<63?yet(e,t):(o=(e.d&-2)<<4,l=fFe(e,o),u=fFe(t,o),r=oz(e,IE(l,o)),i=oz(t,IE(u,o)),c=ML(l,u),n=ML(r,i),a=ML(oz(l,r),oz(i,u)),a=Sz(Sz(a,c),n),a=IE(a,o),c=IE(c,o<<1),Sz(Sz(c,a),n))}function NL(){NL=C,Q0=new Hg(mht,0),AAt=new Hg(`LONGEST_PATH`,1),jAt=new Hg(`LONGEST_PATH_SOURCE`,2),Y0=new Hg(`COFFMAN_GRAHAM`,3),kAt=new Hg(GU,4),MAt=new Hg(`STRETCH_WIDTH`,5),Z0=new Hg(`MIN_WIDTH`,6),J0=new Hg(`BF_MODEL_ORDER`,7),X0=new Hg(`DF_MODEL_ORDER`,8)}function m9e(e,t){var n,r,i,a,o,s;if(!e.tb){for(a=(!e.rb&&(e.rb=new SS(e,F7,e)),e.rb),s=new wh(a.i),i=new yy(a);i.e!=i.i.gc();)r=F(lP(i),143),o=r.ve(),n=F(o==null?NI(s.f,null,r):FM(s.i,o,r),143),n&&(o==null?NI(s.f,null,n):FM(s.i,o,n));e.tb=s}return F(Mw(e.tb,t),143)}function PL(e,t){var n,r,i,a,o;if((e.i??VR(e),e.i).length,!e.p){for(o=new wh((3*e.g.i/2|0)+1),i=new Uy(e.g);i.e!=i.i.gc();)r=F(uP(i),179),a=r.ve(),n=F(a==null?NI(o.f,null,r):FM(o.i,a,r),179),n&&(a==null?NI(o.f,null,n):FM(o.i,a,n));e.p=o}return F(Mw(e.p,t),179)}function h9e(e,t,n,r,i){var a,o,s,c,l;for(KJe(r+bw(n,n.ge()),i),yEe(t,wqe(n)),a=n.f,a&&h9e(e,t,a,`Caused by: `,!1),s=(n.k??=H(JJ,OB,80,0,0,1),n.k),c=0,l=s.length;c=0;a+=n?1:-1)o|=t.c.jg(c,a,n,r&&!Xp(db(q(t.j,(X(),h$))))&&!Xp(db(q(t.j,(X(),V$))))),o|=t.q.tg(c,a,n),o|=Ftt(e,c[a],n,r);return PS(e.c,t),o}function IL(e,t,n){for(var r,i,a,o,s,c,l,u=zMe(e.j),d=0,f=u.length;d1&&(e.a=!0),hwe(F(n.b,68),Nb(ry(F(t.b,68).c),dy(Pb(ry(F(n.b,68).a),F(t.b,68).a),i))),SAe(e,t),v9e(e,n)}function y9e(e){for(var t,n,r,i,a=new D(e.a.a),o,s;a.a0&&a>0?o.p=t++:r>0?o.p=n++:a>0?o.p=i++:o.p=n++}ew(),Yv(e.j,new Vn)}function S9e(e){var t,n=null;t=F(zx(e.g,0),17);do{if(n=t.d.i,ib(n,(X(),D$)))return F(q(n,D$),12).i;if(n.k!=(_L(),YX)&&sL(new fS(Sy(GM(n).a.Jc(),new f))))t=F(FE(new fS(Sy(GM(n).a.Jc(),new f))),17);else if(n.k!=YX)return null}while(n&&n.k!=(_L(),YX));return n}function C9e(e,t){var n,r,i,a,o,s=t.j,c,l,u;for(o=t.g,c=F(zx(s,s.c.length-1),113),u=(gT(0,s.c.length),F(s.c[0],113)),l=QP(e,o,c,u),a=1;al&&(c=n,u=i,l=r);t.a=u,t.c=c}function RL(e,t,n,r){var i=M(q(n,(Yz(),_1)))===M((ZA(),YQ)),a=F(q(n,Skt),16);if(ib(e,(X(),j$))){if(i){if(a.Gc(q(e,v1))&&a.Gc(q(t,v1)))return r*F(q(e,v1),15).a+F(q(e,j$),15).a}else return F(q(e,j$),15).a}else return-1;return F(q(e,j$),15).a}function w9e(e,t,n){var r,i,a,o,s,c,l=new Xm(new toe(e));for(o=W(A(KCt,1),ppt,12,0,[t,n]),s=0,c=o.length;sc-e.b&&sc-e.a&&sn.p):a.Ob()?1:-1}function I9e(e,t){var n,i,a,o,s,c;t.Tg(xgt,1),a=F(Y(e,(tR(),E3)),104),o=(!e.a&&(e.a=new I(p7,e,10,11)),e.a),s=QZe(o),c=r.Math.max(s.a,k(P(Y(e,(aR(),_3))))-(a.b+a.c)),i=r.Math.max(s.b,k(P(Y(e,m3)))-(a.d+a.a)),n=i-s.b,_P(e,d3,n),_P(e,p3,c),_P(e,f3,i+n),t.Ug()}function BL(e){var t,n;if((!e.a&&(e.a=new I(a7,e,6,6)),e.a).i==0)return rUe(e);for(t=F(U((!e.a&&(e.a=new I(a7,e,6,6)),e.a),0),170),yz((!t.a&&(t.a=new hy(e7,t,5)),t.a)),YO(t,0),XO(t,0),WO(t,0),GO(t,0),n=(!e.a&&(e.a=new I(a7,e,6,6)),e.a);n.i>1;)JL(n,n.i-1);return t}function VL(e,t){Qh();var n,r,i,a;return t?t==(wz(),FVt)||(t==CVt||t==S9||t==SVt)&&e!=xVt?new hlt(e,t):(r=F(t,682),n=r.Yk(),n||=(FC(GD((TI(),p9),t)),r.Yk()),a=(!n.i&&(n.i=new Ad),n.i),i=F(Y_(nS(a.f,e)),2006),!i&&TC(a,e,i=new hlt(e,t)),i):mVt}function L9e(e,t){var n;if(!FS(e.b,t.b))throw O(new Jp(`Invalid hitboxes for scanline constraint calculation.`));(eUe(t.b,F(Rue(e.b,t.b),60))||eUe(t.b,F(Lue(e.b,t.b),60)))&&xh(),e.a[t.b.f]=F(Oh(e.b,t.b),60),n=F(Dh(e.b,t.b),60),n&&(e.a[n.f]=t.b)}function R9e(e,t){var n,r,i,a,o,s,c=F(q(e,(X(),M$)),12),l=lj(W(A(h6,1),OB,8,0,[c.i.n,c.n,c.a])).a,u=e.i.n.b;for(n=LT(e.e),i=n,a=0,o=i.length;a0?a.a?(s=a.b.Kf().a,n>s&&(i=(n-s)/2,a.d.b=i,a.d.c=i)):a.d.c=e.s+n:LS(e.u)&&(r=d0e(a.b),r.c<0&&(a.d.b=-r.c),r.c+r.b>a.b.Kf().a&&(a.d.c=r.c+r.b-a.b.Kf().a))}function W9e(e,t){var n,r,i,a,o=new kd;n=t;do a=F(tC(e.b,n),132),a.B=n.c,a.D=n.d,Vd(o.c,a),n=F(tC(e.k,n),17);while(n);return r=(gT(0,o.c.length),F(o.c[0],132)),r.j=!0,r.A=F(r.d.a.ec().Jc().Pb(),17).c.i,i=F(zx(o,o.c.length-1),132),i.q=!0,i.C=F(i.d.a.ec().Jc().Pb(),17).d.i,o}function G9e(e){var t,n=F(q(e,(Yz(),q1)),165);t=F(q(e,(X(),b$)),316),n==(oN(),t1)?(G(e,q1,i1),G(e,b$,(uO(),e$))):n==r1?(G(e,q1,i1),G(e,b$,(uO(),QQ))):t==(uO(),e$)?(G(e,q1,t1),G(e,b$,$Q)):t==QQ&&(G(e,q1,r1),G(e,b$,$Q))}function HL(){HL=C,Y2=new Nte,lMt=Mx(new vC,(rI(),TX),($z(),cZ)),fMt=oS(Mx(new vC,TX,yZ),DX,vZ),pMt=VN(VN(Gh(oS(Mx(new vC,CX,TZ),DX,wZ),EX),CZ),EZ),uMt=oS(Mx(Mx(Mx(new vC,wX,uZ),EX,fZ),EX,pZ),DX,dZ),dMt=oS(Mx(Mx(new vC,EX,pZ),EX,aZ),DX,iZ)}function UL(){UL=C,gMt=Mx(oS(new vC,(rI(),DX),($z(),dwt)),TX,cZ),bMt=VN(VN(Gh(oS(Mx(new vC,CX,TZ),DX,wZ),EX),CZ),EZ),_Mt=oS(Mx(Mx(Mx(new vC,wX,uZ),EX,fZ),EX,pZ),DX,dZ),yMt=Mx(Mx(new vC,TX,yZ),DX,vZ),vMt=oS(Mx(Mx(new vC,EX,pZ),EX,aZ),DX,iZ)}function K9e(e,t,n,r,i){var a,o;(!AE(t)&&t.c.i.c==t.d.i.c||!UBe(lj(W(A(h6,1),OB,8,0,[i.i.n,i.n,i.a])),n))&&!AE(t)&&(t.c==i?Jy(t.a,0,new Sv(n)):Sx(t.a,new Sv(n)),r&&!hh(e.a,n)&&(o=F(q(t,(Yz(),K1)),79),o||(o=new qf,G(t,K1,o)),a=new Sv(n),bE(o,a,o.c.b,o.c),PS(e.a,a)))}function q9e(e,t){var n,r,i,a=$x(VM(VB,MC($x(VM(t==null?0:Rk(t),HB)),15)));for(n=a&e.b.length-1,i=null,r=e.b[n];r;i=r,r=r.a)if(r.d==a&&mC(r.i,t))return i?i.a=r.a:e.b[n]=r.a,Wce(F(uC(r.c),594),F(uC(r.f),594)),Wd(F(uC(r.b),227),F(uC(r.e),227)),--e.f,++e.e,!0;return!1}function J9e(e){for(var t,n=new fS(Sy(UM(e).a.Jc(),new f));sL(n);)if(t=F(FE(n),17),t.c.i.k!=(_L(),KX))throw O(new rm(PU+rF(e)+`' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen.`))}function Y9e(e,t){var n,r,i=t?new Zr:new Qr,a=!1,o,s,c,l,u,d,f;do for(a=!1,l=t?fN(e.b):e.b,c=l.Jc();c.Ob();)for(s=F(c.Pb(),25),f=xT(s.a),t||fN(f),d=new D(f);d.a=0;o+=i?1:-1){for(s=t[o],c=r==(Lz(),p5)?i?IM(s,r):fN(IM(s,r)):i?fN(IM(s,r)):IM(s,r),a&&(e.c[s.p]=c.gc()),d=c.Jc();d.Ob();)u=F(d.Pb(),12),e.d[u.p]=l++;HA(n,c)}}function $9e(e,t,n){var r,i,a=k(P(e.b.Jc().Pb())),o,s,c,l=k(P(PHe(t.b))),u;for(r=dy(ry(e.a),l-n),i=dy(ry(t.a),n-a),u=Nb(r,i),dy(u,1/(l-a)),this.a=u,this.b=new kd,s=!0,o=e.b.Jc(),o.Pb();o.Ob();)c=k(P(o.Pb())),s&&c-n>xG&&(this.b.Ec(n),s=!1),this.b.Ec(c);s&&this.b.Ec(n)}function eet(e){var t,n,r,i;if(Snt(e,e.n),e.d.c.length>0){for(tm(e.c);D8e(e,F(B(new D(e.e.a)),124))>5,i,a,o;if(t&=31,r>=e.d)return e.e<0?(pR(),Ubt):(pR(),yY);if(a=e.d-r,i=H(q9,vV,30,a+1,15,1),Y2e(i,a,e.a,r,t),e.e<0){for(n=0;n0&&e.a[n]<<32-t){for(n=0;n=0?!1:(n=Cz((TI(),p9),i,t),!n||(r=n.Gk(),(r>1||r==-1)&&xC(GD(p9,n))!=3))):!1}function cet(e,t,n,r){var i,a,o,s,c=e.c.d,l=e.d.d,u,d,f,p;if(c.j!=l.j)for(p=e.b,u=null,s=null,o=VJe(e),o&&p.i&&(u=e.b.i.i,s=p.i.j),i=c.j,d=null;i!=l.j;)d=t==0?TM(i):_Ke(i),a=fYe(i,p.d[i.g],n),f=fYe(d,p.d[d.g],n),o&&u&&s&&(i==u?eqe(a,u,s):d==u&&eqe(f,u,s)),Sx(r,Nb(a,f)),i=d}function uet(e,t,n){var r=Qce(n,e.length),i,a,o=e[r],s,c;if(a=Zce(n,o.length),o[a].k==(_L(),GX))for(c=t.j,i=0;i0&&(n[0]+=e.d,s-=n[0]),n[2]>0&&(n[2]+=e.d,s-=n[2]),o=r.Math.max(0,s),n[1]=r.Math.max(n[1],s),vFe(e,HY,a.c+i.b+n[0]-(n[1]-s)/2,n),t==HY&&(e.c.b=o,e.c.c=a.c+i.b+(o-s)/2)}function Cet(){this.c=H(Z9,UV,30,(Lz(),W(A(P5,1),SU,64,0,[M5,m5,p5,j5,N5])).length,15,1),this.b=H(Z9,UV,30,W(A(P5,1),SU,64,0,[M5,m5,p5,j5,N5]).length,15,1),this.a=H(Z9,UV,30,W(A(P5,1),SU,64,0,[M5,m5,p5,j5,N5]).length,15,1),Sde(this.c,LV),Sde(this.b,RV),Sde(this.a,RV)}function wet(e,t,n,r){var i,a,o,s,c=t.i;for(s=n[c.g][e.d[c.g]],i=!1,o=new D(t.d);o.a=i&&(e.c=!1,e.a=!1),e.b[r++]=i,e.b[r]=a,e.c||dL(e)}}function Tet(e,t,n){var r,i,a,o,s,c,l=t.d;for(e.a=new pD(l.c.length),e.c=new Ad,s=new D(l);s.a=0?e.Ih(l,!1,!0):ZI(e,n,!1),61));n:for(a=d.Jc();a.Ob();){for(i=F(a.Pb(),57),u=0;ue.d[o.p]&&(n+=LPe(e.b,a),XT(e.a,K(a)));for(;!Qp(e.a);)vRe(e.b,F(VS(e.a),15).a)}return n}function Fet(e,t,n){var r,i,a=(!t.a&&(t.a=new I(p7,t,10,11)),t.a).i,o;for(i=new yy((!t.a&&(t.a=new I(p7,t,10,11)),t.a));i.e!=i.i.gc();)r=F(lP(i),26),(!r.a&&(r.a=new I(p7,r,10,11)),r.a).i==0||(a+=Fet(e,r,!1));if(n)for(o=qw(t);o;)a+=(!o.a&&(o.a=new I(p7,o,10,11)),o.a).i,o=qw(o);return a}function JL(e,t){var n,r,i,a;return e.Nj()?(r=null,i=e.Oj(),e.Rj()&&(r=e.Tj(e.Yi(t),null)),n=e.Gj(4,a=lF(e,t),null,t,i),e.Kj()&&a!=null&&(r=e.Mj(a,r)),r?(r.lj(n),r.mj()):e.Hj(n),a):(a=lF(e,t),e.Kj()&&a!=null&&(r=e.Mj(a,null),r&&r.mj()),a)}function Iet(e){var t,n,i,a,o,s,c,l,u=e.a,d;for(t=new pf,l=0,i=new D(e.d);i.ac.d&&(d=c.d+c.a+u));n.c.d=d,t.a.yc(n,t),l=r.Math.max(l,n.c.d+n.c.a)}return l}function Let(e,t,n){for(var r,i,a,o=F(q(e,(X(),_$)),16).Jc(),s,c;o.Ob();){switch(a=F(o.Pb(),9),F(q(a,(Yz(),q1)),165).g){case 2:Xw(a,t);break;case 4:Xw(a,n)}for(i=new fS(Sy(WM(a).a.Jc(),new f));sL(i);)r=F(FE(i),17),!(r.c&&r.d)&&(s=!r.d,c=F(q(r,uEt),12),s?Zw(r,c):Yw(r,c))}}function YL(){YL=C,FQ=new Lg(`COMMENTS`,0),LQ=new Lg(`EXTERNAL_PORTS`,1),RQ=new Lg(`HYPEREDGES`,2),zQ=new Lg(`HYPERNODES`,3),BQ=new Lg(`NON_FREE_PORTS`,4),VQ=new Lg(`NORTH_SOUTH_PORTS`,5),UQ=new Lg(Mpt,6),PQ=new Lg(`CENTER_LABELS`,7),IQ=new Lg(`END_LABELS`,8),HQ=new Lg(`PARTITIONS`,9)}function Ret(e,t,n,r,i){return r<0?(r=yI(e,i,W(A(pY,1),OB,2,6,[aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV]),t),r<0&&(r=yI(e,i,W(A(pY,1),OB,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,lV,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function zet(e,t,n,r,i){return r<0?(r=yI(e,i,W(A(pY,1),OB,2,6,[aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV]),t),r<0&&(r=yI(e,i,W(A(pY,1),OB,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,lV,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function Bet(e,t,n,r,i,a){var o,s=32,c,l;if(r<0){if(t[0]>=e.length||(s=wC(e,t[0]),s!=43&&s!=45)||(++t[0],r=KI(e,t),r<0))return!1;s==45&&(r=-r)}return s==32&&t[0]-n==2&&i.b==2&&(c=new eg,l=c.q.getFullYear()-_V+_V-80,o=l%100,a.a=r==o,r+=(l/100|0)*100+(r=0?CN(e):HS(CN(RD(e)))),SY[t]=ev(pS(e,t),0)?CN(pS(e,t)):HS(CN(RD(pS(e,t)))),e=VM(e,5);for(;t=u&&(l=i);l&&(d=r.Math.max(d,l.a.o.a)),d>p&&(f=u,p=d)}return f}function qet(e){var t,n,r,i,a=new Xm(F(XS(new et),51)),o,s=RV;for(n=new D(e.d);n.angt?Yv(l,e.b):i<=ngt&&i>rgt?Yv(l,e.d):i<=rgt&&i>igt?Yv(l,e.c):i<=igt&&Yv(l,e.a),o=Xet(e,l,o);return a}function Zet(e,t,n,r){var i=(r.c+r.a)/2,a,o,s,c,l;for(rw(t.j),Sx(t.j,i),rw(n.e),Sx(n.e,i),l=new ile,s=new D(e.f);s.a1,s&&(r=new j(i,n.b),Sx(t.a,r)),fk(t.a,W(A(h6,1),OB,8,0,[f,d]))}function ntt(e,t,n){var r,i;for(t=48;n--)N9[n]=n-48<<24>>24;for(r=70;r>=65;r--)N9[r]=r-65+10<<24>>24;for(i=102;i>=97;i--)N9[i]=i-97+10<<24>>24;for(a=0;a<10;a++)P9[a]=48+a&iV;for(e=10;e<=15;e++)P9[e]=65+e-10&iV}function ott(e,t){t.Tg(`Process graph bounds`,1),G(e,(Iz(),p4),sg(tA(VC(new Hx(null,new hT(e.b,16)),new Jte)))),G(e,m4,sg(tA(VC(new Hx(null,new hT(e.b,16)),new Yte)))),G(e,UMt,sg(eA(VC(new Hx(null,new hT(e.b,16)),new Xte)))),G(e,WMt,sg(eA(VC(new Hx(null,new hT(e.b,16)),new Ji)))),t.Ug()}function stt(e){var t,n,i,a=F(q(e,(Yz(),l0)),22),o=F(q(e,f0),22);n=new j(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new Sv(n),a.Gc((AN(),I5))&&(i=F(q(e,d0),8),o.Gc((wR(),U5))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=r.Math.max(n.a,i.a),t.b=r.Math.max(n.b,i.b)),Xp(db(q(e,u0)))||Mat(e,n,t)}function ctt(e){for(var t=!1,n=0,r,i=new D(e.d.b),a,o,s;i.a>19)return`-`+utt(ij(e));for(n=e,r=``;n.l!=0||n.m!=0||n.h!=0;){if(i=PE(NV),n=ost(n,i,!0),t=``+Mle(tY),n.l!=0||n.m!=0||n.h!=0)for(a=9-t.length;a>0;a--)t=`0`+t;r=t+r}return r}function dtt(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e=`__proto__`,t=Object.create(null);return!(t[e]!==void 0||Object.getOwnPropertyNames(t).length!=0||(t[e]=42,t[e]!==42)||Object.getOwnPropertyNames(t).length==0)}function ftt(e,t,n){var r=n.c,i=n.d,a,o,s=vT(t.c),c=vT(t.d),l,u,d;for(r==t.c?(s=o7e(e,s,i),c=D0e(t.d)):(s=D0e(t.c),c=o7e(e,c,i)),l=new zm(t.a),bE(l,s,l.a,l.a.a),bE(l,c,l.c.b,l.c),o=t.c==r,d=new Fse,a=0;a=e.a||!P1e(t,n))return-1;if(JT(F(i.Kb(t),20)))return 1;for(a=0,s=F(i.Kb(t),20).Jc();s.Ob();)if(o=F(s.Pb(),17),l=o.c.i==t?o.d.i:o.c.i,c=mtt(e,l,n,i),c==-1||(a=r.Math.max(a,c),a>e.c-1))return-1;return a+1}function tR(){tR=C,x3=new Vv((Qz(),j6),1.3),fFt=new Vv(J6,(ky(),!1)),vFt=new Rv(15),E3=new Vv($6,vFt),D3=new Vv(d8,15),oFt=P6,dFt=q6,pFt=Y6,mFt=X6,uFt=K6,w3=Q6,yFt=i8,CFt=(ait(),tFt),SFt=eFt,O3=aFt,wFt=rFt,_Ft=YPt,T3=JPt,gFt=qPt,xFt=QPt,cFt=H6,lFt=U6,S3=WPt,sFt=UPt,C3=GPt,bFt=ZPt,hFt=KPt}function htt(e,t){var n,r,i,a,o,s;if(M(t)===M(e))return!0;if(!N(t,16)||(r=F(t,16),s=e.gc(),r.gc()!=s))return!1;if(o=r.Jc(),e.Wi()){for(n=0;n0){if(e.Zj(),t!=null){for(a=0;a>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw O(new vm(`Invalid hexadecimal`))}}function btt(e,t,n,r){var i,a,o,s,c=DF(e,n),l=DF(t,n);for(i=!1;c&&l&&(r||vZe(c,l,n));)o=DF(c,n),s=DF(l,n),ID(t),ID(e),a=c.c,Tz(c,!1),Tz(l,!1),n?(fF(t,l.p,a),t.p=l.p,fF(e,c.p+1,a),e.p=c.p):(fF(e,c.p,a),e.p=c.p,fF(t,l.p+1,a),t.p=l.p),Xw(c,null),Xw(l,null),c=o,l=s,i=!0;return i}function xtt(e){switch(e.g){case 0:return new Yre;case 1:return new Zre;case 3:return new Que;case 4:return new yte;case 5:return new Hve;case 6:return new Xre;case 2:return new Qre;case 7:return new Jre;case 8:return new hc;default:throw O(new qp(`No implementation is available for the layerer `+(e.f==null?``+e.g:e.f)))}}function Stt(e,t,n,r){for(var i=!1,a=!1,o,s=new D(r.j),c;s.a=t.length)throw O(new zp(`Greedy SwitchDecider: Free layer not in graph.`));this.c=t[e],this.e=new Bb(r),jk(this.e,this.c,(Lz(),N5)),this.i=new Bb(r),jk(this.i,this.c,p5),this.f=new KCe(this.c),this.a=!a&&i.i&&!i.s&&this.c[0].k==(_L(),GX),this.a&&r4e(this,e,t.length)}function Ett(e,t){var n,r,i,a=!e.B.Gc((wR(),V5)),o=e.B.Gc(mzt),s;e.a=new $qe(o,a,e.c),e.n&&nOe(e.a.n,e.n),Mp(e.g,(MO(),HY),e.a),t||(r=new YN(1,a,e.c),r.n.a=e.k,NS(e.p,(Lz(),m5),r),i=new YN(1,a,e.c),i.n.d=e.k,NS(e.p,j5,i),s=new YN(0,a,e.c),s.n.c=e.k,NS(e.p,N5,s),n=new YN(0,a,e.c),n.n.b=e.k,NS(e.p,p5,n))}function Dtt(e){var t=F(q(e.d,(Yz(),L1)),222),n,r;switch(t.g){case 2:n=kut(e);break;case 3:n=(r=new kd,Eh(zC(BC(cO(cO(new Hx(null,new hT(e.d.b,16)),new Xee),new Zee),new Qee),new Sr),new Hu(r)),r);break;default:throw O(new Jp(`Compaction not supported for `+t+` edges.`))}qot(e,n),wE(new Fl(e.g),new Lae(e))}function Ott(e,t){var n,r,i,a,o,s,c;if(t.Tg(`Process directions`,1),n=F(q(e,(zR(),k4)),86),n!=(yM(),v8))for(i=oP(e.b,0);i.b!=i.d.c;){switch(r=F(YT(i),40),s=F(q(r,(Iz(),D4)),15).a,c=F(q(r,O4),15).a,n.g){case 4:c*=-1;break;case 1:a=s,s=c,c=a;break;case 2:o=s,s=-c,c=o}G(r,D4,K(s)),G(r,O4,K(c))}t.Ug()}function ktt(e){var t,n,r,i,a,o,s,c=new UPe;for(s=new D(e.a);s.a0&&t=0)return!1;if(t.p=n.b,fy(n.e,t),i==(_L(),qX)||i==XX){for(o=new D(t.j);o.ae.d[s.p]&&(n+=LPe(e.b,a),XT(e.a,K(a)))):++o;for(n+=e.b.d*o;!Qp(e.a);)vRe(e.b,F(VS(e.a),15).a)}return n}function $tt(e){var t,n,r,i,a=0,o;return t=vF(e),t.ik()&&(a|=4),(e.Bb&jq)!=0&&(a|=2),N(e,103)?(n=F(e,19),i=NP(n),(n.Bb&FK)!=0&&(a|=32),i&&(JS(Jw(i)),a|=8,o=i.t,(o>1||o==-1)&&(a|=16),(i.Bb&FK)!=0&&(a|=64)),(n.Bb&VV)!=0&&(a|=LK),a|=Oq):N(t,459)?a|=512:(r=t.ik(),r&&r.i&1&&(a|=256)),e.Bb&512&&(a|=128),a}function ent(e,t){var n;return e.f==hVt?(n=xC(GD((TI(),p9),t)),e.e?n==4&&t!=($I(),_9)&&t!=($I(),g9)&&t!=($I(),gVt)&&t!=($I(),_Vt):n==2):e.d&&(e.d.Gc(t)||e.d.Gc(bT(GD((TI(),p9),t)))||e.d.Gc(Cz((TI(),p9),e.b,t)))?!0:e.f&&q7e((TI(),e.f),IC(GD(p9,t)))?(n=xC(GD(p9,t)),e.e?n==4:n==2):!1}function tnt(e,t){var n,r,i,a=new kd,o,s,c,l;for(t.b.c.length=0,n=F(vE(IAe(new Hx(null,new hT(new Fl(e.a.b),1))),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),16),i=n.Jc();i.Ob();)if(r=F(i.Pb(),15),o=lNe(e.a,r),o.b!=0)for(s=new nC(t),Vd(a.c,s),s.p=r.a,l=oP(o,0);l.b!=l.d.c;)c=F(YT(l),9),Xw(c,s);HA(t.b,a)}function cR(e){var t,n,r,i,a,o,s=new Ad;for(r=new D(e.a.b);r.aFG&&(a-=FG),c=F(Y(i,o8),8),u=c.a,f=c.b+e,o=r.Math.atan2(f,u),o<0&&(o+=FG),o+=t,o>FG&&(o-=FG),Uv(),ok(1e-10),r.Math.abs(a-o)<=1e-10||a==o||isNaN(a)&&isNaN(o)?0:ao?1:Db(isNaN(a),isNaN(o))}function ant(e,t,n,i){var a,o,s;t&&(o=k(P(q(t,(Iz(),w4))))+i,s=n+k(P(q(t,v4)))/2,G(t,D4,K($x(_A(r.Math.round(o))))),G(t,O4,K($x(_A(r.Math.round(s))))),t.d.b==0||ant(e,F(ay((a=oP(new Zu(t).a.d,0),new Qu(a))),40),n+k(P(q(t,v4)))+e.b,i+k(P(q(t,x4)))),q(t,T4)!=null&&ant(e,F(q(t,T4),40),n,i))}function ont(e,t){var n,r,i,a=F(Y(e,(Qz(),a8)),64).g-F(Y(t,a8),64).g;if(a!=0)return a;if(n=F(Y(e,qLt),15),r=F(Y(t,qLt),15),n&&r&&(i=n.a-r.a,i!=0))return i;switch(F(Y(e,a8),64).g){case 1:return vM(e.i,t.i);case 2:return vM(e.j,t.j);case 3:return vM(t.i,e.i);case 4:return vM(t.j,e.j);default:throw O(new Jp(fpt))}}function snt(e){var t,n,r;return e.Db&64?pI(e):(t=new Ey(T_t),n=e.k,n?ov(ov((t.a+=` "`,t),n),`"`):(!e.n&&(e.n=new I(f7,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new I(f7,e,1,7)),F(U(e.n,0),157)).a,!r||ov(ov((t.a+=` "`,t),r),`"`))),ov(qm(ov(qm(ov(qm(ov(qm((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function cnt(e){var t,n,r;return e.Db&64?pI(e):(t=new Ey(E_t),n=e.k,n?ov(ov((t.a+=` "`,t),n),`"`):(!e.n&&(e.n=new I(f7,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new I(f7,e,1,7)),F(U(e.n,0),157)).a,!r||ov(ov((t.a+=` "`,t),r),`"`))),ov(qm(ov(qm(ov(qm(ov(qm((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function lnt(e,t){var n,r,i,a,o,s,c,l,u,d,f,p=-1,m=0;for(u=t,d=0,f=u.length;d0&&++m;++p}return m}function unt(e,t){var n,r,i,a,o;for(t==(Aj(),E2)&&jI(F(zE(e.a,(zF(),LZ)),16)),i=F(zE(e.a,(zF(),LZ)),16).Jc();i.Ob();)switch(r=F(i.Pb(),107),n=F(zx(r.j,0),113).d.j,a=new qb(r.j),Yv(a,new ite),t.g){case 2:KF(e,a,n,(Ik(),HZ),1);break;case 1:case 0:o=A7e(a),KF(e,new mT(a,0,o),n,(Ik(),HZ),0),KF(e,new mT(a,o,a.c.length),n,HZ,1)}}function dnt(e){var t,n,r,i=F(q(e,(X(),x$)),9),a,o,s;for(r=e.j,n=(gT(0,r.c.length),F(r.c[0],12)),o=new D(i.j);o.ai.p?(RI(a,j5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=s-t)):a.j==j5&&i.p>e.p&&(RI(a,m5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=-(s-t)));break}return i}function fnt(e,t){var n,r,i,a,o,s,c;if(t==null||t.length==0)return null;if(i=F(Mw(e.a,t),144),!i){for(r=(s=new zl(e.b).a.vc().Jc(),new Bl(s));r.a.Ob();)if(n=(a=F(r.a.Pb(),45),F(a.kd(),144)),o=n.c,c=t.length,zb(o.substr(o.length-c,c),t)&&(t.length==o.length||wC(o,o.length-t.length-1)==46)){if(i)return null;i=n}i&&$w(e.a,t,i)}return i}function uR(e,t,n){for(var r,i,a=new j(t,n),o,s,c,l,u=new D(e.a),d,f;u.a1,s&&(r=new j(i,n.b),Sx(t.a,r)),fk(t.a,W(A(h6,1),OB,8,0,[f,d]))}function hR(){hR=C,h2=new Ug(bU,0),p2=new Ug(`NIKOLOV`,1),m2=new Ug(`NIKOLOV_PIXEL`,2),HAt=new Ug(`NIKOLOV_IMPROVED`,3),UAt=new Ug(`NIKOLOV_IMPROVED_PIXEL`,4),VAt=new Ug(`DUMMYNODE_PERCENTAGE`,5),WAt=new Ug(`NODECOUNT_PERCENTAGE`,6),g2=new Ug(`NO_BOUNDARY`,7),d2=new Ug(`MODEL_ORDER_LEFT_TO_RIGHT`,8),f2=new Ug(`MODEL_ORDER_RIGHT_TO_LEFT`,9)}function gR(e,t){var n,r,i,a,o,s,c,l,u=null,d,f=q8e(e,t),p;return r=null,s=F(Y(t,(Qz(),ELt)),300),r=s||(BO(),F5),p=r,p==(BO(),F5)&&(i=null,l=F(tC(e.r,f),300),i=l||lzt,p=i),TC(e.r,t,p),a=null,c=F(Y(t,wLt),278),a=c||(Zj(),T8),d=a,d==(Zj(),T8)&&(o=null,n=F(tC(e.b,f),278),o=n||w8,d=o),u=F(TC(e.b,t,d),278),u}function jnt(e){var t,n,r=e.length,i,a;for(t=new hm,a=0;a=40,o&&xit(e),_ot(e),eet(e),n=uKe(e),r=0;n&&r0&&Sx(e.g,a)):(e.d[o]-=l+1,e.d[o]<=0&&e.a[o]>0&&Sx(e.f,a))))}function irt(e,t,n,r){var i,a,o,s,c=new j(n,r),l,u;for(Pb(c,F(q(t,(Iz(),l4)),8)),u=oP(t.b,0);u.b!=u.d.c;)l=F(YT(u),40),Nb(l.e,c),Sx(e.b,l);for(s=F(vE(oAe(new Hx(null,new hT(t.a,16))),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),16).Jc();s.Ob();){for(o=F(s.Pb(),65),a=oP(o.a,0);a.b!=a.d.c;)i=F(YT(a),8),i.a+=c.a,i.b+=c.b;Sx(e.a,o)}}function art(e,t){var n,r,i,a;if(0<(N(e,18)?F(e,18).gc():$T(e.Jc()))){if(i=t,1=0&&c1)&&t==1&&F(e.a[e.b],9).k==(_L(),KX)?XR(F(e.a[e.b],9),(dF(),I8)):r&&(!n||(e.c-e.b&e.a.length-1)>1)&&t==1&&F(e.a[e.c-1&e.a.length-1],9).k==(_L(),KX)?XR(F(e.a[e.c-1&e.a.length-1],9),(dF(),L8)):(e.c-e.b&e.a.length-1)==2?(XR(F(aj(e),9),(dF(),I8)),XR(F(aj(e),9),L8)):A5e(e,i),PPe(e)}function urt(e){var t,n,i,a,o,s,c,l=new Ad;for(t=new gf,s=e.Jc();s.Ob();)a=F(s.Pb(),9),c=jy(Nh(new yf,a),t),NI(l.f,a,c);for(o=e.Jc();o.Ob();)for(a=F(o.Pb(),9),i=new fS(Sy(GM(a).a.Jc(),new f));sL(i);)n=F(FE(i),17),!AE(n)&&zL(jh(Ah(kh(Mh(new vf,r.Math.max(1,F(q(n,(Yz(),uAt)),15).a)),1),F(tC(l,n.c.i),124)),F(tC(l,n.d.i),124)));return t}function drt(e,t,n,r){var i,a,o,s,c,l,u,d,f,p;if(gze(e,t,n),a=t[n],p=r?(Lz(),N5):(Lz(),p5),Vhe(t.length,n,r)){for(i=t[r?n-1:n+1],GFe(e,i,r?(uk(),C2):(uk(),S2)),c=a,u=0,f=c.length;ua*2?(u=new jO(d),l=Qx(o)/Zx(o),c=Hz(u,t,new Vf,n,r,i,l),Nb(gv(u.e),c),d.c.length=0,a=0,Vd(d.c,u),Vd(d.c,o),a=Qx(u)*Zx(u)+Qx(o)*Zx(o)):(Vd(d.c,o),a+=Qx(o)*Zx(o));return d}function prt(e,t){var n,r,i,a,o,s,c;for(t.Tg(`Port order processing`,1),c=F(q(e,(Yz(),cAt)),421),r=new D(e.b);r.an?t:n;l<=d;++l)l==n?s=r++:(a=i[l],u=m.$l(a.Jk()),l==t&&(c=l==d&&!u?r-1:r),u&&++r);return f=F(EM(e,t,n),75),s!=c&&lf(e,new xD(e.e,7,o,K(s),p.kd(),c)),f}}else return F(JI(e,t,n),75);return F(EM(e,t,n),75)}function hrt(e,t){var n,r,i,a,o,s,c,l,u,d=0;for(a=new oy,XT(a,t);a.b!=a.c;)for(c=F(VS(a),218),l=0,u=F(q(t.j,(Yz(),C1)),269),F(q(t.j,_1),329),o=k(P(q(t.j,m1))),s=k(P(q(t.j,h1))),u!=(LN(),_2)&&(l+=o*U5e(t.j,c.e,u),l+=s*lnt(t.j,c.e)),d+=wZe(c.d,c.e)+l,i=new D(c.b);i.a=0&&(s=LZe(e,o),!(s&&(l<22?c.l|=1<>>1,o.m=u>>>1|(d&1)<<21,o.l=f>>>1|(u&1)<<21,--l;return n&&cj(c),a&&(r?(tY=ij(e),i&&(tY=ZHe(tY,(fO(),xbt)))):tY=Qv(e.l,e.m,e.h)),c}function vrt(e,t){var n,r,i,a,o,s,c,l=e.e[t.c.p][t.p]+1,u,d;for(c=t.c.a.c.length+1,s=new D(e.a);s.a0&&(_T(0,e.length),e.charCodeAt(0)==45||(_T(0,e.length),e.charCodeAt(0)==43))),r=o;rn)throw O(new vm(IV+e+`"`));return s}function yrt(e){var t,n,i,a,o,s=new vh,c;for(o=new D(e.a);o.a=e.length)return n.o=0,!0;switch(wC(e,t[0])){case 43:i=1;break;case 45:i=-1;break;default:return n.o=0,!0}if(++t[0],a=t[0],o=KI(e,t),o==0&&t[0]==a)return!1;if(t[0]s&&(s=i,u.c.length=0),i==s&&fy(u,new B_(n.c.i,n)));ew(),Yv(u,e.c),tS(e.b,c.p,u)}}function Ert(e,t){for(var n,r,i,a,o=new D(t.b),s,c,l,u;o.as&&(s=i,u.c.length=0),i==s&&fy(u,new B_(n.d.i,n)));ew(),Yv(u,e.c),tS(e.f,c.p,u)}}function Drt(e){var t,n,r,i,a=Hw(e),o,s;for(i=new yy((!e.e&&(e.e=new Lb(i7,e,7,4)),e.e));i.e!=i.i.gc();)if(r=F(lP(i),85),s=GF(F(U((!r.c&&(r.c=new Lb(r7,r,5,8)),r.c),0),84)),!EO(s,a))return!0;for(n=new yy((!e.d&&(e.d=new Lb(i7,e,8,5)),e.d));n.e!=n.i.gc();)if(t=F(lP(n),85),o=GF(F(U((!t.b&&(t.b=new Lb(r7,t,4,7)),t.b),0),84)),!EO(o,a))return!0;return!1}function Ort(e){var t,n,r=F(q(e,(X(),M$)),26),i,a=F(Y(r,(Yz(),l0)),182).Gc((AN(),z5));e.e||(i=F(q(e,g$),22),t=new j(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),i.Gc((YL(),LQ))?(_P(r,_0,(VF(),t5)),Rz(r,t.a,t.b,!1,!0)):Xp(db(Y(r,u0)))||Rz(r,t.a,t.b,!0,!0)),a?_P(r,l0,JM(z5)):_P(r,l0,(n=F(Um(B5),10),new Jb(n,F(Ob(n,n.length),10),0)))}function krt(e,t){var n,r,i,a,o,s,c,l=db(q(t,(zR(),bNt)));if(l==null||(bC(l),l)){for(Y6e(e,t),i=new kd,c=oP(t.b,0);c.b!=c.d.c;)o=F(YT(c),40),n=T4e(e,o,null),n&&(TA(n,t),Vd(i.c,n));if(e.a=null,e.b=null,i.c.length>1)for(r=new D(i);r.a=0&&s!=n&&(a=new CS(e,1,s,o,null),r?r.lj(a):r=a),n>=0&&(a=new CS(e,1,n,s==n?o:null,t),r?r.lj(a):r=a)),r}function Nrt(e){var t,n,r;if(e.b==null){if(r=new mm,e.i!=null&&(rv(r,e.i),r.a+=`:`),e.f&256){for(e.f&256&&e.a!=null&&(kDe(e.i)||(r.a+=`//`),rv(r,e.a)),e.d!=null&&(r.a+=`/`,rv(r,e.d)),e.f&16&&(r.a+=`/`),t=0,n=e.j.length;tf?!1:(d=(c=$R(r,f,!1),c.a),u+s+d<=t.b&&(SD(n,a-n.s),n.c=!0,SD(r,a-n.s),OP(r,n.s,n.t+n.d+s),r.k=!0,UVe(n.q,r),p=!0,i&&(hk(t,r),r.j=t,e.c.length>o&&(_F((gT(o,e.c.length),F(e.c[o],186)),r),(gT(o,e.c.length),F(e.c[o],186)).a.c.length==0&&WE(e,o)))),p)}function zrt(e,t){var n,r,i,a,o,s;if(t.Tg(`Partition midprocessing`,1),i=new Ow,Eh(zC(new Hx(null,new hT(e.a,16)),new Un),new Eae(i)),i.d!=0){for(s=F(vE(IAe((a=i.i,new Hx(null,(a||(i.i=new by(i,i.c))).Lc()))),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),16),r=s.Jc(),n=F(r.Pb(),15);r.Ob();)o=F(r.Pb(),15),k7e(F(zE(i,n),22),F(zE(i,o),22)),n=o;t.Ug()}}function AR(e,t){var n,r,i,a,o;if(e.Ab){if(e.Ab){if(o=e.Ab.i,o>0){if(i=F(e.Ab.g,1998),t==null){for(a=0;an.s&&cc+m&&(h=d.g+f.g,f.a=(f.g*f.a+d.g*d.a)/h,f.g=h,d.f=f,n=!0)),a=s,d=f;return n}function Krt(e,t,n){var r,i,a,o,s,c,l,u;for(n.Tg(Tht,1),IS(e.b),IS(e.a),s=null,a=oP(t.b,0);!s&&a.b!=a.d.c;)l=F(YT(a),40),Xp(db(q(l,(Iz(),E4))))&&(s=l);for(c=new vh,bE(c,s,c.c.b,c.c),Mlt(e,c),u=oP(t.b,0);u.b!=u.d.c;)l=F(YT(u),40),o=fb(q(l,(Iz(),h4))),i=Mw(e.b,o)==null?0:F(Mw(e.b,o),15).a,G(l,f4,K(i)),r=1+(Mw(e.a,o)==null?0:F(Mw(e.a,o),15).a),G(l,HMt,K(r));n.Ug()}function qrt(e){Uh(e,new qF(Em(Sm(Tm(wm(new Ba,vK),`ELK Box`),`Algorithm for packing of unconnected boxes, i.e. graphs without edges.`),new no))),V(e,vK,XH,iLt),V(e,vK,GH,15),V(e,vK,WH,K(0)),V(e,vK,Lgt,cP(QIt)),V(e,vK,rU,cP(eLt)),V(e,vK,nU,cP(nLt)),V(e,vK,qH,Igt),V(e,vK,ZH,cP($It)),V(e,vK,fU,cP(tLt)),V(e,vK,Rgt,cP(S6)),V(e,vK,rG,cP(ZIt))}function Jrt(e,t){var n,r,i=e.i,a,o=i.o.a,s,c,l,u;if(a=i.o.b,o<=0&&a<=0)return Lz(),M5;switch(l=e.n.a,u=e.n.b,s=e.o.a,n=e.o.b,t.g){case 2:case 1:if(l<0)return Lz(),N5;if(l+s>o)return Lz(),p5;break;case 4:case 3:if(u<0)return Lz(),m5;if(u+n>a)return Lz(),j5}return c=(l+s/2)/o,r=(u+n/2)/a,c+r<=1&&c-r<=0?(Lz(),N5):c+r>=1&&c-r>=0?(Lz(),p5):r<.5?(Lz(),m5):(Lz(),j5)}function Yrt(e,t,n,r,i,a,o){var s,c,l,u,d,f=new wv;for(l=t.Jc();l.Ob();)for(s=F(l.Pb(),838),d=new D(s.Pf());d.a0?c.a?(u=c.b.Kf().b,a>u&&(e.v||c.c.d.c.length==1?(s=(a-u)/2,c.d.d=s,c.d.a=s):(n=F(zx(c.c.d,0),187).Kf().b,i=(n-u)/2,c.d.d=r.Math.max(0,i),c.d.a=a-i-u))):c.d.a=e.t+a:LS(e.u)&&(o=d0e(c.b),o.d<0&&(c.d.d=-o.d),o.d+o.a>c.b.Kf().b&&(c.d.a=o.d+o.a-c.b.Kf().b))}function MR(){MR=C,dX=new Vv((Qz(),s8),K(1)),pX=new Vv(d8,80),USt=new Vv(aRt,5),DSt=new Vv(j6,HH),BSt=new Vv(QLt,K(1)),HSt=new Vv(eRt,(ky(),!0)),LSt=new Rv(50),ISt=new Vv($6,LSt),kSt=H6,RSt=r8,OSt=new Vv(L6,!1),FSt=Q6,NSt=J6,PSt=X6,MSt=q6,jSt=K6,zSt=i8,ASt=(T2e(),vSt),mX=CSt,uX=_St,fX=bSt,VSt=SSt,KSt=m8,JSt=g8,GSt=p8,WSt=f8,qSt=(bM(),Y5),new Vv(h8,qSt)}function Qrt(e,t){var n;switch(mO(e)){case 6:return q_(t);case 7:return K_(t);case 8:return G_(t);case 3:return Array.isArray(t)&&(n=mO(t),!(n>=14&&n<=16));case 11:return t!=null&&typeof t===cB;case 12:return t!=null&&(typeof t===aB||typeof t==cB);case 0:return xP(t,e.__elementTypeId$);case 2:return xTe(t)&&t.Rm!==ne;case 1:return xTe(t)&&t.Rm!==ne||xP(t,e.__elementTypeId$);default:return!0}}function $rt(e){var t,n,i=e.o,a;Sb(),e.A.dc()||lM(e.A,lSt)?a=i.a:(a=e.D?r.Math.max(i.a,UI(e.f)):UI(e.f),e.A.Gc((AN(),L5))&&!e.B.Gc((wR(),G5))&&(a=r.Math.max(a,UI(F(DC(e.p,(Lz(),m5)),253))),a=r.Math.max(a,UI(F(DC(e.p,j5),253)))),t=nHe(e),t&&(a=r.Math.max(a,t.a))),i.a=Xp(db(e.e.Rf().mf((Qz(),J6))))?r.Math.max(i.a,a):a,n=e.f.i,n.c=0,n.b=a,BR(e.f)}function eit(e,t){var n,i=r.Math.min(r.Math.abs(e.c-(t.c+t.b)),r.Math.abs(e.c+e.b-t.c)),a,o=r.Math.min(r.Math.abs(e.d-(t.d+t.a)),r.Math.abs(e.d+e.a-t.d));return n=r.Math.abs(e.c+e.b/2-(t.c+t.b/2)),n>e.b/2+t.b/2||(a=r.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:n==0&&a==0?0:n==0?o/a+1:a==0?i/n+1:r.Math.min(i/n,o/a)+1}function tit(e,t){var n,r,i,a=0,o,s=0,c=0;for(i=new D(e.f.e);i.a0&&e.d!=(JD(),SX)&&(s+=o*(r.d.a+e.a[t.a][r.a]*(t.d.a-r.d.a)/n)),n>0&&e.d!=(JD(),bX)&&(c+=o*(r.d.b+e.a[t.a][r.a]*(t.d.b-r.d.b)/n)));switch(e.d.g){case 1:return new j(s/a,t.d.b);case 2:return new j(t.d.a,c/a);default:return new j(s/a,c/a)}}function nit(e){var t,n=(!e.a&&(e.a=new hy(e7,e,5)),e.a).i+2,r,i,a,o=new pD(n);for(fy(o,new j(e.j,e.k)),Eh(new Hx(null,(!e.a&&(e.a=new hy(e7,e,5)),new hT(e.a,16))),new Roe(o)),fy(o,new j(e.b,e.c)),t=1;t0&&(nj(c,!1,(yM(),y8)),nj(c,!0,b8)),kO(t.g,new $de(e,n)),TC(e.g,t,n)}function ait(){ait=C,ZPt=new dv(ogt,(ky(),!1)),K(-1),UPt=new dv(sgt,K(-1)),K(-1),WPt=new dv(cgt,K(-1)),GPt=new dv(lgt,!1),KPt=new dv(ugt,!1),iFt=(OE(),k3),rFt=new dv(dgt,iFt),aFt=new dv(fgt,-1),nFt=(YM(),b3),tFt=new dv(pgt,nFt),eFt=new dv(mgt,!0),XPt=(PD(),A3),YPt=new dv(hgt,XPt),JPt=new dv(ggt,!1),K(1),qPt=new dv(_gt,K(1)),$Pt=(SM(),j3),QPt=new dv(vgt,$Pt)}function oit(){oit=C;var e;for(Abt=W(A(q9,1),vV,30,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),dY=H(q9,vV,30,37,15,1),jbt=W(A(q9,1),vV,30,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),Mbt=H(Y9,aft,30,37,14,1),e=2;e<=36;e++)dY[e]=Nw(r.Math.pow(e,Abt[e])),Mbt[e]=EF(NB,dY[e])}function sit(e){var t;if((!e.a&&(e.a=new I(a7,e,6,6)),e.a).i!=1)throw O(new qp(h_t+(!e.a&&(e.a=new I(a7,e,6,6)),e.a).i));return t=new qf,GA(F(U((!e.b&&(e.b=new Lb(r7,e,4,7)),e.b),0),84))&&Kk(t,Xut(e,GA(F(U((!e.b&&(e.b=new Lb(r7,e,4,7)),e.b),0),84)),!1)),GA(F(U((!e.c&&(e.c=new Lb(r7,e,5,8)),e.c),0),84))&&Kk(t,Xut(e,GA(F(U((!e.c&&(e.c=new Lb(r7,e,5,8)),e.c),0),84)),!0)),t}function cit(e,t){var n,r,i=t.d?e.a.c==(Aw(),G2)?UM(t.b):GM(t.b):e.a.c==(Aw(),W2)?UM(t.b):GM(t.b),a=!1,o;for(r=new fS(Sy(i.a.Jc(),new f));sL(r);)if(n=F(FE(r),17),o=Xp(e.a.f[e.a.g[t.b.p].p]),(o||AE(n)||n.c.i.c!=n.d.i.c)&&!(Xp(e.a.n[e.a.g[t.b.p].p])||Xp(e.a.n[e.a.g[t.b.p].p]))&&(a=!0,hh(e.b,e.a.g[iZe(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=a,t.a=null,t}function lit(e,t,n){var r=n.gc(),i,a,o,s,c,l;if(r==0)return!1;if(e.Nj()){if(c=e.Oj(),jqe(e,t,n),o=r==1?e.Gj(3,null,n.Jc().Pb(),t,c):e.Gj(5,null,n,t,c),e.Kj()){for(s=r<100?null:new Bm(r),a=t+r,i=t;i0){for(s=0;s>16==-15&&e.Cb.Vh()&&LD(new bD(e.Cb,9,13,n,e.c,EP(qD(F(e.Cb,62)),e))):N(e.Cb,88)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,N(t,88)||(t=(nB(),t9)),N(n,88)||(n=(nB(),t9)),LD(new bD(e.Cb,9,10,n,t,EP(cE(F(e.Cb,29)),e)))))),e.c}function _it(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m;if(t==n)return!0;if(t=E8e(e,t),n=E8e(e,n),r=BP(t),r){if(u=BP(n),u!=r)return u?(c=r.kk(),m=u.kk(),c==m&&c!=null):!1;if(o=(!t.d&&(t.d=new hy(z7,t,1)),t.d),a=o.i,f=(!n.d&&(n.d=new hy(z7,n,1)),n.d),a==f.i){for(l=0;l0,s=nN(t,a),Bge(n?s.b:s.g,t),Rj(s).c.length==1&&bE(r,s,r.c.b,r.c),i=new B_(a,t),XT(e.o,i),BD(e.e.a,a))}function Sit(e,t){var n,i=r.Math.abs(OS(e.b).a-OS(t.b).a),a,o,s,c=r.Math.abs(OS(e.b).b-OS(t.b).b),l;return a=0,l=0,n=1,s=1,i>e.b.b/2+t.b.b/2&&(a=r.Math.min(r.Math.abs(e.b.c-(t.b.c+t.b.b)),r.Math.abs(e.b.c+e.b.b-t.b.c)),n=1-a/i),c>e.b.a/2+t.b.a/2&&(l=r.Math.min(r.Math.abs(e.b.d-(t.b.d+t.b.a)),r.Math.abs(e.b.d+e.b.a-t.b.d)),s=1-l/c),o=r.Math.min(n,s),(1-o)*r.Math.sqrt(i*i+c*c)}function Cit(e){var t,n,r,i;for(Fz(e,e.e,e.f,(kw(),Q2),!0,e.c,e.i),Fz(e,e.e,e.f,Q2,!1,e.c,e.i),Fz(e,e.e,e.f,$2,!0,e.c,e.i),Fz(e,e.e,e.f,$2,!1,e.c,e.i),git(e,e.c,e.e,e.f,e.i),r=new FT(e.i,0);r.b=65;n--)j9[n]=n-65<<24>>24;for(r=122;r>=97;r--)j9[r]=r-97+26<<24>>24;for(i=57;i>=48;i--)j9[i]=i-48+52<<24>>24;for(j9[43]=62,j9[47]=63,a=0;a<=25;a++)M9[a]=65+a&iV;for(o=26,c=0;o<=51;++o,c++)M9[o]=97+c&iV;for(e=52,s=0;e<=61;++e,s++)M9[e]=48+s&iV;M9[62]=43,M9[63]=47}function Tit(e,t){var n,i,a=uVe(e),o,s,c=uVe(t);return a==c?e.e==t.e&&e.a<54&&t.a<54?e.ft.f):(i=e.e-t.e,n=(e.d>0?e.d:r.Math.floor((e.a-1)*oft)+1)-(t.d>0?t.d:r.Math.floor((t.a-1)*oft)+1),n>i+1?a:n0&&(s=eE(s,bat(i))),DJe(o,s))):au&&(p=0,m+=l+t,l=0),uR(s,p,m),n=r.Math.max(n,p+d.a),l=r.Math.max(l,d.b),p+=d.a+t;return new j(n+t,m+l+t)}function kit(e,t){var n,r,i,a,o,s,c;if(!Hw(e))throw O(new Jp(m_t));if(r=Hw(e),a=r.g,i=r.f,a<=0&&i<=0)return Lz(),M5;switch(s=e.i,c=e.j,t.g){case 2:case 1:if(s<0)return Lz(),N5;if(s+e.g>a)return Lz(),p5;break;case 4:case 3:if(c<0)return Lz(),m5;if(c+e.f>i)return Lz(),j5}return o=(s+e.g/2)/a,n=(c+e.f/2)/i,o+n<=1&&o-n<=0?(Lz(),N5):o+n>=1&&o-n>=0?(Lz(),p5):n<.5?(Lz(),m5):(Lz(),j5)}function Ait(e,t,n,r,i){var a=BM(CT(t[0],GV),CT(r[0],GV)),o;if(e[0]=$x(a),a=mS(a,32),n>=i){for(o=1;o0&&(i.b[o++]=0,i.b[o++]=a.b[0]-1),t=1;t0&&(hl(c,c.d-i.d),i.c==(QE(),X2)&&Pie(c,c.a-i.d),c.d<=0&&c.i>0&&bE(t,c,t.c.b,t.c)));for(a=new D(e.f);a.a0&&(gl(s,s.i-i.d),i.c==(QE(),X2)&&Fie(s,s.b-i.d),s.i<=0&&s.d>0&&bE(n,s,n.c.b,n.c)))}function Pit(e,t,n,r,i){var a,o,s,c,l,u,d,f,p;for(ew(),Yv(e,new co),o=fx(e),p=new kd,f=new kd,s=null,c=0;o.b!=0;)a=F(o.b==0?null:(tb(o.b!=0),DO(o,o.a.a)),167),!s||Qx(s)*Zx(s)/21&&(c>Qx(s)*Zx(s)/2||o.b==0)&&(d=new jO(f),u=Qx(s)/Zx(s),l=Hz(d,t,new Vf,n,r,i,u),Nb(gv(d.e),l),s=d,Vd(p.c,d),c=0,f.c.length=0));return HA(p,f),p}function LR(e,t,n,r,i){xh();var a,o,s,c,l,u,d;if(ATe(e,`src`),ATe(n,`dest`),d=Tj(e),c=Tj(n),jSe(!!(d.i&4),`srcType is not an array`),jSe(!!(c.i&4),`destType is not an array`),u=d.c,o=c.c,jSe(u.i&1?u==o:!(o.i&1),`Array types don't match`),MUe(e,t,n,r,i),!(u.i&1)&&d!=c){if(l=zO(e),a=zO(n),M(e)===M(n)&&tr;)eC(a,s,l[--t]);else for(s=r+i;r0),r.a.Xb(r.c=--r.b),d>f+c&&_C(r);for(o=new D(p);o.a0),r.a.Xb(r.c=--r.b)}}function Lit(){eB();var e,t,n,r,i,a;if(KVt)return KVt;for(e=(++W9,new ET(4)),cz(e,Bz(jJ,!0)),Dz(e,Bz(`M`,!0)),Dz(e,Bz(`C`,!0)),a=(++W9,new ET(4)),r=0;r<11;r++)KL(a,r,r);return t=(++W9,new ET(4)),cz(t,Bz(`M`,!0)),KL(t,4448,4607),KL(t,65438,65439),i=(++W9,new Kv(2)),vz(i,e),vz(i,V9),n=(++W9,new Kv(2)),n.Hm(Kx(a,Bz(`L`,!0))),n.Hm(t),n=(++W9,new oE(3,n)),n=(++W9,new RTe(i,n)),KVt=n,KVt}function RR(e,t){var n=new RegExp(t,`g`),r,i,a,o,s,c=H(pY,OB,2,0,6,1),l;for(r=0,l=e,a=null;;){if(s=n.exec(l),s==null||l==``){c[r]=l;break}o=s.index,c[r]=(uD(0,o,l.length),l.substr(0,o)),l=yw(l,o+s[0].length,l.length),n.lastIndex=0,a==l&&(c[r]=(uD(0,1,l.length),l.substr(0,1)),l=(_T(1,l.length+1),l.substr(1))),a=l,++r}if(e.length>0){for(i=c.length;i>0&&c[i-1]==``;)--i;id&&(d=l),lu&&(u=d),m=(r.Math.log(u)-r.Math.log(1))/t,o=r.Math.exp(m),a=o,s=0;s0&&(f-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(f-=i[2]+e.c),i[1]=r.Math.max(i[1],f),iS(e.a[1],n.c+t.b+i[0]-(i[1]-f)/2,i[1]);for(o=e.a,c=0,u=o.length;c0?(e.n.c.length-1)*e.i:0,i=new D(e.n);i.a1)for(r=oP(i,0);r.b!=r.d.c;)for(n=F(YT(r),235),a=0,c=new D(n.e);c.a0&&(t[0]+=e.c,f-=t[0]),t[2]>0&&(f-=t[2]+e.c),t[1]=r.Math.max(t[1],f),aS(e.a[1],i.d+n.d+t[0]-(t[1]-f)/2,t[1]);else for(h=i.d+n.d,m=i.a-n.d-n.a,s=e.a,l=0,d=s.length;l=t.o&&n.f<=t.f||t.a*.5<=n.f&&t.a*1.5>=n.f){if(o=F(zx(t.n,t.n.c.length-1),208),o.e+o.d+n.g+i<=r&&(a=F(zx(t.n,t.n.c.length-1),208),a.f-e.f+n.f<=e.b||e.a.c.length==1))return BKe(t,n),!0;if(t.s+n.g<=r&&t.t+t.d+n.f+i<=e.f+e.b)return fy(t.b,n),s=F(zx(t.n,t.n.c.length-1),208),fy(t.n,new Rw(t.s,s.f+s.a+t.i,t.i)),UXe(F(zx(t.n,t.n.c.length-1),208),n),Uit(t,n),!0}return!1}function UR(e,t,n,r){var i,a,o,s,c=VL(e.e.Ah(),t);if(i=F(e.g,122),Qh(),F(t,69).vk()){for(o=0;o0||tN(a.b.d,e.b.d+e.b.a)==0&&i.b<0||tN(a.b.d+a.b.a,e.b.d)==0&&i.b>0){c=0;break}}else c=r.Math.min(c,E3e(e,a,i));c=r.Math.min(c,Jit(e,o,c,i))}return c}function Yit(e,t){var n,r,i,a,o,s,c;if(e.b<2)throw O(new qp(`The vector chain must contain at least a source and a target point.`));for(i=(tb(e.b!=0),F(e.a.a.c,8)),Pv(t,i.a,i.b),c=new Hy((!t.a&&(t.a=new hy(e7,t,5)),t.a)),o=oP(e,1);o.a=0&&a!=n))throw O(new qp(uq));for(i=0,c=0;ck(cy(o.g,o.d[0]).a)?(tb(c.b>0),c.a.Xb(c.c=--c.b),Eb(c,o),i=!0):s.e&&s.e.gc()>0&&(a=(!s.e&&(s.e=new kd),s.e).Kc(t),l=(!s.e&&(s.e=new kd),s.e).Kc(n),(a||l)&&((!s.e&&(s.e=new kd),s.e).Ec(o),++o.c));i||Vd(r.c,o)}function $it(e,t,n){var r,i,a,o,s,c,l,u,d=e.a.i+e.a.g/2,f=e.a.i+e.a.g/2,p,m=t.i+t.g/2,h,g=t.j+t.f/2,_;return s=new j(m,g),l=F(Y(t,(Qz(),o8)),8),l.a+=d,l.b+=f,a=(s.b-l.b)/(s.a-l.a),r=s.b-a*s.a,h=n.i+n.g/2,_=n.j+n.f/2,c=new j(h,_),u=F(Y(n,o8),8),u.a+=d,u.b+=f,o=(c.b-u.b)/(c.a-u.a),i=c.b-o*c.a,p=(r-i)/(o-a),!(l.a>>0,`0`+t.toString(16)),r=`\\x`+yw(n,n.length-2,n.length)):e>=VV?(n=(t=e>>>0,`0`+t.toString(16)),r=`\\v`+yw(n,n.length-6,n.length)):r=``+String.fromCharCode(e&iV)}return r}function cat(e,t){for(var n,r,i,a=new D(e.b),o,s,c,l,u;a.an)t.Ug();else{switch(F(q(e,(Yz(),W0)),350).g){case 2:a=new ii;break;case 0:a=new Jr;break;default:a=new ai}if(r=a.mg(e,i),!a.ng())switch(F(q(e,K0),351).g){case 2:r=A3e(i,r);break;case 1:r=m1e(i,r)}Oot(e,i,r),t.Ug()}}function KR(e,t){var n,i,a,o,s,c,l,u;t%=24,e.q.getHours()!=t&&(i=new r.Date(e.q.getTime()),i.setDate(i.getDate()+1),c=e.q.getTimezoneOffset()-i.getTimezoneOffset(),c>0&&(l=c/60|0,u=c%60,a=e.q.getDate(),n=e.q.getHours(),n+l>=24&&++a,o=new r.Date(e.q.getFullYear(),e.q.getMonth(),a,t+l,e.q.getMinutes()+u,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(o.getTime()))),s=e.q.getTime(),e.q.setTime(s+36e5),e.q.getHours()!=t&&e.q.setTime(s)}function fat(e,t){var n,r,i,a;if(OAe(e.d,e.e),e.c.a.$b(),k(P(q(t.j,(Yz(),m1))))!=0||k(P(q(t.j,m1)))!=0)for(n=pG,M(q(t.j,C1))!==M((LN(),_2))&&G(t.j,(X(),h$),(ky(),!0)),a=F(q(t.j,H0),15).a,i=0;ii&&++l,fy(o,(gT(s+l,t.c.length),F(t.c[s+l],15))),c+=(gT(s+l,t.c.length),F(t.c[s+l],15)).a-r,++n;n=_&&e.e[l.p]>h*e.b||b>=n*_)&&(Vd(p.c,c),c=new kd,Kk(s,o),o.a.$b(),u-=d,m=r.Math.max(m,u*e.b+g),u+=b,y=b,b=0,d=0,g=0);return new B_(m,p)}function qR(e){var t,n,r,i,a,o,s;if(!e.d){if(s=new jo,t=l9,a=t.a.yc(e,t),a==null){for(r=new yy(Sw(e));r.e!=r.i.gc();)n=F(lP(r),29),YS(s,qR(n));t.a.Ac(e),t.a.gc()}for(o=s.i,i=(!e.q&&(e.q=new I(B7,e,11,10)),new yy(e.q));i.e!=i.i.gc();++o)F(lP(i),403);YS(s,(!e.q&&(e.q=new I(B7,e,11,10)),e.q)),Lj(s),e.d=new pv((F(U(z((qS(),K7).o),9),19),s.i),s.g),e.e=F(s.g,678),e.e??=WBt,jE(e).b&=-17}return e.d}function JR(e,t,n,r){var i,a,o,s,c,l=VL(e.e.Ah(),t);if(c=0,i=F(e.g,122),Qh(),F(t,69).vk()){for(o=0;o1||m==-1){if(d=F(h,72),f=F(u,72),d.dc())f.$b();else for(o=!!NP(t),a=0,s=e.a?d.Jc():d.Gi();s.Ob();)l=F(s.Pb(),57),i=F(oO(e,l),57),i?(o?(c=f.bd(i),c==-1?f.Ei(a,i):a!=c&&f.Si(a,i)):f.Ei(a,i),++a):e.b&&!o&&(f.Ei(a,l),++a)}else h==null?u.Wb(null):(i=oO(e,h),i==null?e.b&&!NP(t)&&u.Wb(h):u.Wb(i))}}function _at(e,t){for(var n=new dn,i,a=new fS(Sy(UM(t).a.Jc(),new f)),o,s,c,l,u;sL(a);)if(i=F(FE(a),17),!AE(i)&&(c=i.c.i,P1e(c,nZ))){if(u=mtt(e,c,nZ,tZ),u==-1)continue;n.b=r.Math.max(n.b,u),!n.a&&(n.a=new kd),fy(n.a,c)}for(s=new fS(Sy(GM(t).a.Jc(),new f));sL(s);)if(o=F(FE(s),17),!AE(o)&&(l=o.d.i,P1e(l,tZ))){if(u=mtt(e,l,tZ,nZ),u==-1)continue;n.d=r.Math.max(n.d,u),!n.c&&(n.c=new kd),fy(n.c,l)}return n}function vat(e,t,n,r){var i,a,o,s,c,l,u;if(n.d.i!=t.i){for(i=new IP(e),ul(i,(_L(),qX)),G(i,(X(),M$),n),G(i,(Yz(),_0),(VF(),t5)),Vd(r.c,i),o=new mI,Qw(o,i),RI(o,(Lz(),N5)),s=new mI,Qw(s,i),RI(s,p5),u=n.d,Zw(n,o),a=new hw,TA(a,n),G(a,K1,null),Yw(a,s),Zw(a,u),l=new FT(n.b,0);l.b1e6)throw O(new Rp(`power of ten too big`));if(e<=lB)return IE(QI(xY[1],t),t);for(r=QI(xY[1],lB),i=r,n=_A(e-lB),t=Nw(e%lB);qj(n,lB)>0;)i=eE(i,r),n=HM(n,lB);for(i=eE(i,QI(xY[1],t)),i=IE(i,lB),n=_A(e-lB);qj(n,lB)>0;)i=IE(i,lB),n=HM(n,lB);return i=IE(i,t),i}function xat(e){for(var t,n,r,i,a,o,s,c=new D(e.a),l,u;c.al&&r>l)u=s,l=k(t.p[s.p])+k(t.d[s.p])+s.o.b+s.d.a;else{i=!1,n.$g()&&n.ah(`bk node placement breaks on `+s+` which should have been after `+u);break}if(!i)break}return n.$g()&&n.ah(t+` is feasible: `+i),i}function wat(e,t,n,r){var i,a=new IP(e),o,s,c,l,u,d,f;if(ul(a,(_L(),XX)),G(a,(Yz(),_0),(VF(),t5)),i=0,t){for(o=new mI,G(o,(X(),M$),t),G(a,M$,t.i),RI(o,(Lz(),N5)),Qw(o,a),f=LT(t.e),l=f,u=0,d=l.length;u0){if(i<0&&u.a&&(i=c,a=l[0],r=0),i>=0){if(s=u.b,c==i&&(s-=r++,s==0))return 0;if(!Klt(t,l,u,s,o)){c=i-1,l[0]=a;continue}}else if(i=-1,!Klt(t,l,u,0,o))return 0}else{if(i=-1,wC(u.c,0)==32){if(d=l[0],xze(t,l),l[0]>d)continue}else if(qOe(t,u.c,l[0])){l[0]+=u.c.length;continue}return 0}return Elt(o,n)?l[0]:0}function Dat(e,t,n){var r,i,a,o,s,c,l,u=new xS(new fae(n)),d,f;for(s=H(J9,_H,30,e.f.e.c.length,16,1),CTe(s,s.length),n[t.a]=0,l=new D(e.f.e);l.a=s.a?a.b>=s.b?(r.a=s.a+(a.a-s.a)/2+i,r.b=s.b+(a.b-s.b)/2-i-e.e.b):(r.a=s.a+(a.a-s.a)/2+i,r.b=a.b+(s.b-a.b)/2+i):a.b>=s.b?(r.a=a.a+(s.a-a.a)/2+i,r.b=s.b+(a.b-s.b)/2+i):(r.a=a.a+(s.a-a.a)/2+i,r.b=a.b+(s.b-a.b)/2-i-e.e.b))}function ZR(e){var t,n,r,i,a,o,s,c;if(!e.f){if(c=new Ao,s=new Ao,t=l9,o=t.a.yc(e,t),o==null){for(a=new yy(Sw(e));a.e!=a.i.gc();)i=F(lP(a),29),YS(c,ZR(i));t.a.Ac(e),t.a.gc()}for(r=(!e.s&&(e.s=new I(N7,e,21,17)),new yy(e.s));r.e!=r.i.gc();)n=F(lP(r),179),N(n,103)&&hD(s,F(n,19));Lj(s),e.r=new qSe(e,(F(U(z((qS(),K7).o),6),19),s.i),s.g),YS(c,e.r),Lj(c),e.f=new pv((F(U(z(K7.o),5),19),c.i),c.g),jE(e).b&=-3}return e.f}function QR(){QR=C,Qzt=W(A(K9,1),nV,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),$zt=RegExp(`[ -\r\f]+`);try{h7=W(A(KBt,1),mB,2079,0,[new _d((Vme(),bN(`yyyy-MM-dd'T'HH:mm:ss'.'SSSZ`,Mb((dm(),dm(),QJ))))),new _d(bN(`yyyy-MM-dd'T'HH:mm:ss'.'SSS`,Mb(QJ))),new _d(bN(`yyyy-MM-dd'T'HH:mm:ss`,Mb(QJ))),new _d(bN(`yyyy-MM-dd'T'HH:mm`,Mb(QJ))),new _d(bN(`yyyy-MM-dd`,Mb(QJ)))])}catch(e){if(e=WA(e),!N(e,80))throw O(e)}}function kat(e){var t,n=null,r,i,a,o,s=null;for(r=F(q(e.b,(Yz(),R1)),348),r==(Aj(),D2)&&(n=new kd,s=new kd),o=new D(e.d);o.an);return a}function jat(e,t){var n,r,i=xL(e.d,1)!=0,a;if(r=MI(e,t),r==0&&Xp(db(q(t.j,(X(),h$)))))return 0;!Xp(db(q(t.j,(X(),h$))))&&!Xp(db(q(t.j,V$)))||M(q(t.j,(Yz(),C1)))===M((LN(),_2))?t.c.kg(t.e,i):i=Xp(db(q(t.j,h$))),FL(e,t,i,!0),Xp(db(q(t.j,V$)))&&G(t.j,V$,(ky(),!1)),Xp(db(q(t.j,h$)))&&(G(t.j,h$,(ky(),!1)),G(t.j,V$,!0)),n=MI(e,t);do{if(oVe(e),n==0)return 0;i=!i,a=n,FL(e,t,i,!1),n=MI(e,t)}while(a>n);return a}function Mat(e,t,n){var r=F(q(e,(Yz(),w1)),22),i,a,o,s;if(n.a>t.a&&(r.Gc((IF(),C6))?e.c.a+=(n.a-t.a)/2:r.Gc(T6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Gc((IF(),D6))?e.c.b+=(n.b-t.b)/2:r.Gc(E6)&&(e.c.b+=n.b-t.b)),F(q(e,(X(),g$)),22).Gc((YL(),LQ))&&(n.a>t.a||n.b>t.b))for(s=new D(e.a);s.at.a&&(r.Gc((IF(),C6))?e.c.a+=(n.a-t.a)/2:r.Gc(T6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Gc((IF(),D6))?e.c.b+=(n.b-t.b)/2:r.Gc(E6)&&(e.c.b+=n.b-t.b)),F(q(e,(X(),g$)),22).Gc((YL(),LQ))&&(n.a>t.a||n.b>t.b))for(o=new D(e.a);o.a=0&&f<=1&&p>=0&&p<=1?Nb(new j(e.a,e.b),dy(new j(t.a,t.b),f)):null}function $R(e,t,n){var i,a,o=0,s=e.t,c,l,u,d,f,p;for(a=0,i=0,l=0,p=0,f=0,n&&(e.n.c.length=0,fy(e.n,new Rw(e.s,e.t,e.i))),c=0,d=new D(e.b);d.a0?e.i:0)>t&&l>0&&(o=0,s+=l+e.i,a=r.Math.max(a,p),i+=l+e.i,l=0,p=0,n&&(++f,fy(e.n,new Rw(e.s,s,e.i))),c=0),p+=u.g+(c>0?e.i:0),l=r.Math.max(l,u.f),n&&UXe(F(zx(e.n,f),208),u),o+=u.g+(c>0?e.i:0),++c;return a=r.Math.max(a,p),i+=l,n&&(e.r=a,e.d=i,jZe(e.j)),new GC(e.s,e.t,a,i)}function ez(e){var t,n=M(Y(e,(Yz(),j1)))===M((vL(),_Q))||M(Y(e,j1))===M(fQ)||M(Y(e,j1))===M(pQ)||M(Y(e,j1))===M(hQ)||M(Y(e,j1))===M(vQ)||M(Y(e,j1))===M(yQ),r=M(Y(e,X1))===M((NL(),J0))||M(Y(e,X1))===M(X0)||M(Y(e,Y1))===M((hR(),d2))||M(Y(e,Y1))===M((hR(),f2));return t=M(Y(e,C1))!==M((LN(),_2))||Xp(db(Y(e,T1)))||M(Y(e,p1))!==M((KN(),BX))||k(P(Y(e,m1)))!=0||k(P(Y(e,h1)))!=0,n||r||t}function tz(e){var t,n,r,i,a,o,s,c;if(!e.a){if(e.o=null,c=new dse(e),t=new Qne,n=l9,s=n.a.yc(e,n),s==null){for(o=new yy(Sw(e));o.e!=o.i.gc();)a=F(lP(o),29),YS(c,tz(a));n.a.Ac(e),n.a.gc()}for(i=(!e.s&&(e.s=new I(N7,e,21,17)),new yy(e.s));i.e!=i.i.gc();)r=F(lP(i),179),N(r,335)&&hD(t,F(r,38));Lj(t),e.k=new KSe(e,(F(U(z((qS(),K7).o),7),19),t.i),t.g),YS(c,e.k),Lj(c),e.a=new pv((F(U(z(K7.o),4),19),c.i),c.g),jE(e).b&=-2}return e.a}function Iat(e){var t,n,i,a,o,s,c=e.d,l,u,d,f=F(q(e,(X(),Q$)),16),p;if(t=F(q(e,n$),16),f||t){if(o=k(P(jN(e,(Yz(),T0)))),s=k(P(jN(e,pAt))),p=0,f){for(u=0,a=f.Jc();a.Ob();)i=F(a.Pb(),9),u=r.Math.max(u,i.o.b),p+=i.o.a;p+=o*(f.gc()-1),c.d+=u+s}if(n=0,t){for(u=0,a=t.Jc();a.Ob();)i=F(a.Pb(),9),u=r.Math.max(u,i.o.b),n+=i.o.a;n+=o*(t.gc()-1),c.a+=u+s}l=r.Math.max(p,n),l>e.o.a&&(d=(l-e.o.a)/2,c.b=r.Math.max(c.b,d),c.c=r.Math.max(c.c,d))}}function Lat(e,t,n,r){var i,a,o,s,c,l,u=VL(e.e.Ah(),t);if(i=0,a=F(e.g,122),c=null,Qh(),F(t,69).vk()){for(s=0;ss?1:-1,i==-1)d=-c,u=o==c?GE(t.a,s,e.a,a):sD(t.a,s,e.a,a);else if(d=o,o==c){if(i==0)return pR(),yY;u=GE(e.a,a,t.a,s)}else u=sD(e.a,a,t.a,s);return l=new MS(d,u.length,u),MT(l),l}function Bat(e,t){var n,r,i,a=Eit(t);if(!t.c&&(t.c=new I(m7,t,9,9)),Eh(new Hx(null,(!t.c&&(t.c=new I(m7,t,9,9)),new hT(t.c,16))),new Eu(a)),i=F(q(a,(X(),g$)),22),Oct(t,i),i.Gc((YL(),LQ)))for(r=new yy((!t.c&&(t.c=new I(m7,t,9,9)),t.c));r.e!=r.i.gc();)n=F(lP(r),125),llt(e,t,a,n);return F(Y(t,(Yz(),l0)),182).gc()!=0&&Vet(t,a),Xp(db(q(a,eAt)))&&i.Ec(HQ),ib(a,w0)&&Pp(new lqe(k(P(q(a,w0)))),a),M(Y(t,H1))===M((Oj(),N8))?mdt(e,t,a):_lt(e,t,a),a}function sz(e,t){var n,r,i,a,o,s,c;if(e==null)return null;if(a=e.length,a==0)return``;for(c=H(K9,nV,30,a,15,1),uD(0,a,e.length),uD(0,a,c.length),GTe(e,0,a,c,0),n=null,s=t,i=0,o=0;i0?yw(n.a,0,a-1):``):(uD(0,a-1,e.length),e.substr(0,a-1)):n?n.a:e}function Vat(e,t,n){var r,i,a;if(ib(t,(Yz(),q1))&&(M(q(t,q1))===M((oN(),t1))||M(q(t,q1))===M(r1))||ib(n,q1)&&(M(q(n,q1))===M((oN(),t1))||M(q(n,q1))===M(r1)))return 0;if(r=yC(t),i=Jtt(e,t,n),i!=0)return i;if(ib(t,(X(),j$))&&ib(n,j$)){if(a=Zv(RL(t,n,r,F(q(r,A$),15).a),RL(n,t,r,F(q(r,A$),15).a)),M(q(r,_1))===M((ZA(),XQ))&&M(q(t,v1))!==M(q(n,v1))&&(a=0),a<0)return fR(e,t,n),a;if(a>0)return fR(e,n,t),a}return q6e(e,t,n)}function Hat(e,t){for(var n,r=new fS(Sy(bL(t).a.Jc(),new f)),i,a,o,s,c,l,u,d,p;sL(r);)n=F(FE(r),85),N(U((!n.b&&(n.b=new Lb(r7,n,4,7)),n.b),0),193)||(c=GF(F(U((!n.c&&(n.c=new Lb(r7,n,5,8)),n.c),0),84)),rL(n)||(o=t.i+t.g/2,s=t.j+t.f/2,u=c.i+c.g/2,d=c.j+c.f/2,p=new Rm,p.a=u-o,p.b=d-s,a=new j(p.a,p.b),SF(a,t.g,t.f),p.a-=a.a,p.b-=a.b,o=u-p.a,s=d-p.b,l=new j(p.a,p.b),SF(l,c.g,c.f),p.a-=l.a,p.b-=l.b,u=o+p.a,d=s+p.b,i=BL(n),YO(i,o),XO(i,s),WO(i,u),GO(i,d),Hat(e,c)))}function cz(e,t){var n,r,i,a,o=F(t,137);if(dL(e),dL(o),o.b!=null){if(e.c=!0,e.b==null)e.b=H(q9,vV,30,o.b.length,15,1),LR(o.b,0,e.b,0,o.b.length);else{for(a=H(q9,vV,30,e.b.length+o.b.length,15,1),n=0,r=0,i=0;n=e.b.length?(a[i++]=o.b[r++],a[i++]=o.b[r++]):r>=o.b.length?(a[i++]=e.b[n++],a[i++]=e.b[n++]):o.b[r]0?e.i:0)),++t;for(OKe(e.n,l),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=LV,e.p=LV,o=new D(e.b);o.a0&&(i=(!e.n&&(e.n=new I(f7,e,1,7)),F(U(e.n,0),157)).a,!i||ov(ov((t.a+=` "`,t),i),`"`))),n=(!e.b&&(e.b=new Lb(r7,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Lb(r7,e,5,8)),e.c.i<=1))),n?t.a+=` [`:t.a+=` `,ov(t,Qhe(new um,new yy(e.b))),n&&(t.a+=`]`),t.a+=EU,n&&(t.a+=`[`),ov(t,Qhe(new um,new yy(e.c))),n&&(t.a+=`]`),t.a)}function Kat(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x=e.c,S=t.c,ee,te,ne,C;for(n=VD(x.a,e,0),r=VD(S.a,t,0),y=F(hN(e,(uk(),S2)).Jc().Pb(),12),ne=F(hN(e,C2).Jc().Pb(),12),b=F(hN(t,S2).Jc().Pb(),12),C=F(hN(t,C2).Jc().Pb(),12),_=LT(y.e),ee=LT(ne.g),v=LT(b.e),te=LT(C.g),fF(e,r,S),o=v,u=0,m=o.length;u0&&l[i]&&(h=ty(e.b,l[i],a)),g=r.Math.max(g,a.c.c.b+h);for(o=new D(d.e);o.ad?new aT((QE(),Z2),n,t,u-d):u>0&&d>0&&(new aT((QE(),Z2),t,n,0),new aT(Z2,n,t,0))),s)}function Zat(e,t,n){var r,i,a;for(e.a=new kd,a=oP(t.b,0);a.b!=a.d.c;){for(i=F(YT(a),40);F(q(i,(zR(),P4)),15).a>e.a.c.length-1;)fy(e.a,new B_(pG,wht));r=F(q(i,P4),15).a,n==(yM(),y8)||n==b8?(i.e.ak(P(F(zx(e.a,r),49).b))&&xl(F(zx(e.a,r),49),i.e.a+i.f.a)):(i.e.bk(P(F(zx(e.a,r),49).b))&&xl(F(zx(e.a,r),49),i.e.b+i.f.b))}}function Qat(e,t,n,r){var i,a=NM(r),o,s=Xp(db(q(r,(Yz(),Jkt)))),c,l,u;if((s||Xp(db(q(e,U1))))&&!Dv(F(q(e,_0),102)))i=dN(a),c=Hrt(e,n,n==(uk(),C2)?i:wM(i));else switch(c=new mI,Qw(c,e),t?(u=c.n,u.a=t.a-e.n.a,u.b=t.b-e.n.b,q2e(u,0,0,e.o.a,e.o.b),RI(c,Jrt(c,a))):(i=dN(a),RI(c,n==(uk(),C2)?i:wM(i))),o=F(q(r,(X(),g$)),22),l=c.j,a.g){case 2:case 1:(l==(Lz(),m5)||l==j5)&&o.Ec((YL(),VQ));break;case 4:case 3:(l==(Lz(),p5)||l==N5)&&o.Ec((YL(),VQ))}return c}function $at(e,t){for(var n,i,a,o,s=new lA(new Ll(e.f.b).a),c;s.b;){if(o=Tk(s),a=F(o.jd(),592),t==1){if(a.yf()!=(yM(),S8)&&a.yf()!=v8)continue}else if(a.yf()!=(yM(),y8)&&a.yf()!=b8)continue;switch(i=F(F(o.kd(),49).b,82),c=F(F(o.kd(),49).a,194),n=c.c,a.yf().g){case 2:i.g.c=e.e.a,i.g.b=r.Math.max(1,i.g.b+n);break;case 1:i.g.c=i.g.c+n,i.g.b=r.Math.max(1,i.g.b-n);break;case 4:i.g.d=e.e.b,i.g.a=r.Math.max(1,i.g.a+n);break;case 3:i.g.d=i.g.d+n,i.g.a=r.Math.max(1,i.g.a-n)}}}function eot(e,t){var n,i,a,o,s,c,l,u,d,f;for(t.Tg(`Simple node placement`,1),f=F(q(e,(X(),U$)),317),c=0,o=new D(e.b);o.a1)throw O(new qp(hJ));c||(a=iE(t,r.Jc().Pb()),o.Ec(a))}return pUe(e,g4e(e,t,n),o)}function lz(e,t,n){var r,i,a,o,s,c,l,u;if(WL(e.e,t))c=(Qh(),F(t,69).vk()?new Nx(t,e):new Q_(t,e)),tL(c.c,c.b),ny(c,F(n,18));else{for(u=VL(e.e.Ah(),t),r=F(e.g,122),o=0;o`}c!=null&&(t.a+=``+c)}else e.e?(s=e.e.zb,s!=null&&(t.a+=``+s)):(t.a+=`?`,e.b?(t.a+=` super `,uz(e.b,t)):e.f&&(t.a+=` extends `,uz(e.f,t)))}function uot(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function dot(e){var t,n,i=qz((!e.c&&(e.c=fT(_A(e.f))),e.c),0),a;if(e.e==0||e.a==0&&e.f!=-1&&e.e<0)return i;if(t=+(uVe(e)<0),n=e.e,a=(i.length+1+r.Math.abs(Nw(e.e)),new _m),t==1&&(a.a+=`-`),e.e>0){if(n-=i.length-t,n>=0){for(a.a+=`0.`;n>mY.length;n-=mY.length)LCe(a,mY);Ove(a,mY,Nw(n)),ov(a,(_T(t,i.length+1),i.substr(t)))}else n=t-n,ov(a,yw(i,t,Nw(n))),a.a+=`.`,ov(a,_Ee(i,Nw(n)))}else{for(ov(a,(_T(t,i.length+1),i.substr(t)));n<-mY.length;n+=mY.length)LCe(a,mY);Ove(a,mY,Nw(-n))}return a.a}function dz(e){var t,n,r,i,a,o,s,c,l;return!(e.k!=(_L(),YX)||e.j.c.length<=1||(a=F(q(e,(Yz(),_0)),102),a==(VF(),t5))||(i=(CP(),r=(e.q?e.q:(ew(),ew(),wY))._b(a0)?F(q(e,a0),203):F(q(yC(e),o0),203),r),i==r2)||i!=n2&&i!=t2&&(o=k(P(jN(e,V0))),t=F(q(e,B0),140),!t&&(t=new Zve(o,o,o,o)),l=IM(e,(Lz(),N5)),c=t.d+t.a+(l.gc()-1)*o,c>e.o.b||(n=IM(e,p5),s=t.d+t.a+(n.gc()-1)*o,s>e.o.b)))}function fot(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;t.Tg(`Orthogonal edge routing`,1),l=k(P(q(e,(Yz(),R0)))),n=k(P(q(e,O0))),r=k(P(q(e,j0))),f=new cEe(0,n),g=0,o=new FT(e.b,0),s=null,u=null,c=null,d=null;do u=o.b0?(p=(m-1)*n,s&&(p+=r),u&&(p+=r),p0;for(s=F(q(e.c.i,m0),15).a,a=F(vE(zC(t.Mc(),new Oae(s)),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),16),o=new vh,u=new pf,Sx(o,e.c.i),PS(u,e.c.i);o.b!=0;){if(n=F(o.b==0?null:(tb(o.b!=0),DO(o,o.a.a)),9),a.Gc(n))return!0;for(i=new fS(Sy(GM(n).a.Jc(),new f));sL(i);)r=F(FE(i),17),c=r.d.i,u.a._b(c)||(u.a.yc(c,u),bE(o,c,o.c.b,o.c))}return!1}function xot(e,t,n){var r,i,a,o,s,c,l,u,d=new kd;for(u=new Uje(0,n),a=0,hk(u,new mj(0,0,u,n)),i=0,l=new yy(e);l.e!=l.i.gc();)c=F(lP(l),26),r=F(zx(u.a,u.a.c.length-1),173),s=i+c.g+(F(zx(u.a,0),173).b.c.length==0?0:n),(s>t||Xp(db(Y(c,(tR(),C3)))))&&(i=0,a+=u.b+n,Vd(d.c,u),u=new Uje(a,n),r=new mj(0,u.f,u,n),hk(u,r),i=0),r.b.c.length==0||!Xp(db(Y(qw(c),(tR(),T3))))&&(c.f>=r.o&&c.f<=r.f||r.a*.5<=c.f&&r.a*1.5>=c.f)?BKe(r,c):(o=new mj(r.s+r.r+n,u.f,u,n),hk(u,o),BKe(o,c)),i=c.i+c.g;return Vd(d.c,u),d}function gz(e){var t,n,r,i;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,i=0;i=e.b[i+1])i+=2;else if(n0)for(r=new qb(F(zE(e.a,a),22)),ew(),Yv(r,new bu(t)),i=new FT(a.b,0);i.b0&&r>=-6?r>=0?Ay(a,n-Nw(e.e),`.`):(uA(a,t-1,t-1,`0.`),Ay(a,t+1,IN(mY,0,-Nw(r)-1))):(n-t>=1&&(Ay(a,t,`.`),++n),Ay(a,n,`E`),r>0&&Ay(a,++n,`+`),Ay(a,++n,``+vS(_A(r)))),e.g=a.a,e.g)):e.g}function Dot(e,t){var n,i=k(P(q(t,(Yz(),Zkt)))),a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=F(q(t,H0),15).a,ee,te;p=4,a=3,ee=20/S,m=!1,l=0,s=lB;do{for(o=l!=1,f=l!=0,te=0,_=e.a,y=0,x=_.length;yS)?(l=2,s=lB):l==0?(l=1,s=te):(l=0,s=te)):(m=te>=s||s-te=VV?rv(n,IKe(r)):cC(n,r&iV),o=(++W9,new Dw(10,null,0)),ETe(e.a,o,s-1)):(n=(o.Km().length+a,new hm),rv(n,o.Km())),t.e==0?(r=t.Im(),r>=VV?rv(n,IKe(r)):cC(n,r&iV)):rv(n,t.Km()),F(o,518).b=n.a))}}function Oot(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(!n.dc()){for(s=0,f=0,r=n.Jc(),m=F(r.Pb(),15).a;s0?1:Db(isNaN(i),!1))>=0^(ok(gG),(r.Math.abs(c)<=gG||c==0?0:c<0?-1:c>0?1:Db(isNaN(c),!1))>=0)?r.Math.max(c,i):(ok(gG),(r.Math.abs(i)<=gG||i==0?0:i<0?-1:i>0?1:Db(isNaN(i),!1))>0?r.Math.sqrt(c*c+i*i):-r.Math.sqrt(c*c+i*i))}function Mot(e){var t,n,i,a=e.o;Sb(),e.A.dc()||lM(e.A,lSt)?t=a.b:(t=e.D?r.Math.max(a.b,HI(e.f)):HI(e.f),e.A.Gc((AN(),L5))&&!e.B.Gc((wR(),G5))&&(t=r.Math.max(t,HI(F(DC(e.p,(Lz(),p5)),253))),t=r.Math.max(t,HI(F(DC(e.p,N5),253)))),n=nHe(e),n&&(t=r.Math.max(t,n.b)),e.A.Gc(R5)&&(e.q==(VF(),n5)||e.q==t5)&&(t=r.Math.max(t,Ex(F(DC(e.b,(Lz(),p5)),127))),t=r.Math.max(t,Ex(F(DC(e.b,N5),127))))),a.b=Xp(db(e.e.Rf().mf((Qz(),J6))))?r.Math.max(a.b,t):t,i=e.f.i,i.d=0,i.a=t,HR(e.f)}function Not(e,t,n,r,i,a,o,s){var c=BE(W(A(LFt,1),mB,238,0,[t,n,r,i])),l,u,d=null;switch(e.b.g){case 1:d=BE(W(A(TFt,1),mB,524,0,[new Oa,new Ta,new Ea]));break;case 0:d=BE(W(A(TFt,1),mB,524,0,[new Ea,new Ta,new Oa]));break;case 2:d=BE(W(A(TFt,1),mB,524,0,[new Ta,new Oa,new Ea]))}for(u=new D(d);u.a1&&(c=l.Gg(c,e.a,s));return c.c.length==1?F(zx(c,c.c.length-1),238):c.c.length==2?mot((gT(0,c.c.length),F(c.c[0],238)),(gT(1,c.c.length),F(c.c[1],238)),o,a):null}function Pot(e,t,n){var r,i=new al(e),a=new a8e,o,s,c,l,u,d,f,p,m;r=(TE(a.n),TE(a.p),IS(a.c),TE(a.f),TE(a.o),IS(a.q),IS(a.d),IS(a.g),IS(a.k),IS(a.e),IS(a.i),IS(a.j),IS(a.r),IS(a.b),f=G3e(a,i,null),N5e(a,i),f),t&&(c=new al(t),o=Rat(c),S2e(r,W(A(NIt,1),mB,525,0,[o]))),d=!1,u=!1,n&&(c=new al(n),gq in c.a&&(d=Bw(c,gq).oe().a),Q_t in c.a&&(u=Bw(c,Q_t).oe().a)),l=rle(Vze(new up,d),u),z2e(new One,r,l),gq in i.a&&vO(i,gq,null),(d||u)&&(s=new kp,pit(l,s,d,u),vO(i,gq,s)),p=new $oe(a),gUe(new Iv(r),p),m=new sd(a),gUe(new Iv(r),m)}function Fot(e,t,n){var r,i,a,o,s,c,l;for(n.Tg(`Find roots`,1),e.a.c.length=0,i=oP(t.b,0);i.b!=i.d.c;)r=F(YT(i),40),r.b.b==0&&(G(r,(Iz(),E4),(ky(),!0)),fy(e.a,r));switch(e.a.c.length){case 0:a=new pj(0,t,`DUMMY_ROOT`),G(a,(Iz(),E4),(ky(),!0)),G(a,d4,!0),Sx(t.b,a);break;case 1:break;default:for(o=new pj(0,t,DG),c=new D(e.a);c.a=r.Math.abs(i.b)?(i.b=0,o.d+o.a>s.d&&o.ds.c&&o.c0){if(t=new mpe(e.i,e.g),n=e.i,a=n<100?null:new Bm(n),e.Rj())for(r=0;r0){for(s=e.g,l=e.i,VE(e),a=l<100?null:new Bm(l),r=0;r>13|(e.m&15)<<9,i=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,o=(e.h&1048320)>>8,s=t.l&8191,c=t.l>>13|(t.m&15)<<9,l=t.m>>4&8191,u=t.m>>17|(t.h&255)<<5,d=(t.h&1048320)>>8,f,p,m,h,g,_,v,y,b,x,S,ee,te=n*s,ne=r*s,C=i*s,re=a*s,ie=o*s;return c!=0&&(ne+=n*c,C+=r*c,re+=i*c,ie+=a*c),l!=0&&(C+=n*l,re+=r*l,ie+=i*l),u!=0&&(re+=n*u,ie+=r*u),d!=0&&(ie+=n*d),p=te&OV,m=(ne&511)<<13,f=p+m,g=te>>22,_=ne>>9,v=(C&262143)<<4,y=(re&31)<<17,h=g+_+v+y,x=C>>18,S=re>>5,ee=(ie&4095)<<8,b=x+S+ee,h+=f>>22,f&=OV,b+=h>>22,h&=OV,b&=kV,Qv(f,h,b)}function Bot(e){var t,n,i,a,o,s,c=F(zx(e.j,0),12);if(c.g.c.length!=0&&c.e.c.length!=0)throw O(new Jp(`Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges.`));if(c.g.c.length!=0){for(o=LV,n=new D(c.g);n.a0&&d4e(e,s,d);for(i=new D(d);i.a4){if(e.dk(t)){if(e.$k()){if(i=F(t,52),r=i.Bh(),c=r==e.e&&(e.kl()?i.vh(i.Ch(),e.gl())==e.hl():-1-i.Ch()==e.Jj()),e.ll()&&!c&&!r&&i.Gh()){for(a=0;ae.d[o.p]&&(n+=LPe(e.b,a)*F(c.b,15).a,XT(e.a,K(a)));for(;!Qp(e.a);)vRe(e.b,F(VS(e.a),15).a)}return n}function Wot(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_;for(t.Tg(_ht,1),m=new kd,d=r.Math.max(e.a.c.length,F(q(e,(X(),A$)),15).a),n=d*F(q(e,i$),15).a,c=M(q(e,(Yz(),g1)))===M((ZA(),YQ)),g=new D(e.a);g.a0&&(l=e.n.a/a);break;case 2:case 4:i=e.i.o.b,i>0&&(l=e.n.b/i)}G(e,(X(),I$),l)}if(c=e.o,o=e.a,r)o.a=r.a,o.b=r.b,e.d=!0;else if(t!=i5&&t!=a5&&s!=M5)switch(s.g){case 1:o.a=c.a/2;break;case 2:o.a=c.a,o.b=c.b/2;break;case 3:o.a=c.a/2,o.b=c.b;break;case 4:o.b=c.b/2}else o.a=c.a/2,o.b=c.b/2}function bz(e){var t,n,r,i,a,o,s,c,l,u;if(e.Nj()){if(u=e.Cj(),c=e.Oj(),u>0){if(t=new VVe(e.nj()),n=u,a=n<100?null:new Bm(n),vb(e,n,t.g),i=n==1?e.Gj(4,U(t,0),null,0,c):e.Gj(6,t,null,-1,c),e.Kj()){for(r=new yy(t);r.e!=r.i.gc();)a=e.Mj(lP(r),a);a?(a.lj(i),a.mj()):e.Hj(i)}else a?(a.lj(i),a.mj()):e.Hj(i)}else vb(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(ew(),CY),null,-1,c))}else if(e.Kj()){if(u=e.Cj(),u>0){for(s=e.Dj(),l=u,vb(e,u,s),a=l<100?null:new Bm(l),r=0;r1&&Qx(o)*Zx(o)/2>s[0]){for(a=0;as[a];)++a;m=new mT(h,0,a+1),d=new jO(m),u=Qx(o)/Zx(o),c=Hz(d,t,new Vf,n,r,i,u),Nb(gv(d.e),c),mx(tI(f,d),JV),p=new mT(h,a+1,h.c.length),aQe(f,p),h.c.length=0,l=0,cwe(s,s.length,0)}else g=f.b.c.length==0?null:zx(f.b,0),g!=null&&Ok(f,0),l>0&&(s[l]=s[l-1]),s[l]+=Qx(o)*Zx(o),++l,Vd(h.c,o);return h}function $ot(e,t){var n=t.b,r,i,a=new qb(n.j);i=0,r=n.j,r.c.length=0,WS(F(pA(e.b,(Lz(),m5),(Ik(),UZ)),16),n),i=kP(a,i,new Ir,r),WS(F(pA(e.b,m5,HZ),16),n),i=kP(a,i,new Lr,r),WS(F(pA(e.b,m5,VZ),16),n),WS(F(pA(e.b,p5,UZ),16),n),WS(F(pA(e.b,p5,HZ),16),n),i=kP(a,i,new Rr,r),WS(F(pA(e.b,p5,VZ),16),n),WS(F(pA(e.b,j5,UZ),16),n),i=kP(a,i,new ote,r),WS(F(pA(e.b,j5,HZ),16),n),i=kP(a,i,new ste,r),WS(F(pA(e.b,j5,VZ),16),n),WS(F(pA(e.b,N5,UZ),16),n),i=kP(a,i,new nte,r),WS(F(pA(e.b,N5,HZ),16),n),WS(F(pA(e.b,N5,VZ),16),n)}function est(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g;for(t.Tg(`Layer size calculation`,1),d=LV,u=RV,a=!1,c=new D(e.b);c.a.5?v-=s*2*(h-.5):h<.5&&(v+=o*2*(.5-h)),a=c.d.b,v_.a-g-d&&(v=_.a-g-d),c.n.a=t+v}}function ist(e){var t,n,r=F(q(e,(Yz(),q1)),165),i,a;if(r==(oN(),t1)){for(n=new fS(Sy(UM(e).a.Jc(),new f));sL(n);)if(t=F(FE(n),17),!uFe(t))throw O(new rm(PU+rF(e)+`' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges.`))}else if(r==r1){for(a=new fS(Sy(GM(e).a.Jc(),new f));sL(a);)if(i=F(FE(a),17),!uFe(i))throw O(new rm(PU+rF(e)+`' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges.`))}}function xz(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m;if(e.e&&e.c.c>19&&(t=ij(t),c=!c),o=C7e(t),a=!1,i=!1,r=!1,e.h==AV&&e.m==0&&e.l==0){if(i=!0,a=!0,o==-1)e=eme((fO(),ybt)),r=!0,c=!c;else return s=F8e(e,o),c&&cj(s),n&&(tY=Qv(0,0,0)),s}else e.h>>19&&(a=!0,e=ij(e),r=!0,c=!c);return o==-1?LQe(e,t)<0?(n&&(tY=a?ij(e):Qv(e.l,e.m,e.h)),Qv(0,0,0)):_rt(r?e:Qv(e.l,e.m,e.h),t,c,a,i,n):VUe(e,o,c,a,n)}function Sz(e,t){var n,r,i,a,o=e.e,s,c=t.e,l,u,d,f,p,m;if(o==0)return t;if(c==0)return e;if(a=e.d,s=t.d,a+s==2)return n=CT(e.a[0],GV),r=CT(t.a[0],GV),o==c?(u=BM(n,r),m=$x(u),p=$x(hS(u,32)),p==0?new aE(o,m):new MS(o,2,W(A(q9,1),vV,30,15,[m,p]))):(pR(),ev(o<0?HM(r,n):HM(n,r),0)?CN(o<0?HM(r,n):HM(n,r)):HS(CN(RD(o<0?HM(r,n):HM(n,r)))));if(o==c)f=o,d=a>=s?sD(e.a,a,t.a,s):sD(t.a,s,e.a,a);else{if(i=a==s?hWe(e.a,t.a,a):a>s?1:-1,i==0)return pR(),yY;i==1?(f=o,d=GE(e.a,a,t.a,s)):(f=c,d=GE(t.a,s,e.a,a))}return l=new MS(f,d.length,d),MT(l),l}function sst(e,t){var n,r,i,a,o,s,c;if(!(e.g>t.f||t.g>e.f)){for(n=0,r=0,o=e.w.a.ec().Jc();o.Ob();)i=F(o.Pb(),12),Jj(lj(W(A(h6,1),OB,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&++n;for(s=e.r.a.ec().Jc();s.Ob();)i=F(s.Pb(),12),Jj(lj(W(A(h6,1),OB,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&--n;for(c=t.w.a.ec().Jc();c.Ob();)i=F(c.Pb(),12),Jj(lj(W(A(h6,1),OB,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++r;for(a=t.r.a.ec().Jc();a.Ob();)i=F(a.Pb(),12),Jj(lj(W(A(h6,1),OB,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--r;n=0)return n;switch(xC(GD(e,n))){case 2:if(zb(``,oM(e,n.ok()).ve())){if(c=IC(GD(e,n)),s=FC(GD(e,n)),u=S5e(e,t,c,s),u)return u;for(i=Int(e,t),o=0,d=i.gc();o1)throw O(new qp(hJ));for(u=VL(e.e.Ah(),t),r=F(e.g,122),o=0;o1,u=new qE(p.b);Xv(u.a)||Xv(u.b);)l=F(Xv(u.a)?B(u.a):B(u.b),17),f=l.c==p?l.d:l.c,r.Math.abs(lj(W(A(h6,1),OB,8,0,[f.i.n,f.n,f.a])).b-s.b)>1&&K9e(e,l,s,o,p)}}function fst(e){var t,n,i,a=new FT(e.e,0),o,s;if(i=new FT(e.a,0),e.d)for(n=0;nxG;){for(o=t,s=0;r.Math.abs(t-o)0),a.a.Xb(a.c=--a.b),Iit(e,e.b-s,o,i,a),tb(a.b0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n0?(e.f[d.p]=m/(d.e.c.length+d.g.c.length),e.c=r.Math.min(e.c,e.f[d.p]),e.b=r.Math.max(e.b,e.f[d.p])):c&&(e.f[d.p]=m)}}function mst(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function hst(e,t,n){var r,i,a,o;for(n.Tg(`Graph transformation (`+e.a+`)`,1),o=xT(t.a),a=new D(t.b);a.a=s.b.c)&&(s.b=t),(!s.c||t.c<=s.c.c)&&(s.d=s.c,s.c=t),(!s.e||t.d>=s.e.d)&&(s.e=t),(!s.f||t.d<=s.f.d)&&(s.f=t);return r=new mP((XA(),NX)),NT(e,OCt,new em(W(A(MX,1),mB,377,0,[r]))),o=new mP(IX),NT(e,DCt,new em(W(A(MX,1),mB,377,0,[o]))),i=new mP(PX),NT(e,ECt,new em(W(A(MX,1),mB,377,0,[i]))),a=new mP(FX),NT(e,TCt,new em(W(A(MX,1),mB,377,0,[a]))),TL(r.c,NX),TL(i.c,PX),TL(a.c,FX),TL(o.c,IX),s.a.c.length=0,HA(s.a,r.c),HA(s.a,fN(i.c)),HA(s.a,a.c),HA(s.a,fN(o.c)),s}function vst(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h;for(t.Tg(xgt,1),m=k(P(Y(e,(aR(),y3)))),s=k(P(Y(e,(tR(),D3)))),c=F(Y(e,E3),104),iVe((!e.a&&(e.a=new I(p7,e,10,11)),e.a)),d=xot((!e.a&&(e.a=new I(p7,e,10,11)),e.a),m,s),!e.a&&(e.a=new I(p7,e,10,11)),u=new D(d);u.a0&&(e.a=c+(m-1)*a,t.c.b+=e.a,t.f.b+=e.a)),h.a.gc()!=0&&(p=new cEe(1,a),m=rct(p,t,h,g,t.f.b+c-t.c.b),m>0&&(t.f.b+=c+(m-1)*a))}function bst(e,t,n){var i,a,o,s,c,l,u,d=k(P(q(e,(Yz(),A0)))),f,p,m,h,g,_,v,y,b,x;for(i=k(P(q(e,yAt))),p=new oo,G(p,A0,d+i),u=t,v=u.d,g=u.c.i,y=u.d.i,_=ame(g.c),b=ame(y.c),a=new kd,f=_;f<=b;f++)c=new IP(e),ul(c,(_L(),qX)),G(c,(X(),M$),u),G(c,_0,(VF(),t5)),G(c,M0,p),m=F(zx(e.b,f),25),f==_?fF(c,m.a.c.length-n,m):Xw(c,m),x=k(P(q(u,B1))),x<0&&(x=0,G(u,B1,x)),c.o.b=x,h=r.Math.floor(x/2),s=new mI,RI(s,(Lz(),N5)),Qw(s,c),s.n.b=h,l=new mI,RI(l,p5),Qw(l,c),l.n.b=h,Zw(u,s),o=new hw,TA(o,u),G(o,K1,null),Yw(o,l),Zw(o,v),VQe(c,u,o),Vd(a.c,o),u=o;return a}function xst(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h=t.b.c.length,g,_,v,y;if(!(h<3)){for(p=H(q9,vV,30,h,15,1),d=0,u=new D(t.b);u.ao)&&PS(e.b,F(g.b,17));++s}a=o}}}function Tz(e,t){var n,r,i,a,o,s,c=F(gI(e,(Lz(),N5)).Jc().Pb(),12).e,l,u,d,f,p=F(gI(e,p5).Jc().Pb(),12).g,m,h,g,_,v,y;for(s=c.c.length,y=vT(F(zx(e.j,0),12));s-->0;){for(h=(gT(0,c.c.length),F(c.c[0],17)),i=(gT(0,p.c.length),F(p.c[0],17)),v=i.d.e,a=VD(v,i,0),AMe(h,i.d,a),Yw(i,null),Zw(i,null),m=h.a,t&&Sx(m,new Sv(y)),r=oP(i.a,0);r.b!=r.d.c;)n=F(YT(r),8),Sx(m,new Sv(n));for(_=h.b,f=new D(i.b);f.a-2;default:return!1}switch(t=e.Pj(),e.p){case 0:return t!=null&&Xp(db(t))!=tv(e.k,0);case 1:return t!=null&&F(t,221).a!=$x(e.k)<<24>>24;case 2:return t!=null&&F(t,180).a!=($x(e.k)&iV);case 6:return t!=null&&tv(F(t,190).a,e.k);case 5:return t!=null&&F(t,15).a!=$x(e.k);case 7:return t!=null&&F(t,191).a!=$x(e.k)<<16>>16;case 3:return t!=null&&k(P(t))!=e.j;case 4:return t!=null&&F(t,164).a!=e.j;default:return t==null?e.n!=null:!lM(t,e.n)}}function Ez(e,t,n){var r,i,a,o;return e.ml()&&e.ll()&&(o=vTe(e,F(n,57)),M(o)!==M(n))?(e.vj(t),e.Bj(t,_Le(e,t,o)),e.$k()&&(a=(i=F(n,52),e.kl()?e.il()?i.Qh(e.b,NP(F(yO(Cw(e.b),e.Jj()),19)).n,F(yO(Cw(e.b),e.Jj()).Fk(),29).ik(),null):i.Qh(e.b,mN(i.Ah(),NP(F(yO(Cw(e.b),e.Jj()),19))),null,null):i.Qh(e.b,-1-e.Jj(),null,null)),!F(o,52).Mh()&&(a=(r=F(o,52),e.kl()?e.il()?r.Oh(e.b,NP(F(yO(Cw(e.b),e.Jj()),19)).n,F(yO(Cw(e.b),e.Jj()).Fk(),29).ik(),a):r.Oh(e.b,mN(r.Ah(),NP(F(yO(Cw(e.b),e.Jj()),19))),null,a):r.Oh(e.b,-1-e.Jj(),null,a))),a&&a.mj()),Ev(e.b)&&e.Hj(e.Gj(9,n,o,t,!1)),o):n}function Tst(e){for(var t,n,r=new kd,i,a,o=new D(e.e.a),s,c,l,u;o.a0&&(s=r.Math.max(s,CVe(e.C.b+i.d.b,a))),d=i,f=a,p=o;e.C&&e.C.c>0&&(m=p+e.C.c,u&&(m+=d.d.c),s=r.Math.max(s,(Uv(),ok(wH),r.Math.abs(f-1)<=wH||f==1?0:m/(1-f)))),n.n.b=0,n.a.a=s}}function Dst(e,t){var n=F(DC(e.b,t),127),i,a,o,s,c,l=F(F(zE(e.r,t),22),83),u,d,f,p,m;if(l.dc())n.n.d=0,n.n.a=0;else{for(u=e.u.Gc((BI(),c5)),s=0,e.A.Gc((AN(),z5))&&Htt(e,t),c=l.Jc(),d=null,p=0,f=0;c.Ob();)i=F(c.Pb(),115),o=k(P(i.b.mf((Qy(),eX)))),a=i.b.Kf().b,d?(m=f+d.d.a+e.w+i.d.d,s=r.Math.max(s,(Uv(),ok(wH),r.Math.abs(p-o)<=wH||p==o||isNaN(p)&&isNaN(o)?0:m/(o-p)))):e.C&&e.C.d>0&&(s=r.Math.max(s,CVe(e.C.d+i.d.d,o))),d=i,p=o,f=a;e.C&&e.C.a>0&&(m=f+e.C.a,u&&(m+=d.d.a),s=r.Math.max(s,(Uv(),ok(wH),r.Math.abs(p-1)<=wH||p==1?0:m/(1-p)))),n.n.d=0,n.a.b=s}}function Ost(e,t,n){var r,i,a,o,s,c;for(this.g=e,s=t.d.length,c=n.d.length,this.d=H(UX,OU,9,s+c,0,1),o=0;o0?AO(this,this.f/this.a):cy(t.g,t.d[0]).a!=null&&cy(n.g,n.d[0]).a!=null?AO(this,(k(cy(t.g,t.d[0]).a)+k(cy(n.g,n.d[0]).a))/2):cy(t.g,t.d[0]).a==null?cy(n.g,n.d[0]).a!=null&&AO(this,cy(n.g,n.d[0]).a):AO(this,cy(t.g,t.d[0]).a)}function kst(e,t,n,r,i,a,o,s){var c,l,u,d,f,p,m=!1,h,g,_;if(l=r9e(n.q,t.f+t.b-n.q.f),p=r.f>t.b&&s,_=i-(n.q.e+l-o),d=(c=$R(r,_,!1),c.a),p&&d>r.f)return!1;if(p){for(f=0,g=new D(t.d);g.a=(gT(a,e.c.length),F(e.c[a],186)).e,!p&&d>t.b&&!u)?!1:((u||p||d<=t.b)&&(u&&d>t.b?(n.d=d,SD(n,R2e(n,d))):(X$e(n.q,l),n.c=!0),SD(r,i-(n.s+n.r)),OP(r,n.q.e+n.q.d,t.f),hk(t,r),e.c.length>a&&(_F((gT(a,e.c.length),F(e.c[a],186)),r),(gT(a,e.c.length),F(e.c[a],186)).a.c.length==0&&WE(e,a)),m=!0),m)}function Ast(e,t){var n,r,i,a,o,s,c,l,u,d;for(e.a=new SEe(PUe(C8)),r=new D(t.a);r.a0&&(_T(0,n.length),n.charCodeAt(0)!=47)))throw O(new qp(`invalid opaquePart: `+n));if(e&&!(t!=null&&ph(A7,t.toLowerCase()))&&n!=null&&iN(n,O7,k7)||e&&t!=null&&ph(A7,t.toLowerCase())&&!d1e(n))throw O(new qp(Ivt+n));if(!cqe(r))throw O(new qp(`invalid device: `+r));if(!rGe(i))throw o=i==null?`invalid segments: null`:`invalid segment: `+BWe(i),O(new qp(o));if(a!=null&&vv(a,QF(35))!=-1)throw O(new qp(`invalid query: `+a))}function Fst(e,t,n){var r,i,a,o,s,c,l,u,d,f=new Sv(e.o),p,m,h,g,_=t.a/f.a;if(s=t.b/f.b,h=t.a-f.a,a=t.b-f.b,n)for(i=M(q(e,(Yz(),_0)))===M((VF(),t5)),m=new D(e.j);m.a=1&&(g-o>0&&d>=0?(c.n.a+=h,c.n.b+=a*o):g-o<0&&u>=0&&(c.n.a+=h*g,c.n.b+=a));e.o.a=t.a,e.o.b=t.b,G(e,(Yz(),l0),(AN(),r=F(Um(B5),10),new Jb(r,F(Ob(r,r.length),10),0)))}function Ist(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;if(n.Tg(`Network simplex layering`,1),e.b=t,v=F(q(t,(Yz(),H0)),15).a*4,_=e.b.a,_.c.length<1)n.Ug();else{for(o=Lnt(e,_),g=null,a=oP(o,0);a.b!=a.d.c;){for(i=F(YT(a),16),c=v*Nw(r.Math.sqrt(i.gc())),s=urt(i),CR(Ice(Rce(Lce(Qb(s),c),g),!0),n.dh(1)),p=e.b.b,h=new D(s.a);h.a1)for(g=H(q9,vV,30,e.b.b.c.length,15,1),f=0,u=new D(e.b.b);u.a0?($N(e,n,0),n.a+=String.fromCharCode(r),i=FJe(t,a),$N(e,n,i),a+=i-1):r==39?a+10&&m.a<=0){c.c.length=0,Vd(c.c,m);break}p=m.i-m.d,p>=s&&(p>s&&(c.c.length=0,s=p),Vd(c.c,m))}c.c.length!=0&&(o=F(zx(c,DP(i,c.c.length)),116),y.a.Ac(o),o.g=u++,Nit(o,t,n,r),c.c.length=0)}for(g=e.c.length+1,f=new D(e);f.aRV||t.o==K2&&u=s&&i<=c)s<=i&&a<=c?(n[u++]=i,n[u++]=a,r+=2):s<=i?(n[u++]=i,n[u++]=c,e.b[r]=c+1,o+=2):a<=c?(n[u++]=s,n[u++]=a,r+=2):(n[u++]=s,n[u++]=c,e.b[r]=c+1);else if(cXB)&&c<10);Vce(e.c,new ht),Kst(e),NTe(e.c),gst(e.f)}function Zst(e,t){var n,r,i,a,o,s,c,l,u,d,f;switch(e.k.g){case 1:if(r=F(q(e,(X(),M$)),17),n=F(q(r,sEt),79),n?Xp(db(q(r,B$)))&&(n=QUe(n)):n=new qf,l=F(q(e,E$),12),l){if(u=lj(W(A(h6,1),OB,8,0,[l.i.n,l.n,l.a])),t<=u.a)return u.b;bE(n,u,n.a,n.a.a)}if(d=F(q(e,D$),12),d){if(f=lj(W(A(h6,1),OB,8,0,[d.i.n,d.n,d.a])),f.a<=t)return f.b;bE(n,f,n.c.b,n.c)}if(n.b>=2){for(c=oP(n,0),o=F(YT(c),8),s=F(YT(c),8);s.a0&&nj(l,!0,(yM(),b8)),s.k==(_L(),GX)&&WEe(l),TC(e.f,s,t))}function $st(e,t){var n,i,a,o,s,c,l,u=LV,d=LV,f,p,m,h,g,_,v,y;for(c=RV,l=RV,p=new D(t.i);p.a=e.j?(++e.j,fy(e.b,K(1)),fy(e.c,u)):(r=e.d[t.p][1],CE(e.b,l,K(F(zx(e.b,l),15).a+1-r)),CE(e.c,l,k(P(zx(e.c,l)))+u-r*e.f)),(e.r==(hR(),p2)&&(F(zx(e.b,l),15).a>e.k||F(zx(e.b,l-1),15).a>e.k)||e.r==m2&&(k(P(zx(e.c,l)))>e.n||k(P(zx(e.c,l-1)))>e.n))&&(c=!1),o=new fS(Sy(UM(t).a.Jc(),new f));sL(o);)a=F(FE(o),17),s=a.c.i,e.g[s.p]==l&&(d=ect(e,s),i+=F(d.a,15).a,c&&=Xp(db(d.b)));return e.g[t.p]=l,i+=e.d[t.p][0],new B_(K(i),(ky(),!!c))}function tct(e,t,n){var r,i,a,o,s,c,l,u,d,f=e.c[t],p=e.c[n],m=F(q(f,(X(),S$)),16),h,g,_,v,y,b,x,S;return m&&m.gc()!=0&&m.Gc(p)||(h=f.k!=(_L(),qX)&&p.k!=qX,g=F(q(f,x$),9),_=F(q(p,x$),9),v=g!=_,y=!!g&&g!=f||!!_&&_!=p,b=UP(f,(Lz(),m5)),x=UP(p,j5),y|=UP(f,j5)||UP(p,m5),S=y&&v||b||x,h&&S)||f.k==(_L(),XX)&&p.k==YX||p.k==(_L(),XX)&&f.k==YX?!1:(u=e.c[t],a=e.c[n],i=o$e(e.e,u,a,(Lz(),N5)),c=o$e(e.i,u,a,p5),n9e(e.f,u,a),l=fWe(e.b,u,a)+F(i.a,15).a+F(c.a,15).a+e.f.d,s=fWe(e.b,a,u)+F(i.b,15).a+F(c.b,15).a+e.f.b,e.a&&(d=F(q(u,M$),12),o=F(q(a,M$),12),r=XZe(e.g,d,o),l+=F(r.a,15).a,s+=F(r.b,15).a),l>s)}function nct(e,t){var n=k(P(q(t,(Yz(),D0)))),r,i,a,o;n<2&&G(t,D0,2),r=F(q(t,M1),86),r==(yM(),x8)&&G(t,M1,NM(t)),i=F(q(t,dAt),15),i.a==0?G(t,(X(),R$),new XM):G(t,(X(),R$),new _E(i.a)),a=db(q(t,i0)),a??G(t,i0,(ky(),M(q(t,L1))===M((CM(),k8)))),Eh(new Hx(null,new hT(t.a,16)),new vu(e)),Eh(cO(new Hx(null,new hT(t.b,16)),new ut),new yu(e)),o=new Nst(t),G(t,(X(),U$),o),kC(e.a),zS(e.a,(rI(),CX),F(q(t,j1),188)),zS(e.a,wX,F(q(t,X1),188)),zS(e.a,TX,F(q(t,A1),188)),zS(e.a,EX,F(q(t,c0),188)),zS(e.a,DX,hHe(F(q(t,L1),222))),fme(e.a,Zut(t)),G(t,L$,xz(e.a,t))}function rct(e,t,n,i,a){var o,s,c,l,u,d,f=new Ad,p,m,h,g,_,v;for(s=new kd,B4e(e,n,e.d.zg(),s,f),B4e(e,i,e.d.Ag(),s,f),e.b=.2*(g=X8e(cO(new Hx(null,new hT(s,16)),new Rte)),_=X8e(cO(new Hx(null,new hT(s,16)),new Li)),r.Math.min(g,_)),o=0,c=0;c=2&&(v=f7e(s,!0,p),!e.e&&(e.e=new hoe(e)),NJe(e.e,v,s,e.b)),F1e(s,p),fct(s),m=-1,d=new D(s);d.a0&&(n+=c.n.a+c.o.a/2,++d),m=new D(c.j);m.a0&&(n/=d),_=H(Z9,UV,30,r.a.c.length,15,1),s=0,l=new D(r.a);l.a-1){for(a=oP(c,0);a.b!=a.d.c;)i=F(YT(a),132),i.v=s;for(;c.b!=0;)for(i=F(pF(c,0),132),n=new D(i.i);n.a-1){for(o=new D(c);o.a0)&&(_l(l,r.Math.min(l.o,a.o-1)),gl(l,l.i-1),l.i==0&&Vd(c.c,l))}}function pct(e,t,n,i,a){var o,s,c,l=LV;return s=!1,c=Fat(e,Pb(new j(t.a,t.b),e),Nb(new j(n.a,n.b),a),Pb(new j(i.a,i.b),n)),o=!!c&&!(r.Math.abs(c.a-e.a)<=gK&&r.Math.abs(c.b-e.b)<=gK||r.Math.abs(c.a-t.a)<=gK&&r.Math.abs(c.b-t.b)<=gK),c=Fat(e,Pb(new j(t.a,t.b),e),n,a),c&&((r.Math.abs(c.a-e.a)<=gK&&r.Math.abs(c.b-e.b)<=gK)==(r.Math.abs(c.a-t.a)<=gK&&r.Math.abs(c.b-t.b)<=gK)||o?l=r.Math.min(l,dC(Pb(c,n))):s=!0),c=Fat(e,Pb(new j(t.a,t.b),e),i,a),c&&(s||(r.Math.abs(c.a-e.a)<=gK&&r.Math.abs(c.b-e.b)<=gK)==(r.Math.abs(c.a-t.a)<=gK&&r.Math.abs(c.b-t.b)<=gK)||o)&&(l=r.Math.min(l,dC(Pb(c,i)))),l}function mct(e){Uh(e,new qF(Cm(Em(Sm(Tm(wm(new Ba,dU),cpt),`Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths.`),new ct),UH))),V(e,dU,ZH,cP(iCt)),V(e,dU,$H,(ky(),!0)),V(e,dU,rU,cP(sCt)),V(e,dU,fU,cP(cCt)),V(e,dU,nU,cP(lCt)),V(e,dU,iU,cP(oCt)),V(e,dU,eU,cP(uCt)),V(e,dU,aU,cP(dCt)),V(e,dU,rpt,cP(rCt)),V(e,dU,apt,cP(tCt)),V(e,dU,opt,cP(nCt)),V(e,dU,spt,cP(aCt)),V(e,dU,ipt,cP(yX))}function hct(e){for(var t=null,n,r=new D(e),i,a,o,s,c;r.a0&&n.c==0&&(!t&&(t=new kd),Vd(t.c,n));if(t)for(;t.c.length!=0;){if(n=F(WE(t,0),239),n.b&&n.b.c.length>0){for(a=(!n.b&&(n.b=new kd),new D(n.b));a.aVD(e,n,0))return new B_(i,n)}else if(k(cy(i.g,i.d[0]).a)>k(cy(n.g,n.d[0]).a))return new B_(i,n)}for(s=(!n.e&&(n.e=new kd),n.e).Jc();s.Ob();)o=F(s.Pb(),239),c=(!o.b&&(o.b=new kd),o.b),tT(0,c.c.length),Tg(c.c,0,n),o.c==c.c.length&&Vd(t.c,o)}return null}function Dz(e,t){var n,r,i,a,o,s,c,l,u;if(t.e==5)Yst(e,t);else if(l=t,l.b!=null&&e.b!=null){for(dL(e),gz(e),dL(l),gz(l),n=H(q9,vV,30,e.b.length+l.b.length,15,1),u=0,r=0,o=0;r=s&&i<=c)s<=i&&a<=c?r+=2:s<=i?(e.b[r]=c+1,o+=2):a<=c?(n[u++]=i,n[u++]=s-1,r+=2):(n[u++]=i,n[u++]=s-1,e.b[r]=c+1,o+=2);else if(c0),F(u.a.Xb(u.c=--u.b),17));a!=r&&u.b>0;)e.a[a.p]=!0,e.a[r.p]=!0,a=(tb(u.b>0),F(u.a.Xb(u.c=--u.b),17));u.b>0&&_C(u)}}function yct(e,t,n){var i,a,o,s,c,l,u,d,f,p;if(n)for(i=-1,d=new FT(t,0);d.b0?i-=864e5:i+=864e5,c=new vve(BM(_A(t.q.getTime()),i))),u=new _m,l=e.a.length,a=0;a=97&&r<=122||r>=65&&r<=90){for(o=a+1;o=l)throw O(new qp(`Missing trailing '`));o+1=14&&u<=16))?t.a._b(r)?(n.a?ov(n.a,n.b):n.a=new Ey(n.d),iv(n.a,`[...]`)):(s=zO(r),l=new Vx(t),KE(n,wct(s,l))):N(r,171)?KE(n,S3e(F(r,171))):N(r,195)?KE(n,A1e(F(r,195))):N(r,201)?KE(n,w2e(F(r,201))):N(r,2076)?KE(n,j1e(F(r,2076))):N(r,54)?KE(n,x3e(F(r,54))):N(r,585)?KE(n,J3e(F(r,585))):N(r,831)?KE(n,b3e(F(r,831))):N(r,108)&&KE(n,y3e(F(r,108))):KE(n,r==null?hB:eN(r));return n.a?n.e.length==0?n.a.a:n.a.a+(``+n.e):n.c}function Oz(e,t){var n,r,i,a=e.F;t==null?(e.F=null,Ij(e,null)):(e.F=(bC(t),t),r=vv(t,QF(60)),r==-1?(i=t,vv(t,QF(46))==-1&&(r=vv(t,QF(91)),r!=-1&&(i=(uD(0,r,t.length),t.substr(0,r))),!zb(i,oB)&&!zb(i,Mq)&&!zb(i,Nq)&&!zb(i,Pq)&&!zb(i,Fq)&&!zb(i,Iq)&&!zb(i,Lq)&&!zb(i,Rq)?(i=Xvt,r!=-1&&(i+=``+(_T(r,t.length+1),t.substr(r)))):i=t),Ij(e,i),i==t&&(e.F=e.D)):(i=(uD(0,r,t.length),t.substr(0,r)),vv(t,QF(46))==-1&&!zb(i,oB)&&!zb(i,Mq)&&!zb(i,Nq)&&!zb(i,Pq)&&!zb(i,Fq)&&!zb(i,Iq)&&!zb(i,Lq)&&!zb(i,Rq)&&(i=Xvt),n=Cy(t,QF(62)),n!=-1&&(i+=``+(_T(n+1,t.length+1),t.substr(n+1))),Ij(e,i))),e.Db&4&&!(e.Db&1)&&fA(e,new CS(e,1,5,a,t))}function Tct(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m;if(e.c=e.e,m=db(q(t,(Yz(),fAt))),p=m==null||(bC(m),m),a=F(q(t,(X(),g$)),22).Gc((YL(),LQ)),i=F(q(t,_0),102),n=i!=(VF(),e5)&&i!=n5&&i!=t5,p&&(n||!a)){for(d=new D(t.a);d.a=0)return i=YKe(e,(uD(1,o,t.length),t.substr(1,o-1))),u=(uD(o+1,c,t.length),t.substr(o+1,c-(o+1))),Aut(e,u,i)}else{if(n=-1,Tbt??=RegExp(`\\d`),Tbt.test(String.fromCharCode(s))&&(n=pye(t,QF(46),c-1),n>=0)){r=F(RE(e,fze(e,(uD(1,n,t.length),t.substr(1,n-1))),!1),61),l=0;try{l=ER((_T(n+1,t.length+1),t.substr(n+1)),ZB,lB)}catch(e){throw e=WA(e),N(e,131)?(a=e,O(new XD(a))):O(e)}if(l>16==-10?n=F(e.Cb,293).Wk(t,n):e.Db>>16==-15&&(!t&&(t=(nB(),e9)),!l&&(l=(nB(),e9)),e.Cb.Vh()&&(c=new ZD(e.Cb,1,13,l,t,EP(qD(F(e.Cb,62)),e),!1),n?n.lj(c):n=c));else if(N(e.Cb,88))e.Db>>16==-23&&(N(t,88)||(t=(nB(),t9)),N(l,88)||(l=(nB(),t9)),e.Cb.Vh()&&(c=new ZD(e.Cb,1,10,l,t,EP(cE(F(e.Cb,29)),e),!1),n?n.lj(c):n=c));else if(N(e.Cb,446))for(s=F(e.Cb,835),o=(!s.b&&(s.b=new vd(new np)),s.b),a=(r=new lA(new Ll(o.a).a),new yd(r));a.a.b;)i=F(Tk(a.a).jd(),87),n=kz(i,SL(i,s),n)}return n}function Oct(e,t){var n,r,i,a,o=Xp(db(Y(e,(Yz(),W1)))),s,c,l,u,d,f=F(Y(e,y0),22);for(c=!1,l=!1,d=new yy((!e.c&&(e.c=new I(m7,e,9,9)),e.c));d.e!=d.i.gc()&&(!c||!l);){for(a=F(lP(d),125),s=0,i=DS(ik(W(A(RJ,1),mB,20,0,[(!a.d&&(a.d=new Lb(i7,a,8,5)),a.d),(!a.e&&(a.e=new Lb(i7,a,7,4)),a.e)])));sL(i)&&(r=F(FE(i),85),u=o&&qI(r)&&Xp(db(Y(r,G1))),n=Hot((!r.b&&(r.b=new Lb(r7,r,4,7)),r.b),a)?e==qw(GF(F(U((!r.c&&(r.c=new Lb(r7,r,5,8)),r.c),0),84))):e==qw(GF(F(U((!r.b&&(r.b=new Lb(r7,r,4,7)),r.b),0),84))),!((u||n)&&(++s,s>1))););(s>0||f.Gc((BI(),c5))&&(!a.n&&(a.n=new I(f7,a,1,7)),a.n).i>0)&&(c=!0),s>1&&(l=!0)}c&&t.Ec((YL(),LQ)),l&&t.Ec((YL(),RQ))}function kct(e){var t,n,i,a,o,s,c,l,u,d,f,p=F(Y(e,(Qz(),q6)),22);if(p.dc())return null;if(c=0,s=0,p.Gc((AN(),R5))){for(d=F(Y(e,r8),102),i=2,n=2,a=2,o=2,t=qw(e)?F(Y(qw(e),I6),86):F(Y(e,I6),86),u=new yy((!e.c&&(e.c=new I(m7,e,9,9)),e.c));u.e!=u.i.gc();)if(l=F(lP(u),125),f=F(Y(l,a8),64),f==(Lz(),M5)&&(f=kit(l,t),_P(l,a8,f)),d==(VF(),t5))switch(f.g){case 1:i=r.Math.max(i,l.i+l.g);break;case 2:n=r.Math.max(n,l.j+l.f);break;case 3:a=r.Math.max(a,l.i+l.g);break;case 4:o=r.Math.max(o,l.j+l.f)}else switch(f.g){case 1:i+=l.g+2;break;case 2:n+=l.f+2;break;case 3:a+=l.g+2;break;case 4:o+=l.f+2}c=r.Math.max(i,a),s=r.Math.max(n,o)}return Rz(e,c,s,!0,!0)}function Act(e,t){var n,i,a=null,o,s,c,l,u,d,f,p,m,h,g;for(i=new D(t.a);i.a1)for(a=e.e.b,Sx(e.e,l),c=l.a.ec().Jc();c.Ob();)s=F(c.Pb(),9),TC(e.c,s,K(a))}}function Mct(e,t,n,a){var o,s=new P6e(t),c,l,u,d,f,p=ftt(e,t,s),m,h=r.Math.max(k(P(q(t,(Yz(),B1)))),1);for(f=new D(p.a);f.a=0){for(c=null,s=new FT(u.a,l+1);s.b0,l?l&&(f=_.p,o?++f:--f,d=F(zx(_.c.a,f),9),r=mUe(d),p=!(K7e(r,S,n[0])||aTe(r,S,n[0]))):p=!0),m=!1,x=t.D.i,x&&x.c&&s.e&&(u=o&&x.p>0||!o&&x.p=0&&hs?1:Db(!1,isNaN(s)))<0&&(ok(gG),(r.Math.abs(s-1)<=gG||s==1?0:s<1?-1:s>1?1:Db(isNaN(s),!1))<0)&&(ok(gG),(r.Math.abs(0-c)<=gG||c==0?0:0c?1:Db(!1,isNaN(c)))<0)&&(ok(gG),(r.Math.abs(c-1)<=gG||c==1?0:c<1?-1:c>1?1:Db(isNaN(c),!1))<0)),o)}function Vct(e){var t,n,i,a,o,s,c,l,u,d,f;for(e.j=H(q9,vV,30,e.g,15,1),e.o=new kd,Eh(cO(new Hx(null,new hT(e.e.b,16)),new Ci),new uoe(e)),e.a=H(J9,_H,30,e.b,16,1),cM(new Hx(null,new hT(e.e.b,16)),new foe(e)),i=(f=new kd,Eh(zC(cO(new Hx(null,new hT(e.e.b,16)),new wi),new doe(e)),new mfe(e,f)),f),l=new D(i);l.a=u.c.c.length?KNe((_L(),YX),qX):KNe((_L(),qX),qX),d*=2,o=n.a.g,n.a.g=r.Math.max(o,o+(d-o)),s=n.b.g,n.b.g=r.Math.max(s,s+(d-s)),a=t}}function Mz(e,t){var n;if(e.e)throw O(new Jp((ub(BY),pH+BY.k+mH)));if(!Gde(e.a,t))throw O(new Op(Eft+t+Dft));if(t==e.d)return e;switch(n=e.d,e.d=t,n.g){case 0:switch(t.g){case 2:XP(e);break;case 1:sj(e),XP(e);break;case 4:MF(e),XP(e);break;case 3:MF(e),sj(e),XP(e)}break;case 2:switch(t.g){case 1:sj(e),cR(e);break;case 4:MF(e),XP(e);break;case 3:MF(e),sj(e),XP(e)}break;case 1:switch(t.g){case 2:sj(e),cR(e);break;case 4:sj(e),MF(e),XP(e);break;case 3:sj(e),MF(e),sj(e),XP(e)}break;case 4:switch(t.g){case 2:MF(e),XP(e);break;case 1:MF(e),sj(e),XP(e);break;case 3:sj(e),cR(e)}break;case 3:switch(t.g){case 2:sj(e),MF(e),XP(e);break;case 1:sj(e),MF(e),sj(e),XP(e);break;case 4:sj(e),cR(e)}}return e}function Nz(e,t){var n;if(e.d)throw O(new Jp((ub(jX),pH+jX.k+mH)));if(!Wde(e.a,t))throw O(new Op(Eft+t+Dft));if(t==e.c)return e;switch(n=e.c,e.c=t,n.g){case 0:switch(t.g){case 2:fj(e);break;case 1:oj(e),fj(e);break;case 4:NF(e),fj(e);break;case 3:NF(e),oj(e),fj(e)}break;case 2:switch(t.g){case 1:oj(e),lR(e);break;case 4:NF(e),fj(e);break;case 3:NF(e),oj(e),fj(e)}break;case 1:switch(t.g){case 2:oj(e),lR(e);break;case 4:oj(e),NF(e),fj(e);break;case 3:oj(e),NF(e),oj(e),fj(e)}break;case 4:switch(t.g){case 2:NF(e),fj(e);break;case 1:NF(e),oj(e),fj(e);break;case 3:oj(e),lR(e)}break;case 3:switch(t.g){case 2:oj(e),NF(e),fj(e);break;case 1:oj(e),NF(e),oj(e),fj(e);break;case 4:oj(e),lR(e)}}return e}function Hct(e){var t,n,r,i,a,o,s,c,l,u,d=e.b,f,p,m,h,g,_,v,y;for(u=new FT(d,0),Eb(u,new nC(e)),v=!1,o=1;u.b `):t.a+=`Root `,n=e.Ah().zb,zb(n.substr(0,3),`Elk`)?ov(t,(_T(3,n.length+1),n.substr(3))):t.a+=``+n,i=e.ih(),i)ov((t.a+=` `,t),i);else if(N(e,362)&&(l=F(e,157).a,l))ov((t.a+=` `,t),l);else{for(o=new yy(e.jh());o.e!=o.i.gc();)if(a=F(lP(o),157),l=a.a,l){ov((t.a+=` `,t),l);return}if(N(e,271)&&(r=F(e,85),!r.b&&(r.b=new Lb(r7,r,4,7)),r.b.i!=0&&(!r.c&&(r.c=new Lb(r7,r,5,8)),r.c.i!=0))){for(t.a+=` (`,s=new Hy((!r.b&&(r.b=new Lb(r7,r,4,7)),r.b));s.e!=s.i.gc();)s.e>0&&(t.a+=pB),Pz(F(lP(s),174),t);for(t.a+=EU,c=new Hy((!r.c&&(r.c=new Lb(r7,r,5,8)),r.c));c.e!=c.i.gc();)c.e>0&&(t.a+=pB),Pz(F(lP(c),174),t);t.a+=`)`}}}function Uct(e,t,n){for(var i,a,o,s,c,l=new yy((!e.a&&(e.a=new I(p7,e,10,11)),e.a)),u,d;l.e!=l.i.gc();)for(c=F(lP(l),26),a=new fS(Sy(bL(c).a.Jc(),new f));sL(a);){if(i=F(FE(a),85),!i.b&&(i.b=new Lb(r7,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Lb(r7,i,5,8)),i.c.i<=1)))throw O(new im(`Graph must not contain hyperedges.`));if(!rL(i)&&c!=GF(F(U((!i.c&&(i.c=new Lb(r7,i,5,8)),i.c),0),84)))for(u=new zve,TA(u,i),G(u,(Nk(),_X),i),Aie(u,F(Y_(nS(n.f,c)),155)),ll(u,F(tC(n,GF(F(U((!i.c&&(i.c=new Lb(r7,i,5,8)),i.c),0),84))),155)),fy(t.c,u),s=new yy((!i.n&&(i.n=new I(f7,i,1,7)),i.n));s.e!=s.i.gc();)o=F(lP(s),157),d=new YNe(u,o.a),TA(d,o),G(d,_X,o),d.e.a=r.Math.max(o.g,1),d.e.b=r.Math.max(o.f,1),Oat(d),fy(t.d,d)}}function Wct(e,t,n){var i,a,o,s,c,l,u,d,f,p;switch(n.Tg(`Node promotion heuristic`,1),e.i=t,e.r=F(q(t,(Yz(),Y1)),243),e.r!=(hR(),d2)&&e.r!=f2?jlt(e):Net(e),d=F(q(e.i,Kkt),15).a,o=new Bn,e.r.g){case 2:case 1:hz(e,o);break;case 3:for(e.r=g2,hz(e,o),l=0,c=new D(e.b);c.ae.k&&(e.r=p2,hz(e,o));break;case 4:for(e.r=g2,hz(e,o),u=0,a=new D(e.c);a.ae.n&&(e.r=m2,hz(e,o));break;case 6:p=Nw(r.Math.ceil(e.g.length*d/100)),hz(e,new Nu(p));break;case 5:f=Nw(r.Math.ceil(e.e*d/100)),hz(e,new Tae(f));break;case 8:odt(e,!0);break;case 9:odt(e,!1);break;default:hz(e,o)}e.r!=d2&&e.r!=f2?P9e(e,t):tnt(e,t),n.Ug()}function Gct(e,t){var n,i,a,o,s,c,l,u,d,f=new blt(e),p,m,h,g,_,v,y,b;for(kke(f,t!=(yM(),S8)&&t!=v8),d=f.a,p=new Vf,a=(MO(),W(A(WY,1),Z,237,0,[VY,HY,UY])),s=0,l=a.length;s0&&(p.d+=d.n.d,p.d+=d.d),p.a>0&&(p.a+=d.n.a,p.a+=d.d),p.b>0&&(p.b+=d.n.b,p.b+=d.d),p.c>0&&(p.c+=d.n.c,p.c+=d.d),p}function Kct(e,t,n){var i,a,o,s,c,l,u,d,f,p=n.d,m,h;for(f=n.c,o=new j(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),s=o.b,u=new D(e.a);u.a0&&(e.c[t.c.p][t.p].d+=xL(e.i,24)*nH*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function Xct(e){for(var t,n,r,i,a,o,s,c,l,u,d,f,p,m=new D(e),h,g;m.ai.d,i.d=r.Math.max(i.d,t),c&&n&&(i.d=r.Math.max(i.d,i.a),i.a=i.d+a);break;case 3:n=t>i.a,i.a=r.Math.max(i.a,t),c&&n&&(i.a=r.Math.max(i.a,i.d),i.d=i.a+a);break;case 2:n=t>i.c,i.c=r.Math.max(i.c,t),c&&n&&(i.c=r.Math.max(i.b,i.c),i.b=i.c+a);break;case 4:n=t>i.b,i.b=r.Math.max(i.b,t),c&&n&&(i.b=r.Math.max(i.b,i.c),i.c=i.b+a)}}}function Qct(e,t){var n,r,i,a,o,s,c,l=``,u;return t.length==0?e.le(Xdt,eV,-1,-1):(u=AI(t),zb(u.substr(0,3),`at `)&&(u=(_T(3,u.length+1),u.substr(3))),u=u.replace(/\[.*?\]/g,``),o=u.indexOf(`(`),o==-1?(o=u.indexOf(`@`),o==-1?(l=u,u=``):(l=AI((_T(o+1,u.length+1),u.substr(o+1))),u=AI((uD(0,o,u.length),u.substr(0,o))))):(n=u.indexOf(`)`,o),l=(uD(o+1,n,u.length),u.substr(o+1,n-(o+1))),u=AI((uD(0,o,u.length),u.substr(0,o)))),o=vv(u,QF(46)),o!=-1&&(u=(_T(o+1,u.length+1),u.substr(o+1))),(u.length==0||zb(u,`Anonymous function`))&&(u=eV),s=Cy(l,QF(58)),i=pye(l,QF(58),s-1),c=-1,r=-1,a=Xdt,s!=-1&&i!=-1&&(a=(uD(0,i,l.length),l.substr(0,i)),c=Yge((uD(i+1,s,l.length),l.substr(i+1,s-(i+1)))),r=Yge((_T(s+1,l.length+1),l.substr(s+1)))),e.le(a,u,c,r))}function $ct(e){for(var t,n,r,i,a,o,s,c,l=new D(e),u,d;l.a0||u.j==N5&&u.e.c.length-u.g.c.length<0)){t=!1;break}for(i=new D(u.g);i.a=u&&S>=_&&(p+=h.n.b+g.n.b+g.a.b-x,++c));if(n)for(s=new D(y.e);s.a=u&&S>=_&&(p+=h.n.b+g.n.b+g.a.b-x,++c))}c>0&&(ee+=p/c,++m)}m>0?(t.a=a*ee/m,t.g=m):(t.a=0,t.g=0)}function tlt(e,t,n,r){var i,a,o,s=new blt(t),c;return s9e(s,r),i=!0,e&&e.nf((Qz(),I6))&&(a=F(e.mf((Qz(),I6)),86),i=a==(yM(),x8)||a==y8||a==b8),Ett(s,!1),kO(s.e.Pf(),new cbe(s,!1,i)),Iw(s,s.f,(MO(),VY),(Lz(),m5)),Iw(s,s.f,UY,j5),Iw(s,s.g,VY,N5),Iw(s,s.g,UY,p5),qYe(s,m5),qYe(s,j5),CDe(s,p5),CDe(s,N5),Sb(),o=s.A.Gc((AN(),I5))&&s.B.Gc((wR(),W5))?Gqe(s):null,o&&Uce(s.a,o),Zct(s),SZe(s),CZe(s),_ct(s),$rt(s),xQe(s),XN(s,m5),XN(s,j5),Ytt(s),Mot(s),n&&(aqe(s),SQe(s),XN(s,p5),XN(s,N5),c=s.B.Gc((wR(),G5)),u3e(s,c,m5),u3e(s,c,j5),d3e(s,c,p5),d3e(s,c,N5),Eh(new Hx(null,new hT(new zl(s.i),0)),new qe),Eh(zC(new Hx(null,uEe(s.r).a.oc()),new Je),new Ye),b1e(s),s.e.Nf(s.o),Eh(new Hx(null,uEe(s.r).a.oc()),new Xe)),s.o}function nlt(e){var t,n,i,a,o,s,c,l,u=LV,d,f,p,m,h,g;for(i=new D(e.a.b);i.a1)for(m=new Rot(h,b,i),wE(b,new Sfe(e,m)),Vd(s.c,m),f=b.a.ec().Jc();f.Ob();)d=F(f.Pb(),49),BD(o,d.b);if(c.a.gc()>1)for(m=new Rot(h,c,i),wE(c,new Cfe(e,m)),Vd(s.c,m),f=c.a.ec().Jc();f.Ob();)d=F(f.Pb(),49),BD(o,d.b)}}function clt(e,t){var n,i,a,o,s,c;if(F(q(t,(X(),g$)),22).Gc((YL(),LQ))){for(c=new D(t.a);c.a=0&&o0&&(F(DC(e.b,t),127).a.b=n)}function _lt(e,t,n){var r,i,a,o,s,c,l,u,d,f,p=0,m,h,g,_;for(r=new pf,a=new yy((!t.a&&(t.a=new I(p7,t,10,11)),t.a));a.e!=a.i.gc();)i=F(lP(a),26),Xp(db(Y(i,(Yz(),p0))))||(d=qw(i),ez(d)&&!Xp(db(Y(i,x1)))&&(_P(i,(X(),j$),K(p)),++p,lD(i,y1)&&PS(r,F(Y(i,y1),15))),ilt(e,i,n));for(G(n,(X(),A$),K(p)),G(n,i$,K(r.a.gc())),p=0,u=new yy((!t.b&&(t.b=new I(i7,t,12,3)),t.b));u.e!=u.i.gc();)c=F(lP(u),85),ez(t)&&(_P(c,j$,K(p)),++p),g=oI(c),_=U0e(c),f=Xp(db(Y(g,(Yz(),W1)))),h=!Xp(db(Y(c,p0))),m=f&&qI(c)&&Xp(db(Y(c,G1))),o=qw(g)==t&&qw(g)==qw(_),s=(qw(g)==t&&_==t)^(qw(_)==t&&g==t),h&&!m&&(s||o)&&_dt(e,c,t,n);if(qw(t))for(l=new yy(UDe(qw(t)));l.e!=l.i.gc();)c=F(lP(l),85),g=oI(c),g==t&&qI(c)&&(m=Xp(db(Y(g,(Yz(),W1))))&&Xp(db(Y(c,G1))),m&&_dt(e,c,t,n))}function vlt(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=new kd,ee,te,ne,C,re;for(m=new D(e.b);m.a=e.length)return{done:!0};var r=e[n++];return{value:[r,t.get(r)],done:!1}}}},dtt()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(e){return this.obj[`:`+e]},e.prototype.set=function(e,t){this.obj[`:`+e]=t},e.prototype[QV]=function(e){delete this.obj[`:`+e]},e.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),e}function Iz(){Iz=C,S4=new hd($ft),new hd(ept),new kb(`DEPTH`,K(0)),f4=new kb(`FAN`,K(0)),HMt=new kb(Dht,K(0)),E4=new kb(`ROOT`,(ky(),!1)),g4=new kb(`LEFTNEIGHBOR`,null),KMt=new kb(`RIGHTNEIGHBOR`,null),_4=new kb(`LEFTSIBLING`,null),T4=new kb(`RIGHTSIBLING`,null),d4=new kb(`DUMMY`,!1),new kb(`LEVEL`,K(0)),GMt=new kb(`REMOVABLE_EDGES`,new vh),D4=new kb(`XCOOR`,K(0)),O4=new kb(`YCOOR`,K(0)),v4=new kb(`LEVELHEIGHT`,0),b4=new kb(`LEVELMIN`,0),y4=new kb(`LEVELMAX`,0),p4=new kb(`GRAPH_XMIN`,0),m4=new kb(`GRAPH_YMIN`,0),UMt=new kb(`GRAPH_XMAX`,0),WMt=new kb(`GRAPH_YMAX`,0),VMt=new kb(`COMPACT_LEVEL_ASCENSION`,!1),u4=new kb(`COMPACT_CONSTRAINTS`,new kd),h4=new kb(`ID`,``),C4=new kb(`POSITION`,K(0)),w4=new kb(`PRELIM`,0),x4=new kb(`MODIFIER`,0),l4=new hd(tpt),c4=new hd(npt)}function Tlt(e){wit();var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(e==null)return null;if(d=e.length*8,d==0)return``;for(s=d%24,p=d/24|0,f=s==0?p:p+1,a=null,a=H(K9,nV,30,f*4,15,1),l=0,u=0,t=0,n=0,r=0,o=0,i=0,c=0;c>24,l=(t&3)<<24>>24,m=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,h=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,g=r&-128?(r>>6^252)<<24>>24:r>>6<<24>>24,a[o++]=M9[m],a[o++]=M9[h|l<<4],a[o++]=M9[u<<2|g],a[o++]=M9[r&63];return s==8?(t=e[i],l=(t&3)<<24>>24,m=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,a[o++]=M9[m],a[o++]=M9[l<<4],a[o++]=61,a[o++]=61):s==16&&(t=e[i],n=e[i+1],u=(n&15)<<24>>24,l=(t&3)<<24>>24,m=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,h=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,a[o++]=M9[m],a[o++]=M9[h|l<<4],a[o++]=M9[u<<2],a[o++]=61),IN(a,0,a.length)}function Elt(e,t){var n,i,a,o,s,c,l;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>ZB&&QNe(t,e.p-_V),s=t.q.getDate(),zw(t,1),e.k>=0&&cAe(t,e.k),e.c>=0?zw(t,e.c):e.k>=0?(l=new kUe(t.q.getFullYear()-_V,t.q.getMonth(),35),i=35-l.q.getDate(),zw(t,r.Math.min(i,s))):zw(t,s),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),bhe(t,e.f==24&&e.g?0:e.f),e.j>=0&&wFe(t,e.j),e.n>=0&&AIe(t,e.n),e.i>=0&&jpe(t,BM(VM(EF(_A(t.q.getTime()),rV),rV),e.i)),e.a&&(a=new eg,QNe(a,a.q.getFullYear()-_V-80),rg(_A(t.q.getTime()),_A(a.q.getTime()))&&QNe(t,a.q.getFullYear()-_V+100)),e.d>=0){if(e.c==-1)n=(7+e.d-t.q.getDay())%7,n>3&&(n-=7),c=t.q.getMonth(),zw(t,t.q.getDate()+n),t.q.getMonth()!=c&&zw(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>ZB&&(o=t.q.getTimezoneOffset(),jpe(t,BM(_A(t.q.getTime()),(e.o-o)*60*rV))),!0}function Dlt(e,t){var n,r,i=q(t,(X(),M$)),a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(N(i,206)){for(m=F(i,26),h=t.e,f=new Sv(t.c),a=t.d,f.a+=a.b,f.b+=a.d,b=F(Y(m,(Yz(),f0)),182),Ly(b,(wR(),H5))&&(p=F(Y(m,Qkt),104),cl(p,a.a),jie(p,a.d),Oie(p,a.b),kie(p,a.c)),n=new kd,u=new D(t.a);u.ar.c.length-1;)fy(r,new B_(pG,wht));n=F(q(i,P4),15).a,Ov(F(q(e,k4),86))?(i.e.ak(P((gT(n,r.c.length),F(r.c[n],49)).b))&&xl((gT(n,r.c.length),F(r.c[n],49)),i.e.a+i.f.a)):(i.e.bk(P((gT(n,r.c.length),F(r.c[n],49)).b))&&xl((gT(n,r.c.length),F(r.c[n],49)),i.e.b+i.f.b))}for(a=oP(e.b,0);a.b!=a.d.c;)i=F(YT(a),40),n=F(q(i,(zR(),P4)),15).a,G(i,(Iz(),b4),P((gT(n,r.c.length),F(r.c[n],49)).a)),G(i,y4,P((gT(n,r.c.length),F(r.c[n],49)).b));t.Ug()}function jlt(e){var t,n,i,a,o,s,c,l,u,d,p,m,h,g,_;for(e.o=k(P(q(e.i,(Yz(),L0)))),e.f=k(P(q(e.i,j0))),e.j=e.i.b.c.length,c=e.j-1,m=0,e.k=0,e.n=0,e.b=BE(H(lY,OB,15,e.j,0,1)),e.c=BE(H(sY,OB,346,e.j,7,1)),s=new D(e.i.b);s.a0&&fy(e.q,d),fy(e.p,d);t-=i,h=l+t,u+=t*e.f,CE(e.b,c,K(h)),CE(e.c,c,u),e.k=r.Math.max(e.k,h),e.n=r.Math.max(e.n,u),e.e+=t,t+=_}}function Mlt(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(t.b!=0){for(m=new vh,c=null,h=null,i=Nw(r.Math.floor(r.Math.log(t.b)*r.Math.LOG10E)+1),l=0,b=oP(t,0);b.b!=b.d.c;)for(v=F(YT(b),40),M(h)!==M(q(v,(Iz(),h4)))&&(h=fb(q(v,h4)),l=0),c=h==null?Bje(l++,i):h+Bje(l++,i),G(v,h4,c),_=(a=oP(new Zu(v).a.d,0),new Qu(a));Qm(_.a);)g=F(YT(_.a),65).c,bE(m,g,m.c.b,m.c),G(g,h4,c);for(p=new Ad,s=0;s0&&(x-=h),rst(s,x),d=0,m=new D(s.a);m.a0),c.a.Xb(c.c=--c.b)),l=.4*i*d,!o&&c.b0&&(c=(_T(0,t.length),t.charCodeAt(0)),c!=64)){if(c==37&&(d=t.lastIndexOf(`%`),l=!1,d!=0&&(d==f-1||(l=(_T(d+1,t.length),t.charCodeAt(d+1)==46))))){if(o=(uD(1,d,t.length),t.substr(1,d-1)),y=zb(`%`,o)?null:Wlt(o),r=0,l)try{r=ER((_T(d+2,t.length+1),t.substr(d+2)),ZB,lB)}catch(e){throw e=WA(e),N(e,131)?(s=e,O(new XD(s))):O(e)}for(g=KBe(e.Dh());g.Ob();)if(m=xA(g),N(m,505)&&(i=F(m,588),v=i.d,(y==null?v==null:zb(y,v))&&r--==0))return i;return null}if(u=t.lastIndexOf(`.`),p=u==-1?t:(uD(0,u,t.length),t.substr(0,u)),n=0,u!=-1)try{n=ER((_T(u+1,t.length+1),t.substr(u+1)),ZB,lB)}catch(e){if(e=WA(e),N(e,131))p=t;else throw O(e)}for(p=zb(`%`,p)?null:Wlt(p),h=KBe(e.Dh());h.Ob();)if(m=xA(h),N(m,197)&&(a=F(m,197),_=a.ve(),(p==null?_==null:zb(p,_))&&n--==0))return a;return null}return Ect(e,t)}function Blt(e){var t,n,r,i,a,o,s,c,l,u=new Ad,d,p,m,h,g,_,v,y;for(c=new Ow,r=new D(e.a.a.b);r.at.d.c){if(m=e.c[t.a.d],_=e.c[d.a.d],m==_)continue;zL(jh(Ah(Mh(kh(new vf,1),100),m),_))}}}}}function Vlt(e,t){var n,i,a,o,s,c,l,u,d,f,p=F(F(zE(e.r,t),22),83),m,h,g,_,v,y,b,x,S,ee;if(t==(Lz(),p5)||t==N5)glt(e,t);else{for(o=t==m5?(NA(),tX):(NA(),iX),x=t==m5?(lO(),QY):(lO(),XY),n=F(DC(e.b,t),127),i=n.i,a=i.c+OO(W(A(Z9,1),UV,30,15,[n.n.b,e.C.b,e.k])),v=i.c+i.b-OO(W(A(Z9,1),UV,30,15,[n.n.c,e.C.c,e.k])),s=zce(pbe(o),e.t),y=t==m5?RV:LV,f=p.Jc();f.Ob();)u=F(f.Pb(),115),!(!u.c||u.c.d.c.length<=0)&&(_=u.b.Kf(),g=u.e,m=u.c,h=m.i,h.b=(l=m.n,m.e.a+l.b+l.c),h.a=(c=m.n,m.e.b+c.d+c.a),xw(x,zft),m.f=x,gD(m,(jD(),YY)),h.c=g.a-(h.b-_.a)/2,S=r.Math.min(a,g.a),ee=r.Math.max(v,g.a+_.a),h.cee&&(h.c=ee-h.b),fy(s.d,new Owe(h,dKe(s,h))),y=t==m5?r.Math.max(y,g.b+u.b.Kf().b):r.Math.min(y,g.b));for(y+=t==m5?e.t:-e.t,b=Lqe((s.e=y,s)),b>0&&(F(DC(e.b,t),127).a.b=b),d=p.Jc();d.Ob();)u=F(d.Pb(),115),!(!u.c||u.c.d.c.length<=0)&&(h=u.c.i,h.c-=u.e.a,h.d-=u.e.b)}}function Hlt(e,t){az();var n,r,i,a,o,s,c=qj(e,0)<0,l,u,d,f,p,m,h;if(c&&(e=RD(e)),qj(e,0)==0)switch(t){case 0:return`0`;case 1:return KV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return p=new gm,t<0?p.a+=`0E+`:p.a+=`0E`,p.a+=t==ZB?`2147483648`:``+-t,p.a}u=18,d=H(K9,nV,30,u+1,15,1),n=u,h=e;do l=h,h=EF(h,10),d[--n]=$x(BM(48,HM(l,VM(h,10))))&iV;while(qj(h,0)!=0);if(i=HM(HM(HM(u,n),t),1),t==0)return c&&(d[--n]=45),IN(d,n,u-n);if(t>0&&qj(i,-6)>=0){if(qj(i,0)>=0){for(a=n+$x(i),s=u-1;s>=a;s--)d[s+1]=d[s];return d[++a]=46,c&&(d[--n]=45),IN(d,n,u-n+1)}for(o=2;rg(o,BM(RD(i),1));o++)d[--n]=48;return d[--n]=46,d[--n]=48,c&&(d[--n]=45),IN(d,n,u-n)}return m=n+1,r=u,f=new _m,c&&(f.a+=`-`),r-m>=1?(lC(f,d[n]),f.a+=`.`,f.a+=IN(d,n+1,u-n-1)):f.a+=IN(d,n,u-n),f.a+=`E`,qj(i,0)>0&&(f.a+=`+`),f.a+=``+vS(i),f.a}function Ult(e){Uh(e,new qF(Cm(Em(Sm(Tm(wm(new Ba,GG),`ELK Radial`),`A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.`),new vne),GG))),V(e,GG,oG,cP(vPt)),V(e,GG,GH,cP(SPt)),V(e,GG,rU,cP(fPt)),V(e,GG,fU,cP(pPt)),V(e,GG,nU,cP(mPt)),V(e,GG,iU,cP(dPt)),V(e,GG,eU,cP(hPt)),V(e,GG,aU,cP(_Pt)),V(e,GG,HG,cP(X4)),V(e,GG,VG,cP(Z4)),V(e,GG,BG,cP(yPt)),V(e,GG,UG,cP(e3)),V(e,GG,WG,cP(bPt)),V(e,GG,Zht,cP(xPt)),V(e,GG,Xht,cP(gPt)),V(e,GG,Kht,cP(Q4)),V(e,GG,qht,cP($4)),V(e,GG,Jht,cP(t3)),V(e,GG,Yht,cP(CPt)),V(e,GG,Ght,cP(uPt))}function Rz(e,t,n,i,a){var o,s,c,l,u,d,f,p,m,h,g,_=new j(e.g,e.f),v,y,b,x,S,ee;if(g=L4e(e),g.a=r.Math.max(g.a,t),g.b=r.Math.max(g.b,n),ee=g.a/_.a,d=g.b/_.b,x=g.a-_.a,l=g.b-_.b,i)for(s=qw(e)?F(Y(qw(e),(Qz(),I6)),86):F(Y(e,(Qz(),I6)),86),c=M(Y(e,(Qz(),r8)))===M((VF(),t5)),y=new yy((!e.c&&(e.c=new I(m7,e,9,9)),e.c));y.e!=y.i.gc();)switch(v=F(lP(y),125),b=F(Y(v,a8),64),b==(Lz(),M5)&&(b=kit(v,s),_P(v,a8,b)),b.g){case 1:c||qO(v,v.i*ee);break;case 2:qO(v,v.i+x),c||JO(v,v.j*d);break;case 3:c||qO(v,v.i*ee),JO(v,v.j+l);break;case 4:c||JO(v,v.j*d)}if(jv(e,g.a,g.b),a)for(p=new yy((!e.n&&(e.n=new I(f7,e,1,7)),e.n));p.e!=p.i.gc();)f=F(lP(p),157),m=f.i+f.g/2,h=f.j+f.f/2,S=m/_.a,u=h/_.b,S+u>=1&&(S-u>0&&h>=0?(qO(f,f.i+x),JO(f,f.j+l*u)):S-u<0&&m>=0&&(qO(f,f.i+x*S),JO(f,f.j+l)));return _P(e,(Qz(),q6),(AN(),o=F(Um(B5),10),new Jb(o,F(Ob(o,o.length),10),0))),new j(ee,d)}function zz(e){var t,n,r,i,a,o,s,c,l,u,d;if(e==null)throw O(new vm(hB));if(l=e,a=e.length,c=!1,a>0&&(t=(_T(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(_T(1,e.length+1),e.substr(1)),--a,c=t==45)),a==0)throw O(new vm(IV+l+`"`));for(;e.length>0&&(_T(0,e.length),e.charCodeAt(0)==48);)e=(_T(1,e.length+1),e.substr(1)),--a;if(a>(oit(),jbt)[10])throw O(new vm(IV+l+`"`));for(i=0;i0&&(d=-parseInt((uD(0,r,e.length),e.substr(0,r)),10),e=(_T(r,e.length+1),e.substr(r)),a-=r,n=!1);a>=o;){if(r=parseInt((uD(0,o,e.length),e.substr(0,o)),10),e=(_T(o,e.length+1),e.substr(o)),a-=o,n)n=!1;else{if(qj(d,s)<0)throw O(new vm(IV+l+`"`));d=VM(d,u)}d=HM(d,r)}if(qj(d,0)>0||!c&&(d=RD(d),qj(d,0)<0))throw O(new vm(IV+l+`"`));return d}function Wlt(e){mz();var t,n,r,i,a,o,s,c;if(e==null)return null;if(i=vv(e,QF(37)),i<0)return e;for(c=new Ey((uD(0,i,e.length),e.substr(0,i))),t=H(X9,UK,30,4,15,1),s=0,r=0,o=e.length;ii+2&&tj((_T(i+1,e.length),e.charCodeAt(i+1)),xBt,SBt)&&tj((_T(i+2,e.length),e.charCodeAt(i+2)),xBt,SBt)){if(n=$Se((_T(i+1,e.length),e.charCodeAt(i+1)),(_T(i+2,e.length),e.charCodeAt(i+2))),i+=2,r>0?(n&192)==128?t[s++]=n<<24>>24:r=0:n>=128&&((n&224)==192?(t[s++]=n<<24>>24,r=2):(n&240)==224?(t[s++]=n<<24>>24,r=3):(n&248)==240&&(t[s++]=n<<24>>24,r=4)),r>0){if(s==r){switch(s){case 2:lC(c,((t[0]&31)<<6|t[1]&63)&iV);break;case 3:lC(c,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&iV)}s=0,r=0}}else{for(a=0;a=2){if((!e.a&&(e.a=new I(a7,e,6,6)),e.a).i==0)n=(Vm(),a=new mo,a),hD((!e.a&&(e.a=new I(a7,e,6,6)),e.a),n);else if((!e.a&&(e.a=new I(a7,e,6,6)),e.a).i>1)for(p=new Hy((!e.a&&(e.a=new I(a7,e,6,6)),e.a));p.e!=p.i.gc();)jF(p);Yit(t,F(U((!e.a&&(e.a=new I(a7,e,6,6)),e.a),0),170))}if(f)for(i=new yy((!e.a&&(e.a=new I(a7,e,6,6)),e.a));i.e!=i.i.gc();)for(n=F(lP(i),170),u=new yy((!n.a&&(n.a=new hy(e7,n,5)),n.a));u.e!=u.i.gc();)l=F(lP(u),372),c.a=r.Math.max(c.a,l.a),c.b=r.Math.max(c.b,l.b);for(s=new yy((!e.n&&(e.n=new I(f7,e,1,7)),e.n));s.e!=s.i.gc();)o=F(lP(s),157),d=F(Y(o,M8),8),d&&Mv(o,d.a,d.b),f&&(c.a=r.Math.max(c.a,o.i+o.g),c.b=r.Math.max(c.b,o.j+o.f));return c}function Klt(e,t,n,r,i){var a,o,s;if(xze(e,t),o=t[0],a=wC(n.c,0),s=-1,tWe(n)){if(r>0){if(o+r>e.length)return!1;s=KI((uD(0,o+r,e.length),e.substr(0,o+r)),t)}else s=KI(e,t)}switch(a){case 71:return s=yI(e,o,W(A(pY,1),OB,2,6,[Zdt,Qdt]),t),i.e=s,!0;case 77:return Ret(e,t,i,s,o);case 76:return zet(e,t,i,s,o);case 69:return W4e(e,t,o,i);case 99:return G4e(e,t,o,i);case 97:return s=yI(e,o,W(A(pY,1),OB,2,6,[`AM`,`PM`]),t),i.b=s,!0;case 121:return Bet(e,t,o,s,n,i);case 100:return s<=0?!1:(i.c=s,!0);case 83:return s<0?!1:Uqe(s,o,t[0],i);case 104:s==12&&(s=0);case 75:case 72:return s<0?!1:(i.f=s,i.g=!1,!0);case 107:return s<0?!1:(i.f=s,i.g=!0,!0);case 109:return s<0?!1:(i.j=s,!0);case 115:return s<0?!1:(i.n=s,!0);case 90:if(one[l]&&(_=l),f=new D(e.a.b);f.a=c){tb(y.b>0),y.a.Xb(y.c=--y.b);break}_.a>l&&(i?(HA(i.b,_.b),i.a=r.Math.max(i.a,_.a),_C(y)):(fy(_.b,d),_.c=r.Math.min(_.c,l),_.a=r.Math.max(_.a,c),i=_))}i||(i=new jf,i.c=l,i.a=c,Eb(y,i),fy(i.b,d))}for(s=e.b,u=0,v=new D(n);v.a1;){if(a=Z7e(t),f=o.g,h=F(Y(t,E3),104),g=k(P(Y(t,x3))),(!t.a&&(t.a=new I(p7,t,10,11)),t.a).i>1&&k(P(Y(t,(aR(),g3))))!=LV&&(o.c+(h.b+h.c))/(o.b+(h.d+h.a))1&&k(P(Y(t,(aR(),h3))))!=LV&&(o.c+(h.b+h.c))/(o.b+(h.d+h.a))>g&&_P(a,(aR(),y3),r.Math.max(k(P(Y(t,_3))),k(P(Y(a,y3)))-k(P(Y(t,h3))))),m=new Lfe(i,d),l=$ut(m,a,p),u=l.g,u>=f&&u==u){for(s=0;s<(!a.a&&(a.a=new I(p7,a,10,11)),a.a).i;s++)r6e(e,F(U((!a.a&&(a.a=new I(p7,a,10,11)),a.a),s),26),F(U((!t.a&&(t.a=new I(p7,t,10,11)),t.a),s),26));cze(t,m),Cke(o,l.c),wke(o,l.b)}--c}_P(t,(aR(),f3),o.b),_P(t,p3,o.c),n.Ug()}function Zlt(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C;for(t.Tg(`Compound graph postprocessor`,1),n=Xp(db(q(e,(Yz(),U0)))),c=F(q(e,(X(),rEt)),229),d=new pf,v=c.ec().Jc();v.Ob();){for(_=F(v.Pb(),17),s=new qb(c.cc(_)),ew(),Yv(s,new bu(e)),S=AVe((gT(0,s.c.length),F(s.c[0],250))),te=jVe(F(zx(s,s.c.length-1),250)),b=S.i,y=hA(te.i,b)?b.e:yC(b),f=NYe(_,s),rw(_.a),p=null,o=new D(s);o.aRH,C=r.Math.abs(p.b-h.b)>RH,(!n&&ne&&C||n&&(ne||C))&&Sx(_.a,x)),Kk(_.a,i),p=i.b==0?x:(tb(i.b!=0),F(i.c.b.c,8)),RHe(m,f,g),jVe(a)==te&&(yC(te.i)!=a.a&&(g=new Rm,C4e(g,yC(te.i),y)),G(_,J$,g)),D2e(m,_,y),d.a.yc(m,d);Yw(_,S),Zw(_,te)}for(u=d.a.ec().Jc();u.Ob();)l=F(u.Pb(),17),Yw(l,null),Zw(l,null);t.Ug()}function Qlt(e,t){var n,r,i=F(q(e,(zR(),k4)),86),a,o,s,c,l,u=i==(yM(),y8)||i==b8?v8:b8,d,f;for(n=F(vE(zC(new Hx(null,new hT(e.b,16)),new Gte),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),16),c=F(vE(BC(n.Mc(),new Soe(t)),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[IY]))),16),c.Fc(F(vE(BC(n.Mc(),new Coe(t)),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[IY]))),18)),c.gd(new woe(u)),f=new Xm(new Toe(i)),r=new Ad,s=c.Jc();s.Ob();)o=F(s.Pb(),240),l=F(o.a,40),Xp(db(o.c))?(f.a.yc(l,(ky(),nY)),new iu(f.a.Xc(l,!1)).a.gc()>0&&TC(r,l,F(new iu(f.a.Xc(l,!1)).a.Tc(),40)),new iu(f.a.$c(l,!0)).a.gc()>1&&TC(r,Bqe(f,l),l)):(new iu(f.a.Xc(l,!1)).a.gc()>0&&(a=F(new iu(f.a.Xc(l,!1)).a.Tc(),40),M(a)===M(Y_(nS(r.f,l)))&&F(q(l,(Iz(),u4)),16).Ec(a)),new iu(f.a.$c(l,!0)).a.gc()>1&&(d=Bqe(f,l),M(Y_(nS(r.f,d)))===M(l)&&F(q(d,(Iz(),u4)),16).Ec(l)),f.a.Ac(l))}function $lt(e){var t,n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(e.gc()==1)return F(e.Xb(0),235);if(e.gc()<=0)return new JE;for(a=e.Jc();a.Ob();){for(n=F(a.Pb(),235),h=0,d=lB,f=lB,l=ZB,u=ZB,m=new D(n.e);m.ac&&(b=0,x+=s+v,s=0),nrt(g,n,b,x),t=r.Math.max(t,b+_.a),s=r.Math.max(s,_.b),b+=_.a+v;return g}function eut(e){wit();var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(e==null||(a=$D(e),m=cKe(a),m%4!=0))return null;if(h=m/4|0,h==0)return H(X9,UK,30,0,15,1);for(d=null,t=0,n=0,r=0,i=0,o=0,s=0,c=0,l=0,p=0,f=0,u=0,d=H(X9,UK,30,h*3,15,1);p>4)<<24>>24,d[f++]=((n&15)<<4|r>>2&15)<<24>>24,d[f++]=(r<<6|i)<<24>>24}return!dh(o=a[u++])||!dh(s=a[u++])?null:(t=j9[o],n=j9[s],c=a[u++],l=a[u++],j9[c]==-1||j9[l]==-1?c==61&&l==61?n&15?null:(g=H(X9,UK,30,p*3+1,15,1),LR(d,0,g,0,p*3),g[f]=(t<<2|n>>4)<<24>>24,g):c!=61&&l==61?(r=j9[c],r&3?null:(g=H(X9,UK,30,p*3+2,15,1),LR(d,0,g,0,p*3),g[f++]=(t<<2|n>>4)<<24>>24,g[f]=((n&15)<<4|r>>2&15)<<24>>24,g)):null:(r=j9[c],i=j9[l],d[f++]=(t<<2|n>>4)<<24>>24,d[f++]=((n&15)<<4|r>>2&15)<<24>>24,d[f++]=(r<<6|i)<<24>>24,d))}function tut(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for(t.Tg(Opt,1),m=F(q(e,(Yz(),L1)),222),i=new D(e.b);i.a=2){for(h=!0,f=new D(a.j),n=F(B(f),12),p=null;f.a0){if(i=f.gc(),u=Nw(r.Math.floor((i+1)/2))-1,a=Nw(r.Math.ceil((i+1)/2))-1,t.o==q2)for(d=a;d>=u;d--)t.a[x.p]==x&&(g=F(f.Xb(d),49),h=F(g.a,9),!hh(n,g.b)&&m>e.b.e[h.p]&&(t.a[h.p]=x,t.g[x.p]=t.g[h.p],t.a[x.p]=t.g[x.p],t.f[t.g[x.p].p]=(ky(),!!(Xp(t.f[t.g[x.p].p])&x.k==(_L(),qX))),m=e.b.e[h.p]));else for(d=u;d<=a;d++)t.a[x.p]==x&&(v=F(f.Xb(d),49),_=F(v.a,9),!hh(n,v.b)&&m0&&(a=F(zx(_.c.a,ee-1),9),s=e.i[a.p],ne=r.Math.ceil(ty(e.n,a,_)),o=S.a.e-_.d.d-(s.a.e+a.o.b+a.d.a)-ne),u=LV,ee<_.c.a.c.length-1&&(l=F(zx(_.c.a,ee+1),9),d=e.i[l.p],ne=r.Math.ceil(ty(e.n,l,_)),u=d.a.e-l.d.d-(S.a.e+_.o.b+_.d.a)-ne),n&&(Uv(),ok(gG),r.Math.abs(o-u)<=gG||o==u||isNaN(o)&&isNaN(u))?!0:(i=JTe(b.a),c=-JTe(b.b),f=-JTe(te.a),y=JTe(te.b),g=b.a.e.e-b.a.a-(b.b.e.e-b.b.a)>0&&te.a.e.e-te.a.a-(te.b.e.e-te.b.a)<0,h=b.a.e.e-b.a.a-(b.b.e.e-b.b.a)<0&&te.a.e.e-te.a.a-(te.b.e.e-te.b.a)>0,m=b.a.e.e+b.b.ate.b.e.e+te.a.a,x=0,!g&&!h&&(p?o+f>0?x=f:u-i>0&&(x=i):m&&(o+c>0?x=c:u-y>0&&(x=y))),S.a.e+=x,S.b&&(S.d.e+=x),!1))}function iut(e,t,n){var i=new GC(t.Jf().a,t.Jf().b,t.Kf().a,t.Kf().b),a=new wv,o,s,c,l,u,d,f,p;if(e.c)for(s=new D(t.Pf());s.a0&&Xw(m,(gT(n,t.c.length),F(t.c[n],25))),a=0,p=!0,v=fN(xT(UM(m))),c=v.Jc();c.Ob();){for(s=F(c.Pb(),17),p=!1,d=s,l=0;l(gT(l,t.c.length),F(t.c[l],25)).a.c.length?Xw(i,(gT(l,t.c.length),F(t.c[l],25))):fF(i,r+a,(gT(l,t.c.length),F(t.c[l],25))),d=GL(d,i);n>0&&(a+=1)}if(p){for(l=0;l(gT(l,t.c.length),F(t.c[l],25)).a.c.length?Xw(i,(gT(l,t.c.length),F(t.c[l],25))):fF(i,r+a,(gT(l,t.c.length),F(t.c[l],25)));n>0&&(a+=1)}for(o=!1,g=new fS(Sy(GM(m).a.Jc(),new f));sL(g);){for(h=F(FE(g),17),d=h,u=n+1;u(gT(l,t.c.length),F(t.c[l],25)).a.c.length?Xw(_,(gT(l,t.c.length),F(t.c[l],25))):fF(_,r+1,(gT(l,t.c.length),F(t.c[l],25))));o&&(a+=1),o=!0}return a>0?a-1:0}function Bz(e,t){eB();var n,r,i,a,o,s,c,l,u,d,f,p,m;if(mh(L9)==0){for(d=H(aHt,OB,121,HVt.length,0,1),o=0;ol&&(r.a+=The(H(K9,nV,30,-l,15,1))),r.a+=`Is`,vv(c,QF(32))>=0)for(i=0;i=r.o.b/2}else v=!d;v?(_=F(q(r,(X(),Q$)),16),_?f?a=_:(i=F(q(r,n$),16),i?a=_.gc()<=i.gc()?_:i:(a=new kd,G(r,n$,a))):(a=new kd,G(r,Q$,a))):(i=F(q(r,(X(),n$)),16),i?d?a=i:(_=F(q(r,Q$),16),_?a=i.gc()<=_.gc()?i:_:(a=new kd,G(r,Q$,a))):(a=new kd,G(r,n$,a))),a.Ec(e),G(e,(X(),a$),n),t.d==n?(Zw(t,null),n.e.c.length+n.g.c.length==0&&Qw(n,null),$Ue(n)):(Yw(t,null),n.e.c.length+n.g.c.length==0&&Qw(n,null)),rw(t.a)}function dut(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C,re,ie,ae,oe,se;for(n.Tg(`MinWidth layering`,1),m=t.b,te=t.a,se=F(q(t,(Yz(),Wkt)),15).a,c=F(q(t,Gkt),15).a,e.b=k(P(q(t,D0))),e.d=LV,x=new D(te);x.am&&(o&&(lv(ee,p),lv(ne,K(u.b-1))),oe=n.b,se+=p+t,p=0,d=r.Math.max(d,n.b+n.c+ae)),qO(c,oe),JO(c,se),d=r.Math.max(d,oe+ae+n.c),p=r.Math.max(p,f),oe+=ae+t;if(d=r.Math.max(d,i),ie=se+p+n.a,ie0?(u=0,_&&(u+=c),u+=(C-1)*s,b&&(u+=c),ne&&b&&(u=r.Math.max(u,k9e(b,s,y,te))),u=e.a&&(i=_at(e,b),d=r.Math.max(d,i.b),S=r.Math.max(S,i.d),fy(c,new B_(b,i)));for(C=new kd,u=0;u0),v.a.Xb(v.c=--v.b),re=new nC(e.b),Eb(v,re),tb(v.b0){for(f=u<100?null:new Bm(u),l=new VVe(t),m=l.g,_=H(q9,vV,30,u,15,1),r=0,b=new TO(u),i=0;i=0;)if(p==null?M(p)===M(m[c]):lM(p,m[c])){_.length<=r&&(g=_,_=H(q9,vV,30,2*_.length,15,1),LR(g,0,_,0,r)),_[r++]=i,hD(b,m[c]);break v}if(p=p,M(p)===M(s))break}}if(l=b,m=b.g,u=r,r>_.length&&(g=_,_=H(q9,vV,30,r,15,1),LR(g,0,_,0,r)),r>0){for(y=!0,a=0;a=0;)lF(e,_[o]);if(r!=u){for(i=u;--i>=r;)lF(l,i);g=_,_=H(q9,vV,30,r,15,1),LR(g,0,_,0,r)}t=l}}}else for(t=NZe(e,t),i=e.i;--i>=0;)t.Gc(e.g[i])&&(lF(e,i),y=!0);if(y){if(_!=null){for(n=t.gc(),d=n==1?eT(e,4,t.Jc().Pb(),null,_[0],h):eT(e,6,t,_,_[0],h),f=n<100?null:new Bm(n),i=t.Jc();i.Ob();)p=i.Pb(),f=Lye(e,F(p,75),f);f?(f.lj(d),f.mj()):fA(e.e,d)}else{for(f=Aye(t.gc()),i=t.Jc();i.Ob();)p=i.Pb(),f=Lye(e,F(p,75),f);f&&f.mj()}return!0}return!1}function _ut(e,t){var n=new $Ye(t),r,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b;for(n.a||xrt(t),l=ktt(t),c=new Ow,_=new Cet,g=new D(t.a);g.a0||n.o==q2&&a=n}function but(e){for(var t,n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b=e.a,x=0,S=b.length,ee,te,ne,C,re;x0?(f=F(zx(p.c.a,s-1),9),ne=ty(e.b,p,f),_=p.n.b-p.d.d-(f.n.b+f.o.b+f.d.a+ne)):_=p.n.b-p.d.d,u=r.Math.min(_,u),s1&&(s=r.Math.min(s,r.Math.abs(F(vP(c.a,1),8).b-d.b)))));else for(g=new D(t.j);g.aa&&(o=p.a-a,s=lB,i.c.length=0,a=p.a),p.a>=a&&(Vd(i.c,c),c.a.b>1&&(s=r.Math.min(s,r.Math.abs(F(vP(c.a,c.a.b-2),8).b-p.b)))));if(i.c.length!=0&&o>t.o.a/2&&s>t.o.b/2){for(m=new mI,Qw(m,t),RI(m,(Lz(),m5)),m.n.a=t.o.a/2,v=new mI,Qw(v,t),RI(v,j5),v.n.a=t.o.a/2,v.n.b=t.o.b,l=new D(i);l.a=u.b?Yw(c,v):Yw(c,m)):(u=F(ISe(c.a),8),_=c.a.b==0?vT(c.c):F(Zy(c.a),8),_.b>=u.b?Zw(c,v):Zw(c,m)),f=F(q(c,(Yz(),K1)),79),f&&pN(f,u,!0);t.n.a=a-t.o.a/2}}function Cut(e,t,n){for(var i,a,o,s,c=oP(e.b,0),l,u,d,f,p;c.b!=c.d.c;)if(s=F(YT(c),40),!zb(s.c,DG))for(u=Z8e(s,e),t==(yM(),y8)||t==b8?Yv(u,new mne):Yv(u,new ta),l=u.c.length,i=0;i=0?dN(s):wM(dN(s)),e.of(b0,p)),l=new Rm,f=!1,e.nf(h0)?(__e(l,F(e.mf(h0),8)),f=!0):Uhe(l,o.a/2,o.b/2),p.g){case 4:G(u,q1,(oN(),t1)),G(u,c$,(QA(),CQ)),u.o.b=o.b,h<0&&(u.o.a=-h),RI(d,(Lz(),p5)),f||(l.a=o.a),l.a-=o.a;break;case 2:G(u,q1,(oN(),r1)),G(u,c$,(QA(),xQ)),u.o.b=o.b,h<0&&(u.o.a=-h),RI(d,(Lz(),N5)),f||(l.a=0);break;case 1:G(u,b$,(uO(),e$)),u.o.a=o.a,h<0&&(u.o.b=-h),RI(d,(Lz(),j5)),f||(l.b=o.b),l.b-=o.b;break;case 3:G(u,b$,(uO(),QQ)),u.o.a=o.a,h<0&&(u.o.b=-h),RI(d,(Lz(),m5)),f||(l.b=0)}if(__e(d.n,l),G(u,h0,l),t==e5||t==n5||t==t5){if(m=0,t==e5&&e.nf(v0))switch(p.g){case 1:case 2:m=F(e.mf(v0),15).a;break;case 3:case 4:m=-F(e.mf(v0),15).a}else switch(p.g){case 4:case 2:m=a.b,t==n5&&(m/=i.b);break;case 1:case 3:m=a.a,t==n5&&(m/=i.a)}G(u,I$,m)}return G(u,m$,p),u}function wut(){fle();function e(e){var t=this;this.dispatch=function(t){var n=t.data;switch(n.cmd){case`algorithms`:var r=Aqe((ew(),new Hl(new zl(T7.b))));e.postMessage({id:n.id,data:r});break;case`categories`:var i=Aqe((ew(),new Hl(new zl(T7.c))));e.postMessage({id:n.id,data:i});break;case`options`:var a=Aqe((ew(),new Hl(new zl(T7.d))));e.postMessage({id:n.id,data:a});break;case`register`:Got(n.algorithms),e.postMessage({id:n.id});break;case`layout`:Pot(n.graph,n.layoutOptions||{},n.options||{}),e.postMessage({id:n.id,data:n.graph})}},this.saveDispatch=function(n){try{t.dispatch(n)}catch(t){e.postMessage({id:n.data.id,error:t})}}}function r(t){var n=this;this.dispatcher=new e({postMessage:function(e){n.onmessage({data:e})}}),this.postMessage=function(e){setTimeout(function(){n.dispatcher.saveDispatch({data:e})},0)}}if(typeof document===sH&&typeof self!==sH){var i=new e(self);self.onmessage=i.saveDispatch}else typeof t!==sH&&t.exports&&(Object.defineProperty(n,"__esModule",{value:!0}),t.exports={default:r,Worker:r})}function Hz(e,t,n,i,a,o,s){var c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,ee,te,ne,C,re=0,ie,ae,oe,se;for(u=new D(e.b);u.ag&&(o&&(lv(ee,m),lv(ne,K(d.b-1)),fy(e.d,h),c.c.length=0),oe=n.b,se+=m+t,m=0,f=r.Math.max(f,n.b+n.c+ae)),Vd(c.c,l),BYe(l,oe,se),f=r.Math.max(f,oe+ae+n.c),m=r.Math.max(m,p),oe+=ae+t,h=l;if(HA(e.a,c),fy(e.d,F(zx(c,c.c.length-1),167)),f=r.Math.max(f,i),ie=se+m+n.a,iei.d.d+i.d.a?u.f.d=!0:(u.f.d=!0,u.f.a=!0))),r.b!=r.d.c&&(t=n);u&&(a=F(tC(e.f,o.d.i),60),t.ba.d.d+a.d.a?u.f.d=!0:(u.f.d=!0,u.f.a=!0))}for(s=new fS(Sy(UM(m).a.Jc(),new f));sL(s);)o=F(FE(s),17),o.a.b!=0&&(t=F(Zy(o.a),8),o.d.j==(Lz(),m5)&&(_=new YR(t,new j(t.a,i.d.d),i,o),_.f.a=!0,_.a=o.d,Vd(g.c,_)),o.d.j==j5&&(_=new YR(t,new j(t.a,i.d.d+i.d.a),i,o),_.f.d=!0,_.a=o.d,Vd(g.c,_)))}return g}function Aut(e,t,n){var r,i,a,o,s,c=new kd,l,u,d=t.length,f;for(o=SUe(n),l=0;l=m&&(v>m&&(p.c.length=0,m=v),Vd(p.c,o));p.c.length!=0&&(f=F(zx(p,DP(t,p.c.length)),132),re.a.Ac(f),f.s=h++,n7e(f,ne,S),p.c.length=0)}for(b=e.c.length+1,s=new D(e);s.aC.s&&(_C(n),BD(C.i,r),r.c>0&&(r.a=C,fy(C.t,r),r.b=ee,fy(ee.i,r)))}function Nut(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h=new pD(t.b),g,_,v,y,b=new pD(t.b),x,S,ee,te,ne,C,re;for(f=new pD(t.b),te=new pD(t.b),g=new pD(t.b),ee=oP(t,0);ee.b!=ee.d.c;)for(x=F(YT(ee),12),s=new D(x.g);s.a0,_=x.g.c.length>0,l&&_?Vd(f.c,x):l?Vd(h.c,x):_&&Vd(b.c,x);for(m=new D(h);m.ay.mh()-u.b&&(p=y.mh()-u.b),m>y.nh()-u.d&&(m=y.nh()-u.d),d0){for(x=oP(e.f,0);x.b!=x.d.c;)b=F(YT(x),9),b.p+=m-e.e;y4e(e),rw(e.f),ntt(e,i,h)}else{for(Sx(e.f,h),h.p=i,e.e=r.Math.max(e.e,i),o=new fS(Sy(UM(h).a.Jc(),new f));sL(o);)a=F(FE(o),17),!a.c.i.c&&a.c.i.k==(_L(),KX)&&(Sx(e.f,a.c.i),a.c.i.p=i-1);e.c=i}}else y4e(e),rw(e.f),i=0,sL(new fS(Sy(UM(h).a.Jc(),new f)))?(m=0,m=YYe(m,h),i=m+2,ntt(e,i,h)):(Sx(e.f,h),h.p=0,e.e=r.Math.max(e.e,0),e.b=F(zx(e.d.b,0),25),e.c=0);for(e.f.b==0||y4e(e),e.d.a.c.length=0,y=new kd,u=new D(e.d.b);u.a=48&&t<=57){for(r=t-48;i=48&&t<=57;)if(r=r*10+t-48,r<0)throw O(new om(iB((Gv(),Ovt))))}else throw O(new om(iB((Gv(),wvt))));if(n=r,t==44){if(i>=e.j)throw O(new om(iB((Gv(),Evt))));if((t=wC(e.i,i++))>=48&&t<=57){for(n=t-48;i=48&&t<=57;)if(n=n*10+t-48,n<0)throw O(new om(iB((Gv(),Ovt))));if(r>n)throw O(new om(iB((Gv(),Dvt))))}else n=-1}if(t!=125)throw O(new om(iB((Gv(),Tvt))));e._l(i)?(a=(eB(),eB(),++W9,new oE(9,a)),e.d=i+1):(a=(eB(),eB(),++W9,new oE(3,a)),e.d=i),a.Mm(r),a.Lm(n),Jz(e)}}return a}function Vut(e){var t,n,i,a=1,o,s,c,l,u,d,f,p,m=new kd,h,g,_,v,y,b,x,S;for(i=0;i=F(zx(e.b,i),25).a.c.length/4)continue}if(F(zx(e.b,i),25).a.c.length>=t){for(x=new kd,fy(x,F(zx(e.b,i),25)),s=0;s1)for(h=new Hy((!e.a&&(e.a=new I(a7,e,6,6)),e.a));h.e!=h.i.gc();)jF(h);for(s=F(U((!e.a&&(e.a=new I(a7,e,6,6)),e.a),0),170),_=oe,oe>S+x?_=S+x:oeee+g?v=ee+g:seS-x&&_ee-g&&voe+ae?ne=oe+ae:Sse+te?C=se+te:eeoe-ae&&nese-te&&Cn&&(p=n-1),m=de+xL(t,24)*nH*f-f/2,m<0?m=1:m>i&&(m=i-1),a=(Vm(),l=new po,l),HO(a,p),UO(a,m),hD((!s.a&&(s.a=new hy(e7,s,5)),s.a),a)}function qz(e,t){az();var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te=e.e,ne,C,re,ie,ae;if(m=e.d,i=e.a,te==0)switch(t){case 0:return`0`;case 1:return KV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return S=new gm,t<0?S.a+=`0E+`:S.a+=`0E`,S.a+=-t,S.a}if(y=m*10+1+7,b=H(K9,nV,30,y+1,15,1),n=y,m==1){if(s=i[0],s<0){ae=CT(s,GV);do h=ae,ae=EF(ae,10),b[--n]=48+$x(HM(h,VM(ae,10)))&iV;while(qj(ae,0)!=0)}else{ae=s;do h=ae,ae=ae/10|0,b[--n]=48+(h-ae*10)&iV;while(ae!=0)}}else{C=H(q9,vV,30,m,15,1),ie=m,LR(i,0,C,0,ie);I:for(;;){for(ee=0,l=ie-1;l>=0;l--)re=BM(pS(ee,32),CT(C[l],GV)),_=U1e(re),C[l]=$x(_),ee=$x(mS(_,32));v=$x(ee),g=n;do b[--n]=48+v%10&iV;while((v=v/10|0)!=0&&n!=0);for(r=9-g+n,c=0;c0;c++)b[--n]=48;for(d=ie-1;C[d]==0;d--)if(d==0)break I;ie=d+1}for(;b[n]==48;)++n}if(p=te<0,o=y-n-t-1,t==0)return p&&(b[--n]=45),IN(b,n,y-n);if(t>0&&o>=-6){if(o>=0){for(u=n+o,f=y-1;f>=u;f--)b[f+1]=b[f];return b[++u]=46,p&&(b[--n]=45),IN(b,n,y-n+1)}for(d=2;d<-o+1;d++)b[--n]=48;return b[--n]=46,b[--n]=48,p&&(b[--n]=45),IN(b,n,y-n)}return ne=n+1,a=y,x=new _m,p&&(x.a+=`-`),a-ne>=1?(lC(x,b[n]),x.a+=`.`,x.a+=IN(b,n+1,y-n-1)):x.a+=IN(b,n,y-n),x.a+=`E`,o>0&&(x.a+=`+`),x.a+=``+o,x.a}function qut(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee;switch(e.c=t,e.g=new Ad,n=(Kh(),new Wp(e.c)),i=new pu(n),lN(i),b=fb(Y(e.c,(iI(),rIt))),l=F(Y(e.c,J3),330),S=F(Y(e.c,Y3),427),s=F(Y(e.c,QFt),477),x=F(Y(e.c,q3),428),e.j=k(P(Y(e.c,iIt))),c=e.a,l.g){case 0:c=e.a;break;case 1:c=e.b;break;case 2:c=e.i;break;case 3:c=e.e;break;case 4:c=e.f;break;default:throw O(new qp($G+(l.f==null?``+l.g:l.f)))}if(e.d=new Pke(c,S,s),G(e.d,(PA(),oX),db(Y(e.c,eIt))),e.d.c=Xp(db(Y(e.c,$Ft))),sw(e.c).i==0)return e.d;for(f=new yy(sw(e.c));f.e!=f.i.gc();){for(d=F(lP(f),26),m=d.g/2,p=d.f/2,ee=new j(d.i+m,d.j+p);kS(e.g,ee);)ob(ee,(r.Math.random()-.5)*RH,(r.Math.random()-.5)*RH);g=F(Y(d,(Qz(),G6)),140),_=new uAe(ee,new GC(ee.a-m-e.j/2-g.b,ee.b-p-e.j/2-g.d,d.g+e.j+(g.b+g.c),d.f+e.j+(g.d+g.a))),fy(e.d.i,_),TC(e.g,ee,new B_(_,d))}switch(x.g){case 0:if(b==null)e.d.d=F(zx(e.d.i,0),68);else for(y=new D(e.d.i);y.a0?ie+1:1);for(o=new D(S.g);o.a0?ie+1:1)}e.d[l]==0?Sx(e.f,h):e.a[l]==0&&Sx(e.g,h),++l}for(m=-1,p=1,d=new kd,e.e=F(q(t,(X(),R$)),234);ce>0;){for(;e.f.b!=0;)oe=F(gx(e.f),9),e.c[oe.p]=m--,rrt(e,oe),--ce;for(;e.g.b!=0;)se=F(gx(e.g),9),e.c[se.p]=p++,rrt(e,se),--ce;if(ce>0){for(f=ZB,v=new D(y);v.a=f&&(b>f&&(d.c.length=0,f=b),Vd(d.c,h)));u=e.qg(d),e.c[u.p]=p++,rrt(e,u),--ce}}for(ae=y.c.length+1,l=0;le.c[w]&&(WR(r,!0),G(t,s$,(ky(),!0)));e.a=null,e.d=null,e.c=null,rw(e.g),rw(e.f),n.Ug()}function Xut(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=F(U((!e.a&&(e.a=new I(a7,e,6,6)),e.a),0),170),ee;for(d=new qf,x=new Ad,ee=nit(S),NI(x.f,S,ee),p=new Ad,i=new vh,h=DS(ik(W(A(RJ,1),mB,20,0,[(!t.d&&(t.d=new Lb(i7,t,8,5)),t.d),(!t.e&&(t.e=new Lb(i7,t,7,4)),t.e)])));sL(h);){if(m=F(FE(h),85),(!e.a&&(e.a=new I(a7,e,6,6)),e.a).i!=1)throw O(new qp(h_t+(!e.a&&(e.a=new I(a7,e,6,6)),e.a).i));m!=e&&(_=F(U((!m.a&&(m.a=new I(a7,m,6,6)),m.a),0),170),bE(i,_,i.c.b,i.c),g=F(Y_(nS(x.f,_)),13),g||(g=nit(_),NI(x.f,_,g)),f=n?Pb(new Sv(F(zx(ee,ee.c.length-1),8)),F(zx(g,g.c.length-1),8)):Pb(new Sv((gT(0,ee.c.length),F(ee.c[0],8))),(gT(0,g.c.length),F(g.c[0],8))),NI(p.f,_,f))}if(i.b!=0)for(v=F(zx(ee,n?ee.c.length-1:0),8),u=1;u1&&bE(d,v,d.c.b,d.c),CO(a)));v=y}return d}function Zut(e){var t,n=F(q(e,(X(),g$)),22),r,i,a;switch(t=Tv(mCt),i=F(q(e,(Yz(),H1)),347),i==(Oj(),N8)&&dA(t,hCt),Xp(db(q(e,V1)))?Mx(t,(rI(),CX),($z(),xZ)):Mx(t,(rI(),TX),($z(),xZ)),q(e,(eD(),m6))!=null&&dA(t,gCt),(Xp(db(q(e,Bkt)))||Xp(db(q(e,Ikt))))&&oS(t,(rI(),DX),($z(),owt)),F(q(e,M1),86).g){case 2:case 3:case 4:oS(Mx(t,(rI(),CX),($z(),cwt)),DX,swt)}switch(n.Gc((YL(),FQ))&&oS(Mx(Mx(t,(rI(),CX),($z(),awt)),EX,rwt),DX,iwt),M(q(e,Y1))!==M((hR(),h2))&&Mx(t,(rI(),TX),($z(),wwt)),n.Gc(HQ)&&(Mx(t,(rI(),CX),($z(),Owt)),Mx(t,wX,Ewt),Mx(t,TX,Dwt)),M(q(e,f1))!==M((lI(),NQ))&&M(q(e,L1))!==M((CM(),A8))&&oS(t,(rI(),DX),($z(),_wt)),Xp(db(q(e,Rkt)))&&Mx(t,(rI(),TX),($z(),gwt)),Xp(db(q(e,k1)))&&Mx(t,(rI(),TX),($z(),kwt)),O7e(e)&&(r=M(q(e,H1))===M(N8)?F(q(e,E1),302):F(q(e,D1),302),a=r==(AA(),KQ)?($z(),Twt):($z(),Mwt),Mx(t,(rI(),EX),a)),F(q(e,qkt),423).g==1&&Mx(t,(rI(),EX),($z(),QCt)),F(q(e,EAt),382).g){case 1:Mx(t,(rI(),EX),($z(),Awt));break;case 2:oS(Mx(Mx(t,(rI(),TX),($z(),$Ct)),EX,ewt),DX,twt)}return M(q(e,C1))!==M((LN(),_2))&&Mx(t,(rI(),TX),($z(),jwt)),kE(new Hx(null,new hT(e.a,16)),new dt)&&ib(e,s0)&&oS(t,(rI(),EX),($z(),Cwt)),t}function Qut(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C;for(n.Tg(Lht,1),C=F(vE(zC(new Hx(null,new hT(t,16)),new une),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),16),u=F(vE(zC(new Hx(null,new hT(t,16)),new Doe(t)),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[IY]))),16),m=F(vE(zC(new Hx(null,new hT(t,16)),new Eoe(t)),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[IY]))),16),h=H(i4,AG,40,t.gc(),0,1),o=0;o=0&&ne=0&&!h[p]||(p=ne-f,p=0&&!h[p])){h[p]=i,u.ed(s),--s;break}for(m.gd(new dne),c=h.length-1;c>=0;c--)!h[c]&&!m.dc()&&(h[c]=F(m.Xb(0),40),m.ed(0));for(l=0;lf&&_F((gT(f,t.c.length),F(t.c[f],186)),u),u=null;t.c.length>f&&(gT(f,t.c.length),F(t.c[f],186)).a.c.length==0;)BD(t,(gT(f,t.c.length),t.c[f]));if(!u){--o;continue}if(!Xp(db(F(zx(u.b,0),26).mf((tR(),C3))))&&Rrt(t,m,a,u,g,n,f,r)){h=!0;continue}if(g){if(p=m.b,d=u.f,!Xp(db(F(zx(u.b,0),26).mf(C3)))&&kst(t,m,a,u,n,f,r,i)){if(h=!0,p=e.j)e.a=-1,e.c=1;else if(t=wC(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(r=10,e.d>=e.j)throw O(new om(iB((Gv(),_q))));e.a=wC(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||wC(e.i,e.d)!=63)break;if(++e.d>=e.j)throw O(new om(iB((Gv(),vq))));switch(t=wC(e.i,e.d++),t){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(e.d>=e.j)throw O(new om(iB((Gv(),vq))));if(t=wC(e.i,e.d++),t==61)r=16;else if(t==33)r=17;else throw O(new om(iB((Gv(),tvt))));break;case 35:for(;e.d=e.j)throw O(new om(iB((Gv(),_q))));e.a=wC(e.i,e.d++);break;default:r=0}e.c=r}}function rdt(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(n.Tg(`Process compaction`,1),Xp(db(q(t,(zR(),iNt))))){for(i=F(q(t,k4),86),p=k(P(q(t,N4))),Zat(e,t,i),Qlt(t,p/2/2),m=t.b,Gk(m,new yoe(i)),l=oP(m,0);l.b!=l.d.c;)if(c=F(YT(l),40),!Xp(db(q(c,(Iz(),E4))))){if(r=Mtt(c,i),h=rat(c,t),d=0,f=0,r)switch(g=r.e,i.g){case 2:d=g.a-p-c.f.a,h.e.a-p-c.f.ad&&(d=h.e.a+h.f.a+p),f=d+c.f.a;break;case 4:d=g.b-p-c.f.b,h.e.b-p-c.f.bd&&(d=h.e.b+h.f.b+p),f=d+c.f.b}else if(h)switch(i.g){case 2:d=h.e.a-p-c.f.a,f=d+c.f.a;break;case 1:d=h.e.a+h.f.a+p,f=d+c.f.a;break;case 4:d=h.e.b-p-c.f.b,f=d+c.f.b;break;case 3:d=h.e.b+h.f.b+p,f=d+c.f.b}M(q(t,A4))===M((gj(),o4))?(a=d,o=f,s=dj(zC(new Hx(null,new hT(e.a,16)),new Efe(a,o))),s.a==null?(s=i==(yM(),y8)||i==S8?dj(zC(wze(new Hx(null,new hT(e.a,16))),new boe(a))):dj(zC(wze(new Hx(null,new hT(e.a,16))),new xoe(a))),s.a!=null&&(i==y8||i==b8?c.e.a=k(P((tb(s.a!=null),F(s.a,49)).a)):c.e.b=k(P((tb(s.a!=null),F(s.a,49)).a)))):i==(yM(),y8)||i==b8?c.e.a=d:c.e.b=d,s.a!=null&&(u=VD(e.a,(tb(s.a!=null),s.a),0),u>0&&u!=F(q(c,P4),15).a&&(G(c,VMt,(ky(),!0)),G(c,P4,K(u))))):i==(yM(),y8)||i==b8?c.e.a=d:c.e.b=d}n.Ug()}}function idt(e,t,n){var r,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x,S;if(n.Tg(`Coffman-Graham Layering`,1),t.a.c.length==0)n.Ug();else{for(S=F(q(t,(Yz(),Hkt)),15).a,c=0,o=0,p=new D(t.a);p.a=S||!mJe(v,r))&&(r=yDe(t,u)),Xw(v,r),a=new fS(Sy(UM(v).a.Jc(),new f));sL(a);)i=F(FE(a),17),!e.a[i.p]&&(g=i.c.i,--e.e[g.p],e.e[g.p]==0&&mx(tI(m,g),JV));for(l=u.c.length-1;l>=0;--l)fy(t.b,(gT(l,u.c.length),F(u.c[l],25)));t.a.c.length=0,n.Ug()}}function adt(e){var t,n,r,i,a,o,s,c,l;for(e.b=1,Jz(e),t=null,e.c==0&&e.a==94?(Jz(e),t=(eB(),eB(),++W9,new ET(4)),KL(t,0,TJ),s=(++W9,new ET(4))):s=(eB(),eB(),++W9,new ET(4)),i=!0;(l=e.c)!=1;){if(l==0&&e.a==93&&!i){t&&(Dz(t,s),s=t);break}if(n=e.a,r=!1,l==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:cz(s,DR(n)),r=!0;break;case 105:case 73:case 99:case 67:n=(cz(s,DR(n)),-1),n<0&&(r=!0);break;case 112:case 80:if(c=f6e(e,n),!c)throw O(new om(iB((Gv(),bq))));cz(s,c),r=!0;break;default:n=ltt(e)}else if(l==24&&!i){if(t&&(Dz(t,s),s=t),a=adt(e),Dz(s,a),e.c!=0||e.a!=93)throw O(new om(iB((Gv(),mvt))));break}if(Jz(e),!r){if(l==0){if(n==91)throw O(new om(iB((Gv(),hvt))));if(n==93)throw O(new om(iB((Gv(),gvt))));if(n==45&&!i&&e.a!=93)throw O(new om(iB((Gv(),Sq))))}if(e.c!=0||e.a!=45||n==45&&i)KL(s,n,n);else{if(Jz(e),(l=e.c)==1)throw O(new om(iB((Gv(),xq))));if(l==0&&e.a==93)KL(s,n,n),KL(s,45,45);else if(l==0&&e.a==93||l==24)throw O(new om(iB((Gv(),Sq))));else{if(o=e.a,l==0){if(o==91)throw O(new om(iB((Gv(),hvt))));if(o==93)throw O(new om(iB((Gv(),gvt))));if(o==45)throw O(new om(iB((Gv(),Sq))))}else l==10&&(o=ltt(e));if(Jz(e),n>o)throw O(new om(iB((Gv(),yvt))));KL(s,n,o)}}}i=!1}if(e.c==1)throw O(new om(iB((Gv(),xq))));return dL(s),gz(s),e.b=0,Jz(e),s}function odt(e,t){var n,r,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x=!1;do for(x=!1,a=t?new Fl(e.a.b).a.gc()-2:1;t?a>=0:aF(q(_,j$),15).a)&&(b=!1);if(b){for(c=t?a+1:a-1,s=lNe(e.a,K(c)),o=!1,y=!0,r=!1,u=oP(s,0);u.b!=u.d.c;)l=F(YT(u),9),ib(l,j$)?l.p!=d.p&&(o|=t?F(q(l,j$),15).aF(q(d,j$),15).a,y=!1):!o&&y&&l.k==(_L(),KX)&&(r=!0,p=t?F(FE(new fS(Sy(UM(l).a.Jc(),new f))),17).c.i:F(FE(new fS(Sy(GM(l).a.Jc(),new f))),17).d.i,p==d&&(n=t?F(FE(new fS(Sy(GM(l).a.Jc(),new f))),17).d.i:F(FE(new fS(Sy(UM(l).a.Jc(),new f))),17).c.i,(t?F(rb(e.a,n),15).a-F(rb(e.a,p),15).a:F(rb(e.a,p),15).a-F(rb(e.a,n),15).a)<=2&&(y=!1)));if(r&&y&&(n=t?F(FE(new fS(Sy(GM(d).a.Jc(),new f))),17).d.i:F(FE(new fS(Sy(UM(d).a.Jc(),new f))),17).c.i,(t?F(rb(e.a,n),15).a-F(rb(e.a,d),15).a:F(rb(e.a,d),15).a-F(rb(e.a,n),15).a)<=2&&n.k==(_L(),YX)&&(y=!1)),o||y){for(g=E7e(e,d,t);g.a.gc()!=0;)h=F(g.a.ec().Jc().Pb(),9),g.a.Ac(h),Kk(g,E7e(e,h,t));--m,x=!0}}}while(x)}function sdt(e){hL(e.c,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#decimal`])),hL(e.d,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#integer`])),hL(e.e,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#boolean`])),hL(e.f,Hq,W(A(pY,1),OB,2,6,[$q,`EBoolean`,cq,`EBoolean:Object`])),hL(e.i,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#byte`])),hL(e.g,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#hexBinary`])),hL(e.j,Hq,W(A(pY,1),OB,2,6,[$q,`EByte`,cq,`EByte:Object`])),hL(e.n,Hq,W(A(pY,1),OB,2,6,[$q,`EChar`,cq,`EChar:Object`])),hL(e.t,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#double`])),hL(e.u,Hq,W(A(pY,1),OB,2,6,[$q,`EDouble`,cq,`EDouble:Object`])),hL(e.F,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#float`])),hL(e.G,Hq,W(A(pY,1),OB,2,6,[$q,`EFloat`,cq,`EFloat:Object`])),hL(e.I,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#int`])),hL(e.J,Hq,W(A(pY,1),OB,2,6,[$q,`EInt`,cq,`EInt:Object`])),hL(e.N,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#long`])),hL(e.O,Hq,W(A(pY,1),OB,2,6,[$q,`ELong`,cq,`ELong:Object`])),hL(e.Z,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#short`])),hL(e.$,Hq,W(A(pY,1),OB,2,6,[$q,`EShort`,cq,`EShort:Object`])),hL(e._,Hq,W(A(pY,1),OB,2,6,[$q,`http://www.w3.org/2001/XMLSchema#string`]))}function cdt(e,t,n,r,i,a,o){var s,c,l,u,d,f=F(r.a,15).a,p=F(r.b,15).a,m;return d=e.b,m=e.c,s=0,u=0,t==(yM(),y8)||t==b8?(u=sg(iKe(VC(BC(new Hx(null,new hT(n.b,16)),new hne),new ine))),d.e.b+d.f.b/2>u?(l=++p,s=k(P(My(gS(BC(new Hx(null,new hT(n.b,16)),new Afe(i,l)),new ane))))):(c=++f,s=k(P(My(_S(BC(new Hx(null,new hT(n.b,16)),new jfe(i,c)),new one)))))):(u=sg(iKe(VC(BC(new Hx(null,new hT(n.b,16)),new pne),new nne))),d.e.a+d.f.a/2>u?(l=++p,s=k(P(My(gS(BC(new Hx(null,new hT(n.b,16)),new kfe(i,l)),new sne))))):(c=++f,s=k(P(My(_S(BC(new Hx(null,new hT(n.b,16)),new Ofe(i,c)),new ea)))))),t==y8?(lv(e.a,new j(k(P(q(d,(Iz(),b4))))-i,s)),lv(e.a,new j(m.e.a+m.f.a+i+a,s)),lv(e.a,new j(m.e.a+m.f.a+i+a,m.e.b+m.f.b/2)),lv(e.a,new j(m.e.a+m.f.a,m.e.b+m.f.b/2))):t==b8?(lv(e.a,new j(k(P(q(d,(Iz(),y4))))+i,d.e.b+d.f.b/2)),lv(e.a,new j(d.e.a+d.f.a+i,s)),lv(e.a,new j(m.e.a-i-a,s)),lv(e.a,new j(m.e.a-i-a,m.e.b+m.f.b/2)),lv(e.a,new j(m.e.a,m.e.b+m.f.b/2))):t==S8?(lv(e.a,new j(s,k(P(q(d,(Iz(),b4))))-i)),lv(e.a,new j(s,m.e.b+m.f.b+i+a)),lv(e.a,new j(m.e.a+m.f.a/2,m.e.b+m.f.b+i+a)),lv(e.a,new j(m.e.a+m.f.a/2,m.e.b+m.f.b+i))):(e.a.b==0||(F(Zy(e.a),8).b=k(P(q(d,(Iz(),y4))))+i*F(o.b,15).a),lv(e.a,new j(s,k(P(q(d,(Iz(),y4))))+i*F(o.b,15).a)),lv(e.a,new j(s,m.e.b-i*F(o.a,15).a-a))),new B_(K(f),K(p))}function Yz(){Yz=C,T0=(Qz(),tRt),pAt=nRt,E0=rRt,D0=iRt,k0=aRt,A0=oRt,N0=sRt,F0=cRt,I0=lRt,P0=u8,L0=d8,z0=uRt,V0=pRt,M0=l8,w0=(Cdt(),LOt),O0=ROt,j0=zOt,R0=BOt,lAt=new Vv(s8,K(0)),S0=POt,uAt=FOt,C0=IOt,EAt=ukt,yAt=UOt,bAt=KOt,W0=ekt,xAt=YOt,SAt=ZOt,K0=hkt,G0=fkt,wAt=okt,CAt=ikt,TAt=ckt,qkt=cOt,Q1=rOt,Z1=tOt,$1=aOt,a0=COt,o0=wOt,s0=OOt,z1=TDt,Fkt=ODt,gAt=m8,vAt=g8,hAt=p8,mAt=f8,_At=(bM(),Y5),new Vv(h8,_At),$kt=new Rv(12),Qkt=new Vv($6,$kt),Mkt=(CM(),k8),L1=new Vv(_Lt,Mkt),g0=new Vv(n8,0),dAt=new Vv(QLt,K(1)),l1=new Vv(j6,HH),p0=Z6,_0=r8,b0=a8,kkt=F6,s1=cLt,H1=z6,fAt=new Vv(eRt,(ky(),!0)),W1=B6,G1=V6,l0=q6,f0=X6,u0=J6,jkt=(yM(),x8),M1=new Vv(I6,jkt),n0=K6,t0=ALt,y0=i8,oAt=JLt,sAt=XLt,tAt=(aP(),Q8),new Vv(VLt,tAt),rAt=t8,iAt=ULt,aAt=WLt,nAt=e8,U0=HOt,X1=$Dt,Y1=ZDt,H0=VOt,q1=UDt,j1=dDt,A1=lDt,T1=KEt,wkt=qEt,D1=QEt,E1=JEt,k1=sDt,Jkt=uOt,Ykt=dOt,Vkt=IDt,c0=AOt,r0=hOt,V1=jDt,Zkt=xOt,Pkt=xDt,R1=CDt,w1=P6,Xkt=fOt,f1=xEt,ykt=yEt,d1=vEt,Rkt=PDt,Lkt=NDt,zkt=FDt,d0=Y6,K1=W6,B1=yLt,F1=R6,P1=L6,Tkt=tDt,v0=qLt,u1=pLt,U1=CLt,h0=GLt,eAt=LLt,m0=zLt,Wkt=KDt,Gkt=JDt,x0=o8,c1=_Et,Kkt=XDt,I1=_Dt,N1=hDt,e0=G6,Hkt=BDt,i0=vOt,B0=dRt,Akt=pDt,cAt=MOt,Nkt=yDt,Ekt=rDt,Dkt=iDt,Ukt=HDt,Okt=aDt,Bkt=U6,J1=GDt,O1=oDt,C1=WEt,b1=BEt,m1=TEt,h1=EEt,x1=HEt,p1=CEt,S1=UEt,y1=zEt,v1=REt,Ckt=LEt,g1=DEt,_1=FEt,Skt=NEt,bkt=kEt,xkt=jEt,Ikt=MDt}function ldt(e){var t,n,r,i,a,o=!0,s,c,l,u,d=null,f,p;if(r=null,i=null,t=!1,p=TBt,l=null,a=null,s=0,c=QN(e,s,CBt,wBt),c=0&&zb(e.substr(s,2),`//`)?(s+=2,c=QN(e,s,O7,k7),r=(uD(s,c,e.length),e.substr(s,c-s)),s=c):d!=null&&(s==e.length||(_T(s,e.length),e.charCodeAt(s)!=47))&&(o=!1,c=_ge(e,QF(35),s),c==-1&&(c=e.length),r=(uD(s,c,e.length),e.substr(s,c-s)),s=c);if(!n&&s0&&wC(u,u.length-1)==58&&(i=u,s=c)),so?(dR(e,t,n),1):(dR(e,n,t),-1)}for(v=e.f,y=0,b=v.length;y0?dR(e,t,n):dR(e,n,t),r;if(!ib(t,(X(),j$))||!ib(n,j$))return a=PF(e,t),s=PF(e,n),a>s?(dR(e,t,n),1):(dR(e,n,t),-1)}if(!f&&!m&&(r=fdt(e,t,n),r!=0))return r>0?dR(e,t,n):dR(e,n,t),r}return ib(t,(X(),j$))&&ib(n,j$)?(a=RL(t,n,e.c,F(q(e.c,A$),15).a),s=RL(n,t,e.c,F(q(e.c,A$),15).a),a>s?(dR(e,t,n),1):(dR(e,n,t),-1)):(dR(e,n,t),-1)}function udt(){udt=C,Kz(),VX=new Ow,YI(VX,(Lz(),b5),y5),YI(VX,A5,y5),YI(VX,x5,y5),YI(VX,D5,y5),YI(VX,E5,y5),YI(VX,w5,y5),YI(VX,D5,b5),YI(VX,y5,h5),YI(VX,b5,h5),YI(VX,A5,h5),YI(VX,x5,h5),YI(VX,T5,h5),YI(VX,D5,h5),YI(VX,E5,h5),YI(VX,w5,h5),YI(VX,v5,h5),YI(VX,y5,O5),YI(VX,b5,O5),YI(VX,h5,O5),YI(VX,A5,O5),YI(VX,x5,O5),YI(VX,T5,O5),YI(VX,D5,O5),YI(VX,v5,O5),YI(VX,k5,O5),YI(VX,E5,O5),YI(VX,S5,O5),YI(VX,w5,O5),YI(VX,b5,A5),YI(VX,x5,A5),YI(VX,D5,A5),YI(VX,w5,A5),YI(VX,b5,x5),YI(VX,A5,x5),YI(VX,D5,x5),YI(VX,x5,x5),YI(VX,E5,x5),YI(VX,y5,g5),YI(VX,b5,g5),YI(VX,h5,g5),YI(VX,O5,g5),YI(VX,A5,g5),YI(VX,x5,g5),YI(VX,T5,g5),YI(VX,D5,g5),YI(VX,k5,g5),YI(VX,v5,g5),YI(VX,w5,g5),YI(VX,E5,g5),YI(VX,C5,g5),YI(VX,y5,k5),YI(VX,b5,k5),YI(VX,h5,k5),YI(VX,A5,k5),YI(VX,x5,k5),YI(VX,T5,k5),YI(VX,D5,k5),YI(VX,v5,k5),YI(VX,w5,k5),YI(VX,S5,k5),YI(VX,C5,k5),YI(VX,b5,v5),YI(VX,A5,v5),YI(VX,x5,v5),YI(VX,D5,v5),YI(VX,k5,v5),YI(VX,w5,v5),YI(VX,E5,v5),YI(VX,y5,_5),YI(VX,b5,_5),YI(VX,h5,_5),YI(VX,A5,_5),YI(VX,x5,_5),YI(VX,T5,_5),YI(VX,D5,_5),YI(VX,v5,_5),YI(VX,w5,_5),YI(VX,b5,E5),YI(VX,h5,E5),YI(VX,O5,E5),YI(VX,x5,E5),YI(VX,y5,S5),YI(VX,b5,S5),YI(VX,O5,S5),YI(VX,A5,S5),YI(VX,x5,S5),YI(VX,T5,S5),YI(VX,D5,S5),YI(VX,D5,C5),YI(VX,x5,C5),YI(VX,v5,y5),YI(VX,v5,A5),YI(VX,v5,h5),YI(VX,T5,y5),YI(VX,T5,b5),YI(VX,T5,O5)}function ddt(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S;switch(n.Tg(`Brandes & Koepf node placement`,1),e.a=t,e.c=Bit(t),r=F(q(t,(Yz(),r0)),282),p=Xp(db(q(t,i0))),e.d=r==(kF(),MQ)&&!p||r==jQ,xst(e,t),x=null,S=null,_=null,v=null,g=(_k(4,GB),new pD(4)),F(q(t,r0),282).g){case 3:_=new xR(t,e.c.d,(Ww(),K2),(Aw(),W2)),Vd(g.c,_);break;case 1:v=new xR(t,e.c.d,(Ww(),q2),(Aw(),W2)),Vd(g.c,v);break;case 4:x=new xR(t,e.c.d,(Ww(),K2),(Aw(),G2)),Vd(g.c,x);break;case 2:S=new xR(t,e.c.d,(Ww(),q2),(Aw(),G2)),Vd(g.c,S);break;default:_=new xR(t,e.c.d,(Ww(),K2),(Aw(),W2)),v=new xR(t,e.c.d,q2,W2),x=new xR(t,e.c.d,K2,G2),S=new xR(t,e.c.d,q2,G2),Vd(g.c,x),Vd(g.c,S),Vd(g.c,_),Vd(g.c,v)}for(i=new _fe(t,e.c),s=new D(g);s.alL(a))&&(d=a);for(!d&&(d=(gT(0,g.c.length),F(g.c[0],185))),h=new D(t.b);h.a0?(dR(e,n,t),1):(dR(e,t,n),-1);if(u&&y)return dR(e,n,t),1;if(d&&v)return dR(e,t,n),-1;if(d&&y)return 0}else for(ne=new D(l.j);ne.af&&(ie=0,ae+=d+te,d=0),irt(S,s,ie,ae),t=r.Math.max(t,ie+ee.a),d=r.Math.max(d,ee.b),ie+=ee.a+te;for(x=new Ad,n=new Ad,C=new D(e);C.a=-1900),n>=4?ov(e,W(A(pY,1),OB,2,6,[Zdt,Qdt])[s]):ov(e,W(A(pY,1),OB,2,6,[`BC`,`AD`])[s]);break;case 121:CYe(e,n,r);break;case 77:trt(e,n,r);break;case 107:c=i.q.getHours(),c==0?QD(e,24,n):QD(e,c,n);break;case 83:D7e(e,n,i);break;case 69:u=r.q.getDay(),n==5?ov(e,W(A(pY,1),OB,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[u]):n==4?ov(e,W(A(pY,1),OB,2,6,[yV,bV,xV,SV,CV,wV,TV])[u]):ov(e,W(A(pY,1),OB,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[u]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?ov(e,W(A(pY,1),OB,2,6,[`AM`,`PM`])[1]):ov(e,W(A(pY,1),OB,2,6,[`AM`,`PM`])[0]);break;case 104:d=i.q.getHours()%12,d==0?QD(e,12,n):QD(e,d,n);break;case 75:f=i.q.getHours()%12,QD(e,f,n);break;case 72:p=i.q.getHours(),QD(e,p,n);break;case 99:m=r.q.getDay(),n==5?ov(e,W(A(pY,1),OB,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[m]):n==4?ov(e,W(A(pY,1),OB,2,6,[yV,bV,xV,SV,CV,wV,TV])[m]):n==3?ov(e,W(A(pY,1),OB,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[m]):QD(e,m,1);break;case 76:h=r.q.getMonth(),n==5?ov(e,W(A(pY,1),OB,2,6,[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`])[h]):n==4?ov(e,W(A(pY,1),OB,2,6,[aV,oV,sV,cV,lV,uV,dV,fV,pV,mV,hV,gV])[h]):n==3?ov(e,W(A(pY,1),OB,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,lV,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`])[h]):QD(e,h+1,n);break;case 81:g=r.q.getMonth()/3|0,n<4?ov(e,W(A(pY,1),OB,2,6,[`Q1`,`Q2`,`Q3`,`Q4`])[g]):ov(e,W(A(pY,1),OB,2,6,[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`])[g]);break;case 100:_=r.q.getDate(),QD(e,_,n);break;case 109:l=i.q.getMinutes(),QD(e,l,n);break;case 115:o=i.q.getSeconds(),QD(e,o,n);break;case 122:n<4?ov(e,a.c[0]):ov(e,a.c[1]);break;case 118:ov(e,a.b);break;case 90:n<3?ov(e,F3e(a)):n==3?ov(e,K3e(a)):ov(e,q3e(a.a));break;default:return!1}return!0}function _dt(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C,re,ie,ae;if(mnt(t),c=F(U((!t.b&&(t.b=new Lb(r7,t,4,7)),t.b),0),84),u=F(U((!t.c&&(t.c=new Lb(r7,t,5,8)),t.c),0),84),s=GF(c),l=GF(u),o=(!t.a&&(t.a=new I(a7,t,6,6)),t.a).i==0?null:F(U((!t.a&&(t.a=new I(a7,t,6,6)),t.a),0),170),ee=F(tC(e.a,s),9),re=F(tC(e.a,l),9),te=null,ie=null,N(c,193)&&(S=F(tC(e.a,c),246),N(S,12)?te=F(S,12):N(S,9)&&(ee=F(S,9),te=F(zx(ee.j,0),12))),N(u,193)&&(C=F(tC(e.a,u),246),N(C,12)?ie=F(C,12):N(C,9)&&(re=F(C,9),ie=F(zx(re.j,0),12))),!ee||!re)throw O(new im(`The source or the target of edge `+t+` could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN.`));for(h=new hw,TA(h,t),G(h,(X(),M$),t),G(h,(Yz(),K1),null),p=F(q(r,g$),22),ee==re&&p.Ec((YL(),UQ)),te||=(x=(uk(),C2),ne=null,o&&Dv(F(q(ee,_0),102))&&(ne=new j(o.j,o.k),XNe(ne,Vw(t)),IPe(ne,n),EO(l,s)&&(x=S2,Nb(ne,ee.n))),Qat(ee,ne,x,r)),ie||=(x=(uk(),S2),ae=null,o&&Dv(F(q(re,_0),102))&&(ae=new j(o.b,o.c),XNe(ae,Vw(t)),IPe(ae,n)),Qat(re,ae,x,yC(re))),Yw(h,te),Zw(h,ie),(te.e.c.length>1||te.g.c.length>1||ie.e.c.length>1||ie.g.c.length>1)&&p.Ec((YL(),RQ)),f=new yy((!t.n&&(t.n=new I(f7,t,1,7)),t.n));f.e!=f.i.gc();)if(d=F(lP(f),157),!Xp(db(Y(d,p0)))&&d.a)switch(g=Qj(d),fy(h.b,g),F(q(g,F1),279).g){case 1:case 2:p.Ec((YL(),IQ));break;case 0:p.Ec((YL(),PQ)),G(g,F1,(NO(),E8))}if(a=F(q(r,A1),301),_=F(q(r,c0),303),i=a==(sN(),cQ)||_==(hP(),s2),o&&(!o.a&&(o.a=new hy(e7,o,5)),o.a).i!=0&&i){for(v=V2e(o),m=new qf,b=oP(v,0);b.b!=b.d.c;)y=F(YT(b),8),Sx(m,new Sv(y));G(h,sEt,m)}return h}function vdt(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne=0,C=0,re,ie,ae,oe;for(ee=new Ad,x=F(My(gS(BC(new Hx(null,new hT(e.b,16)),new fne),new rne)),15).a+1,te=H(q9,vV,30,x,15,1),g=H(q9,vV,30,x,15,1),h=0;h1)for(s=ie+1;sl.b.e.b*(1-_)+l.c.e.b*_));m++);if(S.gc()>0&&(ae=l.a.b==0?ry(l.b.e):F(Zy(l.a),8),y=Nb(ry(F(S.Xb(S.gc()-1),40).e),F(S.Xb(S.gc()-1),40).f),f=Nb(ry(F(S.Xb(0),40).e),F(S.Xb(0),40).f),m>=S.gc()-1&&ae.b>y.b&&l.c.e.b>y.b||m<=0&&ae.bl.b.e.a*(1-_)+l.c.e.a*_));m++);if(S.gc()>0&&(ae=l.a.b==0?ry(l.b.e):F(Zy(l.a),8),y=Nb(ry(F(S.Xb(S.gc()-1),40).e),F(S.Xb(S.gc()-1),40).f),f=Nb(ry(F(S.Xb(0),40).e),F(S.Xb(0),40).f),m>=S.gc()-1&&ae.a>y.a&&l.c.e.a>y.a||m<=0&&ae.a=k(P(q(e,(Iz(),WMt))))&&++C):(p.f&&p.d.e.a<=k(P(q(e,(Iz(),p4))))&&++ne,p.g&&p.c.e.a+p.c.f.a>=k(P(q(e,(Iz(),UMt))))&&++C)}else b==0?Z3e(l):b<0&&(++te[ie],++g[oe],re=cdt(l,t,e,new B_(K(ne),K(C)),n,r,new B_(K(g[oe]),K(te[ie]))),ne=F(re.a,15).a,C=F(re.b,15).a)}function ydt(e){e.gb||(e.gb=!0,e.b=vA(e,0),Vk(e.b,18),Hk(e.b,19),e.a=vA(e,1),Vk(e.a,1),Hk(e.a,2),Hk(e.a,3),Hk(e.a,4),Hk(e.a,5),e.o=vA(e,2),Vk(e.o,8),Vk(e.o,9),Hk(e.o,10),Hk(e.o,11),Hk(e.o,12),Hk(e.o,13),Hk(e.o,14),Hk(e.o,15),Hk(e.o,16),Hk(e.o,17),Hk(e.o,18),Hk(e.o,19),Hk(e.o,20),Hk(e.o,21),Hk(e.o,22),Hk(e.o,23),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),e.p=vA(e,3),Vk(e.p,2),Vk(e.p,3),Vk(e.p,4),Vk(e.p,5),Hk(e.p,6),Hk(e.p,7),xO(e.p),xO(e.p),e.q=vA(e,4),Vk(e.q,8),e.v=vA(e,5),Hk(e.v,9),xO(e.v),xO(e.v),xO(e.v),e.w=vA(e,6),Vk(e.w,2),Vk(e.w,3),Vk(e.w,4),Hk(e.w,5),e.B=vA(e,7),Hk(e.B,1),xO(e.B),xO(e.B),xO(e.B),e.Q=vA(e,8),Hk(e.Q,0),xO(e.Q),e.R=vA(e,9),Vk(e.R,1),e.S=vA(e,10),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),e.T=vA(e,11),Hk(e.T,10),Hk(e.T,11),Hk(e.T,12),Hk(e.T,13),Hk(e.T,14),xO(e.T),xO(e.T),e.U=vA(e,12),Vk(e.U,2),Vk(e.U,3),Hk(e.U,4),Hk(e.U,5),Hk(e.U,6),Hk(e.U,7),xO(e.U),e.V=vA(e,13),Hk(e.V,10),e.W=vA(e,14),Vk(e.W,18),Vk(e.W,19),Vk(e.W,20),Hk(e.W,21),Hk(e.W,22),Hk(e.W,23),e.bb=vA(e,15),Vk(e.bb,10),Vk(e.bb,11),Vk(e.bb,12),Vk(e.bb,13),Vk(e.bb,14),Vk(e.bb,15),Vk(e.bb,16),Hk(e.bb,17),xO(e.bb),xO(e.bb),e.eb=vA(e,16),Vk(e.eb,2),Vk(e.eb,3),Vk(e.eb,4),Vk(e.eb,5),Vk(e.eb,6),Vk(e.eb,7),Hk(e.eb,8),Hk(e.eb,9),e.ab=vA(e,17),Vk(e.ab,0),Vk(e.ab,1),e.H=vA(e,18),Hk(e.H,0),Hk(e.H,1),Hk(e.H,2),Hk(e.H,3),Hk(e.H,4),Hk(e.H,5),xO(e.H),e.db=vA(e,19),Hk(e.db,2),e.c=yA(e,20),e.d=yA(e,21),e.e=yA(e,22),e.f=yA(e,23),e.i=yA(e,24),e.g=yA(e,25),e.j=yA(e,26),e.k=yA(e,27),e.n=yA(e,28),e.r=yA(e,29),e.s=yA(e,30),e.t=yA(e,31),e.u=yA(e,32),e.fb=yA(e,33),e.A=yA(e,34),e.C=yA(e,35),e.D=yA(e,36),e.F=yA(e,37),e.G=yA(e,38),e.I=yA(e,39),e.J=yA(e,40),e.L=yA(e,41),e.M=yA(e,42),e.N=yA(e,43),e.O=yA(e,44),e.P=yA(e,45),e.X=yA(e,46),e.Y=yA(e,47),e.Z=yA(e,48),e.$=yA(e,49),e._=yA(e,50),e.cb=yA(e,51),e.K=yA(e,52))}function bdt(e,t,n,i){for(var a,o,s,c,l,u,d,f=oP(e.b,0),p,m,h;f.b!=f.d.c;)if(d=F(YT(f),40),!zb(d.c,DG))for(o=F(vE(new Hx(null,new hT(y6e(d,e),16)),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),16),t==(yM(),y8)||t==b8?o.gd(new na):o.gd(new ra),h=o.gc(),a=0;a0&&(c=F(Zy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Zy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(c-p)/40)>50&&(m>l?lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a+i/5.3,d.e.b+d.f.b*s-i/2)):lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a+i/5.3,d.e.b+d.f.b*s+i/2)))),lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a,d.e.b+d.f.b*s))):t==b8?(u=k(P(q(d,(Iz(),b4)))),d.e.a-i>u?lv(F(o.Xb(a),65).a,new j(u-n,d.e.b+d.f.b*s)):F(o.Xb(a),65).a.b>0&&(c=F(Zy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Zy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(c-p)/40)>50&&(m>l?lv(F(o.Xb(a),65).a,new j(d.e.a-i/5.3,d.e.b+d.f.b*s-i/2)):lv(F(o.Xb(a),65).a,new j(d.e.a-i/5.3,d.e.b+d.f.b*s+i/2)))),lv(F(o.Xb(a),65).a,new j(d.e.a,d.e.b+d.f.b*s))):t==S8?(u=k(P(q(d,(Iz(),y4)))),d.e.b+d.f.b+i0&&(c=F(Zy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Zy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(c-p)/(r.Math.abs(l-m)/40)>50&&(p>c?lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s-i/2,d.e.b+i/5.3+d.f.b)):lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s+i/2,d.e.b+i/5.3+d.f.b)))),lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,d.e.b+d.f.b))):(u=k(P(q(d,(Iz(),b4)))),KUe(F(o.Xb(a),65),e)?lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,F(Zy(F(o.Xb(a),65).a),8).b)):d.e.b-i>u?lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,u-n)):F(o.Xb(a),65).a.b>0&&(c=F(Zy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Zy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(c-p)/(r.Math.abs(l-m)/40)>50&&(p>c?lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s-i/2,d.e.b-i/5.3)):lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s+i/2,d.e.b-i/5.3)))),lv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,d.e.b)))}function xdt(e,t,n){var r,i,a,o=t,s,c,l,u,d,f=n,p,m,h,g,_,v,y,b,x,S;if(kS(e.a,o)){if(hh(F(tC(e.a,o),48),f))return 1}else TC(e.a,o,new pf);if(kS(e.a,f)){if(hh(F(tC(e.a,f),48),o))return-1}else TC(e.a,f,new pf);if(kS(e.e,o)){if(hh(F(tC(e.e,o),48),f))return-1}else TC(e.e,o,new pf);if(kS(e.e,f)){if(hh(F(tC(e.a,f),48),o))return 1}else TC(e.e,f,new pf);if(o.j!=f.j)return x=yme(o.j,f.j),x>0?OR(e,o,f,1):OR(e,f,o,1),x;if(S=1,o.e.c.length!=0&&f.e.c.length!=0){if((o.j==(Lz(),N5)&&f.j==N5||o.j==m5&&f.j==m5||o.j==j5&&f.j==j5)&&(S=-S),u=F(zx(o.e,0),17).c,g=F(zx(f.e,0),17).c,c=u.i,m=g.i,c==m)for(y=new D(c.j);y.a0?(OR(e,o,f,S),S):(OR(e,f,o,S),-S);if(r=xGe(F(vE(OTe(e.d),vD(new Ce,new Se,new Ee,W(A(LY,1),Z,130,0,[(jj(),IY)]))),20),c,m),r!=0)return r>0?(OR(e,o,f,S),S):(OR(e,f,o,S),-S);if(e.c&&(x=lXe(e,o,f),x!=0))return x>0?(OR(e,o,f,S),S):(OR(e,f,o,S),-S)}return o.g.c.length!=0&&f.g.c.length!=0?((o.j==(Lz(),N5)&&f.j==N5||o.j==j5&&f.j==j5)&&(S=-S),d=F(q(o,(X(),O$)),9),_=F(q(f,O$),9),e.f==(LN(),y2)&&d&&_&&ib(d,j$)&&ib(_,j$)?(s=RL(d,_,e.b,F(q(e.b,A$),15).a),p=RL(_,d,e.b,F(q(e.b,A$),15).a),s>p?(OR(e,o,f,S),S):(OR(e,f,o,S),-S)):e.c&&(x=lXe(e,o,f),x!=0)?x>0?(OR(e,o,f,S),S):(OR(e,f,o,S),-S):(l=0,h=0,ib(F(zx(o.g,0),17),j$)&&(l=RL(F(zx(o.g,0),246),F(zx(f.g,0),246),e.b,o.g.c.length+o.e.c.length)),ib(F(zx(f.g,0),17),j$)&&(h=RL(F(zx(f.g,0),246),F(zx(o.g,0),246),e.b,f.g.c.length+f.e.c.length)),d&&d==_||e.g&&(e.g._b(d)&&(l=F(e.g.xc(d),15).a),e.g._b(_)&&(h=F(e.g.xc(_),15).a)),l>h?(OR(e,o,f,S),S):(OR(e,f,o,S),-S))):o.e.c.length!=0&&f.g.c.length!=0?(OR(e,o,f,S),1):o.g.c.length!=0&&f.e.c.length!=0?(OR(e,f,o,S),-1):ib(o,(X(),j$))&&ib(f,j$)?(a=o.i.j.c.length,s=RL(o,f,e.b,a),p=RL(f,o,e.b,a),(o.j==(Lz(),N5)&&f.j==N5||o.j==j5&&f.j==j5)&&(S=-S),s>p?(OR(e,o,f,S),S):(OR(e,f,o,S),-S)):(OR(e,f,o,S),-S)}function X(){X=C;var e,t;M$=new hd($ft),nEt=new hd(`coordinateOrigin`),L$=new hd(`processors`),tEt=new kb(`compoundNode`,(ky(),!1)),y$=new kb(`insideConnections`,!1),sEt=new hd(`originalBendpoints`),cEt=new hd(`originalDummyNodePosition`),lEt=new hd(`originalLabelEdge`),z$=new hd(`representedLabels`),l$=new hd(`endLabels`),u$=new hd(`endLabel.origin`),C$=new kb(`labelSide`,(dF(),z8)),k$=new kb(`maxEdgeThickness`,0),B$=new kb(`reversed`,!1),R$=new hd(ept),E$=new kb(`longEdgeSource`,null),D$=new kb(`longEdgeTarget`,null),T$=new kb(`longEdgeHasLabelDummies`,!1),w$=new kb(`longEdgeBeforeLabelDummy`,!1),c$=new kb(`edgeConstraint`,(QA(),SQ)),x$=new hd(`inLayerLayoutUnit`),b$=new kb(`inLayerConstraint`,(uO(),$Q)),S$=new kb(`inLayerSuccessorConstraint`,new kd),aEt=new kb(`inLayerSuccessorConstraintBetweenNonDummies`,!1),F$=new hd(`portDummy`),o$=new kb(`crossingHint`,K(0)),g$=new kb(`graphProperties`,(t=F(Um(WQ),10),new Jb(t,F(Ob(t,t.length),10),0))),m$=new kb(`externalPortSide`,(Lz(),M5)),iEt=new kb(`externalPortSize`,new Rm),f$=new hd(`externalPortReplacedDummies`),p$=new hd(`externalPortReplacedDummy`),d$=new kb(`externalPortConnections`,(e=F(Um(P5),10),new Jb(e,F(Ob(e,e.length),10),0))),I$=new kb(Uft,0),eEt=new hd(`barycenterAssociates`),Q$=new hd(`TopSideComments`),n$=new hd(`BottomSideComments`),a$=new hd(`CommentConnectionPort`),v$=new kb(`inputCollect`,!1),N$=new kb(`outputCollect`,!1),s$=new kb(`cyclic`,!1),rEt=new hd(`crossHierarchyMap`),J$=new hd(`targetOffset`),new kb(`splineLabelSize`,new Rm),U$=new hd(`spacings`),P$=new kb(`partitionConstraint`,!1),r$=new hd(`breakingPoint.info`),fEt=new hd(`splines.survivingEdge`),K$=new hd(`splines.route.start`),W$=new hd(`splines.edgeChain`),dEt=new hd(`originalPortConstraints`),H$=new hd(`selfLoopHolder`),G$=new hd(`splines.nsPortY`),j$=new hd(`modelOrder`),A$=new hd(`modelOrder.maximum`),i$=new hd(`modelOrderGroups.cb.number`),O$=new hd(`longEdgeTargetNode`),h$=new kb(Npt,!1),V$=new kb(Npt,!1),_$=new hd(`layerConstraints.hiddenNodes`),uEt=new hd(`layerConstraints.opposidePort`),q$=new hd(`targetNode.modelOrder`),X$=new kb(`tarjan.lowlink`,K(lB)),Y$=new kb(`tarjan.id`,K(-1)),Z$=new kb(`tarjan.onstack`,!1),oEt=new kb(`partOfCycle`,!1),$$=new hd(`medianHeuristic.weight`)}function Qz(){Qz=C;var e,t;A6=new hd(zgt),c8=new hd(Bgt),lLt=(wP(),g6),cLt=new dv(qmt,lLt),new Od,j6=new dv(qH,null),uLt=new hd(Vgt),mLt=(IF(),eS(O6,W(A(k6,1),Z,299,0,[w6]))),P6=new dv(rG,mLt),F6=new dv(tG,(ky(),!1)),hLt=(yM(),x8),I6=new dv(nG,hLt),vLt=(CM(),ORt),_Lt=new dv(JW,vLt),xLt=new dv(Lgt,!1),SLt=(Oj(),P8),z6=new dv(qW,SLt),ILt=new Rv(12),$6=new dv(XH,ILt),H6=new dv(ZH,!1),U6=new dv(sG,!1),Q6=new dv(eU,!1),KLt=(VF(),a5),r8=new dv(QH,KLt),o8=new hd(oG),s8=new hd(WH),QLt=new hd(JH),eRt=new hd(YH),OLt=new qf,W6=new dv(iht,OLt),pLt=new dv(cht,!1),CLt=new dv(lht,!1),new hd(Hgt),new dv(Ugt,0),kLt=new Rf,G6=new dv(dht,kLt),Z6=new dv(Gmt,!1),new Od,$Lt=new dv(Wgt,1),N6=new hd(Ggt),M6=new hd(Kgt),m8=new dv(oU,!1),new dv(qgt,!0),K(0),new dv(Jgt,K(100)),new dv(Ygt,!1),K(0),new dv(Xgt,K(4e3)),K(0),new dv(Zgt,K(400)),new dv(Qgt,!1),new dv($gt,!1),new dv(e_t,!0),new dv(t_t,!1),fLt=(cN(),Ozt),dLt=new dv(Rgt,fLt),DLt=(BO(),F5),ELt=new dv(n_t,DLt),TLt=(Zj(),T8),wLt=new dv(r_t,TLt),tRt=new dv(Nmt,10),nRt=new dv(Pmt,10),rRt=new dv(Fmt,20),iRt=new dv(Imt,10),aRt=new dv(KH,2),oRt=new dv(eG,10),sRt=new dv(Lmt,0),u8=new dv(Bmt,5),cRt=new dv(Rmt,1),lRt=new dv(zmt,1),d8=new dv(GH,20),uRt=new dv(Vmt,10),pRt=new dv(Hmt,10),l8=new hd(Umt),fRt=new hme,dRt=new dv(fht,fRt),zLt=new hd(aG),RLt=!1,LLt=new dv(iG,RLt),jLt=new Rv(5),ALt=new dv(Xmt,jLt),MLt=(cL(),t=F(Um(Y8),10),new Jb(t,F(Ob(t,t.length),10),0)),K6=new dv(iU,MLt),HLt=(aP(),Z8),VLt=new dv($mt,HLt),t8=new hd(eht),ULt=new hd(tht),WLt=new hd(nht),e8=new hd(rht),NLt=(e=F(Um(B5),10),new Jb(e,F(Ob(e,e.length),10),0)),q6=new dv(rU,NLt),FLt=JM((wR(),U5)),X6=new dv(nU,FLt),PLt=new j(0,0),Y6=new dv(fU,PLt),J6=new dv(tU,!1),gLt=(NO(),E8),R6=new dv(oht,gLt),L6=new dv($H,!1),new hd(i_t),K(1),new dv(a_t,null),GLt=new hd(uht),qLt=new hd(sht),ZLt=(Lz(),M5),a8=new dv(Kmt,ZLt),n8=new hd(Wmt),YLt=(BI(),JM(u5)),i8=new dv(aU,YLt),JLt=new dv(Zmt,!1),XLt=new dv(Qmt,!0),K(1),vRt=new dv(yK,K(3)),K(1),bRt=new dv(o_t,K(4)),new Od,g8=new dv(sU,1),_8=new dv(bK,null),p8=new dv(cU,150),f8=new dv(lU,1.414),h8=new dv(uU,null),mRt=new dv(s_t,1),B6=new dv(Jmt,!1),V6=new dv(Ymt,!1),yLt=new dv(aht,1),bLt=(eI(),FRt),new dv(c_t,bLt),BLt=!0,yRt=(xE(),xzt),gRt=(bM(),Y5),_Rt=Y5,hRt=Y5}function $z(){$z=C,cwt=new Cg(`DIRECTION_PREPROCESSOR`,0),awt=new Cg(`COMMENT_PREPROCESSOR`,1),rZ=new Cg(`EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER`,2),sZ=new Cg(`INTERACTIVE_EXTERNAL_PORT_POSITIONER`,3),Owt=new Cg(`PARTITION_PREPROCESSOR`,4),uZ=new Cg(`LABEL_DUMMY_INSERTER`,5),TZ=new Cg(`SELF_LOOP_PREPROCESSOR`,6),hZ=new Cg(`LAYER_CONSTRAINT_PREPROCESSOR`,7),Ewt=new Cg(`PARTITION_MIDPROCESSOR`,8),gwt=new Cg(`HIGH_DEGREE_NODE_LAYER_PROCESSOR`,9),wwt=new Cg(`NODE_PROMOTION`,10),mZ=new Cg(`LAYER_CONSTRAINT_POSTPROCESSOR`,11),Dwt=new Cg(`PARTITION_POSTPROCESSOR`,12),pwt=new Cg(`HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR`,13),kwt=new Cg(`SEMI_INTERACTIVE_CROSSMIN_PROCESSOR`,14),$Ct=new Cg(`BREAKING_POINT_INSERTER`,15),_Z=new Cg(`LONG_EDGE_SPLITTER`,16),xZ=new Cg(`PORT_SIDE_PROCESSOR`,17),cZ=new Cg(`INVERTED_PORT_PROCESSOR`,18),bZ=new Cg(`PORT_LIST_SORTER`,19),jwt=new Cg(`SORT_BY_INPUT_ORDER_OF_MODEL`,20),yZ=new Cg(`NORTH_SOUTH_PORT_PREPROCESSOR`,21),ewt=new Cg(`BREAKING_POINT_PROCESSOR`,22),Twt=new Cg(wpt,23),Mwt=new Cg(Tpt,24),CZ=new Cg(`SELF_LOOP_PORT_RESTORER`,25),QCt=new Cg(`ALTERNATING_LAYER_UNZIPPER`,26),Awt=new Cg(`SINGLE_EDGE_GRAPH_WRAPPER`,27),lZ=new Cg(`IN_LAYER_CONSTRAINT_PROCESSOR`,28),uwt=new Cg(`END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR`,29),xwt=new Cg(`LABEL_AND_NODE_SIZE_PROCESSOR`,30),bwt=new Cg(`INNERMOST_NODE_MARGIN_CALCULATOR`,31),EZ=new Cg(`SELF_LOOP_ROUTER`,32),rwt=new Cg(`COMMENT_NODE_MARGIN_CALCULATOR`,33),aZ=new Cg(`END_LABEL_PREPROCESSOR`,34),fZ=new Cg(`LABEL_DUMMY_SWITCHER`,35),nwt=new Cg(`CENTER_LABEL_MANAGEMENT_PROCESSOR`,36),pZ=new Cg(`LABEL_SIDE_SELECTOR`,37),vwt=new Cg(`HYPEREDGE_DUMMY_MERGER`,38),mwt=new Cg(`HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR`,39),Cwt=new Cg(`NODE_PLACEMENT_REPEATER`,40),Swt=new Cg(`LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR`,41),oZ=new Cg(`HIERARCHICAL_PORT_POSITION_PROCESSOR`,42),owt=new Cg(`CONSTRAINTS_POSTPROCESSOR`,43),iwt=new Cg(`COMMENT_POSTPROCESSOR`,44),ywt=new Cg(`HYPERNODE_PROCESSOR`,45),hwt=new Cg(`HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER`,46),gZ=new Cg(`LONG_EDGE_JOINER`,47),wZ=new Cg(`SELF_LOOP_POSTPROCESSOR`,48),twt=new Cg(`BREAKING_POINT_REMOVER`,49),vZ=new Cg(`NORTH_SOUTH_PORT_POSTPROCESSOR`,50),_wt=new Cg(`HORIZONTAL_COMPACTOR`,51),dZ=new Cg(`LABEL_DUMMY_REMOVER`,52),dwt=new Cg(`FINAL_SPLINE_BENDPOINTS_CALCULATOR`,53),lwt=new Cg(`END_LABEL_SORTER`,54),SZ=new Cg(`REVERSED_EDGE_RESTORER`,55),iZ=new Cg(`END_LABEL_POSTPROCESSOR`,56),fwt=new Cg(`HIERARCHICAL_NODE_RESIZER`,57),swt=new Cg(`DIRECTION_POSTPROCESSOR`,58)}function Sdt(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C,re,ie,ae,oe,se,w,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De=0,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie;for(oe=t,ce=0,de=oe.length;ce0&&(e.a[ve.p]=De++)}for(Me=0,se=n,le=0,fe=se.length;le0;){for(ve=(tb(Se.b>0),F(Se.a.Xb(Se.c=--Se.b),12)),xe=0,c=new D(ve.e);c.a0&&(ve.j==(Lz(),m5)?(e.a[ve.p]=Me,++Me):(e.a[ve.p]=Me+pe+he,++he))}Me+=he}for(be=new Ad,h=new Cv,ae=t,w=0,ue=ae.length;wu.b&&(u.b=Ce)):ve.i.c==Ee&&(Ceu.c&&(u.c=Ce));for(kD(g,0,g.length,null),je=H(q9,vV,30,g.length,15,1),i=H(q9,vV,30,Me+1,15,1),v=0;v0;)te%2>0&&(a+=Fe[te+1]),te=(te-1)/2|0,++Fe[te];for(C=H(Bjt,mB,370,g.length*2,0,1),x=0;x0&&Ew(w.f),Y(v,_8)!=null&&(!v.a&&(v.a=new I(p7,v,10,11)),v.a)&&(!v.a&&(v.a=new I(p7,v,10,11)),v.a).i>0?(c=F(Y(v,_8),522),xe=c.Sg(v),jv(v,r.Math.max(v.g,xe.a+pe.b+pe.c),r.Math.max(v.f,xe.b+pe.d+pe.a))):(!v.a&&(v.a=new I(p7,v,10,11)),v.a).i!=0&&(xe=new j(k(P(Y(v,p8))),k(P(Y(v,p8)))/k(P(Y(v,f8)))),jv(v,r.Math.max(v.g,xe.a+pe.b+pe.c),r.Math.max(v.f,xe.b+pe.d+pe.a)));if(fe=F(Y(t,$6),104),m=t.g-(fe.b+fe.c),p=t.f-(fe.d+fe.a),we.ah(`Available Child Area: (`+m+`|`+p+`)`),_P(t,j6,m/p),hYe(t,a,i.dh(ue)),F(Y(t,h8),281)==X5&&(Uz(t),jv(t,fe.b+k(P(Y(t,N6)))+fe.c,fe.d+k(P(Y(t,M6)))+fe.a)),we.ah(`Executed layout algorithm: `+fb(Y(t,A6))+` on node `+t.k),F(Y(t,h8),281)==Y5){if(m<0||p<0)throw O(new rm(`The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. `+t.k));for(lD(t,N6)||lD(t,M6)||Uz(t),g=k(P(Y(t,N6))),h=k(P(Y(t,M6))),we.ah(`Desired Child Area: (`+g+`|`+h+`)`),he=m/g,ge=p/h,me=r.Math.min(he,r.Math.min(ge,k(P(Y(t,mRt))))),_P(t,g8,me),we.ah(t.k+` -- Local Scale Factor (X|Y): (`+he+`|`+ge+`)`),x=F(Y(t,P6),22),o=0,s=0,me'?`:zb(tvt,e)?`'(?<' or '(? toIndex: `,yft=`, toIndex: `,bft=`Index: `,xft=`, Size: `,uH=`org.eclipse.elk.alg.common`,dH={51:1},Sft=`org.eclipse.elk.alg.common.compaction`,Cft=`Scanline/EventHandler`,fH=`org.eclipse.elk.alg.common.compaction.oned`,wft=`CNode belongs to another CGroup.`,Tft=`ISpacingsHandler/1`,pH=`The `,mH=` instance has been finished already.`,Eft=`The direction `,Dft=` is not supported by the CGraph instance.`,Oft=`OneDimensionalCompactor`,kft=`OneDimensionalCompactor/lambda$0$Type`,Aft=`Quadruplet`,jft=`ScanlineConstraintCalculator`,Mft=`ScanlineConstraintCalculator/ConstraintsScanlineHandler`,Nft=`ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type`,Pft=`ScanlineConstraintCalculator/Timestamp`,Fft=`ScanlineConstraintCalculator/lambda$0$Type`,hH={178:1,46:1},gH=`org.eclipse.elk.alg.common.networksimplex`,_H={171:1,3:1,4:1},Ift=`org.eclipse.elk.alg.common.nodespacing`,vH=`org.eclipse.elk.alg.common.nodespacing.cellsystem`,yH=`CENTER`,Lft={216:1,337:1},Rft={3:1,4:1,5:1,593:1},bH=`LEFT`,xH=`RIGHT`,zft=`Vertical alignment cannot be null`,Bft=`BOTTOM`,SH=`org.eclipse.elk.alg.common.nodespacing.internal`,CH=`UNDEFINED`,wH=.01,TH=`org.eclipse.elk.alg.common.nodespacing.internal.algorithm`,Vft=`LabelPlacer/lambda$0$Type`,Hft=`LabelPlacer/lambda$1$Type`,Uft=`portRatioOrPosition`,EH=`org.eclipse.elk.alg.common.overlaps`,DH=`DOWN`,OH=`org.eclipse.elk.alg.common.spore`,kH={3:1,4:1,5:1,198:1},Wft={3:1,6:1,4:1,5:1,90:1,110:1},AH=`org.eclipse.elk.alg.force`,Gft=`ComponentsProcessor`,Kft=`ComponentsProcessor/1`,qft=`ElkGraphImporter/lambda$0$Type`,jH={214:1},MH=`org.eclipse.elk.core`,NH=`org.eclipse.elk.graph.properties`,Jft=`IPropertyHolder`,PH=`org.eclipse.elk.alg.force.graph`,Yft=`Component Layout`,Xft=`org.eclipse.elk.alg.force.model`,FH=`org.eclipse.elk.core.data`,IH=`org.eclipse.elk.force.model`,Zft=`org.eclipse.elk.force.iterations`,Qft=`org.eclipse.elk.force.repulsivePower`,LH=`org.eclipse.elk.force.temperature`,RH=.001,zH=`org.eclipse.elk.force.repulsion`,BH={148:1},VH=`org.eclipse.elk.alg.force.options`,HH=1.600000023841858,UH=`org.eclipse.elk.force`,WH=`org.eclipse.elk.priority`,GH=`org.eclipse.elk.spacing.nodeNode`,KH=`org.eclipse.elk.spacing.edgeLabel`,qH=`org.eclipse.elk.aspectRatio`,JH=`org.eclipse.elk.randomSeed`,YH=`org.eclipse.elk.separateConnectedComponents`,XH=`org.eclipse.elk.padding`,ZH=`org.eclipse.elk.interactive`,QH=`org.eclipse.elk.portConstraints`,$H=`org.eclipse.elk.edgeLabels.inline`,eU=`org.eclipse.elk.omitNodeMicroLayout`,tU=`org.eclipse.elk.nodeSize.fixedGraphSize`,nU=`org.eclipse.elk.nodeSize.options`,rU=`org.eclipse.elk.nodeSize.constraints`,iU=`org.eclipse.elk.nodeLabels.placement`,aU=`org.eclipse.elk.portLabels.placement`,oU=`org.eclipse.elk.topdownLayout`,sU=`org.eclipse.elk.topdown.scaleFactor`,cU=`org.eclipse.elk.topdown.hierarchicalNodeWidth`,lU=`org.eclipse.elk.topdown.hierarchicalNodeAspectRatio`,uU=`org.eclipse.elk.topdown.nodeType`,$ft=`origin`,ept=`random`,tpt=`boundingBox.upLeft`,npt=`boundingBox.lowRight`,rpt=`org.eclipse.elk.stress.fixed`,ipt=`org.eclipse.elk.stress.desiredEdgeLength`,apt=`org.eclipse.elk.stress.dimension`,opt=`org.eclipse.elk.stress.epsilon`,spt=`org.eclipse.elk.stress.iterationLimit`,dU=`org.eclipse.elk.stress`,cpt=`ELK Stress`,fU=`org.eclipse.elk.nodeSize.minimum`,pU=`org.eclipse.elk.alg.force.stress`,lpt=`Layered layout`,mU=`org.eclipse.elk.alg.layered`,hU=`org.eclipse.elk.alg.layered.compaction.components`,gU=`org.eclipse.elk.alg.layered.compaction.oned`,_U=`org.eclipse.elk.alg.layered.compaction.oned.algs`,vU=`org.eclipse.elk.alg.layered.compaction.recthull`,yU=`org.eclipse.elk.alg.layered.components`,bU=`NONE`,xU=`MODEL_ORDER`,SU={3:1,6:1,4:1,10:1,5:1,126:1},upt={3:1,6:1,4:1,5:1,135:1,90:1,110:1},CU=`org.eclipse.elk.alg.layered.compound`,wU={43:1},TU=`org.eclipse.elk.alg.layered.graph`,EU=` -> `,dpt=`Not supported by LGraph`,fpt=`Port side is undefined`,DU={3:1,6:1,4:1,5:1,324:1,135:1,90:1,110:1},OU={3:1,6:1,4:1,5:1,135:1,199:1,209:1,90:1,110:1},ppt={3:1,6:1,4:1,5:1,135:1,2007:1,209:1,90:1,110:1},mpt=`([{"' \r -`,hpt=`)]}"' \r -`,gpt=`The given string contains parts that cannot be parsed as numbers.`,kU=`org.eclipse.elk.core.math`,_pt={3:1,4:1,140:1,213:1,414:1},vpt={3:1,4:1,104:1,213:1,414:1},AU=`org.eclipse.elk.alg.layered.graph.transform`,ypt=`ElkGraphImporter`,bpt=`ElkGraphImporter/lambda$1$Type`,xpt=`ElkGraphImporter/lambda$2$Type`,Spt=`ElkGraphImporter/lambda$4$Type`,jU=`org.eclipse.elk.alg.layered.intermediate`,Cpt=`Node margin calculation`,wpt=`ONE_SIDED_GREEDY_SWITCH`,Tpt=`TWO_SIDED_GREEDY_SWITCH`,MU=`No implementation is available for the layout processor `,NU=`IntermediateProcessorStrategy`,PU=`Node '`,Ept=`FIRST_SEPARATE`,Dpt=`LAST_SEPARATE`,Opt=`Odd port side processing`,FU=`org.eclipse.elk.alg.layered.intermediate.compaction`,IU=`org.eclipse.elk.alg.layered.intermediate.greedyswitch`,LU=`org.eclipse.elk.alg.layered.p3order.counting`,RU={220:1},zU=`org.eclipse.elk.alg.layered.intermediate.loops`,BU=`org.eclipse.elk.alg.layered.intermediate.loops.ordering`,VU=`org.eclipse.elk.alg.layered.intermediate.loops.routing`,HU=`org.eclipse.elk.alg.layered.intermediate.preserveorder`,UU=`org.eclipse.elk.alg.layered.intermediate.wrapping`,WU=`org.eclipse.elk.alg.layered.options`,GU=`INTERACTIVE`,kpt=`GREEDY`,Apt=`DEPTH_FIRST`,jpt=`EDGE_LENGTH`,Mpt=`SELF_LOOPS`,Npt=`firstTryWithInitialOrder`,Ppt=`org.eclipse.elk.layered.directionCongruency`,Fpt=`org.eclipse.elk.layered.feedbackEdges`,KU=`org.eclipse.elk.layered.interactiveReferencePoint`,Ipt=`org.eclipse.elk.layered.mergeEdges`,Lpt=`org.eclipse.elk.layered.mergeHierarchyEdges`,Rpt=`org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides`,zpt=`org.eclipse.elk.layered.portSortingStrategy`,Bpt=`org.eclipse.elk.layered.thoroughness`,Vpt=`org.eclipse.elk.layered.unnecessaryBendpoints`,Hpt=`org.eclipse.elk.layered.generatePositionAndLayerIds`,qU=`org.eclipse.elk.layered.cycleBreaking.strategy`,JU=`org.eclipse.elk.layered.layering.strategy`,Upt=`org.eclipse.elk.layered.layering.layerConstraint`,Wpt=`org.eclipse.elk.layered.layering.layerChoiceConstraint`,Gpt=`org.eclipse.elk.layered.layering.layerId`,YU=`org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth`,XU=`org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor`,ZU=`org.eclipse.elk.layered.layering.nodePromotion.strategy`,QU=`org.eclipse.elk.layered.layering.nodePromotion.maxIterations`,$U=`org.eclipse.elk.layered.layering.coffmanGraham.layerBound`,eW=`org.eclipse.elk.layered.crossingMinimization.strategy`,Kpt=`org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder`,tW=`org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness`,nW=`org.eclipse.elk.layered.crossingMinimization.semiInteractive`,qpt=`org.eclipse.elk.layered.crossingMinimization.inLayerPredOf`,Jpt=`org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf`,Ypt=`org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint`,Xpt=`org.eclipse.elk.layered.crossingMinimization.positionId`,Zpt=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold`,rW=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.type`,iW=`org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type`,aW=`org.eclipse.elk.layered.nodePlacement.strategy`,oW=`org.eclipse.elk.layered.nodePlacement.favorStraightEdges`,sW=`org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening`,cW=`org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment`,lW=`org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening`,uW=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility`,dW=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default`,fW=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.recomputeNodePlacement`,Qpt=`org.eclipse.elk.layered.edgeRouting.selfLoopDistribution`,$pt=`org.eclipse.elk.layered.edgeRouting.selfLoopOrdering`,pW=`org.eclipse.elk.layered.edgeRouting.splines.mode`,mW=`org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor`,hW=`org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth`,emt=`org.eclipse.elk.layered.spacing.baseValue`,tmt=`org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers`,nmt=`org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers`,rmt=`org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers`,imt=`org.eclipse.elk.layered.priority.direction`,amt=`org.eclipse.elk.layered.priority.shortness`,omt=`org.eclipse.elk.layered.priority.straightness`,gW=`org.eclipse.elk.layered.compaction.connectedComponents`,smt=`org.eclipse.elk.layered.compaction.postCompaction.strategy`,cmt=`org.eclipse.elk.layered.compaction.postCompaction.constraints`,_W=`org.eclipse.elk.layered.highDegreeNodes.treatment`,vW=`org.eclipse.elk.layered.highDegreeNodes.threshold`,yW=`org.eclipse.elk.layered.highDegreeNodes.treeHeight`,bW=`org.eclipse.elk.layered.wrapping.strategy`,xW=`org.eclipse.elk.layered.wrapping.additionalEdgeSpacing`,SW=`org.eclipse.elk.layered.wrapping.correctionFactor`,CW=`org.eclipse.elk.layered.wrapping.cutting.strategy`,wW=`org.eclipse.elk.layered.wrapping.cutting.cuts`,TW=`org.eclipse.elk.layered.wrapping.cutting.msd.freedom`,EW=`org.eclipse.elk.layered.wrapping.validify.strategy`,DW=`org.eclipse.elk.layered.wrapping.validify.forbiddenIndices`,OW=`org.eclipse.elk.layered.wrapping.multiEdge.improveCuts`,kW=`org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty`,AW=`org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges`,jW=`org.eclipse.elk.layered.layerUnzipping.strategy`,MW=`org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength`,NW=`org.eclipse.elk.layered.layerUnzipping.layerSplit`,PW=`org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges`,lmt=`org.eclipse.elk.layered.edgeLabels.sideSelection`,umt=`org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy`,FW=`org.eclipse.elk.layered.considerModelOrder.strategy`,dmt=`org.eclipse.elk.layered.considerModelOrder.portModelOrder`,IW=`org.eclipse.elk.layered.considerModelOrder.noModelOrder`,LW=`org.eclipse.elk.layered.considerModelOrder.components`,fmt=`org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy`,RW=`org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence`,zW=`org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence`,BW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId`,VW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId`,HW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId`,pmt=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy`,UW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId`,WW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId`,mmt=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy`,hmt=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders`,GW=`layering`,gmt=`layering.minWidth`,_mt=`layering.nodePromotion`,KW=`crossingMinimization`,qW=`org.eclipse.elk.hierarchyHandling`,vmt=`crossingMinimization.greedySwitch`,ymt=`nodePlacement`,bmt=`nodePlacement.bk`,xmt=`nodePlacement.networkSimplex.nodeFlexibility`,Smt=`edgeRouting`,JW=`org.eclipse.elk.edgeRouting`,YW=`spacing`,Cmt=`priority`,wmt=`compaction`,Tmt=`compaction.postCompaction`,Emt=`Specifies whether and how post-process compaction is applied.`,Dmt=`highDegreeNodes`,Omt=`wrapping`,kmt=`wrapping.cutting`,Amt=`wrapping.validify`,jmt=`wrapping.multiEdge`,XW=`layerUnzipping`,ZW=`edgeLabels`,QW=`considerModelOrder`,$W=`considerModelOrder.groupModelOrder`,Mmt=`Group ID of the Node Type`,Nmt=`org.eclipse.elk.spacing.commentComment`,Pmt=`org.eclipse.elk.spacing.commentNode`,Fmt=`org.eclipse.elk.spacing.componentComponent`,Imt=`org.eclipse.elk.spacing.edgeEdge`,eG=`org.eclipse.elk.spacing.edgeNode`,Lmt=`org.eclipse.elk.spacing.labelLabel`,Rmt=`org.eclipse.elk.spacing.labelPortHorizontal`,zmt=`org.eclipse.elk.spacing.labelPortVertical`,Bmt=`org.eclipse.elk.spacing.labelNode`,Vmt=`org.eclipse.elk.spacing.nodeSelfLoop`,Hmt=`org.eclipse.elk.spacing.portPort`,Umt=`org.eclipse.elk.spacing.individual`,Wmt=`org.eclipse.elk.port.borderOffset`,Gmt=`org.eclipse.elk.noLayout`,Kmt=`org.eclipse.elk.port.side`,tG=`org.eclipse.elk.debugMode`,qmt=`org.eclipse.elk.alignment`,Jmt=`org.eclipse.elk.insideSelfLoops.activate`,Ymt=`org.eclipse.elk.insideSelfLoops.yo`,nG=`org.eclipse.elk.direction`,Xmt=`org.eclipse.elk.nodeLabels.padding`,Zmt=`org.eclipse.elk.portLabels.nextToPortIfPossible`,Qmt=`org.eclipse.elk.portLabels.treatAsGroup`,$mt=`org.eclipse.elk.portAlignment.default`,eht=`org.eclipse.elk.portAlignment.north`,tht=`org.eclipse.elk.portAlignment.south`,nht=`org.eclipse.elk.portAlignment.west`,rht=`org.eclipse.elk.portAlignment.east`,rG=`org.eclipse.elk.contentAlignment`,iht=`org.eclipse.elk.junctionPoints`,aht=`org.eclipse.elk.edge.thickness`,oht=`org.eclipse.elk.edgeLabels.placement`,sht=`org.eclipse.elk.port.index`,cht=`org.eclipse.elk.commentBox`,lht=`org.eclipse.elk.hypernode`,uht=`org.eclipse.elk.port.anchor`,iG=`org.eclipse.elk.partitioning.activate`,aG=`org.eclipse.elk.partitioning.partition`,oG=`org.eclipse.elk.position`,dht=`org.eclipse.elk.margins`,fht=`org.eclipse.elk.spacing.portsSurrounding`,sG=`org.eclipse.elk.interactiveLayout`,cG=`org.eclipse.elk.core.util`,pht={3:1,4:1,5:1,591:1},mht=`NETWORK_SIMPLEX`,hht=`SIMPLE`,lG={95:1,43:1},uG=`org.eclipse.elk.alg.layered.p1cycles`,ght=`Depth-first cycle removal`,_ht=`Model order cycle breaking`,dG=`org.eclipse.elk.alg.layered.p2layers`,vht={406:1,220:1},yht={831:1,3:1,4:1},fG=`org.eclipse.elk.alg.layered.p3order`,pG=17976931348623157e292,mG=5e-324,hG=`org.eclipse.elk.alg.layered.p4nodes`,bht={3:1,4:1,5:1,839:1},gG=1e-5,_G=`org.eclipse.elk.alg.layered.p4nodes.bk`,vG=`org.eclipse.elk.alg.layered.p5edges`,yG=`org.eclipse.elk.alg.layered.p5edges.orthogonal`,bG=`org.eclipse.elk.alg.layered.p5edges.orthogonal.direction`,xG=1e-6,SG=`org.eclipse.elk.alg.layered.p5edges.splines`,CG=.09999999999999998,wG=1e-8,xht=4.71238898038469,Sht=1.5707963267948966,Cht=3.141592653589793,TG=`org.eclipse.elk.alg.mrtree`,EG=.10000000149011612,DG=`SUPER_ROOT`,OG=`org.eclipse.elk.alg.mrtree.graph`,wht=-17976931348623157e292,kG=`org.eclipse.elk.alg.mrtree.intermediate`,Tht=`Processor compute fanout`,AG={3:1,6:1,4:1,5:1,523:1,90:1,110:1},Eht=`Set neighbors in level`,jG=`org.eclipse.elk.alg.mrtree.options`,Dht=`DESCENDANTS`,Oht=`org.eclipse.elk.mrtree.compaction`,kht=`org.eclipse.elk.mrtree.edgeEndTextureLength`,Aht=`org.eclipse.elk.mrtree.treeLevel`,jht=`org.eclipse.elk.mrtree.positionConstraint`,Mht=`org.eclipse.elk.mrtree.weighting`,Nht=`org.eclipse.elk.mrtree.edgeRoutingMode`,Pht=`org.eclipse.elk.mrtree.searchOrder`,Fht=`Position Constraint`,MG=`org.eclipse.elk.mrtree`,Iht=`org.eclipse.elk.tree`,Lht=`Processor arrange level`,NG=`org.eclipse.elk.alg.mrtree.p2order`,PG=`org.eclipse.elk.alg.mrtree.p4route`,Rht=`org.eclipse.elk.alg.radial`,FG=6.283185307179586,zht=`Before`,IG=`After`,Bht=`org.eclipse.elk.alg.radial.intermediate`,Vht=`COMPACTION`,LG=`org.eclipse.elk.alg.radial.intermediate.compaction`,Hht={3:1,4:1,5:1,90:1},Uht=`org.eclipse.elk.alg.radial.intermediate.optimization`,RG=`No implementation is available for the layout option `,zG=`org.eclipse.elk.alg.radial.options`,Wht=`CompactionStrategy`,Ght=`org.eclipse.elk.radial.centerOnRoot`,Kht=`org.eclipse.elk.radial.orderId`,qht=`org.eclipse.elk.radial.radius`,BG=`org.eclipse.elk.radial.rotate`,VG=`org.eclipse.elk.radial.compactor`,HG=`org.eclipse.elk.radial.compactionStepSize`,Jht=`org.eclipse.elk.radial.sorter`,Yht=`org.eclipse.elk.radial.wedgeCriteria`,Xht=`org.eclipse.elk.radial.optimizationCriteria`,UG=`org.eclipse.elk.radial.rotation.targetAngle`,WG=`org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace`,Zht=`org.eclipse.elk.radial.rotation.outgoingEdgeAngles`,Qht=`Compaction`,$ht=`rotation`,GG=`org.eclipse.elk.radial`,egt=`org.eclipse.elk.alg.radial.p1position.wedge`,tgt=`org.eclipse.elk.alg.radial.sorting`,ngt=5.497787143782138,rgt=3.9269908169872414,igt=2.356194490192345,agt=`org.eclipse.elk.alg.rectpacking`,KG=`org.eclipse.elk.alg.rectpacking.intermediate`,qG=`org.eclipse.elk.alg.rectpacking.options`,ogt=`org.eclipse.elk.rectpacking.trybox`,sgt=`org.eclipse.elk.rectpacking.currentPosition`,cgt=`org.eclipse.elk.rectpacking.desiredPosition`,lgt=`org.eclipse.elk.rectpacking.inNewRow`,ugt=`org.eclipse.elk.rectpacking.orderBySize`,dgt=`org.eclipse.elk.rectpacking.widthApproximation.strategy`,fgt=`org.eclipse.elk.rectpacking.widthApproximation.targetWidth`,pgt=`org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal`,mgt=`org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift`,hgt=`org.eclipse.elk.rectpacking.packing.strategy`,ggt=`org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation`,_gt=`org.eclipse.elk.rectpacking.packing.compaction.iterations`,vgt=`org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy`,JG=`widthApproximation`,ygt=`Compaction Strategy`,bgt=`packing.compaction`,YG=`org.eclipse.elk.rectpacking`,XG=`org.eclipse.elk.alg.rectpacking.p1widthapproximation`,ZG=`org.eclipse.elk.alg.rectpacking.p2packing`,xgt=`No Compaction`,Sgt=`org.eclipse.elk.alg.rectpacking.p3whitespaceelimination`,QG=`org.eclipse.elk.alg.rectpacking.util`,$G=`No implementation available for `,eK=`org.eclipse.elk.alg.spore`,tK=`org.eclipse.elk.alg.spore.options`,nK=`org.eclipse.elk.sporeCompaction`,rK=`org.eclipse.elk.underlyingLayoutAlgorithm`,Cgt=`org.eclipse.elk.processingOrder.treeConstruction`,wgt=`org.eclipse.elk.processingOrder.spanningTreeCostFunction`,iK=`org.eclipse.elk.processingOrder.preferredRoot`,aK=`org.eclipse.elk.processingOrder.rootSelection`,oK=`org.eclipse.elk.structure.structureExtractionStrategy`,Tgt=`org.eclipse.elk.compaction.compactionStrategy`,Egt=`org.eclipse.elk.compaction.orthogonal`,Dgt=`org.eclipse.elk.overlapRemoval.maxIterations`,Ogt=`org.eclipse.elk.overlapRemoval.runScanline`,sK=`processingOrder`,kgt=`overlapRemoval`,cK=`org.eclipse.elk.sporeOverlap`,Agt=`org.eclipse.elk.alg.spore.p1structure`,lK=`org.eclipse.elk.alg.spore.p2processingorder`,uK=`org.eclipse.elk.alg.spore.p3execution`,jgt=`Topdown Layout`,Mgt=`Invalid index: `,dK=`org.eclipse.elk.core.alg`,fK={342:1},pK={296:1},Ngt=`Make sure its type is registered with the `,Pgt=` utility class.`,mK=`true`,hK=`false`,Fgt=`Couldn't clone property '`,gK=.05,_K=`org.eclipse.elk.core.options`,Igt=1.2999999523162842,vK=`org.eclipse.elk.box`,Lgt=`org.eclipse.elk.expandNodes`,Rgt=`org.eclipse.elk.box.packingMode`,zgt=`org.eclipse.elk.algorithm`,Bgt=`org.eclipse.elk.resolvedAlgorithm`,Vgt=`org.eclipse.elk.bendPoints`,Hgt=`org.eclipse.elk.labelManager`,Ugt=`org.eclipse.elk.softwrappingFuzziness`,Wgt=`org.eclipse.elk.scaleFactor`,Ggt=`org.eclipse.elk.childAreaWidth`,Kgt=`org.eclipse.elk.childAreaHeight`,qgt=`org.eclipse.elk.animate`,Jgt=`org.eclipse.elk.animTimeFactor`,Ygt=`org.eclipse.elk.layoutAncestors`,Xgt=`org.eclipse.elk.maxAnimTime`,Zgt=`org.eclipse.elk.minAnimTime`,Qgt=`org.eclipse.elk.progressBar`,$gt=`org.eclipse.elk.validateGraph`,e_t=`org.eclipse.elk.validateOptions`,t_t=`org.eclipse.elk.zoomToFit`,n_t=`org.eclipse.elk.json.shapeCoords`,r_t=`org.eclipse.elk.json.edgeCoords`,i_t=`org.eclipse.elk.font.name`,a_t=`org.eclipse.elk.font.size`,yK=`org.eclipse.elk.topdown.sizeCategories`,o_t=`org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight`,bK=`org.eclipse.elk.topdown.sizeApproximator`,s_t=`org.eclipse.elk.topdown.scaleCap`,c_t=`org.eclipse.elk.edge.type`,l_t=`partitioning`,u_t=`nodeLabels`,xK=`portAlignment`,SK=`nodeSize`,CK=`port`,d_t=`portLabels`,wK=`topdown`,f_t=`insideSelfLoops`,p_t=`INHERIT`,TK=`org.eclipse.elk.fixed`,EK=`org.eclipse.elk.random`,DK={3:1,35:1,24:1,522:1,288:1},m_t=`port must have a parent node to calculate the port side`,h_t=`The edge needs to have exactly one edge section. Found: `,OK=`org.eclipse.elk.core.util.adapters`,kK=`org.eclipse.emf.ecore`,AK=`org.eclipse.elk.graph`,g_t=`EMapPropertyHolder`,__t=`ElkBendPoint`,v_t=`ElkGraphElement`,y_t=`ElkConnectableShape`,b_t=`ElkEdge`,x_t=`ElkEdgeSection`,S_t=`EModelElement`,C_t=`ENamedElement`,w_t=`ElkLabel`,T_t=`ElkNode`,E_t=`ElkPort`,D_t={94:1,93:1},jK=`org.eclipse.emf.common.notify.impl`,MK=`The feature '`,NK=`' is not a valid changeable feature`,O_t=`Expecting null`,PK=`' is not a valid feature`,k_t=`The feature ID`,A_t=` is not a valid feature ID`,FK=32768,j_t={109:1,94:1,93:1,57:1,52:1,100:1},IK=`org.eclipse.emf.ecore.impl`,LK=2048,RK=`org.eclipse.elk.graph.impl`,zK=`Recursive containment not allowed for `,BK=`The datatype '`,VK=`' is not a valid classifier`,HK=`The value '`,UK={195:1,3:1,4:1},WK=`The class '`,GK=`http://www.eclipse.org/elk/ElkGraph`,M_t=`property`,KK=`value`,qK=`source`,N_t=`properties`,P_t=`identifier`,JK=`height`,YK=`width`,XK=`parent`,ZK=`text`,QK=`children`,F_t=`hierarchical`,I_t=`sources`,$K=`targets`,eq=`sections`,tq=`bendPoints`,L_t=`outgoingShape`,R_t=`incomingShape`,z_t=`outgoingSections`,B_t=`incomingSections`,nq=`org.eclipse.emf.common.util`,V_t=`Severe implementation error in the Json to ElkGraph importer.`,rq=`id`,iq=`org.eclipse.elk.graph.json`,aq=`Unhandled parameter types: `,H_t=`startPoint`,U_t=`An edge must have at least one source and one target (edge id: '`,oq=`').`,W_t=`Referenced edge section does not exist: `,G_t=` (edge id: '`,K_t=`target`,q_t=`sourcePoint`,J_t=`targetPoint`,sq=`group`,cq=`name`,Y_t=`connectableShape cannot be null`,X_t=`edge cannot be null`,Z_t=`Passed edge is not 'simple'.`,lq=`org.eclipse.elk.graph.util`,uq=`The 'no duplicates' constraint is violated`,dq=`targetIndex=`,fq=`, size=`,pq=`sourceIndex=`,mq={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},hq={3:1,4:1,20:1,31:1,56:1,18:1,50:1,16:1,59:1,71:1,67:1,61:1,586:1},gq=`logging`,Q_t=`measureExecutionTime`,$_t=`parser.parse.1`,evt=`parser.parse.2`,_q=`parser.next.1`,vq=`parser.next.2`,tvt=`parser.next.3`,nvt=`parser.next.4`,yq=`parser.factor.1`,rvt=`parser.factor.2`,ivt=`parser.factor.3`,avt=`parser.factor.4`,ovt=`parser.factor.5`,svt=`parser.factor.6`,cvt=`parser.atom.1`,lvt=`parser.atom.2`,uvt=`parser.atom.3`,dvt=`parser.atom.4`,bq=`parser.atom.5`,fvt=`parser.cc.1`,xq=`parser.cc.2`,pvt=`parser.cc.3`,mvt=`parser.cc.5`,hvt=`parser.cc.6`,gvt=`parser.cc.7`,Sq=`parser.cc.8`,_vt=`parser.ope.1`,vvt=`parser.ope.2`,yvt=`parser.ope.3`,Cq=`parser.descape.1`,bvt=`parser.descape.2`,xvt=`parser.descape.3`,Svt=`parser.descape.4`,Cvt=`parser.descape.5`,wq=`parser.process.1`,wvt=`parser.quantifier.1`,Tvt=`parser.quantifier.2`,Evt=`parser.quantifier.3`,Dvt=`parser.quantifier.4`,Ovt=`parser.quantifier.5`,kvt=`org.eclipse.emf.common.notify`,Avt={415:1,676:1},jvt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1},Tq={373:1,151:1},Eq=`index=`,Dq={3:1,4:1,5:1,129:1},Mvt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,61:1},Nvt={3:1,6:1,4:1,5:1,198:1},Pvt={3:1,4:1,5:1,175:1,374:1},Fvt=`;/?:@&=+$,`,Ivt=`invalid authority: `,Lvt=`EAnnotation`,Rvt=`ETypedElement`,zvt=`EStructuralFeature`,Bvt=`EAttribute`,Vvt=`EClassifier`,Hvt=`EEnumLiteral`,Uvt=`EGenericType`,Wvt=`EOperation`,Gvt=`EParameter`,Kvt=`EReference`,Oq=1024,qvt=`ETypeParameter`,kq=`org.eclipse.emf.ecore.util`,Aq={78:1},Jvt={3:1,20:1,18:1,16:1,61:1,587:1,78:1,72:1,98:1},Yvt=`org.eclipse.emf.ecore.util.FeatureMap$Entry`,jq=8192,Mq=`byte`,Nq=`char`,Pq=`double`,Fq=`float`,Iq=`int`,Lq=`long`,Rq=`short`,Xvt=`java.lang.Object`,zq={3:1,4:1,5:1,255:1},Zvt={3:1,4:1,5:1,678:1},Qvt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},Bq={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,72:1,98:1},Vq=`mixed`,Hq=`http:///org/eclipse/emf/ecore/util/ExtendedMetaData`,Uq=`kind`,$vt={3:1,4:1,5:1,679:1},eyt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},Wq={20:1,31:1,56:1,18:1,16:1,61:1,72:1},Gq={50:1,128:1,287:1},Kq={75:1,344:1},qq=`The value of type '`,Jq=`' must be of type '`,Yq=1307,Xq=`http://www.eclipse.org/emf/2002/Ecore`,Zq=-32768,Qq=`constraints`,$q=`baseType`,tyt=`getEStructuralFeature`,nyt=`getFeatureID`,eJ=`feature`,ryt=`getOperationID`,iyt=`operation`,ayt=`defaultValue`,oyt=`eTypeParameters`,syt=`isInstance`,cyt=`getEEnumLiteral`,lyt=`eContainingClass`,tJ={58:1},uyt={3:1,4:1,5:1,122:1},dyt=`org.eclipse.emf.ecore.resource`,fyt={94:1,93:1,589:1,1999:1},nJ=`org.eclipse.emf.ecore.resource.impl`,pyt=`unspecified`,rJ=`simple`,iJ=`attribute`,myt=`attributeWildcard`,aJ=`element`,oJ=`elementWildcard`,sJ=`collapse`,cJ=`itemType`,lJ=`namespace`,uJ=`##targetNamespace`,dJ=`whiteSpace`,hyt=`wildcards`,fJ=`http://www.eclipse.org/emf/2003/XMLType`,pJ=`##any`,mJ=`uninitialized`,hJ=`The multiplicity constraint is violated`,gJ=`org.eclipse.emf.ecore.xml.type`,gyt=`ProcessingInstruction`,_yt=`SimpleAnyType`,vyt=`XMLTypeDocumentRoot`,_J=`org.eclipse.emf.ecore.xml.type.impl`,vJ=`INF`,yyt=`processing`,byt=`ENTITIES_._base`,xyt=`minLength`,Syt=`ENTITY`,yJ=`NCName`,Cyt=`IDREFS_._base`,wyt=`integer`,bJ=`token`,xJ=`pattern`,Tyt=`[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*`,Eyt=`\\i\\c*`,Dyt=`[\\i-[:]][\\c-[:]]*`,Oyt=`nonPositiveInteger`,SJ=`maxInclusive`,kyt=`NMTOKEN`,Ayt=`NMTOKENS_._base`,jyt=`nonNegativeInteger`,CJ=`minInclusive`,Myt=`normalizedString`,Nyt=`unsignedByte`,Pyt=`unsignedInt`,Fyt=`18446744073709551615`,Iyt=`unsignedShort`,Lyt=`processingInstruction`,wJ=`org.eclipse.emf.ecore.xml.type.internal`,TJ=1114111,Ryt=`Internal Error: shorthands: \\u`,EJ=`xml:isDigit`,DJ=`xml:isWord`,OJ=`xml:isSpace`,kJ=`xml:isNameChar`,AJ=`xml:isInitialNameChar`,zyt=`09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩`,Byt=`AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣`,Vyt=`Private Use`,jJ=`ASSIGNED`,MJ=`\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾＀￯`,Hyt=`UNASSIGNED`,NJ={3:1,121:1},Uyt=`org.eclipse.emf.ecore.xml.type.util`,PJ={3:1,4:1,5:1,376:1},Wyt=`org.eclipse.xtext.xbase.lib`,Gyt=`Cannot add elements to a Range`,Kyt=`Cannot set elements in a Range`,qyt=`Cannot remove elements from a Range`,Jyt=`user.agent`,Q,FJ,Yyt,Xyt=-1;r.goog=r.goog||{},r.goog.global=r.goog.global||r,FJ={},J(1,null,{},a),Q.Fb=function(e){return Qpe(this,e)},Q.Gb=function(){return this.Pm},Q.Hb=function(){return Py(this)},Q.Ib=function(){var e;return Jm(Tj(this))+`@`+(e=Rk(this)>>>0,e.toString(16))},Q.equals=function(e){return this.Fb(e)},Q.hashCode=function(){return this.Hb()},Q.toString=function(){return this.Ib()};var Zyt,Qyt,$yt;J(298,1,{298:1,2089:1},EUe),Q.te=function(e){var t=new EUe;return t.i=4,t.c=e>1?sAe(this,e-1):this,t},Q.ue=function(){return ub(this),this.b},Q.ve=function(){return Jm(this)},Q.we=function(){return ub(this),this.k},Q.xe=function(){return!!(this.i&4)},Q.ye=function(){return!!(this.i&1)},Q.Ib=function(){return Tze(this)},Q.i=0;var ebt=1,IJ=R(uB,`Object`,1),tbt=R(uB,`Class`,298);J(2061,1,dB),R(fB,`Optional`,2061),J(1161,2061,dB,o),Q.Fb=function(e){return e===this},Q.Hb=function(){return 2040732332},Q.Ib=function(){return`Optional.absent()`},Q.Jb=function(e){return XS(e),_p(),LJ};var LJ;R(fB,`Absent`,1161),J(628,1,{},um),R(fB,`Joiner`,628);var nbt=Rx(fB,`Predicate`);J(578,1,{178:1,578:1,3:1,46:1},Fc),Q.Mb=function(e){return RUe(this,e)},Q.Lb=function(e){return RUe(this,e)},Q.Fb=function(e){var t;return N(e,578)?(t=F(e,578),V8e(this.a,t.a)):!1},Q.Hb=function(){return BUe(this.a)+306654252},Q.Ib=function(){return f4e(this.a)},R(fB,`Predicates/AndPredicate`,578),J(411,2061,{411:1,3:1},Ic),Q.Fb=function(e){var t;return N(e,411)?(t=F(e,411),lM(this.a,t.a)):!1},Q.Hb=function(){return 1502476572+Rk(this.a)},Q.Ib=function(){return Fdt+this.a+`)`},Q.Jb=function(e){return new Ic(lw(e.Kb(this.a),`the Function passed to Optional.transform() must not return null.`))},R(fB,`Present`,411),J(204,1,gB),Q.Nb=function(e){jS(this,e)},Q.Qb=function(){dce()},R(_B,`UnmodifiableIterator`,204),J(2041,204,vB),Q.Qb=function(){dce()},Q.Rb=function(e){throw O(new tf)},Q.Wb=function(e){throw O(new tf)},R(_B,`UnmodifiableListIterator`,2041),J(392,2041,vB),Q.Ob=function(){return this.b0},Q.Pb=function(){if(this.b>=this.c)throw O(new nf);return this.Xb(this.b++)},Q.Tb=function(){return this.b},Q.Ub=function(){if(this.b<=0)throw O(new nf);return this.Xb(--this.b)},Q.Vb=function(){return this.b-1},Q.b=0,Q.c=0,R(_B,`AbstractIndexedListIterator`,392),J(702,204,gB),Q.Ob=function(){return Mk(this)},Q.Pb=function(){return HLe(this)},Q.e=1,R(_B,`AbstractIterator`,702),J(2049,1,{229:1}),Q.Zb=function(){return this.f||=this.ac()},Q.Fb=function(e){return yj(this,e)},Q.Hb=function(){return Rk(this.Zb())},Q.dc=function(){return this.gc()==0},Q.ec=function(){return cS(this)},Q.Ib=function(){return eN(this.Zb())},R(_B,`AbstractMultimap`,2049),J(730,2049,yB),Q.$b=function(){gk(this)},Q._b=function(e){return hle(this,e)},Q.ac=function(){return new ih(this,this.c)},Q.ic=function(e){return this.hc()},Q.bc=function(){return new by(this,this.c)},Q.jc=function(){return this.mc(this.hc())},Q.kc=function(){return new Kse(this)},Q.lc=function(){return ZF(this.c.vc().Lc(),new l,64,this.d)},Q.cc=function(e){return zE(this,e)},Q.fc=function(e){return Gj(this,e)},Q.gc=function(){return this.d},Q.mc=function(e){return ew(),new Hl(e)},Q.nc=function(){return new bp(this)},Q.oc=function(){return ZF(this.c.Bc().Lc(),new s,64,this.d)},Q.pc=function(e,t){return new iD(this,e,t,null)},Q.d=0,R(_B,`AbstractMapBasedMultimap`,730),J(1664,730,yB),Q.hc=function(){return new pD(this.a)},Q.jc=function(){return ew(),ew(),CY},Q.cc=function(e){return F(zE(this,e),16)},Q.fc=function(e){return F(Gj(this,e),16)},Q.Zb=function(){return $C(this)},Q.Fb=function(e){return yj(this,e)},Q.qc=function(e){return F(zE(this,e),16)},Q.rc=function(e){return F(Gj(this,e),16)},Q.mc=function(e){return uw(F(e,16))},Q.pc=function(e,t){return RMe(this,e,F(t,16),null)},R(_B,`AbstractListMultimap`,1664),J(736,1,bB),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return this.c.Ob()||this.e.Ob()},Q.Pb=function(){var e;return this.e.Ob()||(e=F(this.c.Pb(),45),this.b=e.jd(),this.a=F(e.kd(),18),this.e=this.a.Jc()),this.sc(this.b,this.e.Pb())},Q.Qb=function(){this.e.Qb(),F(uC(this.a),18).dc()&&this.c.Qb(),--this.d.d},R(_B,`AbstractMapBasedMultimap/Itr`,736),J(1099,736,bB,bp),Q.sc=function(e,t){return t},R(_B,`AbstractMapBasedMultimap/1`,1099),J(1100,1,{},s),Q.Kb=function(e){return F(e,18).Lc()},R(_B,`AbstractMapBasedMultimap/1methodref$spliterator$Type`,1100),J(1101,736,bB,Kse),Q.sc=function(e,t){return new ah(e,t)},R(_B,`AbstractMapBasedMultimap/2`,1101);var rbt=Rx(xB,`Map`);J(2030,1,SB),Q.wc=function(e){sA(this,e)},Q.$b=function(){this.vc().$b()},Q.tc=function(e){return GP(this,e)},Q._b=function(e){return!!y1e(this,e,!1)},Q.uc=function(e){for(var t,n=this.vc().Jc(),r;n.Ob();)if(t=F(n.Pb(),45),r=t.kd(),M(e)===M(r)||e!=null&&lM(e,r))return!0;return!1},Q.Fb=function(e){var t,n,r;if(e===this)return!0;if(!N(e,92)||(r=F(e,92),this.gc()!=r.gc()))return!1;for(n=r.vc().Jc();n.Ob();)if(t=F(n.Pb(),45),!this.tc(t))return!1;return!0},Q.xc=function(e){return Y_(y1e(this,e,!1))},Q.Hb=function(){return sUe(this.vc())},Q.dc=function(){return this.gc()==0},Q.ec=function(){return new Fl(this)},Q.yc=function(e,t){throw O(new nm(`Put not supported on this map`))},Q.zc=function(e){nA(this,e)},Q.Ac=function(e){return Y_(y1e(this,e,!0))},Q.gc=function(){return this.vc().gc()},Q.Ib=function(){return M1e(this)},Q.Bc=function(){return new zl(this)},R(xB,`AbstractMap`,2030),J(2050,2030,SB),Q.bc=function(){return new rh(this)},Q.vc=function(){return Pwe(this)},Q.ec=function(){return this.g||=this.bc()},Q.Bc=function(){return this.i||=new yue(this)},R(_B,`Maps/ViewCachingAbstractMap`,2050),J(395,2050,SB,ih),Q.xc=function(e){return tze(this,e)},Q.Ac=function(e){return TWe(this,e)},Q.$b=function(){this.d==this.e.c?this.e.$b():Bx(new qCe(this))},Q._b=function(e){return DGe(this.d,e)},Q.Dc=function(){return new Lc(this)},Q.Cc=function(){return this.Dc()},Q.Fb=function(e){return this===e||lM(this.d,e)},Q.Hb=function(){return Rk(this.d)},Q.ec=function(){return this.e.ec()},Q.gc=function(){return this.d.gc()},Q.Ib=function(){return eN(this.d)},R(_B,`AbstractMapBasedMultimap/AsMap`,395);var RJ=Rx(uB,`Iterable`);J(31,1,CB),Q.Ic=function(e){wE(this,e)},Q.Lc=function(){return new hT(this,0)},Q.Mc=function(){return new Hx(null,this.Lc())},Q.Ec=function(e){throw O(new nm(`Add not supported on this collection`))},Q.Fc=function(e){return Kk(this,e)},Q.$b=function(){MDe(this)},Q.Gc=function(e){return pN(this,e,!1)},Q.Hc=function(e){return UA(this,e)},Q.dc=function(){return this.gc()==0},Q.Kc=function(e){return pN(this,e,!0)},Q.Nc=function(){return Lwe(this)},Q.Oc=function(e){return WP(this,e)},Q.Ib=function(){return sI(this)},R(xB,`AbstractCollection`,31);var zJ=Rx(xB,`Set`);J(wB,31,TB),Q.Lc=function(){return new hT(this,1)},Q.Fb=function(e){return BJe(this,e)},Q.Hb=function(){return sUe(this)},R(xB,`AbstractSet`,wB),J(2033,wB,TB),R(_B,`Sets/ImprovedAbstractSet`,2033),J(2034,2033,TB),Q.$b=function(){this.Pc().$b()},Q.Gc=function(e){return Zqe(this,e)},Q.dc=function(){return this.Pc().dc()},Q.Kc=function(e){var t;return this.Gc(e)&&N(e,45)?(t=F(e,45),this.Pc().ec().Kc(t.jd())):!1},Q.gc=function(){return this.Pc().gc()},R(_B,`Maps/EntrySet`,2034),J(1097,2034,TB,Lc),Q.Gc=function(e){return OGe(this.a.d.vc(),e)},Q.Jc=function(){return new qCe(this.a)},Q.Pc=function(){return this.a},Q.Kc=function(e){var t;return OGe(this.a.d.vc(),e)?(t=F(uC(F(e,45)),45),lFe(this.a.e,t.jd()),!0):!1},Q.Lc=function(){return lx(this.a.d.vc().Lc(),new lie(this.a))},R(_B,`AbstractMapBasedMultimap/AsMap/AsMapEntries`,1097),J(1098,1,{},lie),Q.Kb=function(e){return FPe(this.a,F(e,45))},R(_B,`AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type`,1098),J(734,1,bB,qCe),Q.Nb=function(e){jS(this,e)},Q.Pb=function(){var e=F(this.b.Pb(),45);return this.a=F(e.kd(),18),FPe(this.c,e)},Q.Ob=function(){return this.b.Ob()},Q.Qb=function(){Yb(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},R(_B,`AbstractMapBasedMultimap/AsMap/AsMapIterator`,734),J(531,2033,TB,rh),Q.$b=function(){this.b.$b()},Q.Gc=function(e){return this.b._b(e)},Q.Ic=function(e){XS(e),this.b.wc(new yie(e))},Q.dc=function(){return this.b.dc()},Q.Jc=function(){return new Ep(this.b.vc().Jc())},Q.Kc=function(e){return this.b._b(e)?(this.b.Ac(e),!0):!1},Q.gc=function(){return this.b.gc()},R(_B,`Maps/KeySet`,531),J(332,531,TB,by),Q.$b=function(){var e;Bx((e=this.b.vc().Jc(),new eue(this,e)))},Q.Hc=function(e){return this.b.ec().Hc(e)},Q.Fb=function(e){return this===e||lM(this.b.ec(),e)},Q.Hb=function(){return Rk(this.b.ec())},Q.Jc=function(){var e=this.b.vc().Jc();return new eue(this,e)},Q.Kc=function(e){var t,n=0;return t=F(this.b.Ac(e),18),t&&(n=t.gc(),t.$b(),this.a.d-=n),n>0},Q.Lc=function(){return this.b.ec().Lc()},R(_B,`AbstractMapBasedMultimap/KeySet`,332),J(735,1,bB,eue),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return this.c.Ob()},Q.Pb=function(){return this.a=F(this.c.Pb(),45),this.a.jd()},Q.Qb=function(){var e;Yb(!!this.a),e=F(this.a.kd(),18),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},R(_B,`AbstractMapBasedMultimap/KeySet/1`,735),J(489,395,{92:1,134:1},mb),Q.bc=function(){return this.Qc()},Q.ec=function(){return this.Sc()},Q.Qc=function(){return new oh(this.c,this.Uc())},Q.Rc=function(){return this.Uc().Rc()},Q.Sc=function(){return this.b||=this.Qc()},Q.Tc=function(){return this.Uc().Tc()},Q.Uc=function(){return F(this.d,134)},R(_B,`AbstractMapBasedMultimap/SortedAsMap`,489),J(437,489,Idt,hb),Q.bc=function(){return new sh(this.a,F(F(this.d,134),138))},Q.Qc=function(){return new sh(this.a,F(F(this.d,134),138))},Q.ec=function(){var e=this.b;return F(e||(this.b=new sh(this.a,F(F(this.d,134),138))),277)},Q.Sc=function(){var e=this.b;return F(e||(this.b=new sh(this.a,F(F(this.d,134),138))),277)},Q.Uc=function(){return F(F(this.d,134),138)},Q.Vc=function(e){return F(F(this.d,134),138).Vc(e)},Q.Wc=function(e){return F(F(this.d,134),138).Wc(e)},Q.Xc=function(e,t){return new hb(this.a,F(F(this.d,134),138).Xc(e,t))},Q.Yc=function(e){return F(F(this.d,134),138).Yc(e)},Q.Zc=function(e){return F(F(this.d,134),138).Zc(e)},Q.$c=function(e,t){return new hb(this.a,F(F(this.d,134),138).$c(e,t))},R(_B,`AbstractMapBasedMultimap/NavigableAsMap`,437),J(488,332,Ldt,oh),Q.Lc=function(){return this.b.ec().Lc()},R(_B,`AbstractMapBasedMultimap/SortedKeySet`,488),J(394,488,Rdt,sh),R(_B,`AbstractMapBasedMultimap/NavigableKeySet`,394),J(540,31,CB,iD),Q.Ec=function(e){var t,n;return rN(this),n=this.d.dc(),t=this.d.Ec(e),t&&(++this.f.d,n&&Cb(this)),t},Q.Fc=function(e){var t,n,r;return!e.dc()&&(r=(rN(this),this.d.gc()),t=this.d.Fc(e),t&&(n=this.d.gc(),this.f.d+=n-r,r==0&&Cb(this)),t)},Q.$b=function(){var e=(rN(this),this.d.gc());e!=0&&(this.d.$b(),this.f.d-=e,rS(this))},Q.Gc=function(e){return rN(this),this.d.Gc(e)},Q.Hc=function(e){return rN(this),this.d.Hc(e)},Q.Fb=function(e){return e===this||(rN(this),lM(this.d,e))},Q.Hb=function(){return rN(this),Rk(this.d)},Q.Jc=function(){return rN(this),new SSe(this)},Q.Kc=function(e){var t;return rN(this),t=this.d.Kc(e),t&&(--this.f.d,rS(this)),t},Q.gc=function(){return Cpe(this)},Q.Lc=function(){return rN(this),this.d.Lc()},Q.Ib=function(){return rN(this),eN(this.d)},R(_B,`AbstractMapBasedMultimap/WrappedCollection`,540);var BJ=Rx(xB,`List`);J(732,540,{20:1,31:1,18:1,16:1},Hwe),Q.gd=function(e){Gk(this,e)},Q.Lc=function(){return rN(this),this.d.Lc()},Q._c=function(e,t){var n;rN(this),n=this.d.dc(),F(this.d,16)._c(e,t),++this.a.d,n&&Cb(this)},Q.ad=function(e,t){var n,r,i;return!t.dc()&&(i=(rN(this),this.d.gc()),n=F(this.d,16).ad(e,t),n&&(r=this.d.gc(),this.a.d+=r-i,i==0&&Cb(this)),n)},Q.Xb=function(e){return rN(this),F(this.d,16).Xb(e)},Q.bd=function(e){return rN(this),F(this.d,16).bd(e)},Q.cd=function(){return rN(this),new Jme(this)},Q.dd=function(e){return rN(this),new QDe(this,e)},Q.ed=function(e){var t;return rN(this),t=F(this.d,16).ed(e),--this.a.d,rS(this),t},Q.fd=function(e,t){return rN(this),F(this.d,16).fd(e,t)},Q.hd=function(e,t){return rN(this),RMe(this.a,this.e,F(this.d,16).hd(e,t),this.b?this.b:this)},R(_B,`AbstractMapBasedMultimap/WrappedList`,732),J(1096,732,{20:1,31:1,18:1,16:1,59:1},Uge),R(_B,`AbstractMapBasedMultimap/RandomAccessWrappedList`,1096),J(620,1,bB,SSe),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return nw(this),this.b.Ob()},Q.Pb=function(){return nw(this),this.b.Pb()},Q.Qb=function(){oge(this)},R(_B,`AbstractMapBasedMultimap/WrappedCollection/WrappedIterator`,620),J(733,620,EB,Jme,QDe),Q.Qb=function(){oge(this)},Q.Rb=function(e){var t=Cpe(this.a)==0;(nw(this),F(this.b,128)).Rb(e),++this.a.a.d,t&&Cb(this.a)},Q.Sb=function(){return(nw(this),F(this.b,128)).Sb()},Q.Tb=function(){return(nw(this),F(this.b,128)).Tb()},Q.Ub=function(){return(nw(this),F(this.b,128)).Ub()},Q.Vb=function(){return(nw(this),F(this.b,128)).Vb()},Q.Wb=function(e){(nw(this),F(this.b,128)).Wb(e)},R(_B,`AbstractMapBasedMultimap/WrappedList/WrappedListIterator`,733),J(731,540,Ldt,J_e),Q.Lc=function(){return rN(this),this.d.Lc()},R(_B,`AbstractMapBasedMultimap/WrappedSortedSet`,731),J(1095,731,Rdt,Sme),R(_B,`AbstractMapBasedMultimap/WrappedNavigableSet`,1095),J(1094,540,TB,Y_e),Q.Lc=function(){return rN(this),this.d.Lc()},R(_B,`AbstractMapBasedMultimap/WrappedSet`,1094),J(1103,1,{},l),Q.Kb=function(e){return LFe(F(e,45))},R(_B,`AbstractMapBasedMultimap/lambda$1$Type`,1103),J(1102,1,{},uie),Q.Kb=function(e){return new ah(this.a,e)},R(_B,`AbstractMapBasedMultimap/lambda$2$Type`,1102);var VJ=Rx(xB,`Map/Entry`);J(358,1,DB),Q.Fb=function(e){var t;return N(e,45)?(t=F(e,45),mC(this.jd(),t.jd())&&mC(this.kd(),t.kd())):!1},Q.Hb=function(){var e=this.jd(),t=this.kd();return(e==null?0:Rk(e))^(t==null?0:Rk(t))},Q.ld=function(e){throw O(new tf)},Q.Ib=function(){return this.jd()+`=`+this.kd()},R(_B,zdt,358),J(2051,31,CB),Q.$b=function(){this.md().$b()},Q.Gc=function(e){var t;return N(e,45)?(t=F(e,45),pMe(this.md(),t.jd(),t.kd())):!1},Q.Kc=function(e){var t;return N(e,45)?(t=F(e,45),mMe(this.md(),t.jd(),t.kd())):!1},Q.gc=function(){return this.md().d},R(_B,`Multimaps/Entries`,2051),J(737,2051,CB,Rc),Q.Jc=function(){return this.a.kc()},Q.md=function(){return this.a},Q.Lc=function(){return this.a.lc()},R(_B,`AbstractMultimap/Entries`,737),J(738,737,TB,xp),Q.Lc=function(){return this.a.lc()},Q.Fb=function(e){return U2e(this,e)},Q.Hb=function(){return cVe(this)},R(_B,`AbstractMultimap/EntrySet`,738),J(739,31,CB,zc),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return vWe(this.a,e)},Q.Jc=function(){return this.a.nc()},Q.gc=function(){return this.a.d},Q.Lc=function(){return this.a.oc()},R(_B,`AbstractMultimap/Values`,739),J(2052,31,{834:1,20:1,31:1,18:1}),Q.Ic=function(e){XS(e),PC(this).Ic(new wie(e))},Q.Lc=function(){var e=PC(this).Lc();return ZF(e,new _,64|e.wd()&1296,this.a.d)},Q.Ec=function(e){return fce(),!0},Q.Fc=function(e){return XS(this),XS(e),N(e,541)?MMe(F(e,834)):!e.dc()&&aO(this,e.Jc())},Q.Gc=function(e){var t=F(Kj($C(this.a),e),18);return(t?t.gc():0)>0},Q.Fb=function(e){return f5e(this,e)},Q.Hb=function(){return Rk(PC(this))},Q.dc=function(){return PC(this).dc()},Q.Kc=function(e){return e6e(this,e,1)>0},Q.Ib=function(){return eN(PC(this))},R(_B,`AbstractMultiset`,2052),J(2054,2033,TB),Q.$b=function(){gk(this.a.a)},Q.Gc=function(e){var t,n;return N(e,490)?(n=F(e,416),F(n.a.kd(),18).gc()<=0?!1:(t=wAe(this.a,n.a.jd()),t==F(n.a.kd(),18).gc())):!1},Q.Kc=function(e){var t,n,r,i;return N(e,490)&&(n=F(e,416),t=n.a.jd(),r=F(n.a.kd(),18).gc(),r!=0)?(i=this.a,t6e(i,t,r)):!1},R(_B,`Multisets/EntrySet`,2054),J(1109,2054,TB,die),Q.Jc=function(){return new Qse(Pwe($C(this.a.a)).Jc())},Q.gc=function(){return $C(this.a.a).gc()},R(_B,`AbstractMultiset/EntrySet`,1109),J(619,730,yB),Q.hc=function(){return this.nd()},Q.jc=function(){return this.od()},Q.cc=function(e){return this.pd(e)},Q.fc=function(e){return this.qd(e)},Q.Zb=function(){return this.f||=this.ac()},Q.od=function(){return ew(),ew(),TY},Q.Fb=function(e){return yj(this,e)},Q.pd=function(e){return F(zE(this,e),22)},Q.qd=function(e){return F(Gj(this,e),22)},Q.mc=function(e){return ew(),new ym(F(e,22))},Q.pc=function(e,t){return new Y_e(this,e,F(t,22))},R(_B,`AbstractSetMultimap`,619),J(1692,619,yB),Q.hc=function(){return new Xm(this.b)},Q.nd=function(){return new Xm(this.b)},Q.jc=function(){return hEe(new Xm(this.b))},Q.od=function(){return hEe(new Xm(this.b))},Q.cc=function(e){return F(F(zE(this,e),22),83)},Q.pd=function(e){return F(F(zE(this,e),22),83)},Q.fc=function(e){return F(F(Gj(this,e),22),83)},Q.qd=function(e){return F(F(Gj(this,e),22),83)},Q.mc=function(e){return N(e,277)?hEe(F(e,277)):(ew(),new wge(F(e,83)))},Q.Zb=function(){return this.f||=N(this.c,138)?new hb(this,F(this.c,138)):N(this.c,134)?new mb(this,F(this.c,134)):new ih(this,this.c)},Q.pc=function(e,t){return N(t,277)?new Sme(this,e,F(t,277)):new J_e(this,e,F(t,83))},R(_B,`AbstractSortedSetMultimap`,1692),J(1693,1692,yB),Q.Zb=function(){var e=this.f;return F(F(e||(this.f=N(this.c,138)?new hb(this,F(this.c,138)):N(this.c,134)?new mb(this,F(this.c,134)):new ih(this,this.c)),134),138)},Q.ec=function(){var e=this.i;return F(F(e||(this.i=N(this.c,138)?new sh(this,F(this.c,138)):N(this.c,134)?new oh(this,F(this.c,134)):new by(this,this.c)),83),277)},Q.bc=function(){return N(this.c,138)?new sh(this,F(this.c,138)):N(this.c,134)?new oh(this,F(this.c,134)):new by(this,this.c)},R(_B,`AbstractSortedKeySortedSetMultimap`,1693),J(2074,1,{2011:1}),Q.Fb=function(e){return x$e(this,e)},Q.Hb=function(){var e;return sUe((e=this.g,e||(this.g=new Bc(this))))},Q.Ib=function(){var e;return M1e((e=this.f,e||(this.f=new sge(this))))},R(_B,`AbstractTable`,2074),J(669,wB,TB,Bc),Q.$b=function(){pce()},Q.Gc=function(e){var t,n;return N(e,468)?(t=F(e,687),n=F(Kj(pEe(this.a),X_(t.c.e,t.b)),92),!!n&&OGe(n.vc(),new ah(X_(t.c.c,t.a),nD(t.c,t.b,t.a)))):!1},Q.Jc=function(){return AOe(this.a)},Q.Kc=function(e){var t,n;return N(e,468)?(t=F(e,687),n=F(Kj(pEe(this.a),X_(t.c.e,t.b)),92),!!n&&kGe(n.vc(),new ah(X_(t.c.c,t.a),nD(t.c,t.b,t.a)))):!1},Q.gc=function(){return kCe(this.a)},Q.Lc=function(){return SMe(this.a)},R(_B,`AbstractTable/CellSet`,669),J(1990,31,CB,fie),Q.$b=function(){pce()},Q.Gc=function(e){return H1e(this.a,e)},Q.Jc=function(){return jOe(this.a)},Q.gc=function(){return kCe(this.a)},Q.Lc=function(){return sMe(this.a)},R(_B,`AbstractTable/Values`,1990),J(1665,1664,yB),R(_B,`ArrayListMultimapGwtSerializationDependencies`,1665),J(507,1665,yB,lm,Eje),Q.hc=function(){return new pD(this.a)},Q.a=0,R(_B,`ArrayListMultimap`,507),J(668,2074,{668:1,2011:1,3:1},$3e),R(_B,`ArrayTable`,668),J(1986,392,vB,cge),Q.Xb=function(e){return new DUe(this.a,e)},R(_B,`ArrayTable/1`,1986),J(1987,1,{},pie),Q.rd=function(e){return new DUe(this.a,e)},R(_B,`ArrayTable/1methodref$getCell$Type`,1987),J(2075,1,{687:1}),Q.Fb=function(e){var t;return e===this?!0:N(e,468)?(t=F(e,687),mC(X_(this.c.e,this.b),X_(t.c.e,t.b))&&mC(X_(this.c.c,this.a),X_(t.c.c,t.a))&&mC(nD(this.c,this.b,this.a),nD(t.c,t.b,t.a))):!1},Q.Hb=function(){return zj(W(A(IJ,1),mB,1,5,[X_(this.c.e,this.b),X_(this.c.c,this.a),nD(this.c,this.b,this.a)]))},Q.Ib=function(){return`(`+X_(this.c.e,this.b)+`,`+X_(this.c.c,this.a)+`)=`+nD(this.c,this.b,this.a)},R(_B,`Tables/AbstractCell`,2075),J(468,2075,{468:1,687:1},DUe),Q.a=0,Q.b=0,Q.d=0,R(_B,`ArrayTable/2`,468),J(1989,1,{},Vc),Q.rd=function(e){return mLe(this.a,e)},R(_B,`ArrayTable/2methodref$getValue$Type`,1989),J(1988,392,vB,lge),Q.Xb=function(e){return mLe(this.a,e)},R(_B,`ArrayTable/3`,1988),J(2042,2030,SB),Q.$b=function(){Bx(this.kc())},Q.vc=function(){return new Sie(this)},Q.lc=function(){return new PDe(this.kc(),this.gc())},R(_B,`Maps/IteratorBasedAbstractMap`,2042),J(827,2042,SB),Q.$b=function(){throw O(new tf)},Q._b=function(e){return gle(this.c,e)},Q.kc=function(){return new uge(this,this.c.b.c.gc())},Q.lc=function(){return Fx(this.c.b.c.gc(),16,new Hc(this))},Q.xc=function(e){var t=F(Hb(this.c,e),15);return t?this.td(t.a):null},Q.dc=function(){return this.c.b.c.dc()},Q.ec=function(){return Fwe(this.c)},Q.yc=function(e,t){var n=F(Hb(this.c,e),15);if(!n)throw O(new qp(this.sd()+` `+e+` not in `+Fwe(this.c)));return this.ud(n.a,t)},Q.Ac=function(e){throw O(new tf)},Q.gc=function(){return this.c.b.c.gc()},R(_B,`ArrayTable/ArrayMap`,827),J(1985,1,{},Hc),Q.rd=function(e){return gEe(this.a,e)},R(_B,`ArrayTable/ArrayMap/0methodref$getEntry$Type`,1985),J(1983,358,DB,nue),Q.jd=function(){return Kge(this.a,this.b)},Q.kd=function(){return this.a.td(this.b)},Q.ld=function(e){return this.a.ud(this.b,e)},Q.b=0,R(_B,`ArrayTable/ArrayMap/1`,1983),J(1984,392,vB,uge),Q.Xb=function(e){return gEe(this.a,e)},R(_B,`ArrayTable/ArrayMap/2`,1984),J(1982,827,SB,_Te),Q.sd=function(){return`Column`},Q.td=function(e){return nD(this.b,this.a,e)},Q.ud=function(e,t){return YHe(this.b,this.a,e,t)},Q.a=0,R(_B,`ArrayTable/Row`,1982),J(828,827,SB,sge),Q.td=function(e){return new _Te(this.a,e)},Q.yc=function(e,t){return F(t,92),mce()},Q.ud=function(e,t){return F(t,92),hce()},Q.sd=function(){return`Row`},R(_B,`ArrayTable/RowMap`,828),J(1127,1,AB,rue),Q.yd=function(e){return!!(this.a.wd()&-262&e)},Q.wd=function(){return this.a.wd()&-262},Q.xd=function(){return this.a.xd()},Q.Nb=function(e){this.a.Nb(new aue(e,this.b))},Q.zd=function(e){return this.a.zd(new iue(e,this.b))},R(_B,`CollectSpliterators/1`,1127),J(1128,1,jB,iue),Q.Ad=function(e){this.a.Ad(this.b.Kb(e))},R(_B,`CollectSpliterators/1/lambda$0$Type`,1128),J(1129,1,jB,aue),Q.Ad=function(e){this.a.Ad(this.b.Kb(e))},R(_B,`CollectSpliterators/1/lambda$1$Type`,1129),J(1124,1,AB,kye),Q.yd=function(e){return!!((16464|this.b)&e)},Q.wd=function(){return 16464|this.b},Q.xd=function(){return this.a.xd()},Q.Nb=function(e){this.a.Oe(new sue(e,this.c))},Q.zd=function(e){return this.a.Pe(new oue(e,this.c))},Q.b=0,R(_B,`CollectSpliterators/1WithCharacteristics`,1124),J(1125,1,MB,oue),Q.Bd=function(e){this.a.Ad(this.b.rd(e))},R(_B,`CollectSpliterators/1WithCharacteristics/lambda$0$Type`,1125),J(1126,1,MB,sue),Q.Bd=function(e){this.a.Ad(this.b.rd(e))},R(_B,`CollectSpliterators/1WithCharacteristics/lambda$1$Type`,1126),J(1120,1,AB),Q.yd=function(e){return(this.a&e)!=0},Q.wd=function(){return this.a},Q.xd=function(){return this.e&&(this.b=Zme(this.b,this.e.xd())),Zme(this.b,0)},Q.Nb=function(e){this.e&&=(this.e.Nb(e),null),this.c.Nb(new cue(this,e)),this.b=0},Q.zd=function(e){for(;;){if(this.e&&this.e.zd(e))return tv(this.b,NB)&&(this.b=HM(this.b,1)),!0;if(this.e=null,!this.c.zd(new _ie(this)))return!1}},Q.a=0,Q.b=0,R(_B,`CollectSpliterators/FlatMapSpliterator`,1120),J(1122,1,jB,_ie),Q.Ad=function(e){dye(this.a,e)},R(_B,`CollectSpliterators/FlatMapSpliterator/lambda$0$Type`,1122),J(1123,1,jB,cue),Q.Ad=function(e){jDe(this.a,this.b,e)},R(_B,`CollectSpliterators/FlatMapSpliterator/lambda$1$Type`,1123),J(1121,1120,AB,dNe),R(_B,`CollectSpliterators/FlatMapSpliteratorOfObject`,1121),J(254,1,PB),Q.Dd=function(e){return this.Cd(F(e,254))},Q.Cd=function(e){var t;return e==(gp(),UJ)?1:e==(vp(),HJ)?-1:(t=(Px(),rA(this.a,e.a)),t==0?(ky(),N(this,514)==N(e,514)?0:N(this,514)?1:-1):t)},Q.Gd=function(){return this.a},Q.Fb=function(e){return nZe(this,e)},R(_B,`Cut`,254),J(1796,254,PB,Gse),Q.Cd=function(e){return e==this?0:1},Q.Ed=function(e){throw O(new Yd)},Q.Fd=function(e){e.a+=`+∞)`},Q.Gd=function(){throw O(new Jp(Vdt))},Q.Hb=function(){return xh(),LJe(this)},Q.Hd=function(e){return!1},Q.Ib=function(){return`+∞`};var HJ;R(_B,`Cut/AboveAll`,1796),J(514,254,{254:1,514:1,3:1,35:1},xge),Q.Ed=function(e){av((e.a+=`(`,e),this.a)},Q.Fd=function(e){lC(av(e,this.a),93)},Q.Hb=function(){return~Rk(this.a)},Q.Hd=function(e){return Px(),rA(this.a,e)<0},Q.Ib=function(){return`/`+this.a+`\\`},R(_B,`Cut/AboveValue`,514),J(1795,254,PB,yp),Q.Cd=function(e){return e==this?0:-1},Q.Ed=function(e){e.a+=`(-∞`},Q.Fd=function(e){throw O(new Yd)},Q.Gd=function(){throw O(new Jp(Vdt))},Q.Hb=function(){return xh(),LJe(this)},Q.Hd=function(e){return!0},Q.Ib=function(){return`-∞`};var UJ;R(_B,`Cut/BelowAll`,1795),J(1797,254,PB,Sge),Q.Ed=function(e){av((e.a+=`[`,e),this.a)},Q.Fd=function(e){lC(av(e,this.a),41)},Q.Hb=function(){return Rk(this.a)},Q.Hd=function(e){return Px(),rA(this.a,e)<=0},Q.Ib=function(){return`\\`+this.a+`/`},R(_B,`Cut/BelowValue`,1797),J(536,1,FB),Q.Ic=function(e){wE(this,e)},Q.Ib=function(){return yKe(F(lw(this,`use Optional.orNull() instead of Optional.or(null)`),20).Jc())},R(_B,`FluentIterable`,536),J(433,536,FB,hv),Q.Jc=function(){return new fS(Sy(this.a.Jc(),new f))},R(_B,`FluentIterable/2`,433),J(37,1,{},f),Q.Kb=function(e){return F(e,20).Jc()},Q.Fb=function(e){return this===e},R(_B,`FluentIterable/2/0methodref$iterator$Type`,37),J(1041,536,FB,Kpe),Q.Jc=function(){return DS(this)},R(_B,`FluentIterable/3`,1041),J(714,392,vB,dge),Q.Xb=function(e){return this.a[e].Jc()},R(_B,`FluentIterable/3/1`,714),J(2035,1,{}),Q.Ib=function(){return eN(this.Id().b)},R(_B,`ForwardingObject`,2035),J(2036,2035,Hdt),Q.Id=function(){return this.Jd()},Q.Ic=function(e){wE(this,e)},Q.Lc=function(){return new hT(this,0)},Q.Mc=function(){return new Hx(null,this.Lc())},Q.Ec=function(e){return this.Jd(),Sle()},Q.Fc=function(e){return this.Jd(),Cle()},Q.$b=function(){this.Jd(),wle()},Q.Gc=function(e){return this.Jd().Gc(e)},Q.Hc=function(e){return this.Jd().Hc(e)},Q.dc=function(){return this.Jd().b.dc()},Q.Jc=function(){return this.Jd().Jc()},Q.Kc=function(e){return this.Jd(),Tle()},Q.gc=function(){return this.Jd().b.gc()},Q.Nc=function(){return this.Jd().Nc()},Q.Oc=function(e){return this.Jd().Oc(e)},R(_B,`ForwardingCollection`,2036),J(2043,31,Udt),Q.Jc=function(){return this.Md()},Q.Ec=function(e){throw O(new tf)},Q.Fc=function(e){throw O(new tf)},Q.Kd=function(){return this.c||=this.Ld()},Q.$b=function(){throw O(new tf)},Q.Gc=function(e){return e!=null&&pN(this,e,!1)},Q.Ld=function(){switch(this.gc()){case 0:return Ix(),qJ;case 1:return new wb(XS(this.Md().Pb()));default:return new bSe(this,this.Nc())}},Q.Kc=function(e){throw O(new tf)},R(_B,`ImmutableCollection`,2043),J(1261,2043,Udt,Yc),Q.Jc=function(){return TD(new Ul(this.a.b.Jc()))},Q.Gc=function(e){return e!=null&&ph(this.a,e)},Q.Hc=function(e){return Due(this.a,e)},Q.dc=function(){return this.a.b.dc()},Q.Md=function(){return TD(new Ul(this.a.b.Jc()))},Q.gc=function(){return this.a.b.gc()},Q.Nc=function(){return this.a.b.Nc()},Q.Oc=function(e){return Oue(this.a,e)},Q.Ib=function(){return eN(this.a.b)},R(_B,`ForwardingImmutableCollection`,1261),J(312,2043,IB),Q.Jc=function(){return this.Md()},Q.cd=function(){return this.Nd(0)},Q.dd=function(e){return this.Nd(e)},Q.gd=function(e){Gk(this,e)},Q.Lc=function(){return new hT(this,16)},Q.hd=function(e,t){return this.Od(e,t)},Q._c=function(e,t){throw O(new tf)},Q.ad=function(e,t){throw O(new tf)},Q.Kd=function(){return this},Q.Fb=function(e){return Q8e(this,e)},Q.Hb=function(){return vHe(this)},Q.bd=function(e){return e==null?-1:ZXe(this,e)},Q.Md=function(){return this.Nd(0)},Q.Nd=function(e){return Gy(this,e)},Q.ed=function(e){throw O(new tf)},Q.fd=function(e,t){throw O(new tf)},Q.Od=function(e,t){var n;return zM((n=new gue(this),new mT(n,e,t)))},R(_B,`ImmutableList`,312),J(2070,312,IB),Q.Jc=function(){return TD(this.Pd().Jc())},Q.hd=function(e,t){return zM(this.Pd().hd(e,t))},Q.Gc=function(e){return e!=null&&this.Pd().Gc(e)},Q.Hc=function(e){return this.Pd().Hc(e)},Q.Fb=function(e){return lM(this.Pd(),e)},Q.Xb=function(e){return X_(this,e)},Q.Hb=function(){return Rk(this.Pd())},Q.bd=function(e){return this.Pd().bd(e)},Q.dc=function(){return this.Pd().dc()},Q.Md=function(){return TD(this.Pd().Jc())},Q.gc=function(){return this.Pd().gc()},Q.Od=function(e,t){return zM(this.Pd().hd(e,t))},Q.Nc=function(){return this.Pd().Oc(H(IJ,mB,1,this.Pd().gc(),5,1))},Q.Oc=function(e){return this.Pd().Oc(e)},Q.Ib=function(){return eN(this.Pd())},R(_B,`ForwardingImmutableList`,2070),J(717,1,RB),Q.vc=function(){return uS(this)},Q.wc=function(e){sA(this,e)},Q.ec=function(){return Fwe(this)},Q.Bc=function(){return this.Td()},Q.$b=function(){throw O(new tf)},Q._b=function(e){return this.xc(e)!=null},Q.uc=function(e){return this.Td().Gc(e)},Q.Rd=function(){return new hie(this)},Q.Sd=function(){return new gie(this)},Q.Fb=function(e){return SWe(this,e)},Q.Hb=function(){return uS(this).Hb()},Q.dc=function(){return this.gc()==0},Q.yc=function(e,t){return gce()},Q.Ac=function(e){throw O(new tf)},Q.Ib=function(){return h2e(this)},Q.Td=function(){return this.e?this.e:this.e=this.Sd()},Q.c=null,Q.d=null,Q.e=null,R(_B,`ImmutableMap`,717),J(718,717,RB),Q._b=function(e){return gle(this,e)},Q.uc=function(e){return kue(this.b,e)},Q.Qd=function(){return KWe(new qc(this))},Q.Rd=function(){return KWe(vDe(this.b))},Q.Sd=function(){return new Yc(_De(this.b))},Q.Fb=function(e){return jue(this.b,e)},Q.xc=function(e){return Hb(this,e)},Q.Hb=function(){return Rk(this.b.c)},Q.dc=function(){return this.b.c.dc()},Q.gc=function(){return this.b.c.gc()},Q.Ib=function(){return eN(this.b.c)},R(_B,`ForwardingImmutableMap`,718),J(2037,2036,zB),Q.Id=function(){return this.Ud()},Q.Jd=function(){return this.Ud()},Q.Lc=function(){return new hT(this,1)},Q.Fb=function(e){return e===this||this.Ud().Fb(e)},Q.Hb=function(){return this.Ud().Hb()},R(_B,`ForwardingSet`,2037),J(1056,2037,zB,qc),Q.Id=function(){return OC(this.a.b)},Q.Jd=function(){return OC(this.a.b)},Q.Gc=function(e){if(N(e,45)&&F(e,45).jd()==null)return!1;try{return Aue(OC(this.a.b),e)}catch(e){if(e=WA(e),N(e,211))return!1;throw O(e)}},Q.Ud=function(){return OC(this.a.b)},Q.Oc=function(e){var t=JOe(OC(this.a.b),e),n;return OC(this.a.b).b.gc()=0?`+`:``)+(n/60|0),t=xv(r.Math.abs(n)%60),(L0e(),Xbt)[this.q.getDay()]+` `+Zbt[this.q.getMonth()]+` `+xv(this.q.getDate())+` `+xv(this.q.getHours())+`:`+xv(this.q.getMinutes())+`:`+xv(this.q.getSeconds())+` GMT`+e+t+` `+this.q.getFullYear()};var $J=R(xB,`Date`,205);J(1980,205,nft,KQe),Q.a=!1,Q.b=0,Q.c=0,Q.d=0,Q.e=0,Q.f=0,Q.g=!1,Q.i=0,Q.j=0,Q.k=0,Q.n=0,Q.o=0,Q.p=0,R(`com.google.gwt.i18n.shared.impl`,`DateRecord`,1980),J(2029,1,{}),Q.ne=function(){return null},Q.oe=function(){return null},Q.pe=function(){return null},Q.qe=function(){return null},Q.re=function(){return null},R(DV,`JSONValue`,2029),J(139,2029,{139:1},sl,nl),Q.Fb=function(e){return N(e,139)?Aje(this.a,F(e,139).a):!1},Q.me=function(){return Pd},Q.Hb=function(){return MOe(this.a)},Q.ne=function(){return this},Q.Ib=function(){var e,t,n=new Ey(`[`);for(t=0,e=this.a.length;t0&&(n.a+=`,`),av(n,pO(this,t));return n.a+=`]`,n.a},R(DV,`JSONArray`,139),J(479,2029,{479:1},rl),Q.me=function(){return xse},Q.oe=function(){return this},Q.Ib=function(){return ky(),``+this.a},Q.a=!1;var gbt,_bt;R(DV,`JSONBoolean`,479),J(982,63,QB,$se),R(DV,`JSONException`,982),J(1018,2029,{},ee),Q.me=function(){return Sse},Q.Ib=function(){return hB};var vbt;R(DV,`JSONNull`,1018),J(265,2029,{265:1},il),Q.Fb=function(e){return N(e,265)?this.a==F(e,265).a:!1},Q.me=function(){return vse},Q.Hb=function(){return yv(this.a)},Q.pe=function(){return this},Q.Ib=function(){return this.a+``},Q.a=0,R(DV,`JSONNumber`,265),J(149,2029,{149:1},kp,al),Q.Fb=function(e){return N(e,149)?Aje(this.a,F(e,149).a):!1},Q.me=function(){return yse},Q.Hb=function(){return MOe(this.a)},Q.qe=function(){return this},Q.Ib=function(){var e,t,n,r,i,a,o=new Ey(`{`);for(e=!0,a=Ek(this,H(pY,OB,2,0,6,1)),n=a,r=0,i=n.length;r=0?`:`+this.c:``)+`)`},Q.c=0;var Pbt=R(uB,`StackTraceElement`,325);$yt={3:1,472:1,35:1,2:1};var pY=R(uB,Jdt,2);J(111,418,{472:1},mm,hm,Ty),R(uB,`StringBuffer`,111),J(106,418,{472:1},gm,_m,Ey),R(uB,`StringBuilder`,106),J(691,99,FV,bce),R(uB,`StringIndexOutOfBoundsException`,691),J(2110,1,{});var Fbt;J(47,63,{3:1,101:1,63:1,80:1,47:1},tf,nm),R(uB,`UnsupportedOperationException`,47),J(247,242,{3:1,35:1,242:1,247:1},LM,ble),Q.Dd=function(e){return Tit(this,F(e,247))},Q.se=function(){return dI(Eot(this))},Q.Fb=function(e){var t;return this===e?!0:N(e,247)?(t=F(e,247),this.e==t.e&&Tit(this,t)==0):!1},Q.Hb=function(){var e;return this.b==0?this.a<54?(e=_A(this.f),this.b=$x(CT(e,-1)),this.b=33*this.b+$x(CT(mS(e,32),-1)),this.b=17*this.b+Nw(this.e),this.b):(this.b=17*lGe(this.c)+Nw(this.e),this.b):this.b},Q.Ib=function(){return Eot(this)},Q.a=0,Q.b=0,Q.d=0,Q.e=0,Q.f=0;var Ibt,mY,Lbt,Rbt,zbt,Bbt,Vbt,Hbt,hY=R(`java.math`,`BigDecimal`,247);J(91,242,{3:1,35:1,242:1,91:1},aE,Tje,MS,XJe,Lv),Q.Dd=function(e){return DJe(this,F(e,91))},Q.se=function(){return dI(qz(this,0))},Q.Fb=function(e){return vqe(this,e)},Q.Hb=function(){return lGe(this)},Q.Ib=function(){return qz(this,0)},Q.b=-2,Q.c=0,Q.d=0,Q.e=0;var Ubt,gY,Wbt,_Y,vY,yY,bY=R(`java.math`,`BigInteger`,91),Gbt,Kbt,xY,SY;J(484,2030,SB),Q.$b=function(){IS(this)},Q._b=function(e){return kS(this,e)},Q.uc=function(e){return CWe(this,e,this.i)||CWe(this,e,this.f)},Q.vc=function(){return new Ll(this)},Q.xc=function(e){return tC(this,e)},Q.yc=function(e,t){return TC(this,e,t)},Q.Ac=function(e){return UE(this,e)},Q.gc=function(){return mh(this)},Q.g=0,R(xB,`AbstractHashMap`,484),J(307,wB,TB,Ll),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return TMe(this,e)},Q.Jc=function(){return new lA(this.a)},Q.Kc=function(e){var t;return TMe(this,e)?(t=F(e,45).jd(),this.a.Ac(t),!0):!1},Q.gc=function(){return this.a.gc()},R(xB,`AbstractHashMap/EntrySet`,307),J(308,1,bB,lA),Q.Nb=function(e){jS(this,e)},Q.Pb=function(){return Tk(this)},Q.Ob=function(){return this.b},Q.Qb=function(){nRe(this)},Q.b=!1,Q.d=0,R(xB,`AbstractHashMap/EntrySetIterator`,308),J(417,1,bB,Wl),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return ig(this)},Q.Pb=function(){return tOe(this)},Q.Qb=function(){_C(this)},Q.b=0,Q.c=-1,R(xB,`AbstractList/IteratorImpl`,417),J(97,417,EB,FT),Q.Qb=function(){_C(this)},Q.Rb=function(e){Eb(this,e)},Q.Sb=function(){return this.b>0},Q.Tb=function(){return this.b},Q.Ub=function(){return tb(this.b>0),this.a.Xb(this.c=--this.b)},Q.Vb=function(){return this.b-1},Q.Wb=function(e){eb(this.c!=-1),this.a.fd(this.c,e)},R(xB,`AbstractList/ListIteratorImpl`,97),J(258,56,KB,mT),Q._c=function(e,t){tT(e,this.b),this.c._c(this.a+e,t),++this.b},Q.Xb=function(e){return gT(e,this.b),this.c.Xb(this.a+e)},Q.ed=function(e){var t;return gT(e,this.b),t=this.c.ed(this.a+e),--this.b,t},Q.fd=function(e,t){return gT(e,this.b),this.c.fd(this.a+e,t)},Q.gc=function(){return this.b},Q.a=0,Q.b=0,R(xB,`AbstractList/SubList`,258),J(232,wB,TB,Fl),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return this.a._b(e)},Q.Jc=function(){return new Pl(this.a.vc().Jc())},Q.Kc=function(e){return this.a._b(e)?(this.a.Ac(e),!0):!1},Q.gc=function(){return this.a.gc()},R(xB,`AbstractMap/1`,232),J(530,1,bB,Pl),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return this.a.Ob()},Q.Pb=function(){return F(this.a.Pb(),45).jd()},Q.Qb=function(){this.a.Qb()},R(xB,`AbstractMap/1/1`,530),J(230,31,CB,zl),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return this.a.uc(e)},Q.Jc=function(){return new Bl(this.a.vc().Jc())},Q.gc=function(){return this.a.gc()},R(xB,`AbstractMap/2`,230),J(305,1,bB,Bl),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return this.a.Ob()},Q.Pb=function(){return F(this.a.Pb(),45).kd()},Q.Qb=function(){this.a.Qb()},R(xB,`AbstractMap/2/1`,305),J(480,1,{480:1,45:1}),Q.Fb=function(e){var t;return N(e,45)?(t=F(e,45),EC(this.d,t.jd())&&EC(this.e,t.kd())):!1},Q.jd=function(){return this.d},Q.kd=function(){return this.e},Q.Hb=function(){return Bv(this.d)^Bv(this.e)},Q.ld=function(e){return kve(this,e)},Q.Ib=function(){return this.d+`=`+this.e},R(xB,`AbstractMap/AbstractEntry`,480),J(390,480,{480:1,390:1,45:1},cg),R(xB,`AbstractMap/SimpleEntry`,390),J(2047,1,qV),Q.Fb=function(e){var t;return N(e,45)?(t=F(e,45),EC(this.jd(),t.jd())&&EC(this.kd(),t.kd())):!1},Q.Hb=function(){return Bv(this.jd())^Bv(this.kd())},Q.Ib=function(){return this.jd()+`=`+this.kd()},R(xB,zdt,2047),J(2055,2030,Idt),Q.Vc=function(e){return $m(this.Ce(e))},Q.tc=function(e){return RPe(this,e)},Q._b=function(e){return Ave(this,e)},Q.vc=function(){return new Vl(this)},Q.Rc=function(){return kTe(this.Ee())},Q.Wc=function(e){return $m(this.Fe(e))},Q.xc=function(e){var t=e;return Y_(this.De(t))},Q.Yc=function(e){return $m(this.Ge(e))},Q.ec=function(){return new Jl(this)},Q.Tc=function(){return kTe(this.He())},Q.Zc=function(e){return $m(this.Ie(e))},R(xB,`AbstractNavigableMap`,2055),J(621,wB,TB,Vl),Q.Gc=function(e){return N(e,45)&&RPe(this.b,F(e,45))},Q.Jc=function(){return this.b.Be()},Q.Kc=function(e){var t;return N(e,45)?(t=F(e,45),this.b.Je(t)):!1},Q.gc=function(){return this.b.gc()},R(xB,`AbstractNavigableMap/EntrySet`,621),J(1116,wB,Rdt,Jl),Q.Lc=function(){return new gg(this)},Q.$b=function(){this.a.$b()},Q.Gc=function(e){return Ave(this.a,e)},Q.Jc=function(){return new nae(this.a.vc().b.Be())},Q.Kc=function(e){return Ave(this.a,e)?(this.a.Ac(e),!0):!1},Q.gc=function(){return this.a.gc()},R(xB,`AbstractNavigableMap/NavigableKeySet`,1116),J(1117,1,bB,nae),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return ig(this.a.a)},Q.Pb=function(){return Qge(this.a).jd()},Q.Qb=function(){qye(this.a)},R(xB,`AbstractNavigableMap/NavigableKeySet/1`,1117),J(2068,31,CB),Q.Ec=function(e){return mx(tI(this,e),JV),!0},Q.Fc=function(e){return bC(e),px(e!=this,`Can't add a queue to itself`),Kk(this,e)},Q.$b=function(){for(;sO(this)!=null;);},R(xB,`AbstractQueue`,2068),J(315,31,{4:1,20:1,31:1,18:1},oy,BMe),Q.Ec=function(e){return GMe(this,e),!0},Q.$b=function(){PPe(this)},Q.Gc=function(e){return zHe(new LC(this),e)},Q.dc=function(){return Qp(this)},Q.Jc=function(){return new LC(this)},Q.Kc=function(e){return Hke(new LC(this),e)},Q.gc=function(){return this.c-this.b&this.a.length-1},Q.Lc=function(){return new hT(this,272)},Q.Oc=function(e){var t=this.c-this.b&this.a.length-1;return e.lengtht&&eC(e,t,null),e},Q.b=0,Q.c=0,R(xB,`ArrayDeque`,315),J(448,1,bB,LC),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return this.a!=this.b},Q.Pb=function(){return $j(this)},Q.Qb=function(){oBe(this)},Q.a=0,Q.b=0,Q.c=-1,R(xB,`ArrayDeque/IteratorImpl`,448),J(13,56,sft,kd,pD,qb),Q._c=function(e,t){tS(this,e,t)},Q.Ec=function(e){return fy(this,e)},Q.ad=function(e,t){return IWe(this,e,t)},Q.Fc=function(e){return HA(this,e)},Q.$b=function(){of(this.c,0)},Q.Gc=function(e){return VD(this,e,0)!=-1},Q.Ic=function(e){kO(this,e)},Q.Xb=function(e){return zx(this,e)},Q.bd=function(e){return VD(this,e,0)},Q.dc=function(){return this.c.length==0},Q.Jc=function(){return new D(this)},Q.ed=function(e){return WE(this,e)},Q.Kc=function(e){return BD(this,e)},Q.ae=function(e,t){NAe(this,e,t)},Q.fd=function(e,t){return CE(this,e,t)},Q.gc=function(){return this.c.length},Q.gd=function(e){Yv(this,e)},Q.Nc=function(){return Tx(this.c)},Q.Oc=function(e){return ZN(this,e)};var qbt=R(xB,`ArrayList`,13);J(7,1,bB,D),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return Xv(this)},Q.Pb=function(){return B(this)},Q.Qb=function(){RS(this)},Q.a=0,Q.b=-1,R(xB,`ArrayList/1`,7),J(2077,r.Function,{},ie),Q.Ke=function(e,t){return vM(e,t)},J(123,56,cft,em),Q.Gc=function(e){return cBe(this,e)!=-1},Q.Ic=function(e){var t,n,r,i;for(bC(e),n=this.a,r=0,i=n.length;r0)throw O(new qp(mft+e+` greater than `+this.e));return this.f.Re()?Dke(this.c,this.b,this.a,e,t):jAe(this.c,e,t)},Q.yc=function(e,t){if(!sF(this.c,this.f,e,this.b,this.a,this.e,this.d))throw O(new qp(e+` outside the range `+this.b+` to `+this.e));return AUe(this.c,e,t)},Q.Ac=function(e){var t=e;return sF(this.c,this.f,t,this.b,this.a,this.e,this.d)?Mke(this.c,t):null},Q.Je=function(e){return fC(this,e.jd())&&kIe(this.c,e)},Q.gc=function(){var e,t=this.f.Re()?this.a?MN(this.c,this.b,!0):MN(this.c,this.b,!1):hLe(this.c),n;if(!(t&&fC(this,t.d)&&t))return 0;for(e=0,n=new qk(this.c,this.f,this.b,this.a,this.e,this.d);ig(n.a);n.b=F(tOe(n.a),45))++e;return e},Q.$c=function(e,t){if(this.f.Re()&&this.c.a.Le(e,this.b)<0)throw O(new qp(mft+e+hft+this.b));return this.f.Se()?Dke(this.c,e,t,this.e,this.d):MAe(this.c,e,t)},Q.a=!1,Q.d=!1,R(xB,`TreeMap/SubMap`,623),J(310,24,iH,ug),Q.Re=function(){return!1},Q.Se=function(){return!1};var kY,AY,jY,MY,NY=rk(xB,`TreeMap/SubMapType`,310,GJ,QMe,Zye);J(1113,310,iH,Cme),Q.Se=function(){return!0},rk(xB,`TreeMap/SubMapType/1`,1113,NY,null,null),J(1114,310,iH,ohe),Q.Re=function(){return!0},Q.Se=function(){return!0},rk(xB,`TreeMap/SubMapType/2`,1114,NY,null,null),J(1115,310,iH,wme),Q.Re=function(){return!0},rk(xB,`TreeMap/SubMapType/3`,1115,NY,null,null);var fxt;J(141,wB,{3:1,20:1,31:1,18:1,277:1,22:1,83:1,141:1},bf,Tge,Xm,iu),Q.Lc=function(){return new gg(this)},Q.Ec=function(e){return FS(this,e)},Q.$b=function(){this.a.$b()},Q.Gc=function(e){return this.a._b(e)},Q.Jc=function(){return this.a.ec().Jc()},Q.Kc=function(e){return ly(this,e)},Q.gc=function(){return this.a.gc()};var pxt=R(xB,`TreeSet`,141);J(1053,1,{},rae),Q.Te=function(e,t){return $_e(this.a,e,t)},R(aH,`BinaryOperator/lambda$0$Type`,1053),J(1054,1,{},iae),Q.Te=function(e,t){return eve(this.a,e,t)},R(aH,`BinaryOperator/lambda$1$Type`,1054),J(936,1,{},Te),Q.Kb=function(e){return e},R(aH,`Function/lambda$0$Type`,936),J(388,1,JB,au),Q.Mb=function(e){return!this.a.Mb(e)},R(aH,`Predicate/lambda$2$Type`,388),J(567,1,{567:1});var mxt=R(oH,`Handler`,567);J(2072,1,dB),Q.ve=function(){return`DUMMY`},Q.Ib=function(){return this.ve()};var hxt;R(oH,`Level`,2072),J(1675,2072,dB,ye),Q.ve=function(){return`INFO`},R(oH,`Level/LevelInfo`,1675),J(1827,1,{},mf);var PY;R(oH,`LogManager`,1827),J(1869,1,dB,Uye),Q.b=null,R(oH,`LogRecord`,1869),J(512,1,{512:1},EE),Q.e=!1;var gxt=!1,_xt=!1,FY=!1,vxt=!1,yxt=!1;R(oH,`Logger`,512),J(820,567,{567:1},be),R(oH,`SimpleConsoleLogHandler`,820),J(130,24,{3:1,35:1,24:1,130:1},dg);var bxt,IY,xxt,LY=rk(cH,`Collector/Characteristics`,130,GJ,RAe,Qye),Sxt;J(746,1,{},TTe),R(cH,`CollectorImpl`,746),J(1051,1,{},ve),Q.Te=function(e,t){return WGe(F(e,212),F(t,212))},R(cH,`Collectors/10methodref$merge$Type`,1051),J(1052,1,{},xe),Q.Kb=function(e){return lMe(F(e,212))},R(cH,`Collectors/11methodref$toString$Type`,1052),J(152,1,{},Se),Q.Wd=function(e,t){F(e,18).Ec(t)},R(cH,`Collectors/20methodref$add$Type`,152),J(154,1,{},Ce),Q.Ve=function(){return new kd},R(cH,`Collectors/21methodref$ctor$Type`,154),J(1050,1,{},we),Q.Wd=function(e,t){KE(F(e,212),F(t,472))},R(cH,`Collectors/9methodref$add$Type`,1050),J(1049,1,{},USe),Q.Ve=function(){return new DA(this.a,this.b,this.c)},R(cH,`Collectors/lambda$15$Type`,1049),J(153,1,{},Ee),Q.Te=function(e,t){return zue(F(e,18),F(t,18))},R(cH,`Collectors/lambda$45$Type`,153),J(539,1,{}),Q.Ye=function(){gC(this)},Q.d=!1,R(cH,`TerminatableStream`,539),J(769,539,_ft,X_e),Q.Ye=function(){gC(this)},R(cH,`DoubleStreamImpl`,769),J(1298,724,AB,kSe),Q.Pe=function(e){return zXe(this,F(e,189))},Q.a=null,R(cH,`DoubleStreamImpl/2`,1298),J(1299,1,XV,aae),Q.Ne=function(e){kme(this.a,e)},R(cH,`DoubleStreamImpl/2/lambda$0$Type`,1299),J(1296,1,XV,oae),Q.Ne=function(e){Ome(this.a,e)},R(cH,`DoubleStreamImpl/lambda$0$Type`,1296),J(1297,1,XV,ou),Q.Ne=function(e){nJe(this.a,e)},R(cH,`DoubleStreamImpl/lambda$2$Type`,1297),J(1352,723,AB,VPe),Q.Pe=function(e){return OMe(this,F(e,202))},Q.a=0,Q.b=0,Q.c=0,R(cH,`IntStream/5`,1352),J(794,539,_ft,Z_e),Q.Ye=function(){gC(this)},Q.Ze=function(){return hC(this),this.a},R(cH,`IntStreamImpl`,794),J(795,539,_ft,Iue),Q.Ye=function(){gC(this)},Q.Ze=function(){return hC(this),tge(),uxt},R(cH,`IntStreamImpl/Empty`,795),J(1654,1,MB,sae),Q.Bd=function(e){dHe(this.a,e)},R(cH,`IntStreamImpl/lambda$4$Type`,1654);var Cxt=Rx(cH,`Stream`);J(28,539,{521:1,677:1,833:1},Hx),Q.Ye=function(){gC(this)};var RY;R(cH,`StreamImpl`,28),J(1073,486,AB,Eye),Q.zd=function(e){for(;oLe(this);)if(this.a.zd(e))return!0;else gC(this.b),this.b=null,this.a=null;return!1},R(cH,`StreamImpl/1`,1073),J(1074,1,jB,cae),Q.Ad=function(e){MSe(this.a,F(e,833))},R(cH,`StreamImpl/1/lambda$0$Type`,1074),J(1075,1,JB,su),Q.Mb=function(e){return PS(this.a,e)},R(cH,`StreamImpl/1methodref$add$Type`,1075),J(1076,486,AB,fOe),Q.zd=function(e){var t;return this.a||=(t=new kd,this.b.a.Nb(new lae(t)),ew(),Yv(t,this.c),new hT(t,16)),qRe(this.a,e)},Q.a=null,R(cH,`StreamImpl/5`,1076),J(1077,1,jB,lae),Q.Ad=function(e){fy(this.a,e)},R(cH,`StreamImpl/5/2methodref$add$Type`,1077),J(725,486,AB,vLe),Q.zd=function(e){for(this.b=!1;!this.b&&this.c.zd(new Dde(this,e)););return this.b},Q.b=!1,R(cH,`StreamImpl/FilterSpliterator`,725),J(1067,1,jB,Dde),Q.Ad=function(e){eTe(this.a,this.b,e)},R(cH,`StreamImpl/FilterSpliterator/lambda$0$Type`,1067),J(1062,724,AB,AFe),Q.Pe=function(e){return gye(this,F(e,189))},R(cH,`StreamImpl/MapToDoubleSpliterator`,1062),J(1066,1,jB,Ode),Q.Ad=function(e){Vde(this.a,this.b,e)},R(cH,`StreamImpl/MapToDoubleSpliterator/lambda$0$Type`,1066),J(1061,723,AB,jFe),Q.Pe=function(e){return _ye(this,F(e,202))},R(cH,`StreamImpl/MapToIntSpliterator`,1061),J(1065,1,jB,kde),Q.Ad=function(e){Hde(this.a,this.b,e)},R(cH,`StreamImpl/MapToIntSpliterator/lambda$0$Type`,1065),J(722,486,AB,MFe),Q.zd=function(e){return vye(this,e)},R(cH,`StreamImpl/MapToObjSpliterator`,722),J(1064,1,jB,Ade),Q.Ad=function(e){Ude(this.a,this.b,e)},R(cH,`StreamImpl/MapToObjSpliterator/lambda$0$Type`,1064),J(1063,486,AB,hBe),Q.zd=function(e){for(;ng(this.b,0);){if(!this.a.zd(new De))return!1;this.b=HM(this.b,1)}return this.a.zd(e)},Q.b=0,R(cH,`StreamImpl/SkipSpliterator`,1063),J(1068,1,jB,De),Q.Ad=function(e){},R(cH,`StreamImpl/SkipSpliterator/lambda$0$Type`,1068),J(618,1,jB,Oe),Q.Ad=function(e){Die(this,e)},R(cH,`StreamImpl/ValueConsumer`,618),J(1069,1,jB,ke),Q.Ad=function(e){Th()},R(cH,`StreamImpl/lambda$0$Type`,1069),J(1070,1,jB,Ae),Q.Ad=function(e){Th()},R(cH,`StreamImpl/lambda$1$Type`,1070),J(1071,1,{},cu),Q.Te=function(e,t){return Kye(this.a,e,t)},R(cH,`StreamImpl/lambda$4$Type`,1071),J(1072,1,jB,jde),Q.Ad=function(e){Pve(this.b,this.a,e)},R(cH,`StreamImpl/lambda$5$Type`,1072),J(1078,1,jB,lu),Q.Ad=function(e){xHe(this.a,F(e,375))},R(cH,`TerminatableStream/lambda$0$Type`,1078),J(2107,1,{}),J(1979,1,{},je),R(`javaemul.internal`,`ConsoleLogger`,1979);var wxt=0;J(2099,1,{}),J(1803,1,jB,Me),Q.Ad=function(e){F(e,322)},R(uH,`BowyerWatsonTriangulation/lambda$0$Type`,1803),J(1804,1,jB,uae),Q.Ad=function(e){Kk(this.a,F(e,322).e)},R(uH,`BowyerWatsonTriangulation/lambda$1$Type`,1804),J(1805,1,jB,Ne),Q.Ad=function(e){F(e,177)},R(uH,`BowyerWatsonTriangulation/lambda$2$Type`,1805),J(1800,1,dH,dae),Q.Le=function(e,t){return UNe(this.a,F(e,177),F(t,177))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(uH,`NaiveMinST/lambda$0$Type`,1800),J(440,1,{},uu),R(uH,`NodeMicroLayout`,440),J(177,1,{177:1},lg),Q.Fb=function(e){var t;return N(e,177)?(t=F(e,177),EC(this.a,t.a)&&EC(this.b,t.b)||EC(this.a,t.b)&&EC(this.b,t.a)):!1},Q.Hb=function(){return Bv(this.a)+Bv(this.b)};var Txt=R(uH,`TEdge`,177);J(322,1,{322:1},nat),Q.Fb=function(e){var t;return N(e,322)?(t=F(e,322),HD(this,t.a)&&HD(this,t.b)&&HD(this,t.c)):!1},Q.Hb=function(){return Bv(this.a)+Bv(this.b)+Bv(this.c)},R(uH,`TTriangle`,322),J(225,1,{225:1},$v),R(uH,`Tree`,225),J(1184,1,{},dAe),R(Sft,`Scanline`,1184);var Ext=Rx(Sft,Cft);J(1731,1,{},HRe),R(fH,`CGraph`,1731),J(321,1,{321:1},Jke),Q.b=0,Q.c=0,Q.d=0,Q.g=0,Q.i=0,Q.k=RV,R(fH,`CGroup`,321),J(815,1,{},xf),R(fH,`CGroup/CGroupBuilder`,815),J(60,1,{60:1},Rve),Q.Ib=function(){var e;return this.j?fb(this.j.Kb(this)):(ub(zY),zY.o+`@`+(e=Py(this)>>>0,e.toString(16)))},Q.f=0,Q.i=RV;var zY=R(fH,`CNode`,60);J(814,1,{},Sf),R(fH,`CNode/CNodeBuilder`,814);var Dxt;J(1552,1,{},Pe),Q.df=function(e,t){return 0},Q.ef=function(e,t){return 0},R(fH,Tft,1552),J(1833,1,{},Fe),Q.af=function(e){var t,n,i,a,o,s,c,l,u=LV,d,f,p,m,h,g;for(i=new D(e.a.b);i.ar.d.c||r.d.c==a.d.c&&r.d.b0?e+this.n.d+this.n.a:0},Q.gf=function(){var e,t,n,i,a=0;if(this.e)this.b?a=this.b.a:this.a[1][1]&&(a=this.a[1][1].gf());else if(this.g)a=fqe(this,yF(this,null,!0));else for(t=(MO(),W(A(WY,1),Z,237,0,[VY,HY,UY])),n=0,i=t.length;n0?a+this.n.b+this.n.c:0},Q.hf=function(){var e,t,n,r,i;if(this.g)for(e=yF(this,null,!1),n=(MO(),W(A(WY,1),Z,237,0,[VY,HY,UY])),r=0,i=n.length;r0&&(i[0]+=this.d,n-=i[0]),i[2]>0&&(i[2]+=this.d,n-=i[2]),this.c.a=r.Math.max(0,n),this.c.d=t.d+e.d+(this.c.a-n)/2,i[1]=r.Math.max(i[1],n),yFe(this,HY,t.d+e.d+i[0]-(i[1]-n)/2,i)},Q.b=null,Q.d=0,Q.e=!1,Q.f=!1,Q.g=!1;var GY=0,KY=0;R(vH,`GridContainerCell`,1500),J(461,24,{3:1,35:1,24:1,461:1},pg);var qY,JY,YY,Fxt=rk(vH,`HorizontalLabelAlignment`,461,GJ,BAe,Xye),Ixt;J(319,216,{216:1,319:1},Ike,WRe,bke),Q.ff=function(){return cCe(this)},Q.gf=function(){return lCe(this)},Q.a=0,Q.c=!1;var Lxt=R(vH,`LabelCell`,319);J(253,337,{216:1,337:1,253:1},YN),Q.ff=function(){return HI(this)},Q.gf=function(){return UI(this)},Q.hf=function(){BR(this)},Q.jf=function(){HR(this)},Q.b=0,Q.c=0,Q.d=!1,R(vH,`StripContainerCell`,253),J(1658,1,JB,Le),Q.Mb=function(e){return cce(F(e,216))},R(vH,`StripContainerCell/lambda$0$Type`,1658),J(1659,1,{},Re),Q.We=function(e){return F(e,216).gf()},R(vH,`StripContainerCell/lambda$1$Type`,1659),J(1660,1,JB,Ie),Q.Mb=function(e){return lce(F(e,216))},R(vH,`StripContainerCell/lambda$2$Type`,1660),J(1661,1,{},ze),Q.We=function(e){return F(e,216).ff()},R(vH,`StripContainerCell/lambda$3$Type`,1661),J(462,24,{3:1,35:1,24:1,462:1},mg);var XY,ZY,QY,Rxt=rk(vH,`VerticalLabelAlignment`,462,GJ,VAe,Yye),zxt;J(788,1,{},blt),Q.c=0,Q.d=0,Q.k=0,Q.s=0,Q.t=0,Q.v=!1,Q.w=0,Q.D=!1,Q.F=!1,R(SH,`NodeContext`,788),J(1498,1,dH,eee),Q.Le=function(e,t){return nme(F(e,64),F(t,64))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(SH,`NodeContext/0methodref$comparePortSides$Type`,1498),J(1499,1,dH,Ke),Q.Le=function(e,t){return p0e(F(e,115),F(t,115))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(SH,`NodeContext/1methodref$comparePortContexts$Type`,1499),J(168,24,{3:1,35:1,24:1,168:1},Zk);var Bxt,Vxt,Hxt,Uxt,Wxt,Gxt,Kxt,qxt,Jxt,Yxt,Xxt,Zxt,Qxt,$xt,eSt,tSt,nSt,rSt,iSt,aSt,oSt,$Y,sSt=rk(SH,`NodeLabelLocation`,168,GJ,tP,Jye),cSt;J(115,1,{115:1},V6e),Q.a=!1,R(SH,`PortContext`,115),J(1503,1,jB,qe),Q.Ad=function(e){Ile(F(e,319))},R(TH,Vft,1503),J(1504,1,JB,Je),Q.Mb=function(e){return!!F(e,115).c},R(TH,Hft,1504),J(1505,1,jB,Ye),Q.Ad=function(e){Ile(F(e,115).c)},R(TH,`LabelPlacer/lambda$2$Type`,1505);var lSt;J(1502,1,jB,Xe),Q.Ad=function(e){Sb(),Ese(F(e,115))},R(TH,`NodeLabelAndSizeUtilities/lambda$0$Type`,1502),J(789,1,jB,cbe),Q.Ad=function(e){ede(this.b,this.c,this.a,F(e,187))},Q.a=!1,Q.c=!1,R(TH,`NodeLabelCellCreator/lambda$0$Type`,789),J(1501,1,jB,mu),Q.Ad=function(e){jse(this.a,F(e,187))},R(TH,`PortContextCreator/lambda$0$Type`,1501);var eX;J(1875,1,{},Ze),R(EH,`GreedyRectangleStripOverlapRemover`,1875),J(1876,1,dH,Qe),Q.Le=function(e,t){return Age(F(e,226),F(t,226))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(EH,`GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type`,1876),J(1829,1,{},Df),Q.a=5,Q.e=0,R(EH,`RectangleStripOverlapRemover`,1829),J(1830,1,dH,$e),Q.Le=function(e,t){return jge(F(e,226),F(t,226))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(EH,`RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type`,1830),J(1832,1,dH,et),Q.Le=function(e,t){return UTe(F(e,226),F(t,226))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(EH,`RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type`,1832),J(409,24,{3:1,35:1,24:1,409:1},hg);var tX,nX,rX,iX,uSt=rk(EH,`RectangleStripOverlapRemover/OverlapRemovalDirection`,409,GJ,ZMe,ebe),dSt;J(226,1,{226:1},Owe),R(EH,`RectangleStripOverlapRemover/RectangleNode`,226),J(1831,1,jB,hu),Q.Ad=function(e){eZe(this.a,F(e,226))},R(EH,`RectangleStripOverlapRemover/lambda$1$Type`,1831);var fSt=!1,aX,pSt;J(1801,1,jB,tt),Q.Ad=function(e){Iot(F(e,225))},R(OH,`DepthFirstCompaction/0methodref$compactTree$Type`,1801),J(811,1,jB,gu),Q.Ad=function(e){HEe(this.a,F(e,225))},R(OH,`DepthFirstCompaction/lambda$1$Type`,811),J(1802,1,jB,lbe),Q.Ad=function(e){qJe(this.a,this.b,this.c,F(e,225))},R(OH,`DepthFirstCompaction/lambda$2$Type`,1802);var oX,mSt;J(68,1,{68:1},uAe),R(OH,`Node`,68),J(1180,1,{},rhe),R(OH,`ScanlineOverlapCheck`,1180),J(1181,1,{683:1},ROe),Q._e=function(e){nve(this,F(e,442))},R(OH,`ScanlineOverlapCheck/OverlapsScanlineHandler`,1181),J(1182,1,dH,nt),Q.Le=function(e,t){return vKe(F(e,68),F(t,68))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(OH,`ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type`,1182),J(442,1,{442:1},Pde),Q.a=!1,R(OH,`ScanlineOverlapCheck/Timestamp`,442),J(1183,1,dH,rt),Q.Le=function(e,t){return JQe(F(e,442),F(t,442))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(OH,`ScanlineOverlapCheck/lambda$0$Type`,1183),J(546,1,{},it),R(`org.eclipse.elk.alg.common.utils`,`SVGImage`,546),J(748,1,{},at),R(AH,Gft,748),J(1165,1,dH,T),Q.Le=function(e,t){return a6e(F(e,235),F(t,235))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(AH,Kft,1165),J(1166,1,jB,Mde),Q.Ad=function(e){FAe(this.b,this.a,F(e,251))},R(AH,qft,1166),J(214,1,jH),R(MH,`AbstractLayoutProvider`,214),J(726,214,jH,Cf),Q.kf=function(e,t){a7e(this,e,t)},R(AH,`ForceLayoutProvider`,726);var hSt=Rx(NH,Jft);J(150,1,{3:1,105:1,150:1},ot),Q.of=function(e,t){return rj(this,e,t)},Q.lf=function(){return HCe(this)},Q.mf=function(e){return q(this,e)},Q.nf=function(e){return ib(this,e)},R(NH,`MapPropertyHolder`,150),J(314,150,{3:1,314:1,105:1,150:1}),R(PH,`FParticle`,314),J(251,314,{3:1,251:1,314:1,105:1,150:1},oEe),Q.Ib=function(){var e;return this.a?(e=VD(this.a.a,this,0),e>=0?`b`+e+`[`+uE(this.a)+`]`:`b[`+uE(this.a)+`]`):`b_`+Py(this)},R(PH,`FBendpoint`,251),J(291,150,{3:1,291:1,105:1,150:1},zve),Q.Ib=function(){return uE(this)},R(PH,`FEdge`,291),J(235,150,{3:1,235:1,105:1,150:1},JE);var gSt=R(PH,`FGraph`,235);J(445,314,{3:1,445:1,314:1,105:1,150:1},YNe),Q.Ib=function(){return this.b==null||this.b.length==0?`l[`+uE(this.a)+`]`:`l_`+this.b},R(PH,`FLabel`,445),J(155,314,{3:1,155:1,314:1,105:1,150:1},ahe),Q.Ib=function(){return kje(this)},Q.a=0,R(PH,`FNode`,155),J(2065,1,{}),Q.qf=function(e){dit(this,e)},Q.rf=function(){fZe(this)},Q.d=0,R(Xft,`AbstractForceModel`,2065),J(632,2065,{632:1},CHe),Q.pf=function(e,t){var n,i,a,o,s;return tst(this.f,e,t),a=Pb(ry(t.d),e.d),s=r.Math.sqrt(a.a*a.a+a.b*a.b),i=r.Math.max(0,s-dC(e.e)/2-dC(t.e)/2),n=b6e(this.e,e,t),o=n>0?-DTe(i,this.c)*n:g_e(i,this.b)*F(q(e,(MR(),dX)),15).a,dy(a,o/s),a},Q.qf=function(e){dit(this,e),this.a=F(q(e,(MR(),uX)),15).a,this.c=k(P(q(e,pX))),this.b=k(P(q(e,fX)))},Q.sf=function(e){return e0&&(o-=rce(i,this.a)*n),dy(a,o*this.b/s),a},Q.qf=function(e){var t,n,i,a,o,s,c;for(dit(this,e),this.b=k(P(q(e,(MR(),mX)))),this.c=this.b/F(q(e,uX),15).a,i=e.e.c.length,o=0,a=0,c=new D(e.e);c.a0},Q.a=0,Q.b=0,Q.c=0,R(Xft,`FruchtermanReingoldModel`,633);var sX=Rx(FH,`ILayoutMetaDataProvider`);J(845,1,BH,ic),Q.tf=function(e){QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,IH),``),`Force Model`),`Determines the model for force calculation.`),ySt),(CI(),l6)),TSt),JM((iP(),i6))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Zft),``),`Iterations`),`The number of iterations on the force model.`),K(300)),d6),lY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Qft),``),`Repulsive Power`),`Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model`),K(0)),d6),lY),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,LH),``),`FR Temperature`),`The temperature is used as a scaling factor for particle displacements.`),RH),c6),sY),JM(i6)))),IT(e,LH,IH,wSt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,zH),``),`Eades Repulsion`),`Factor for repulsive forces in Eades' model.`),5),c6),sY),JM(i6)))),IT(e,zH,IH,xSt),out((new zre,e))};var _St,vSt,ySt,bSt,xSt,SSt,CSt,wSt;R(VH,`ForceMetaDataProvider`,845),J(424,24,{3:1,35:1,24:1,424:1},Fde);var cX,lX,TSt=rk(VH,`ForceModelStrategy`,424,GJ,pke,tbe),ESt;J(985,1,BH,zre),Q.tf=function(e){out(e)};var DSt,OSt,kSt,uX,ASt,jSt,MSt,NSt,PSt,FSt,ISt,LSt,RSt,zSt,dX,BSt,fX,VSt,HSt,USt,pX,mX,WSt,GSt,KSt,qSt,JSt;R(VH,`ForceOptions`,985),J(986,1,{},st),Q.uf=function(){return new Cf},Q.vf=function(e){},R(VH,`ForceOptions/ForceFactory`,986);var hX,gX,_X,vX;J(846,1,BH,Bre),Q.tf=function(e){QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,rpt),``),`Fixed Position`),`Prevent that the node is moved by the layout algorithm.`),(ky(),!1)),(CI(),s6)),iY),JM((iP(),r6))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,ipt),``),`Desired Edge Length`),`Either specified for parent nodes or for individual edges, where the latter takes higher precedence.`),100),c6),sY),eS(i6,W(A(o6,1),Z,160,0,[t6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,apt),``),`Layout Dimension`),`Dimensions that are permitted to be altered during layout.`),ZSt),l6),fCt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,opt),``),`Stress Epsilon`),`Termination criterion for the iterative process.`),RH),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,spt),``),`Iteration Limit`),`Maximum number of performed iterations. Takes higher precedence than 'epsilon'.`),K(lB)),d6),lY),JM(i6)))),mct((new ac,e))};var YSt,XSt,ZSt,QSt,$St,eCt;R(VH,`StressMetaDataProvider`,846),J(989,1,BH,ac),Q.tf=function(e){mct(e)};var yX,tCt,nCt,rCt,iCt,aCt,oCt,sCt,cCt,lCt,uCt,dCt;R(VH,`StressOptions`,989),J(990,1,{},ct),Q.uf=function(){return new Bve},Q.vf=function(e){},R(VH,`StressOptions/StressFactory`,990),J(1081,214,jH,Bve),Q.kf=function(e,t){var n,r,i,a,o;for(t.Tg(cpt,1),Xp(db(Y(e,(mF(),iCt))))?Xp(db(Y(e,uCt)))||jw((n=new uu((Kh(),new Wp(e))),n)):a7e(new Cf,e,t.dh(1)),i=_Ue(e),r=Wit(this.a,i),o=r.Jc();o.Ob();)a=F(o.Pb(),235),!(a.e.c.length<=1)&&(vot(this.b,a),s5e(this.b),kO(a.d,new lt));i=$lt(r),Put(i),t.Ug()},R(pU,`StressLayoutProvider`,1081),J(1082,1,jB,lt),Q.Ad=function(e){Oat(F(e,445))},R(pU,`StressLayoutProvider/lambda$0$Type`,1082),J(987,1,{},Ase),Q.c=0,Q.e=0,Q.g=0,R(pU,`StressMajorization`,987),J(384,24,{3:1,35:1,24:1,384:1},_g);var bX,xX,SX,fCt=rk(pU,`StressMajorization/Dimension`,384,GJ,LAe,nbe),pCt;J(988,1,dH,fae),Q.Le=function(e,t){return bye(this.a,F(e,155),F(t,155))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(pU,`StressMajorization/lambda$0$Type`,988),J(1162,1,{},Oje),R(mU,`ElkLayered`,1162),J(1163,1,jB,_u),Q.Ad=function(e){w3e(this.a,F(e,36))},R(mU,`ElkLayered/lambda$0$Type`,1163),J(1164,1,jB,pae),Q.Ad=function(e){yye(this.a,F(e,36))},R(mU,`ElkLayered/lambda$1$Type`,1164),J(1247,1,{},nhe);var mCt,hCt,gCt;R(mU,`GraphConfigurator`,1247),J(757,1,jB,vu),Q.Ad=function(e){f2e(this.a,F(e,9))},R(mU,`GraphConfigurator/lambda$0$Type`,757),J(758,1,{},ut),Q.Kb=function(e){return CF(),new Hx(null,new hT(F(e,25).a,16))},R(mU,`GraphConfigurator/lambda$1$Type`,758),J(759,1,jB,yu),Q.Ad=function(e){f2e(this.a,F(e,9))},R(mU,`GraphConfigurator/lambda$2$Type`,759),J(1248,1,JB,dt),Q.Mb=function(e){return CF(),!!Qqe(F(e,9))},R(mU,`GraphConfigurator/lambda$3$Type`,1248),J(1080,214,jH,Pse),Q.kf=function(e,t){var n=Bat(new kf,e);M(Y(e,(Yz(),H1)))===M((Oj(),N8))?MKe(this.a,n,t):t5e(this.a,n,t),t.Zg()||Dlt(new oc,n)},R(mU,`LayeredLayoutProvider`,1080),J(363,24,{3:1,35:1,24:1,363:1},vg);var CX,wX,TX,EX,DX,_Ct=rk(mU,`LayeredPhases`,363,GJ,WPe,rbe),vCt;J(1686,1,{},pBe),Q.i=0;var yCt;R(hU,`ComponentsToCGraphTransformer`,1686);var bCt;J(1687,1,{},ft),Q.wf=function(e,t){return r.Math.min(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},Q.xf=function(e,t){return r.Math.min(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},R(hU,`ComponentsToCGraphTransformer/1`,1687),J(82,1,{82:1}),Q.i=0,Q.k=!0,Q.o=RV;var OX=R(gU,`CNode`,82);J(460,82,{460:1,82:1},Vge,YJe),Q.Ib=function(){return``},R(hU,`ComponentsToCGraphTransformer/CRectNode`,460),J(1655,1,{},pt);var kX,AX;R(hU,`OneDimensionalComponentsCompaction`,1655),J(1656,1,{},mt),Q.Kb=function(e){return lAe(F(e,49))},Q.Fb=function(e){return this===e},R(hU,`OneDimensionalComponentsCompaction/lambda$0$Type`,1656),J(1657,1,{},ht),Q.Kb=function(e){return GKe(F(e,49))},Q.Fb=function(e){return this===e},R(hU,`OneDimensionalComponentsCompaction/lambda$1$Type`,1657),J(1689,1,{},SEe),R(gU,`CGraph`,1689),J(194,1,{194:1},JN),Q.b=0,Q.c=0,Q.e=0,Q.g=!0,Q.i=RV,R(gU,`CGroup`,194),J(1688,1,{},gt),Q.wf=function(e,t){return r.Math.max(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},Q.xf=function(e,t){return r.Math.max(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},R(gU,Tft,1688),J(1690,1,{},D6e),Q.d=!1;var xCt,jX=R(gU,Oft,1690);J(1691,1,{},_t),Q.Kb=function(e){return que(),ky(),F(F(e,49).a,82).d.e!=0},Q.Fb=function(e){return this===e},R(gU,kft,1691),J(818,1,{},ECe),Q.a=!1,Q.b=!1,Q.c=!1,Q.d=!1,R(gU,Aft,818),J(1871,1,{},kwe),R(_U,jft,1871);var MX=Rx(vU,Cft);J(1872,1,{377:1},LOe),Q._e=function(e){_et(this,F(e,465))},R(_U,Mft,1872),J(1873,1,dH,vt),Q.Le=function(e,t){return IDe(F(e,82),F(t,82))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(_U,Nft,1873),J(465,1,{465:1},Ide),Q.a=!1,R(_U,Pft,465),J(1874,1,dH,yt),Q.Le=function(e,t){return YQe(F(e,465),F(t,465))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(_U,Fft,1874),J(146,1,{146:1},yg,WSe),Q.Fb=function(e){var t;return e==null||SCt!=Tj(e)?!1:(t=F(e,146),EC(this.c,t.c)&&EC(this.d,t.d))},Q.Hb=function(){return zj(W(A(IJ,1),mB,1,5,[this.c,this.d]))},Q.Ib=function(){return`(`+this.c+pB+this.d+(this.a?`cx`:``)+this.b+`)`},Q.a=!0,Q.c=0,Q.d=0;var SCt=R(vU,`Point`,146);J(408,24,{3:1,35:1,24:1,408:1},bg);var NX,PX,FX,IX,CCt=rk(vU,`Point/Quadrant`,408,GJ,XMe,ibe),wCt;J(1677,1,{},wf),Q.b=null,Q.c=null,Q.d=null,Q.e=null,Q.f=null;var TCt,ECt,DCt,OCt,kCt;R(vU,`RectilinearConvexHull`,1677),J(569,1,{377:1},mP),Q._e=function(e){sLe(this,F(e,146))},Q.b=0;var ACt;R(vU,`RectilinearConvexHull/MaximalElementsEventHandler`,569),J(1679,1,dH,bt),Q.Le=function(e,t){return LDe(P(e),P(t))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(vU,`RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type`,1679),J(1678,1,{377:1},VRe),Q._e=function(e){d9e(this,F(e,146))},Q.a=0,Q.b=null,Q.c=null,Q.d=null,Q.e=null,R(vU,`RectilinearConvexHull/RectangleEventHandler`,1678),J(1680,1,dH,xt),Q.Le=function(e,t){return jje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(vU,`RectilinearConvexHull/lambda$0$Type`,1680),J(1681,1,dH,tee),Q.Le=function(e,t){return Mje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(vU,`RectilinearConvexHull/lambda$1$Type`,1681),J(1682,1,dH,nee),Q.Le=function(e,t){return Pje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(vU,`RectilinearConvexHull/lambda$2$Type`,1682),J(1683,1,dH,ree),Q.Le=function(e,t){return Nje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(vU,`RectilinearConvexHull/lambda$3$Type`,1683),J(1684,1,dH,St),Q.Le=function(e,t){return R0e(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(vU,`RectilinearConvexHull/lambda$4$Type`,1684),J(1685,1,{},fAe),R(vU,`Scanline`,1685),J(2069,1,{}),R(yU,`AbstractGraphPlacer`,2069),J(336,1,{336:1},a_e),Q.Df=function(e){return this.Ef(e)?(YI(this.b,F(q(e,(X(),d$)),22),e),!0):!1},Q.Ef=function(e){for(var t=F(q(e,(X(),d$)),22),n,r=F(zE(LX,t),22).Jc();r.Ob();)if(n=F(r.Pb(),22),!F(zE(this.b,n),16).dc())return!1;return!0};var LX;R(yU,`ComponentGroup`,336),J(766,2069,{},Tf),Q.Ff=function(e){for(var t,n=new D(this.a);n.an&&(d=0,f+=c+i,c=0),l=o.c,uR(o,d+l.a,f+l.b),gv(l),a=r.Math.max(a,d+u.a),c=r.Math.max(c,u.b),d+=u.a+i;t.f.a=a,t.f.b=f+c},Q.Hf=function(e,t){var n,r,i,a,o;if(M(q(t,(Yz(),p1)))===M((KN(),BX))){for(r=e.Jc();r.Ob();){for(n=F(r.Pb(),36),o=0,a=new D(n.a);a.an&&!F(q(o,(X(),d$)),22).Gc((Lz(),m5))||l&&F(q(l,(X(),d$)),22).Gc((Lz(),p5))||F(q(o,(X(),d$)),22).Gc((Lz(),N5)))&&(p=f,m+=c+i,c=0),u=o.c,F(q(o,(X(),d$)),22).Gc((Lz(),m5))&&(p=a+i),uR(o,p+u.a,m+u.b),a=r.Math.max(a,p+d.a),F(q(o,d$),22).Gc(j5)&&(f=r.Math.max(f,p+d.a+i)),gv(u),c=r.Math.max(c,d.b),p+=d.a+i,l=o;t.f.a=a,t.f.b=m+c},Q.Hf=function(e,t){},R(yU,`ModelOrderRowGraphPlacer`,1279),J(1277,1,dH,oee),Q.Le=function(e,t){return bHe(F(e,36),F(t,36))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(yU,`SimpleRowGraphPlacer/1`,1277);var PCt;J(1246,1,hH,Tt),Q.Lb=function(e){var t=F(q(F(e,250).b,(Yz(),K1)),79);return!!t&&t.b!=0},Q.Fb=function(e){return this===e},Q.Mb=function(e){var t=F(q(F(e,250).b,(Yz(),K1)),79);return!!t&&t.b!=0},R(CU,`CompoundGraphPostprocessor/1`,1246),J(1245,1,wU,Af),Q.If=function(e,t){sXe(this,F(e,36),t)},R(CU,`CompoundGraphPreprocessor`,1245),J(444,1,{444:1},AKe),Q.c=!1,R(CU,`CompoundGraphPreprocessor/ExternalPort`,444),J(250,1,{250:1},ex),Q.Ib=function(){return $y(this.c)+`:`+s6e(this.b)},R(CU,`CrossHierarchyEdge`,250),J(764,1,dH,bu),Q.Le=function(e,t){return nQe(this,F(e,250),F(t,250))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(CU,`CrossHierarchyEdgeComparator`,764),J(246,150,{3:1,246:1,105:1,150:1}),Q.p=0,R(TU,`LGraphElement`,246),J(17,246,{3:1,17:1,246:1,105:1,150:1},hw),Q.Ib=function(){return s6e(this)};var HX=R(TU,`LEdge`,17);J(36,246,{3:1,20:1,36:1,246:1,105:1,150:1},mBe),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return new D(this.b)},Q.Ib=function(){return this.b.c.length==0?`G-unlayered`+sI(this.a):this.a.c.length==0?`G-layered`+sI(this.b):`G[layerless`+sI(this.a)+`, layers`+sI(this.b)+`]`};var FCt=R(TU,`LGraph`,36),ICt;J(655,1,{}),Q.Jf=function(){return this.e.n},Q.mf=function(e){return q(this.e,e)},Q.Kf=function(){return this.e.o},Q.Lf=function(){return this.e.p},Q.nf=function(e){return ib(this.e,e)},Q.Mf=function(e){this.e.n.a=e.a,this.e.n.b=e.b},Q.Nf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},Q.Of=function(e){this.e.p=e},R(TU,`LGraphAdapters/AbstractLShapeAdapter`,655),J(464,1,{838:1},xu),Q.Pf=function(){var e,t;if(!this.b)for(this.b=Ky(this.a.b.c.length),t=new D(this.a.b);t.a0&&qWe((_T(t-1,e.length),e.charCodeAt(t-1)),hpt);)--t;if(a> `,e),iF(n)),ov(av((e.a+=`[`,e),n.i),`]`)),e.a},Q.c=!0,Q.d=!1;var BCt,VCt,HCt,UCt,WCt,GCt,KCt=R(TU,`LPort`,12);J(399,1,FB,Su),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return new Cu(new D(this.a.e))},R(TU,`LPort/1`,399),J(1275,1,bB,Cu),Q.Nb=function(e){jS(this,e)},Q.Pb=function(){return F(B(this.a),17).c},Q.Ob=function(){return Xv(this.a)},Q.Qb=function(){RS(this.a)},R(TU,`LPort/1/1`,1275),J(365,1,FB,wu),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return new Tu(new D(this.a.g))},R(TU,`LPort/2`,365),J(763,1,bB,Tu),Q.Nb=function(e){jS(this,e)},Q.Pb=function(){return F(B(this.a),17).d},Q.Ob=function(){return Xv(this.a)},Q.Qb=function(){RS(this.a)},R(TU,`LPort/2/1`,763),J(1268,1,FB,Rde),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return new qE(this)},R(TU,`LPort/CombineIter`,1268),J(207,1,bB,qE),Q.Nb=function(e){jS(this,e)},Q.Qb=function(){xle()},Q.Ob=function(){return Fy(this)},Q.Pb=function(){return Xv(this.a)?B(this.a):B(this.b)},R(TU,`LPort/CombineIter/1`,207),J(1270,1,hH,kt),Q.Lb=function(e){return Zwe(e)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return $k(),F(e,12).e.c.length!=0},R(TU,`LPort/lambda$0$Type`,1270),J(1269,1,hH,see),Q.Lb=function(e){return Qwe(e)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return $k(),F(e,12).g.c.length!=0},R(TU,`LPort/lambda$1$Type`,1269),J(1271,1,hH,At),Q.Lb=function(e){return $k(),F(e,12).j==(Lz(),m5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return $k(),F(e,12).j==(Lz(),m5)},R(TU,`LPort/lambda$2$Type`,1271),J(1272,1,hH,jt),Q.Lb=function(e){return $k(),F(e,12).j==(Lz(),p5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return $k(),F(e,12).j==(Lz(),p5)},R(TU,`LPort/lambda$3$Type`,1272),J(1273,1,hH,Mt),Q.Lb=function(e){return $k(),F(e,12).j==(Lz(),j5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return $k(),F(e,12).j==(Lz(),j5)},R(TU,`LPort/lambda$4$Type`,1273),J(1274,1,hH,Nt),Q.Lb=function(e){return $k(),F(e,12).j==(Lz(),N5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return $k(),F(e,12).j==(Lz(),N5)},R(TU,`LPort/lambda$5$Type`,1274),J(25,246,{3:1,20:1,246:1,25:1,105:1,150:1},nC),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return new D(this.a)},Q.Ib=function(){return`L_`+VD(this.b.b,this,0)+sI(this.a)},R(TU,`Layer`,25),J(1662,1,{},PIe),Q.b=0,R(TU,`Tarjan`,1662),J(1283,1,{},kf),R(AU,ypt,1283),J(1287,1,{},Pt),Q.Kb=function(e){return GF(F(e,84))},R(AU,`ElkGraphImporter/0methodref$connectableShapeToNode$Type`,1287),J(1290,1,{},Ft),Q.Kb=function(e){return GF(F(e,84))},R(AU,`ElkGraphImporter/1methodref$connectableShapeToNode$Type`,1290),J(1284,1,jB,Eu),Q.Ad=function(e){W6e(this.a,F(e,125))},R(AU,qft,1284),J(1285,1,jB,Du),Q.Ad=function(e){W6e(this.a,F(e,125))},R(AU,bpt,1285),J(1286,1,{},cee),Q.Kb=function(e){return new Hx(null,new hT(xDe(F(e,85)),16))},R(AU,xpt,1286),J(1288,1,JB,mae),Q.Mb=function(e){return Eme(this.a,F(e,26))},R(AU,Spt,1288),J(1289,1,{},It),Q.Kb=function(e){return new Hx(null,new hT(bDe(F(e,85)),16))},R(AU,`ElkGraphImporter/lambda$5$Type`,1289),J(1291,1,JB,hae),Q.Mb=function(e){return Dme(this.a,F(e,26))},R(AU,`ElkGraphImporter/lambda$7$Type`,1291),J(1292,1,JB,lee),Q.Mb=function(e){return cOe(F(e,85))},R(AU,`ElkGraphImporter/lambda$8$Type`,1292),J(1263,1,{},oc);var qCt;R(AU,`ElkGraphLayoutTransferrer`,1263),J(1264,1,JB,Ou),Q.Mb=function(e){return Cye(this.a,F(e,17))},R(AU,`ElkGraphLayoutTransferrer/lambda$0$Type`,1264),J(1265,1,jB,ku),Q.Ad=function(e){Ph(),fy(this.a,F(e,17))},R(AU,`ElkGraphLayoutTransferrer/lambda$1$Type`,1265),J(1266,1,JB,gae),Q.Mb=function(e){return ive(this.a,F(e,17))},R(AU,`ElkGraphLayoutTransferrer/lambda$2$Type`,1266),J(1267,1,jB,_ae),Q.Ad=function(e){Ph(),fy(this.a,F(e,17))},R(AU,`ElkGraphLayoutTransferrer/lambda$3$Type`,1267),J(807,1,{},Vve),R(jU,`BiLinkedHashMultiMap`,807),J(1512,1,wU,uee),Q.If=function(e,t){rVe(F(e,36),t)},R(jU,`CommentNodeMarginCalculator`,1512),J(1513,1,{},Lt),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`CommentNodeMarginCalculator/lambda$0$Type`,1513),J(1514,1,jB,Rt),Q.Ad=function(e){Iat(F(e,9))},R(jU,`CommentNodeMarginCalculator/lambda$1$Type`,1514),J(1515,1,wU,zt),Q.If=function(e,t){Oet(F(e,36),t)},R(jU,`CommentPostprocessor`,1515),J(1516,1,wU,dee),Q.If=function(e,t){flt(F(e,36),t)},R(jU,`CommentPreprocessor`,1516),J(1517,1,wU,Bt),Q.If=function(e,t){b9e(F(e,36),t)},R(jU,`ConstraintsPostprocessor`,1517),J(1518,1,wU,fee),Q.If=function(e,t){fHe(F(e,36),t)},R(jU,`EdgeAndLayerConstraintEdgeReverser`,1518),J(1519,1,wU,Vt),Q.If=function(e,t){Rqe(F(e,36),t)},R(jU,`EndLabelPostprocessor`,1519),J(1520,1,{},pee),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`EndLabelPostprocessor/lambda$0$Type`,1520),J(1521,1,JB,Ht),Q.Mb=function(e){return NPe(F(e,9))},R(jU,`EndLabelPostprocessor/lambda$1$Type`,1521),J(1522,1,jB,mee),Q.Ad=function(e){XQe(F(e,9))},R(jU,`EndLabelPostprocessor/lambda$2$Type`,1522),J(1523,1,wU,Ut),Q.If=function(e,t){N4e(F(e,36),t)},R(jU,`EndLabelPreprocessor`,1523),J(1524,1,{},Wt),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`EndLabelPreprocessor/lambda$0$Type`,1524),J(1525,1,jB,ube),Q.Ad=function(e){tde(this.a,this.b,this.c,F(e,9))},Q.a=0,Q.b=0,Q.c=!1,R(jU,`EndLabelPreprocessor/lambda$1$Type`,1525),J(1526,1,JB,Gt),Q.Mb=function(e){return M(q(F(e,70),(Yz(),F1)))===M((NO(),O8))},R(jU,`EndLabelPreprocessor/lambda$2$Type`,1526),J(1527,1,jB,vae),Q.Ad=function(e){Sx(this.a,F(e,70))},R(jU,`EndLabelPreprocessor/lambda$3$Type`,1527),J(1528,1,JB,Kt),Q.Mb=function(e){return M(q(F(e,70),(Yz(),F1)))===M((NO(),D8))},R(jU,`EndLabelPreprocessor/lambda$4$Type`,1528),J(1529,1,jB,yae),Q.Ad=function(e){Sx(this.a,F(e,70))},R(jU,`EndLabelPreprocessor/lambda$5$Type`,1529),J(1577,1,wU,cc),Q.If=function(e,t){fKe(F(e,36),t)};var JCt;R(jU,`EndLabelSorter`,1577),J(1578,1,dH,hee),Q.Le=function(e,t){return nYe(F(e,455),F(t,455))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`EndLabelSorter/1`,1578),J(455,1,{455:1},xOe),R(jU,`EndLabelSorter/LabelGroup`,455),J(1579,1,{},qt),Q.Kb=function(e){return Ih(),new Hx(null,new hT(F(e,25).a,16))},R(jU,`EndLabelSorter/lambda$0$Type`,1579),J(1580,1,JB,Jt),Q.Mb=function(e){return Ih(),F(e,9).k==(_L(),YX)},R(jU,`EndLabelSorter/lambda$1$Type`,1580),J(1581,1,jB,Yt),Q.Ad=function(e){p2e(F(e,9))},R(jU,`EndLabelSorter/lambda$2$Type`,1581),J(1582,1,JB,Xt),Q.Mb=function(e){return Ih(),M(q(F(e,70),(Yz(),F1)))===M((NO(),D8))},R(jU,`EndLabelSorter/lambda$3$Type`,1582),J(1583,1,JB,Zt),Q.Mb=function(e){return Ih(),M(q(F(e,70),(Yz(),F1)))===M((NO(),O8))},R(jU,`EndLabelSorter/lambda$4$Type`,1583),J(1530,1,wU,Qt),Q.If=function(e,t){lot(this,F(e,36))},Q.b=0,Q.c=0,R(jU,`FinalSplineBendpointsCalculator`,1530),J(1531,1,{},$t),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`FinalSplineBendpointsCalculator/lambda$0$Type`,1531),J(1532,1,{},en),Q.Kb=function(e){return new Hx(null,new ZS(new fS(Sy(GM(F(e,9)).a.Jc(),new f))))},R(jU,`FinalSplineBendpointsCalculator/lambda$1$Type`,1532),J(1533,1,JB,tn),Q.Mb=function(e){return!AE(F(e,17))},R(jU,`FinalSplineBendpointsCalculator/lambda$2$Type`,1533),J(1534,1,JB,gee),Q.Mb=function(e){return ib(F(e,17),(X(),K$))},R(jU,`FinalSplineBendpointsCalculator/lambda$3$Type`,1534),J(1535,1,jB,Au),Q.Ad=function(e){$nt(this.a,F(e,132))},R(jU,`FinalSplineBendpointsCalculator/lambda$4$Type`,1535),J(1536,1,jB,_ee),Q.Ad=function(e){jI(F(e,17).a)},R(jU,`FinalSplineBendpointsCalculator/lambda$5$Type`,1536),J(791,1,wU,ju),Q.If=function(e,t){hst(this,F(e,36),t)},R(jU,`GraphTransformer`,791),J(503,24,{3:1,35:1,24:1,503:1},zde);var $X,eZ,YCt=rk(jU,`GraphTransformer/Mode`,503,GJ,mke,_be),XCt;J(1537,1,wU,nn),Q.If=function(e,t){m7e(F(e,36),t)},R(jU,`HierarchicalNodeResizingProcessor`,1537),J(1538,1,wU,rn),Q.If=function(e,t){sBe(F(e,36),t)},R(jU,`HierarchicalPortConstraintProcessor`,1538),J(1539,1,dH,an),Q.Le=function(e,t){return IYe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`HierarchicalPortConstraintProcessor/NodeComparator`,1539),J(1540,1,wU,on),Q.If=function(e,t){Mit(F(e,36),t)},R(jU,`HierarchicalPortDummySizeProcessor`,1540),J(1541,1,wU,sn),Q.If=function(e,t){vtt(this,F(e,36),t)},Q.a=0,R(jU,`HierarchicalPortOrthogonalEdgeRouter`,1541),J(1542,1,dH,cn),Q.Le=function(e,t){return Mge(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`HierarchicalPortOrthogonalEdgeRouter/1`,1542),J(1543,1,dH,ln),Q.Le=function(e,t){return KLe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`HierarchicalPortOrthogonalEdgeRouter/2`,1543),J(1544,1,wU,un),Q.If=function(e,t){N0e(F(e,36),t)},R(jU,`HierarchicalPortPositionProcessor`,1544),J(1545,1,wU,lc),Q.If=function(e,t){hut(this,F(e,36))},Q.a=0,Q.c=0;var tZ,nZ;R(jU,`HighDegreeNodeLayeringProcessor`,1545),J(566,1,{566:1},dn),Q.b=-1,Q.d=-1,R(jU,`HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation`,566),J(1546,1,{},vee),Q.Kb=function(e){return nx(),UM(F(e,9))},Q.Fb=function(e){return this===e},R(jU,`HighDegreeNodeLayeringProcessor/lambda$0$Type`,1546),J(1547,1,{},fn),Q.Kb=function(e){return nx(),GM(F(e,9))},Q.Fb=function(e){return this===e},R(jU,`HighDegreeNodeLayeringProcessor/lambda$1$Type`,1547),J(1553,1,wU,yee),Q.If=function(e,t){hit(this,F(e,36),t)},R(jU,`HyperedgeDummyMerger`,1553),J(792,1,{},dbe),Q.a=!1,Q.b=!1,Q.c=!1,R(jU,`HyperedgeDummyMerger/MergeState`,792),J(1554,1,{},pn),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`HyperedgeDummyMerger/lambda$0$Type`,1554),J(1555,1,{},mn),Q.Kb=function(e){return new Hx(null,new hT(F(e,9).j,16))},R(jU,`HyperedgeDummyMerger/lambda$1$Type`,1555),J(1556,1,jB,hn),Q.Ad=function(e){F(e,12).p=-1},R(jU,`HyperedgeDummyMerger/lambda$2$Type`,1556),J(1557,1,wU,gn),Q.If=function(e,t){fit(F(e,36),t)},R(jU,`HypernodesProcessor`,1557),J(1558,1,wU,_n),Q.If=function(e,t){jit(F(e,36),t)},R(jU,`InLayerConstraintProcessor`,1558),J(1559,1,wU,vn),Q.If=function(e,t){OVe(F(e,36),t)},R(jU,`InnermostNodeMarginCalculator`,1559),J(1560,1,wU,yn),Q.If=function(e,t){clt(this,F(e,36))},Q.a=RV,Q.b=RV,Q.c=LV,Q.d=LV;var ZCt=R(jU,`InteractiveExternalPortPositioner`,1560);J(1561,1,{},bn),Q.Kb=function(e){return F(e,17).d.i},Q.Fb=function(e){return this===e},R(jU,`InteractiveExternalPortPositioner/lambda$0$Type`,1561),J(1562,1,{},bae),Q.Kb=function(e){return Nge(this.a,P(e))},Q.Fb=function(e){return this===e},R(jU,`InteractiveExternalPortPositioner/lambda$1$Type`,1562),J(1563,1,{},xn),Q.Kb=function(e){return F(e,17).c.i},Q.Fb=function(e){return this===e},R(jU,`InteractiveExternalPortPositioner/lambda$2$Type`,1563),J(1564,1,{},xae),Q.Kb=function(e){return Pge(this.a,P(e))},Q.Fb=function(e){return this===e},R(jU,`InteractiveExternalPortPositioner/lambda$3$Type`,1564),J(1565,1,{},Sae),Q.Kb=function(e){return lye(this.a,P(e))},Q.Fb=function(e){return this===e},R(jU,`InteractiveExternalPortPositioner/lambda$4$Type`,1565),J(1566,1,{},Mu),Q.Kb=function(e){return uye(this.a,P(e))},Q.Fb=function(e){return this===e},R(jU,`InteractiveExternalPortPositioner/lambda$5$Type`,1566),J(77,24,{3:1,35:1,24:1,77:1,196:1},Cg),Q.bg=function(){switch(this.g){case 15:return new Yr;case 22:return new Xr;case 49:return new $r;case 29:case 36:return new jn;case 33:return new uee;case 44:return new zt;case 1:return new dee;case 43:return new Bt;case 58:return new ju((Pk(),eZ));case 0:return new ju((Pk(),$X));case 2:return new fee;case 56:return new Vt;case 34:return new Ut;case 53:return new Qt;case 57:return new nn;case 13:return new rn;case 39:return new on;case 46:return new sn;case 42:return new un;case 9:return new lc;case 51:return new Hge;case 38:return new yee;case 45:return new gn;case 28:return new _n;case 31:return new vn;case 3:return new yn;case 18:return new Sn;case 30:return new Cn;case 5:return new Vre;case 52:return new En;case 35:return new sc;case 37:return new Mn;case 54:return new cc;case 11:return new Nn;case 7:return new Hre;case 41:return new Pn;case 47:return new Fn;case 16:return new In;case 40:return new xee;case 10:return new fpe;case 50:return new Cee;case 21:return new wee;case 23:return new Hp((Yj(),L2));case 8:return new Hn;case 12:return new Wn;case 4:return new See;case 19:return new Ure;case 17:return new $n;case 55:return new Eee;case 6:return new sr;case 25:return new Ise;case 26:return new qr;case 48:return new Oee;case 32:return new Kve;case 14:return new zee;case 27:return new oi;case 20:return new ur;case 24:return new Hp((Yj(),R2));default:throw O(new qp(MU+(this.f==null?``+this.g:this.f)))}};var QCt,$Ct,ewt,twt,nwt,rwt,iwt,awt,owt,swt,cwt,rZ,iZ,aZ,lwt,uwt,dwt,fwt,pwt,mwt,hwt,oZ,gwt,_wt,vwt,ywt,bwt,sZ,cZ,lZ,xwt,uZ,dZ,fZ,pZ,mZ,hZ,Swt,gZ,_Z,Cwt,wwt,vZ,yZ,Twt,Ewt,Dwt,Owt,bZ,xZ,SZ,CZ,wZ,TZ,EZ,kwt,Awt,jwt,Mwt,Nwt=rk(jU,NU,77,GJ,O9e,vbe),Pwt;J(1567,1,wU,Sn),Q.If=function(e,t){alt(F(e,36),t)},R(jU,`InvertedPortProcessor`,1567),J(1568,1,wU,Cn),Q.If=function(e,t){Vnt(F(e,36),t)},R(jU,`LabelAndNodeSizeProcessor`,1568),J(1569,1,JB,bee),Q.Mb=function(e){return F(e,9).k==(_L(),YX)},R(jU,`LabelAndNodeSizeProcessor/lambda$0$Type`,1569),J(1570,1,JB,wn),Q.Mb=function(e){return F(e,9).k==(_L(),GX)},R(jU,`LabelAndNodeSizeProcessor/lambda$1$Type`,1570),J(1571,1,jB,fbe),Q.Ad=function(e){nde(this.b,this.a,this.c,F(e,9))},Q.a=!1,Q.c=!1,R(jU,`LabelAndNodeSizeProcessor/lambda$2$Type`,1571),J(1572,1,wU,Vre),Q.If=function(e,t){Dct(F(e,36),t)};var Fwt;R(jU,`LabelDummyInserter`,1572),J(1573,1,hH,Tn),Q.Lb=function(e){return M(q(F(e,70),(Yz(),F1)))===M((NO(),E8))},Q.Fb=function(e){return this===e},Q.Mb=function(e){return M(q(F(e,70),(Yz(),F1)))===M((NO(),E8))},R(jU,`LabelDummyInserter/1`,1573),J(1574,1,wU,En),Q.If=function(e,t){act(F(e,36),t)},R(jU,`LabelDummyRemover`,1574),J(1575,1,JB,Dn),Q.Mb=function(e){return Xp(db(q(F(e,70),(Yz(),P1))))},R(jU,`LabelDummyRemover/lambda$0$Type`,1575),J(1333,1,wU,sc),Q.If=function(e,t){Jst(this,F(e,36),t)},Q.a=null;var DZ;R(jU,`LabelDummySwitcher`,1333),J(294,1,{294:1},_nt),Q.c=0,Q.d=null,Q.f=0,R(jU,`LabelDummySwitcher/LabelDummyInfo`,294),J(1334,1,{},On),Q.Kb=function(e){return Lk(),new Hx(null,new hT(F(e,25).a,16))},R(jU,`LabelDummySwitcher/lambda$0$Type`,1334),J(1335,1,JB,kn),Q.Mb=function(e){return Lk(),F(e,9).k==(_L(),KX)},R(jU,`LabelDummySwitcher/lambda$1$Type`,1335),J(1336,1,{},Cae),Q.Kb=function(e){return ave(this.a,F(e,9))},R(jU,`LabelDummySwitcher/lambda$2$Type`,1336),J(1337,1,jB,wae),Q.Ad=function(e){EEe(this.a,F(e,294))},R(jU,`LabelDummySwitcher/lambda$3$Type`,1337),J(1338,1,dH,An),Q.Le=function(e,t){return $we(F(e,294),F(t,294))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`LabelDummySwitcher/lambda$4$Type`,1338),J(790,1,wU,jn),Q.If=function(e,t){KFe(F(e,36),t)},R(jU,`LabelManagementProcessor`,790),J(1576,1,wU,Mn),Q.If=function(e,t){set(F(e,36),t)},R(jU,`LabelSideSelector`,1576),J(1584,1,wU,Nn),Q.If=function(e,t){sat(F(e,36),t)},R(jU,`LayerConstraintPostprocessor`,1584),J(1585,1,wU,Hre),Q.If=function(e,t){j8e(F(e,36),t)};var Iwt;R(jU,`LayerConstraintPreprocessor`,1585),J(367,24,{3:1,35:1,24:1,367:1},wg);var OZ,kZ,AZ,jZ,Lwt=rk(jU,`LayerConstraintPreprocessor/HiddenNodeConnections`,367,GJ,$Me,ybe),Rwt;J(1586,1,wU,Pn),Q.If=function(e,t){est(F(e,36),t)},R(jU,`LayerSizeAndGraphHeightCalculator`,1586),J(1587,1,wU,Fn),Q.If=function(e,t){h7e(F(e,36),t)},R(jU,`LongEdgeJoiner`,1587),J(1588,1,wU,In),Q.If=function(e,t){wot(F(e,36),t)},R(jU,`LongEdgeSplitter`,1588),J(1589,1,wU,xee),Q.If=function(e,t){Pnt(F(e,36),t)},R(jU,`NodePlacementRepeater`,1589),J(1590,1,JB,Ln),Q.Mb=function(e){return F(e,9).k==(_L(),YX)},R(jU,`NodePlacementRepeater/lambda$0$Type`,1590),J(1591,1,wU,fpe),Q.If=function(e,t){Wct(this,F(e,36),t)},Q.e=0,Q.f=0,Q.j=0,Q.k=0,Q.n=0,Q.o=0;var zwt,Bwt;R(jU,`NodePromotion`,1591),J(1592,1,dH,Rn),Q.Le=function(e,t){return sWe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`NodePromotion/1`,1592),J(1593,1,dH,zn),Q.Le=function(e,t){return cWe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`NodePromotion/2`,1593),J(1594,1,{},Bn),Q.Kb=function(e){return F(e,49),rx(),ky(),!0},Q.Fb=function(e){return this===e},R(jU,`NodePromotion/lambda$0$Type`,1594),J(1595,1,{},Nu),Q.Kb=function(e){return Zke(this.a,F(e,49))},Q.Fb=function(e){return this===e},Q.a=0,R(jU,`NodePromotion/lambda$1$Type`,1595),J(1596,1,{},Tae),Q.Kb=function(e){return Xke(this.a,F(e,49))},Q.Fb=function(e){return this===e},Q.a=0,R(jU,`NodePromotion/lambda$2$Type`,1596),J(1597,1,wU,Cee),Q.If=function(e,t){tut(F(e,36),t)},R(jU,`NorthSouthPortPostprocessor`,1597),J(1598,1,wU,wee),Q.If=function(e,t){fut(F(e,36),t)},R(jU,`NorthSouthPortPreprocessor`,1598),J(1599,1,dH,Vn),Q.Le=function(e,t){return THe(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`NorthSouthPortPreprocessor/lambda$0$Type`,1599),J(1600,1,wU,Hn),Q.If=function(e,t){zrt(F(e,36),t)},R(jU,`PartitionMidprocessor`,1600),J(1601,1,JB,Un),Q.Mb=function(e){return ib(F(e,9),(Yz(),m0))},R(jU,`PartitionMidprocessor/lambda$0$Type`,1601),J(1602,1,jB,Eae),Q.Ad=function(e){sOe(this.a,F(e,9))},R(jU,`PartitionMidprocessor/lambda$1$Type`,1602),J(1603,1,wU,Wn),Q.If=function(e,t){W7e(F(e,36),t)},R(jU,`PartitionPostprocessor`,1603),J(1604,1,wU,See),Q.If=function(e,t){hnt(F(e,36),t)},R(jU,`PartitionPreprocessor`,1604),J(1605,1,JB,Gn),Q.Mb=function(e){return ib(F(e,9),(Yz(),m0))},R(jU,`PartitionPreprocessor/lambda$0$Type`,1605),J(1606,1,JB,Tee),Q.Mb=function(e){return ib(F(e,9),(Yz(),m0))},R(jU,`PartitionPreprocessor/lambda$1$Type`,1606),J(1607,1,{},Kn),Q.Kb=function(e){return new Hx(null,new ZS(new fS(Sy(GM(F(e,9)).a.Jc(),new f))))},R(jU,`PartitionPreprocessor/lambda$2$Type`,1607),J(1608,1,JB,Dae),Q.Mb=function(e){return Ale(this.a,F(e,17))},R(jU,`PartitionPreprocessor/lambda$3$Type`,1608),J(1609,1,jB,qn),Q.Ad=function(e){QHe(F(e,17))},R(jU,`PartitionPreprocessor/lambda$4$Type`,1609),J(1610,1,JB,Oae),Q.Mb=function(e){return DEe(this.a,F(e,9))},Q.a=0,R(jU,`PartitionPreprocessor/lambda$5$Type`,1610),J(1611,1,wU,Ure),Q.If=function(e,t){prt(F(e,36),t)};var Vwt,Hwt,Uwt,Wwt,Gwt,Kwt;R(jU,`PortListSorter`,1611),J(1614,1,dH,Jn),Q.Le=function(e,t){return $Ne(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`PortListSorter/lambda$0$Type`,1614),J(1616,1,dH,Yn),Q.Le=function(e,t){return rit(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`PortListSorter/lambda$1$Type`,1616),J(1612,1,{},Xn),Q.Kb=function(e){return hj(),F(e,12).e},R(jU,`PortListSorter/lambda$2$Type`,1612),J(1613,1,{},Zn),Q.Kb=function(e){return hj(),F(e,12).g},R(jU,`PortListSorter/lambda$3$Type`,1613),J(1615,1,dH,Qn),Q.Le=function(e,t){return RZe(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`PortListSorter/lambda$4$Type`,1615),J(1617,1,wU,$n),Q.If=function(e,t){U8e(F(e,36),t)},R(jU,`PortSideProcessor`,1617),J(1618,1,wU,Eee),Q.If=function(e,t){Ktt(F(e,36),t)},R(jU,`ReversedEdgeRestorer`,1618),J(1623,1,wU,Ise),Q.If=function(e,t){aZe(this,F(e,36),t)},R(jU,`SelfLoopPortRestorer`,1623),J(1624,1,{},Dee),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`SelfLoopPortRestorer/lambda$0$Type`,1624),J(1625,1,JB,er),Q.Mb=function(e){return F(e,9).k==(_L(),YX)},R(jU,`SelfLoopPortRestorer/lambda$1$Type`,1625),J(1626,1,JB,tr),Q.Mb=function(e){return ib(F(e,9),(X(),H$))},R(jU,`SelfLoopPortRestorer/lambda$2$Type`,1626),J(1627,1,{},nr),Q.Kb=function(e){return F(q(F(e,9),(X(),H$)),338)},R(jU,`SelfLoopPortRestorer/lambda$3$Type`,1627),J(1628,1,jB,kae),Q.Ad=function(e){P2e(this.a,F(e,338))},R(jU,`SelfLoopPortRestorer/lambda$4$Type`,1628),J(793,1,jB,rr),Q.Ad=function(e){$2e(F(e,107))},R(jU,`SelfLoopPortRestorer/lambda$5$Type`,793),J(1630,1,wU,Oee),Q.If=function(e,t){zYe(F(e,36),t)},R(jU,`SelfLoopPostProcessor`,1630),J(1631,1,{},kee),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`SelfLoopPostProcessor/lambda$0$Type`,1631),J(1632,1,JB,Aee),Q.Mb=function(e){return F(e,9).k==(_L(),YX)},R(jU,`SelfLoopPostProcessor/lambda$1$Type`,1632),J(1633,1,JB,ir),Q.Mb=function(e){return ib(F(e,9),(X(),H$))},R(jU,`SelfLoopPostProcessor/lambda$2$Type`,1633),J(1634,1,jB,jee),Q.Ad=function(e){T$e(F(e,9))},R(jU,`SelfLoopPostProcessor/lambda$3$Type`,1634),J(1635,1,{},ar),Q.Kb=function(e){return new Hx(null,new hT(F(e,107).f,1))},R(jU,`SelfLoopPostProcessor/lambda$4$Type`,1635),J(1636,1,jB,Aae),Q.Ad=function(e){cNe(this.a,F(e,341))},R(jU,`SelfLoopPostProcessor/lambda$5$Type`,1636),J(1637,1,JB,or),Q.Mb=function(e){return!!F(e,107).i},R(jU,`SelfLoopPostProcessor/lambda$6$Type`,1637),J(1638,1,jB,jae),Q.Ad=function(e){nce(this.a,F(e,107))},R(jU,`SelfLoopPostProcessor/lambda$7$Type`,1638),J(1619,1,wU,sr),Q.If=function(e,t){G5e(F(e,36),t)},R(jU,`SelfLoopPreProcessor`,1619),J(1620,1,{},Mee),Q.Kb=function(e){return new Hx(null,new hT(F(e,107).f,1))},R(jU,`SelfLoopPreProcessor/lambda$0$Type`,1620),J(1621,1,{},Nee),Q.Kb=function(e){return F(e,341).a},R(jU,`SelfLoopPreProcessor/lambda$1$Type`,1621),J(1622,1,jB,Pee),Q.Ad=function(e){$me(F(e,17))},R(jU,`SelfLoopPreProcessor/lambda$2$Type`,1622),J(1639,1,wU,Kve),Q.If=function(e,t){a2e(this,F(e,36),t)},R(jU,`SelfLoopRouter`,1639),J(1640,1,{},Fee),Q.Kb=function(e){return new Hx(null,new hT(F(e,25).a,16))},R(jU,`SelfLoopRouter/lambda$0$Type`,1640),J(1641,1,JB,Iee),Q.Mb=function(e){return F(e,9).k==(_L(),YX)},R(jU,`SelfLoopRouter/lambda$1$Type`,1641),J(1642,1,JB,Lee),Q.Mb=function(e){return ib(F(e,9),(X(),H$))},R(jU,`SelfLoopRouter/lambda$2$Type`,1642),J(1643,1,{},Ree),Q.Kb=function(e){return F(q(F(e,9),(X(),H$)),338)},R(jU,`SelfLoopRouter/lambda$3$Type`,1643),J(1644,1,jB,Kde),Q.Ad=function(e){RDe(this.a,this.b,F(e,338))},R(jU,`SelfLoopRouter/lambda$4$Type`,1644),J(1645,1,wU,zee),Q.If=function(e,t){V9e(F(e,36),t)},R(jU,`SemiInteractiveCrossMinProcessor`,1645),J(1646,1,JB,Bee),Q.Mb=function(e){return F(e,9).k==(_L(),YX)},R(jU,`SemiInteractiveCrossMinProcessor/lambda$0$Type`,1646),J(1647,1,JB,Vee),Q.Mb=function(e){return HCe(F(e,9))._b((Yz(),x0))},R(jU,`SemiInteractiveCrossMinProcessor/lambda$1$Type`,1647),J(1648,1,dH,cr),Q.Le=function(e,t){return XBe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(jU,`SemiInteractiveCrossMinProcessor/lambda$2$Type`,1648),J(1649,1,{},lr),Q.Te=function(e,t){return oOe(F(e,9),F(t,9))},R(jU,`SemiInteractiveCrossMinProcessor/lambda$3$Type`,1649),J(1651,1,wU,ur),Q.If=function(e,t){Sst(F(e,36),t)},R(jU,`SortByInputModelProcessor`,1651),J(1652,1,JB,dr),Q.Mb=function(e){return F(e,12).g.c.length!=0},R(jU,`SortByInputModelProcessor/lambda$0$Type`,1652),J(1653,1,jB,Fu),Q.Ad=function(e){l4e(this.a,F(e,12))},R(jU,`SortByInputModelProcessor/lambda$1$Type`,1653),J(1732,805,{},ZBe),Q.bf=function(e){var t,n,r,i;switch(this.c=e,this.a.g){case 2:t=new kd,Eh(zC(new Hx(null,new hT(this.c.a.b,16)),new br),new Zde(this,t)),PI(this,new pr),kO(t,new mr),t.c.length=0,Eh(zC(new Hx(null,new hT(this.c.a.b,16)),new hr),new Mae(t)),PI(this,new gr),kO(t,new Hee),t.c.length=0,n=Xme(tA(VC(new Hx(null,new hT(this.c.a.b,16)),new Lu(this))),new _r),Eh(new Hx(null,new hT(this.c.a.a,16)),new Jde(n,t)),PI(this,new Wee),kO(t,new vr),t.c.length=0;break;case 3:r=new kd,PI(this,new fr),i=Xme(tA(VC(new Hx(null,new hT(this.c.a.b,16)),new Iu(this))),new Uee),Eh(zC(new Hx(null,new hT(this.c.a.b,16)),new Gee),new Xde(i,r)),PI(this,new yr),kO(r,new Kee),r.c.length=0;break;default:throw O(new kse)}},Q.b=0,R(FU,`EdgeAwareScanlineConstraintCalculation`,1732),J(1733,1,hH,fr),Q.Lb=function(e){return N(F(e,60).g,156)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return N(F(e,60).g,156)},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$0$Type`,1733),J(1734,1,{},Iu),Q.We=function(e){return f3e(this.a,F(e,60))},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$1$Type`,1734),J(1742,1,YB,qde),Q.be=function(){bF(this.a,this.b,-1)},Q.b=0,R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$10$Type`,1742),J(1744,1,hH,pr),Q.Lb=function(e){return N(F(e,60).g,156)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return N(F(e,60).g,156)},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$11$Type`,1744),J(1745,1,jB,mr),Q.Ad=function(e){F(e,375).be()},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$12$Type`,1745),J(1746,1,JB,hr),Q.Mb=function(e){return N(F(e,60).g,9)},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$13$Type`,1746),J(1748,1,jB,Mae),Q.Ad=function(e){KKe(this.a,F(e,60))},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$14$Type`,1748),J(1747,1,YB,efe),Q.be=function(){bF(this.b,this.a,-1)},Q.a=0,R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$15$Type`,1747),J(1749,1,hH,gr),Q.Lb=function(e){return N(F(e,60).g,9)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return N(F(e,60).g,9)},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$16$Type`,1749),J(1750,1,jB,Hee),Q.Ad=function(e){F(e,375).be()},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$17$Type`,1750),J(1751,1,{},Lu),Q.We=function(e){return p3e(this.a,F(e,60))},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$18$Type`,1751),J(1752,1,{},_r),Q.Ue=function(){return 0},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$19$Type`,1752),J(1735,1,{},Uee),Q.Ue=function(){return 0},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$2$Type`,1735),J(1754,1,jB,Jde),Q.Ad=function(e){ywe(this.a,this.b,F(e,321))},Q.a=0,R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$20$Type`,1754),J(1753,1,YB,Yde),Q.be=function(){n5e(this.a,this.b,-1)},Q.b=0,R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$21$Type`,1753),J(1755,1,hH,Wee),Q.Lb=function(e){return F(e,60),!0},Q.Fb=function(e){return this===e},Q.Mb=function(e){return F(e,60),!0},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$22$Type`,1755),J(1756,1,jB,vr),Q.Ad=function(e){F(e,375).be()},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$23$Type`,1756),J(1736,1,JB,Gee),Q.Mb=function(e){return N(F(e,60).g,9)},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$3$Type`,1736),J(1738,1,jB,Xde),Q.Ad=function(e){bwe(this.a,this.b,F(e,60))},Q.a=0,R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$4$Type`,1738),J(1737,1,YB,tfe),Q.be=function(){bF(this.b,this.a,-1)},Q.a=0,R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$5$Type`,1737),J(1739,1,hH,yr),Q.Lb=function(e){return F(e,60),!0},Q.Fb=function(e){return this===e},Q.Mb=function(e){return F(e,60),!0},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$6$Type`,1739),J(1740,1,jB,Kee),Q.Ad=function(e){F(e,375).be()},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$7$Type`,1740),J(1741,1,JB,br),Q.Mb=function(e){return N(F(e,60).g,156)},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$8$Type`,1741),J(1743,1,jB,Zde),Q.Ad=function(e){aze(this.a,this.b,F(e,60))},R(FU,`EdgeAwareScanlineConstraintCalculation/lambda$9$Type`,1743),J(1548,1,wU,Hge),Q.If=function(e,t){kot(this,F(e,36),t)};var qwt;R(FU,`HorizontalGraphCompactor`,1548),J(1549,1,{},Ru),Q.df=function(e,t){var n,r,i;return ZLe(e,t)||(n=yT(e),r=yT(t),n&&n.k==(_L(),GX)||r&&r.k==(_L(),GX))?0:(i=F(q(this.a.a,(X(),U$)),317),Lge(i,n?n.k:(_L(),qX),r?r.k:(_L(),qX)))},Q.ef=function(e,t){var n,r,i;return ZLe(e,t)?1:(n=yT(e),r=yT(t),i=F(q(this.a.a,(X(),U$)),317),Rge(i,n?n.k:(_L(),qX),r?r.k:(_L(),qX)))},R(FU,`HorizontalGraphCompactor/1`,1549),J(1550,1,{},xr),Q.cf=function(e,t){return Rh(),e.a.i==0},R(FU,`HorizontalGraphCompactor/lambda$0$Type`,1550),J(1551,1,{},Nae),Q.cf=function(e,t){return lOe(this.a,e,t)},R(FU,`HorizontalGraphCompactor/lambda$1$Type`,1551),J(1699,1,{},QLe);var Jwt,Ywt;R(FU,`LGraphToCGraphTransformer`,1699),J(1707,1,JB,Sr),Q.Mb=function(e){return e!=null},R(FU,`LGraphToCGraphTransformer/0methodref$nonNull$Type`,1707),J(1700,1,{},Cr),Q.Kb=function(e){return ix(),eN(q(F(F(e,60).g,9),(X(),M$)))},R(FU,`LGraphToCGraphTransformer/lambda$0$Type`,1700),J(1701,1,{},wr),Q.Kb=function(e){return ix(),PGe(F(F(e,60).g,156))},R(FU,`LGraphToCGraphTransformer/lambda$1$Type`,1701),J(1710,1,JB,Tr),Q.Mb=function(e){return ix(),N(F(e,60).g,9)},R(FU,`LGraphToCGraphTransformer/lambda$10$Type`,1710),J(1711,1,jB,Er),Q.Ad=function(e){WDe(F(e,60))},R(FU,`LGraphToCGraphTransformer/lambda$11$Type`,1711),J(1712,1,JB,Dr),Q.Mb=function(e){return ix(),N(F(e,60).g,156)},R(FU,`LGraphToCGraphTransformer/lambda$12$Type`,1712),J(1716,1,jB,Or),Q.Ad=function(e){FGe(F(e,60))},R(FU,`LGraphToCGraphTransformer/lambda$13$Type`,1716),J(1713,1,jB,Pae),Q.Ad=function(e){cme(this.a,F(e,8))},Q.a=0,R(FU,`LGraphToCGraphTransformer/lambda$14$Type`,1713),J(1714,1,jB,Fae),Q.Ad=function(e){ume(this.a,F(e,119))},Q.a=0,R(FU,`LGraphToCGraphTransformer/lambda$15$Type`,1714),J(1715,1,jB,zu),Q.Ad=function(e){lme(this.a,F(e,8))},Q.a=0,R(FU,`LGraphToCGraphTransformer/lambda$16$Type`,1715),J(1717,1,{},kr),Q.Kb=function(e){return ix(),new Hx(null,new ZS(new fS(Sy(GM(F(e,9)).a.Jc(),new f))))},R(FU,`LGraphToCGraphTransformer/lambda$17$Type`,1717),J(1718,1,JB,Ar),Q.Mb=function(e){return ix(),AE(F(e,17))},R(FU,`LGraphToCGraphTransformer/lambda$18$Type`,1718),J(1719,1,jB,Iae),Q.Ad=function(e){_Re(this.a,F(e,17))},R(FU,`LGraphToCGraphTransformer/lambda$19$Type`,1719),J(1703,1,jB,Lae),Q.Ad=function(e){Lje(this.a,F(e,156))},R(FU,`LGraphToCGraphTransformer/lambda$2$Type`,1703),J(1720,1,{},qee),Q.Kb=function(e){return ix(),new Hx(null,new hT(F(e,25).a,16))},R(FU,`LGraphToCGraphTransformer/lambda$20$Type`,1720),J(1721,1,{},jr),Q.Kb=function(e){return ix(),new Hx(null,new ZS(new fS(Sy(GM(F(e,9)).a.Jc(),new f))))},R(FU,`LGraphToCGraphTransformer/lambda$21$Type`,1721),J(1722,1,{},Jee),Q.Kb=function(e){return ix(),F(q(F(e,17),(X(),K$)),16)},R(FU,`LGraphToCGraphTransformer/lambda$22$Type`,1722),J(1723,1,JB,Mr),Q.Mb=function(e){return zge(F(e,16))},R(FU,`LGraphToCGraphTransformer/lambda$23$Type`,1723),J(1724,1,jB,Bu),Q.Ad=function(e){m3e(this.a,F(e,16))},R(FU,`LGraphToCGraphTransformer/lambda$24$Type`,1724),J(1725,1,{},Nr),Q.Kb=function(e){return ix(),new Hx(null,new ZS(new fS(Sy(GM(F(e,9)).a.Jc(),new f))))},R(FU,`LGraphToCGraphTransformer/lambda$25$Type`,1725),J(1726,1,JB,Yee),Q.Mb=function(e){return ix(),AE(F(e,17))},R(FU,`LGraphToCGraphTransformer/lambda$26$Type`,1726),J(1728,1,jB,Rae),Q.Ad=function(e){gBe(this.a,F(e,17))},R(FU,`LGraphToCGraphTransformer/lambda$27$Type`,1728),J(1727,1,jB,Vu),Q.Ad=function(e){Gce(this.a,F(e,70))},Q.a=0,R(FU,`LGraphToCGraphTransformer/lambda$28$Type`,1727),J(1702,1,jB,Qde),Q.Ad=function(e){BNe(this.a,this.b,F(e,156))},R(FU,`LGraphToCGraphTransformer/lambda$3$Type`,1702),J(1704,1,{},Xee),Q.Kb=function(e){return ix(),new Hx(null,new hT(F(e,25).a,16))},R(FU,`LGraphToCGraphTransformer/lambda$4$Type`,1704),J(1705,1,{},Zee),Q.Kb=function(e){return ix(),new Hx(null,new ZS(new fS(Sy(GM(F(e,9)).a.Jc(),new f))))},R(FU,`LGraphToCGraphTransformer/lambda$5$Type`,1705),J(1706,1,{},Qee),Q.Kb=function(e){return ix(),F(q(F(e,17),(X(),K$)),16)},R(FU,`LGraphToCGraphTransformer/lambda$6$Type`,1706),J(1708,1,jB,Hu),Q.Ad=function(e){O3e(this.a,F(e,16))},R(FU,`LGraphToCGraphTransformer/lambda$8$Type`,1708),J(1709,1,jB,$de),Q.Ad=function(e){ehe(this.a,this.b,F(e,156))},R(FU,`LGraphToCGraphTransformer/lambda$9$Type`,1709),J(1698,1,{},$ee),Q.af=function(e){var t,n,r,i,a;for(this.a=e,this.d=new gf,this.c=H(Mxt,mB,124,this.a.a.a.c.length,0,1),this.b=0,n=new D(this.a.a.a);n.a=g&&(fy(o,K(d)),y=r.Math.max(y,b[d-1]-f),c+=h,_+=b[d-1]-_,f=b[d-1],h=l[d]),h=r.Math.max(h,l[d]),++d;c+=h}m=r.Math.min(1/y,1/t.b/c),m>i&&(i=m,n=o)}return n},Q.ng=function(){return!1},R(UU,`MSDCutIndexHeuristic`,804),J(1650,1,wU,oi),Q.If=function(e,t){dat(F(e,36),t)},R(UU,`SingleEdgeGraphWrapper`,1650),J(231,24,{3:1,35:1,24:1,231:1},Og);var eQ,tQ,nQ,rQ,iQ,aQ,oQ=rk(WU,`CenterEdgeLabelPlacementStrategy`,231,GJ,zIe,Cbe),cTt;J(422,24,{3:1,35:1,24:1,422:1},ife);var lTt,sQ,uTt=rk(WU,`ConstraintCalculationStrategy`,422,GJ,ZOe,Sbe),dTt;J(301,24,{3:1,35:1,24:1,301:1,188:1,196:1},kg),Q.bg=function(){return j5e(this)},Q.og=function(){return j5e(this)};var cQ,lQ,fTt,pTt,mTt=rk(WU,`CrossingMinimizationStrategy`,301,GJ,rNe,wbe),hTt;J(350,24,{3:1,35:1,24:1,350:1},jg);var gTt,uQ,dQ,_Tt=rk(WU,`CuttingStrategy`,350,GJ,nje,Tbe),vTt;J(267,24,{3:1,35:1,24:1,267:1,188:1,196:1},Mg),Q.bg=function(){return jtt(this)},Q.og=function(){return jtt(this)};var fQ,yTt,pQ,mQ,hQ,gQ,_Q,vQ,yQ,bTt=rk(WU,`CycleBreakingStrategy`,267,GJ,vBe,Ebe),xTt;J(419,24,{3:1,35:1,24:1,419:1},afe);var bQ,STt,CTt=rk(WU,`DirectionCongruency`,419,GJ,QOe,Dbe),wTt;J(449,24,{3:1,35:1,24:1,449:1},Ng);var xQ,SQ,CQ,TTt=rk(WU,`EdgeConstraint`,449,GJ,rje,Obe),ETt;J(284,24,{3:1,35:1,24:1,284:1},Pg);var wQ,TQ,EQ,DQ,OQ,kQ,DTt=rk(WU,`EdgeLabelSideSelection`,284,GJ,BIe,jbe),OTt;J(476,24,{3:1,35:1,24:1,476:1},ofe);var AQ,kTt,ATt=rk(WU,`EdgeStraighteningStrategy`,476,GJ,$Oe,Mbe),jTt;J(282,24,{3:1,35:1,24:1,282:1},Fg);var jQ,MTt,NTt,MQ,PTt,FTt,ITt=rk(WU,`FixedAlignment`,282,GJ,VIe,Abe),LTt;J(283,24,{3:1,35:1,24:1,283:1},Ig);var RTt,zTt,BTt,VTt,NQ,HTt,UTt=rk(WU,`GraphCompactionStrategy`,283,GJ,HIe,Nbe),WTt;J(261,24,{3:1,35:1,24:1,261:1},Lg);var PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ=rk(WU,`GraphProperties`,261,GJ,EVe,Pbe),GTt;J(302,24,{3:1,35:1,24:1,302:1},Rg);var GQ,KQ,qQ,JQ=rk(WU,`GreedySwitchType`,302,GJ,UAe,Fbe),KTt;J(329,24,{3:1,35:1,24:1,329:1},zg);var YQ,qTt,XQ,ZQ=rk(WU,`GroupOrderStrategy`,329,GJ,WAe,Ibe),JTt;J(316,24,{3:1,35:1,24:1,316:1},Bg);var QQ,$Q,e$,YTt=rk(WU,`InLayerConstraint`,316,GJ,GAe,Lbe),XTt;J(420,24,{3:1,35:1,24:1,420:1},sfe);var t$,ZTt,QTt=rk(WU,`InteractiveReferencePoint`,420,GJ,eke,Rbe),$Tt,eEt,n$,r$,i$,a$,tEt,nEt,o$,rEt,s$,c$,l$,u$,d$,f$,p$,m$,iEt,h$,g$,_$,v$,y$,b$,x$,S$,aEt,oEt,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,sEt,cEt,lEt,uEt,dEt,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,fEt,q$,J$,Y$,X$,Z$,Q$,$$;J(165,24,{3:1,35:1,24:1,165:1},Vg);var e1,t1,n1,r1,i1,pEt=rk(WU,`LayerConstraint`,165,GJ,XPe,Bbe),mEt;J(423,24,{3:1,35:1,24:1,423:1},cfe);var a1,o1,hEt=rk(WU,`LayerUnzippingStrategy`,423,GJ,tke,Vbe),gEt;J(844,1,BH,Kre),Q.tf=function(e){QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Ppt),``),`Direction Congruency`),`Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other.`),mDt),(CI(),l6)),CTt),JM((iP(),i6))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Fpt),``),`Feedback Edges`),`Whether feedback edges should be highlighted by routing around the nodes.`),(ky(),!1)),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,KU),``),`Interactive Reference Point`),`Determines which point of a node is considered by interactive layout phases.`),LDt),l6),QTt),JM(i6)))),IT(e,KU,qU,zDt),IT(e,KU,eW,RDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Ipt),``),`Merge Edges`),`Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Lpt),``),`Merge Hierarchy-Crossing Edges`),`If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port.`),!0),s6),iY),JM(i6)))),QM(e,new SI(tle(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Rpt),``),`Allow Non-Flow Ports To Switch Sides`),`Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed.`),!1),s6),iY),JM(a6)),W(A(pY,1),OB,2,6,[`org.eclipse.elk.layered.northOrSouthPort`])))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,zpt),``),`Port Sorting Strategy`),`Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes.`),NOt),l6),XAt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Bpt),``),`Thoroughness`),`How much effort should be spent to produce a nice layout.`),K(7)),d6),lY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Vpt),``),`Add Unnecessary Bendpoints`),`Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Hpt),``),`Generate Position and Layer IDs`),`If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,qU),`cycleBreaking`),`Cycle Breaking Strategy`),`Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right).`),fDt),l6),bTt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,JU),GW),`Node Layering Strategy`),`Strategy for node layering.`),eOt),l6),NAt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Upt),GW),`Layer Constraint`),`Determines a constraint on the placement of the node regarding the layering.`),WDt),l6),pEt),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Wpt),GW),`Layer Choice Constraint`),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),d6),lY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Gpt),GW),`Layer ID`),`Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),K(-1)),d6),lY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,YU),gmt),`Upper Bound On Width [MinWidth Layerer]`),`Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected.`),K(4)),d6),lY),JM(i6)))),IT(e,YU,JU,qDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,XU),gmt),`Upper Layer Estimation Scaling Factor [MinWidth Layerer]`),`Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected.`),K(2)),d6),lY),JM(i6)))),IT(e,XU,JU,YDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,ZU),_mt),`Node Promotion Strategy`),`Reduces number of dummy nodes after layering phase (if possible).`),QDt),l6),GAt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,QU),_mt),`Max Node Promotion Iterations`),`Limits the number of iterations for node promotion.`),K(0)),d6),lY),JM(i6)))),IT(e,QU,ZU,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,$U),`layering.coffmanGraham`),`Layer Bound`),`The maximum number of nodes allowed per layer.`),K(lB)),d6),lY),JM(i6)))),IT(e,$U,JU,VDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,eW),KW),`Crossing Minimization Strategy`),`Strategy for crossing minimization.`),uDt),l6),mTt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Kpt),KW),`Force Node Model Order`),`The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,tW),KW),`Hierarchical Sweepiness`),`How likely it is to use cross-hierarchy (1) vs bottom-up (-1).`),.1),c6),sY),JM(i6)))),IT(e,tW,qW,nDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,nW),KW),`Semi-Interactive Crossing Minimization`),`Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints.`),!1),s6),iY),JM(i6)))),IT(e,nW,eW,cDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,qpt),KW),`In Layer Predecessor of`),`Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer`),null),p6),pY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Jpt),KW),`In Layer Successor of`),`Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer`),null),p6),pY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Ypt),KW),`Position Choice Constraint`),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),d6),lY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Xpt),KW),`Position ID`),`Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),K(-1)),d6),lY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Zpt),vmt),`Greedy Switch Activation Threshold`),`By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation.`),K(40)),d6),lY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,rW),vmt),`Greedy Switch Crossing Minimization`),`Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used.`),$Et),l6),JQ),JM(i6)))),IT(e,rW,eW,eDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,iW),`crossingMinimization.greedySwitchHierarchical`),`Greedy Switch Crossing Minimization (hierarchical)`),`Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges.`),YEt),l6),JQ),JM(i6)))),IT(e,iW,eW,XEt),IT(e,iW,qW,ZEt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,aW),ymt),`Node Placement Strategy`),`Strategy for node placement.`),jOt),l6),u2),JM(i6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,oW),ymt),`Favor Straight Edges Over Balancing`),`Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false.`),s6),iY),JM(i6)))),IT(e,oW,aW,yOt),IT(e,oW,aW,bOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,sW),bmt),`BK Edge Straightening`),`Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments.`),pOt),l6),ATt),JM(i6)))),IT(e,sW,aW,mOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,cW),bmt),`BK Fixed Alignment`),`Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four.`),gOt),l6),ITt),JM(i6)))),IT(e,cW,aW,_Ot),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,lW),`nodePlacement.linearSegments`),`Linear Segments Deflection Dampening`),`Dampens the movement of nodes to keep the diagram from getting too large.`),.3),c6),sY),JM(i6)))),IT(e,lW,aW,SOt),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,uW),`nodePlacement.networkSimplex`),`Node Flexibility`),`Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent.`),l6),a2),JM(r6)))),IT(e,uW,aW,DOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,dW),xmt),`Node Flexibility Default`),`Default value of the 'nodeFlexibility' option for the children of a hierarchical node.`),TOt),l6),a2),JM(i6)))),IT(e,dW,aW,EOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,fW),xmt),`Node Flexibility Recompute Node Placement`),`Run a second node placement algorithm after the initial network simplex with node flexibility. In the second run, node flexibility is disabled and a different node placer can be used. The node sizes determined by the node flexibility option are used as fixed node sizes in the second run. If set to null (default) no second run is performed.`),null),l6),u2),JM(i6)))),IT(e,fW,aW,kOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Qpt),Smt),`Self-Loop Distribution`),`Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE.`),SDt),l6),njt),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,$pt),Smt),`Self-Loop Ordering`),`Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE.`),wDt),l6),ijt),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,pW),`edgeRouting.splines`),`Spline Routing Mode`),`Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes.`),EDt),l6),sjt),JM(i6)))),IT(e,pW,JW,DDt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,mW),`edgeRouting.splines.sloppy`),`Sloppy Spline Layer Spacing Factor`),`Spacing factor for routing area between layers when using sloppy spline routing.`),.2),c6),sY),JM(i6)))),IT(e,mW,JW,kDt),IT(e,mW,pW,ADt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,hW),`edgeRouting.polyline`),`Sloped Edge Zone Width`),`Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer.`),2),c6),sY),JM(i6)))),IT(e,hW,JW,bDt),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,emt),YW),`Spacing Base Value`),`An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node.`),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,tmt),YW),`Edge Node Between Layers Spacing`),`The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used.`),10),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,nmt),YW),`Edge Edge Between Layer Spacing`),`Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer.`),10),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,rmt),YW),`Node Node Between Layers Spacing`),`The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself.`),20),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,imt),Cmt),`Direction Priority`),`Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase.`),K(0)),d6),lY),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,amt),Cmt),`Shortness Priority`),`Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase.`),K(0)),d6),lY),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,omt),Cmt),`Straightness Priority`),`Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement.`),K(0)),d6),lY),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,gW),wmt),`Connected Components Compaction`),`Tries to further compact components (disconnected sub-graphs).`),!1),s6),iY),JM(i6)))),IT(e,gW,YH,!0),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,smt),Tmt),`Post Compaction Strategy`),Emt),SEt),l6),UTt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,cmt),Tmt),`Post Compaction Constraint Calculation`),Emt),bEt),l6),uTt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,_W),Dmt),`High Degree Node Treatment`),`Makes room around high degree nodes to place leafs and trees.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,vW),Dmt),`High Degree Node Threshold`),`Whether a node is considered to have a high degree.`),K(16)),d6),lY),JM(i6)))),IT(e,vW,_W,!0),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,yW),Dmt),`High Degree Node Maximum Tree Height`),`Maximum height of a subtree connected to a high degree node to be moved to separate layers.`),K(5)),d6),lY),JM(i6)))),IT(e,yW,_W,!0),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,bW),Omt),`Graph Wrapping Strategy`),`For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'.`),dkt),l6),pjt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,xW),Omt),`Additional Wrapped Edges Spacing`),`To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing.`),10),c6),sY),JM(i6)))),IT(e,xW,bW,WOt),IT(e,xW,bW,GOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,SW),Omt),`Correction Factor for Wrapping`),`At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option.`),1),c6),sY),JM(i6)))),IT(e,SW,bW,qOt),IT(e,SW,bW,JOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,CW),kmt),`Cutting Strategy`),`The strategy by which the layer indexes are determined at which the layering crumbles into chunks.`),tkt),l6),_Tt),JM(i6)))),IT(e,CW,bW,nkt),IT(e,CW,bW,rkt),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,wW),kmt),`Manually Specified Cuts`),`Allows the user to specify her own cuts for a certain graph.`),f6),BJ),JM(i6)))),IT(e,wW,CW,XOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,TW),`wrapping.cutting.msd`),`MSD Freedom`),`The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts.`),QOt),d6),lY),JM(i6)))),IT(e,TW,CW,$Ot),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,EW),Amt),`Validification Strategy`),`When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed.`),gkt),l6),djt),JM(i6)))),IT(e,EW,bW,_kt),IT(e,EW,bW,vkt),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,DW),Amt),`Valid Indices for Wrapping`),null),f6),BJ),JM(i6)))),IT(e,DW,bW,pkt),IT(e,DW,bW,mkt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,OW),jmt),`Improve Cuts`),`For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought.`),!0),s6),iY),JM(i6)))),IT(e,OW,bW,skt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,kW),jmt),`Distance Penalty When Improving Cuts`),null),2),c6),sY),JM(i6)))),IT(e,kW,bW,akt),IT(e,kW,OW,!0),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,AW),jmt),`Improve Wrapped Edges`),`The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges.`),!0),s6),iY),JM(i6)))),IT(e,AW,bW,lkt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,jW),XW),`Layer Unzipping Strategy`),`The strategy to use for unzipping a layer into multiple sublayers while maintaining the existing ordering of nodes and edges after crossing minimization. The default value is 'NONE'.`),lOt),l6),hEt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,MW),XW),`Minimize Edge Length Heuristic`),`Use a heuristic to decide whether or not to actually perform the layer split with the goal of minimizing the total edge length. This option only works when layerSplit is set to 2. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to true, then the value is set to true for the entire layer.`),!1),s6),iY),JM(r6)))),IT(e,MW,NW,iOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,NW),XW),`Unzipping Layer Split`),`Defines the number of sublayers to split a layer into. The property can be set to the nodes in a layer, which then applies the property for the layer. If multiple nodes set the value to different values, then the lowest value is chosen.`),nOt),d6),lY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,PW),XW),`Reset Alternation on Long Edges`),`If set to true, nodes will always be placed in the first sublayer after a long edge when using the ALTERNATING strategy. Otherwise long edge dummies are treated the same as regular nodes. The default value is true. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to false, then the value is set to false for the entire layer.`),oOt),s6),iY),JM(r6)))),IT(e,PW,jW,sOt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,lmt),ZW),`Edge Label Side Selection`),`Method to decide on edge label sides.`),vDt),l6),DTt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,umt),ZW),`Edge Center Label Placement Strategy`),`Determines in which layer center labels of long edges should be placed.`),gDt),l6),oQ),eS(i6,W(A(o6,1),Z,160,0,[n6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,FW),QW),`Consider Model Order`),`Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting.`),GEt),l6),JAt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,dmt),QW),`Consider Port Order`),`If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,IW),QW),`No Model Order`),`Set on a node to not set a model order for this node even though it is a real node.`),!1),s6),iY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,LW),QW),`Consider Model Order for Components`),`If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected.`),wEt),l6),MCt),JM(i6)))),IT(e,LW,YH,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,fmt),QW),`Long Edge Ordering Strategy`),`Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout.`),VEt),l6),IAt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,RW),QW),`Crossing Counter Node Order Influence`),`Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0).`),0),c6),sY),JM(i6)))),IT(e,RW,FW,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,zW),QW),`Crossing Counter Port Order Influence`),`Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0).`),0),c6),sY),JM(i6)))),IT(e,zW,FW,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,BW),$W),Mmt),`Used to define partial ordering groups during cycle breaking. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group.`),K(0)),d6),lY),JM(r6)))),IT(e,BW,IW,!1),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,VW),$W),Mmt),`Used to define partial ordering groups during crossing minimization. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group.`),K(0)),d6),lY),eS(r6,W(A(o6,1),Z,160,0,[t6,a6]))))),IT(e,VW,IW,!1),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,HW),$W),Mmt),`Used to define partial ordering groups during component packing. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group.`),K(0)),d6),lY),eS(r6,W(A(o6,1),Z,160,0,[t6,a6]))))),IT(e,HW,IW,!1),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,pmt),$W),`Cycle Breaking Group Ordering Strategy`),`Determines how to count ordering violations during cycle breaking. NONE: They do not count. ENFORCED: A group with a higher model order is before a node with a smaller. MODEL_ORDER: The model order counts instead of the model order group id ordering.`),OEt),l6),ZQ),JM(i6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,UW),$W),`Cycle Breaking Preferred Source Id`),`The model order group id for which should be preferred as a source if possible.`),d6),lY),JM(i6)))),IT(e,UW,qU,AEt),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,WW),$W),`Cycle Breaking Preferred Target Id`),`The model order group id for which should be preferred as a target if possible.`),d6),lY),JM(i6)))),IT(e,WW,qU,MEt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,mmt),$W),`Crossing Minimization Group Ordering Strategy`),`Determines how to count ordering violations during crossing minimization. NONE: They do not count. ENFORCED: A group with a lower id is before a group with a higher id. MODEL_ORDER: The model order counts instead of the model order group id ordering.`),IEt),l6),ZQ),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,hmt),$W),`Crossing Minimization Enforced Group Orders`),`Holds all group ids which are enforcing their order during crossing minimization strategies. E.g. if only groups 2 and -1 (default) enforce their ordering. Other groups e.g. the group of timer nodes can be ordered arbitrarily if it helps and the mentioned groups may not change their order.`),PEt),f6),BJ),JM(i6)))),Edt((new mc,e))};var _Et,vEt,yEt,bEt,xEt,SEt,CEt,wEt,TEt,EEt,DEt,OEt,kEt,AEt,jEt,MEt,NEt,PEt,FEt,IEt,LEt,REt,zEt,BEt,VEt,HEt,UEt,WEt,GEt,KEt,qEt,JEt,YEt,XEt,ZEt,QEt,$Et,eDt,tDt,nDt,rDt,iDt,aDt,oDt,sDt,cDt,lDt,uDt,dDt,fDt,pDt,mDt,hDt,gDt,_Dt,vDt,yDt,bDt,xDt,SDt,CDt,wDt,TDt,EDt,DDt,ODt,kDt,ADt,jDt,MDt,NDt,PDt,FDt,IDt,LDt,RDt,zDt,BDt,VDt,HDt,UDt,WDt,GDt,KDt,qDt,JDt,YDt,XDt,ZDt,QDt,$Dt,eOt,tOt,nOt,rOt,iOt,aOt,oOt,sOt,cOt,lOt,uOt,dOt,fOt,pOt,mOt,hOt,gOt,_Ot,vOt,yOt,bOt,xOt,SOt,COt,wOt,TOt,EOt,DOt,OOt,kOt,AOt,jOt,MOt,NOt,POt,FOt,IOt,LOt,ROt,zOt,BOt,VOt,HOt,UOt,WOt,GOt,KOt,qOt,JOt,YOt,XOt,ZOt,QOt,$Ot,ekt,tkt,nkt,rkt,ikt,akt,okt,skt,ckt,lkt,ukt,dkt,fkt,pkt,mkt,hkt,gkt,_kt,vkt;R(WU,`LayeredMetaDataProvider`,844),J(983,1,BH,mc),Q.tf=function(e){Edt(e)};var s1,c1,l1,u1,d1,ykt,f1,p1,m1,h1,g1,bkt,xkt,Skt,_1,Ckt,v1,y1,b1,x1,S1,C1,w1,T1,wkt,E1,D1,Tkt,Ekt,Dkt,Okt,O1,k1,A1,j1,kkt,M1,Akt,jkt,N1,P1,F1,I1,L1,Mkt,Nkt,Pkt,R1,z1,Fkt,B1,V1,Ikt,H1,Lkt,Rkt,zkt,U1,W1,G1,Bkt,Vkt,K1,Hkt,Ukt,q1,J1,Wkt,Gkt,Kkt,Y1,X1,Z1,Q1,$1,qkt,e0,Jkt,Ykt,t0,n0,Xkt,r0,i0,Zkt,a0,o0,s0,c0,l0,u0,d0,f0,p0,Qkt,$kt,eAt,m0,tAt,nAt,rAt,iAt,aAt,h0,g0,_0,v0,oAt,y0,sAt,b0,cAt,x0,lAt,S0,uAt,C0,dAt,fAt,w0,T0,pAt,E0,D0,O0,k0,A0,j0,M0,N0,P0,F0,I0,L0,R0,z0,B0,V0,H0,mAt,hAt,gAt,_At,vAt,U0,yAt,bAt,xAt,SAt,W0,CAt,wAt,TAt,EAt,G0,K0;R(WU,`LayeredOptions`,983),J(984,1,{},di),Q.uf=function(){return new Pse},Q.vf=function(e){},R(WU,`LayeredOptions/LayeredFactory`,984),J(1346,1,{}),Q.a=0;var DAt;R(cG,`ElkSpacings/AbstractSpacingsBuilder`,1346),J(779,1346,{},lqe);var q0,OAt;R(WU,`LayeredSpacings/LayeredSpacingsBuilder`,779),J(268,24,{3:1,35:1,24:1,268:1,188:1,196:1},Hg),Q.bg=function(){return xtt(this)},Q.og=function(){return xtt(this)};var J0,Y0,X0,kAt,AAt,jAt,Z0,Q0,MAt,NAt=rk(WU,`LayeringStrategy`,268,GJ,yBe,Hbe),PAt;J(352,24,{3:1,35:1,24:1,352:1},Wg);var $0,FAt,e2,IAt=rk(WU,`LongEdgeOrderingStrategy`,352,GJ,HAe,Ube),LAt;J(203,24,{3:1,35:1,24:1,203:1},Gg);var t2,n2,r2,i2,a2=rk(WU,`NodeFlexibility`,203,GJ,iNe,Wbe),RAt;J(303,24,{3:1,35:1,24:1,303:1,188:1,196:1},Kg),Q.bg=function(){return W8e(this)},Q.og=function(){return W8e(this)};var o2,s2,c2,l2,zAt,u2=rk(WU,`NodePlacementStrategy`,303,GJ,YPe,Gbe),BAt;J(243,24,{3:1,35:1,24:1,243:1},Ug);var VAt,d2,f2,p2,HAt,UAt,m2,WAt,h2,g2,GAt=rk(WU,`NodePromotionStrategy`,243,GJ,DVe,Kbe),KAt;J(269,24,{3:1,35:1,24:1,269:1},Jg);var qAt,_2,v2,y2,JAt=rk(WU,`OrderingStrategy`,269,GJ,aNe,qbe),YAt;J(421,24,{3:1,35:1,24:1,421:1},lfe);var b2,x2,XAt=rk(WU,`PortSortingStrategy`,421,GJ,nke,Jbe),ZAt;J(452,24,{3:1,35:1,24:1,452:1},Yg);var S2,C2,w2,QAt=rk(WU,`PortType`,452,GJ,YAe,Ybe),$At;J(381,24,{3:1,35:1,24:1,381:1},qg);var ejt,T2,tjt,njt=rk(WU,`SelfLoopDistributionStrategy`,381,GJ,JAe,Xbe),rjt;J(348,24,{3:1,35:1,24:1,348:1},Xg);var E2,D2,O2,ijt=rk(WU,`SelfLoopOrderingStrategy`,348,GJ,qAe,Zbe),ajt;J(317,1,{317:1},Nst),R(WU,`Spacings`,317),J(349,24,{3:1,35:1,24:1,349:1},Zg);var k2,ojt,A2,sjt=rk(WU,`SplineRoutingMode`,349,GJ,XAe,Qbe),cjt;J(351,24,{3:1,35:1,24:1,351:1},Qg);var j2,ljt,ujt,djt=rk(WU,`ValidifyStrategy`,351,GJ,ZAe,$be),fjt;J(382,24,{3:1,35:1,24:1,382:1},$g);var M2,N2,P2,pjt=rk(WU,`WrappingStrategy`,382,GJ,QAe,exe),mjt;J(1362,1,lG,fc),Q.pg=function(e){return F(e,36),hjt},Q.If=function(e,t){jst(this,F(e,36),t)};var hjt;R(uG,`BFSNodeOrderCycleBreaker`,1362),J(1360,1,lG,dc),Q.pg=function(e){return F(e,36),gjt},Q.If=function(e,t){sot(this,F(e,36),t)};var gjt;R(uG,`DFSNodeOrderCycleBreaker`,1360),J(1361,1,jB,nSe),Q.Ad=function(e){Rnt(this.a,this.c,this.b,F(e,17))},Q.b=!1,R(uG,`DFSNodeOrderCycleBreaker/lambda$0$Type`,1361),J(1354,1,lG,pc),Q.pg=function(e){return F(e,36),_jt},Q.If=function(e,t){oot(this,F(e,36),t)};var _jt;R(uG,`DepthFirstCycleBreaker`,1354),J(780,1,lG,Mwe),Q.pg=function(e){return F(e,36),vjt},Q.If=function(e,t){Yut(this,F(e,36),t)},Q.qg=function(e){return F(zx(e,DP(this.e,e.c.length)),9)};var vjt;R(uG,`GreedyCycleBreaker`,780),J(1357,780,lG,Rpe),Q.qg=function(e){var t,n,i,a,o,s,c,l,u=null;for(i=lB,l=r.Math.max(this.b.a.c.length,F(q(this.b,(X(),A$)),15).a),t=l*F(q(this.b,i$),15).a,a=new gi,n=M(q(this.b,(Yz(),g1)))===M((ZA(),YQ)),c=new D(e);c.ao&&(i=o,u=s));return u||F(zx(e,DP(this.e,e.c.length)),9)},R(uG,`GreedyModelOrderCycleBreaker`,1357),J(506,1,{},gi),Q.a=0,Q.b=0,R(uG,`GroupModelOrderCalculator`,506),J(1355,1,lG,qre),Q.pg=function(e){return F(e,36),yjt},Q.If=function(e,t){Vot(this,F(e,36),t)};var yjt;R(uG,`InteractiveCycleBreaker`,1355),J(1356,1,lG,uc),Q.pg=function(e){return F(e,36),bjt},Q.If=function(e,t){Wot(F(e,36),t)};var bjt;R(uG,`ModelOrderCycleBreaker`,1356),J(781,1,lG),Q.pg=function(e){return F(e,36),xjt},Q.If=function(e,t){eat(this,F(e,36),t)},Q.rg=function(e,t){for(var n,r,i,a,o=0,s,c,l,u,d;ol&&(c=p,d=l),u$T(new fS(Sy(GM(s).a.Jc(),new f))))for(i=new fS(Sy(UM(c).a.Jc(),new f));sL(i);)r=F(FE(i),17),F(vP(this.d,o),22).Gc(r.c.i)&&fy(this.c,r);else for(i=new fS(Sy(GM(s).a.Jc(),new f));sL(i);)r=F(FE(i),17),F(vP(this.d,o),22).Gc(r.d.i)&&fy(this.c,r)}},R(uG,`SCCNodeTypeCycleBreaker`,1359),J(1358,781,lG,Ipe),Q.rg=function(e,t){for(var n,r,i,a,o=0,s,c,l,u,d,p,m;ol&&(c=p,d=l),u$T(new fS(Sy(GM(s).a.Jc(),new f))))for(i=new fS(Sy(UM(c).a.Jc(),new f));sL(i);)r=F(FE(i),17),F(vP(this.d,o),22).Gc(r.c.i)&&fy(this.c,r);else for(i=new fS(Sy(GM(s).a.Jc(),new f));sL(i);)r=F(FE(i),17),F(vP(this.d,o),22).Gc(r.d.i)&&fy(this.c,r)}},R(uG,`SCConnectivity`,1358),J(1374,1,lG,Jre),Q.pg=function(e){return F(e,36),Sjt},Q.If=function(e,t){Nlt(this,F(e,36),t)};var Sjt;R(dG,`BreadthFirstModelOrderLayerer`,1374),J(1375,1,dH,_i),Q.Le=function(e,t){return n3e(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(dG,`BreadthFirstModelOrderLayerer/lambda$0$Type`,1375),J(1365,1,lG,Que),Q.pg=function(e){return F(e,36),Cjt},Q.If=function(e,t){idt(this,F(e,36),t)};var Cjt;R(dG,`CoffmanGrahamLayerer`,1365),J(1366,1,dH,Uae),Q.Le=function(e,t){return F9e(this.a,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(dG,`CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type`,1366),J(1367,1,dH,Wae),Q.Le=function(e,t){return _we(this.a,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(dG,`CoffmanGrahamLayerer/lambda$1$Type`,1367),J(1376,1,lG,hc),Q.pg=function(e){return F(e,36),wjt},Q.If=function(e,t){Fut(this,F(e,36),t)},Q.c=0,Q.e=0;var wjt;R(dG,`DepthFirstModelOrderLayerer`,1376),J(1377,1,dH,vte),Q.Le=function(e,t){return r3e(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(dG,`DepthFirstModelOrderLayerer/lambda$0$Type`,1377),J(1368,1,lG,yte),Q.pg=function(e){return F(e,36),Mx(Mx(Mx(new vC,(rI(),CX),($z(),sZ)),wX,hZ),TX,mZ)},Q.If=function(e,t){Ylt(F(e,36),t)},R(dG,`InteractiveLayerer`,1368),J(564,1,{564:1},jf),Q.a=0,Q.c=0,R(dG,`InteractiveLayerer/LayerSpan`,564),J(1364,1,lG,Zre),Q.pg=function(e){return F(e,36),Tjt},Q.If=function(e,t){T9e(this,F(e,36),t)};var Tjt;R(dG,`LongestPathLayerer`,1364),J(1373,1,lG,Qre),Q.pg=function(e){return F(e,36),Ejt},Q.If=function(e,t){tet(this,F(e,36),t)};var Ejt;R(dG,`LongestPathSourceLayerer`,1373),J(1371,1,lG,Xre),Q.pg=function(e){return F(e,36),Mx(Mx(Mx(new vC,(rI(),CX),($z(),rZ)),wX,hZ),TX,mZ)},Q.If=function(e,t){dut(this,F(e,36),t)},Q.a=0,Q.b=0,Q.d=0;var Djt,Ojt;R(dG,`MinWidthLayerer`,1371),J(1372,1,dH,Gae),Q.Le=function(e,t){return uHe(this,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(dG,`MinWidthLayerer/MinOutgoingEdgesComparator`,1372),J(1363,1,lG,Yre),Q.pg=function(e){return F(e,36),kjt},Q.If=function(e,t){Ist(this,F(e,36),t)};var kjt;R(dG,`NetworkSimplexLayerer`,1363),J(1369,1,lG,Hve),Q.pg=function(e){return F(e,36),Mx(Mx(Mx(new vC,(rI(),CX),($z(),rZ)),wX,hZ),TX,mZ)},Q.If=function(e,t){Bct(this,F(e,36),t)},Q.d=0,Q.f=0,Q.g=0,Q.i=0,Q.s=0,Q.t=0,Q.u=0,R(dG,`StretchWidthLayerer`,1369),J(1370,1,dH,xte),Q.Le=function(e,t){return FFe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(dG,`StretchWidthLayerer/1`,1370),J(406,1,vht),Q.eg=function(e,t,n,r,i,a){},Q.tg=function(e,t,n){return drt(this,e,t,n)},Q.dg=function(){this.g=H(Q9,yht,30,this.d,15,1),this.f=H(Q9,yht,30,this.d,15,1)},Q.fg=function(e,t){this.e[e]=H(q9,vV,30,t[e].length,15,1)},Q.gg=function(e,t,n){var r=n[e][t];r.p=t,this.e[e][t]=t},Q.hg=function(e,t,n,r){F(zx(r[e][t].j,n),12).p=this.d++},Q.b=0,Q.c=0,Q.d=0,R(fG,`AbstractBarycenterPortDistributor`,406),J(1666,1,dH,Kae),Q.Le=function(e,t){return rYe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(fG,`AbstractBarycenterPortDistributor/lambda$0$Type`,1666),J(817,1,RU,IMe),Q.eg=function(e,t,n,r,i,a){},Q.gg=function(e,t,n){},Q.hg=function(e,t,n,r){},Q.cg=function(){return!1},Q.dg=function(){this.c=this.e.a,this.g=this.f.g},Q.fg=function(e,t){t[e][0].c.p=e},Q.ig=function(){return!1},Q.ug=function(e,t,n,r){n?QQe(this,e):(_$e(this,e,r),yct(this,e,t)),e.c.length>1&&(Xp(db(q(yC((gT(0,e.c.length),F(e.c[0],9))),(Yz(),T1))))?k5e(e,this.d,F(this,660)):(ew(),Yv(e,this.d)),mHe(this.e,e))},Q.jg=function(e,t,n,r){var i,a,o,s,c,l,u;for(t!=ewe(n,e.length)&&(a=e[t-(n?1:-1)],GFe(this.f,a,n?(uk(),C2):(uk(),S2))),i=e[t][0],u=!r||i.k==(_L(),GX),l=BE(e[t]),this.ug(l,u,!1,n),o=0,c=new D(l);c.a`),e0?Uw(this.a,e[t-1],e[t]):!n&&t1&&(Xp(db(q(yC((gT(0,e.c.length),F(e.c[0],9))),(Yz(),T1))))?k5e(e,this.d,this):(ew(),Yv(e,this.d)),Xp(db(q(yC((gT(0,e.c.length),F(e.c[0],9))),T1)))||mHe(this.e,e))},R(fG,`ModelOrderBarycenterHeuristic`,660),J(1846,1,dH,Yu),Q.Le=function(e,t){return Vat(this.a,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(fG,`ModelOrderBarycenterHeuristic/lambda$0$Type`,1846),J(1384,1,lG,eie),Q.pg=function(e){var t;return F(e,36),t=Tv(Ljt),Mx(t,(rI(),TX),($z(),bZ)),t},Q.If=function(e,t){FOe((F(e,36),t))};var Ljt;R(fG,`NoCrossingMinimizer`,1384),J(797,406,vht,ole),Q.sg=function(e,t,n){var r,i,a,o,s,c,l,u,d=this.g,f,p;switch(n.g){case 1:for(i=0,a=0,u=new D(e.j);u.a1&&(i.j==(Lz(),p5)?this.b[e]=!0:i.j==N5&&e>0&&(this.b[e-1]=!0))},Q.f=0,R(LU,`AllCrossingsCounter`,1841),J(584,1,{},Ak),Q.b=0,Q.d=0,R(LU,`BinaryIndexedTree`,584),J(520,1,{},Bb);var Rjt,z2;R(LU,`CrossingsCounter`,520),J(1915,1,dH,Qae),Q.Le=function(e,t){return ZCe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(LU,`CrossingsCounter/lambda$0$Type`,1915),J(1916,1,dH,$ae),Q.Le=function(e,t){return QCe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(LU,`CrossingsCounter/lambda$1$Type`,1916),J(1917,1,dH,eoe),Q.Le=function(e,t){return $Ce(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(LU,`CrossingsCounter/lambda$2$Type`,1917),J(1918,1,dH,toe),Q.Le=function(e,t){return XCe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(LU,`CrossingsCounter/lambda$3$Type`,1918),J(1919,1,jB,noe),Q.Ad=function(e){JLe(this.a,F(e,12))},R(LU,`CrossingsCounter/lambda$4$Type`,1919),J(1920,1,JB,roe),Q.Mb=function(e){return vfe(this.a,F(e,12))},R(LU,`CrossingsCounter/lambda$5$Type`,1920),J(1921,1,jB,ioe),Q.Ad=function(e){Dpe(this,e)},R(LU,`CrossingsCounter/lambda$6$Type`,1921),J(1922,1,jB,ufe),Q.Ad=function(e){var t;vx(),XT(this.b,(t=this.a,F(e,12),t))},R(LU,`CrossingsCounter/lambda$7$Type`,1922),J(824,1,hH,xi),Q.Lb=function(e){return vx(),ib(F(e,12),(X(),F$))},Q.Fb=function(e){return this===e},Q.Mb=function(e){return vx(),ib(F(e,12),(X(),F$))},R(LU,`CrossingsCounter/lambda$8$Type`,824),J(1914,1,{},aoe),R(LU,`HyperedgeCrossingsCounter`,1914),J(467,1,{35:1,467:1},Uve),Q.Dd=function(e){return zJe(this,F(e,467))},Q.b=0,Q.c=0,Q.e=0,Q.f=0;var zjt=R(LU,`HyperedgeCrossingsCounter/Hyperedge`,467);J(370,1,{35:1,370:1},UC),Q.Dd=function(e){return m5e(this,F(e,370))},Q.b=0,Q.c=0;var Bjt=R(LU,`HyperedgeCrossingsCounter/HyperedgeCorner`,370);J(519,24,{3:1,35:1,24:1,519:1},dfe);var B2,V2,Vjt=rk(LU,`HyperedgeCrossingsCounter/HyperedgeCorner/Type`,519,GJ,rke,nxe),Hjt;J(1386,1,lG,yc),Q.pg=function(e){return F(q(F(e,36),(X(),g$)),22).Gc((YL(),LQ))?Ujt:null},Q.If=function(e,t){e$e(this,F(e,36),t)};var Ujt;R(hG,`InteractiveNodePlacer`,1386),J(1387,1,lG,bc),Q.pg=function(e){return F(q(F(e,36),(X(),g$)),22).Gc((YL(),LQ))?Wjt:null},Q.If=function(e,t){HXe(this,F(e,36),t)};var Wjt,H2,U2;R(hG,`LinearSegmentsNodePlacer`,1387),J(263,1,{35:1,263:1},Mf),Q.Dd=function(e){return qce(this,F(e,263))},Q.Fb=function(e){var t;return N(e,263)?(t=F(e,263),this.b==t.b):!1},Q.Hb=function(){return this.b},Q.Ib=function(){return`ls`+sI(this.e)},Q.a=0,Q.b=0,Q.c=-1,Q.d=-1,Q.g=0;var Gjt=R(hG,`LinearSegmentsNodePlacer/LinearSegment`,263);J(1389,1,lG,jwe),Q.pg=function(e){return F(q(F(e,36),(X(),g$)),22).Gc((YL(),LQ))?Kjt:null},Q.If=function(e,t){Iut(this,F(e,36),t)},Q.b=0,Q.g=0;var Kjt;R(hG,`NetworkSimplexPlacer`,1389),J(1408,1,dH,fi),Q.Le=function(e,t){return Zv(F(e,15).a,F(t,15).a)},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(hG,`NetworkSimplexPlacer/0methodref$compare$Type`,1408),J(1410,1,dH,pi),Q.Le=function(e,t){return Zv(F(e,15).a,F(t,15).a)},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(hG,`NetworkSimplexPlacer/1methodref$compare$Type`,1410),J(645,1,{645:1},ffe);var qjt=R(hG,`NetworkSimplexPlacer/EdgeRep`,645);J(405,1,{405:1},zDe),Q.b=!1;var Jjt=R(hG,`NetworkSimplexPlacer/NodeRep`,405);J(501,13,{3:1,4:1,20:1,31:1,56:1,13:1,18:1,16:1,59:1,501:1},Pf),R(hG,`NetworkSimplexPlacer/Path`,501),J(1390,1,{},mi),Q.Kb=function(e){return F(e,17).d.i.k},R(hG,`NetworkSimplexPlacer/Path/lambda$0$Type`,1390),J(1391,1,JB,hi),Q.Mb=function(e){return F(e,249)==(_L(),qX)},R(hG,`NetworkSimplexPlacer/Path/lambda$1$Type`,1391),J(1392,1,{},vi),Q.Kb=function(e){return F(e,17).d.i},R(hG,`NetworkSimplexPlacer/Path/lambda$2$Type`,1392),J(1393,1,JB,ooe),Q.Mb=function(e){return lve(Qqe(F(e,9)))},R(hG,`NetworkSimplexPlacer/Path/lambda$3$Type`,1393),J(1394,1,JB,Ste),Q.Mb=function(e){return bCe(F(e,12))},R(hG,`NetworkSimplexPlacer/lambda$0$Type`,1394),J(1395,1,jB,pfe),Q.Ad=function(e){fhe(this.a,this.b,F(e,12))},R(hG,`NetworkSimplexPlacer/lambda$1$Type`,1395),J(1404,1,jB,soe),Q.Ad=function(e){j3e(this.a,F(e,17))},R(hG,`NetworkSimplexPlacer/lambda$10$Type`,1404),J(1405,1,{},Cte),Q.Kb=function(e){return rT(),new Hx(null,new hT(F(e,25).a,16))},R(hG,`NetworkSimplexPlacer/lambda$11$Type`,1405),J(1406,1,jB,coe),Q.Ad=function(e){rtt(this.a,F(e,9))},R(hG,`NetworkSimplexPlacer/lambda$12$Type`,1406),J(1407,1,{},yi),Q.Kb=function(e){return rT(),K(F(e,124).e)},R(hG,`NetworkSimplexPlacer/lambda$13$Type`,1407),J(1409,1,{},wte),Q.Kb=function(e){return rT(),K(F(e,124).e)},R(hG,`NetworkSimplexPlacer/lambda$15$Type`,1409),J(1411,1,JB,bi),Q.Mb=function(e){return rT(),F(e,405).c.k==(_L(),YX)},R(hG,`NetworkSimplexPlacer/lambda$17$Type`,1411),J(1412,1,JB,Si),Q.Mb=function(e){return rT(),F(e,405).c.j.c.length>1},R(hG,`NetworkSimplexPlacer/lambda$18$Type`,1412),J(1413,1,jB,BDe),Q.Ad=function(e){gqe(this.c,this.b,this.d,this.a,F(e,405))},Q.c=0,Q.d=0,R(hG,`NetworkSimplexPlacer/lambda$19$Type`,1413),J(1396,1,{},Ete),Q.Kb=function(e){return rT(),new Hx(null,new hT(F(e,25).a,16))},R(hG,`NetworkSimplexPlacer/lambda$2$Type`,1396),J(1414,1,jB,loe),Q.Ad=function(e){dhe(this.a,F(e,12))},Q.a=0,R(hG,`NetworkSimplexPlacer/lambda$20$Type`,1414),J(1415,1,{},Ci),Q.Kb=function(e){return rT(),new Hx(null,new hT(F(e,25).a,16))},R(hG,`NetworkSimplexPlacer/lambda$21$Type`,1415),J(1416,1,jB,uoe),Q.Ad=function(e){Fhe(this.a,F(e,9))},R(hG,`NetworkSimplexPlacer/lambda$22$Type`,1416),J(1417,1,JB,Dte),Q.Mb=function(e){return lve(e)},R(hG,`NetworkSimplexPlacer/lambda$23$Type`,1417),J(1418,1,{},wi),Q.Kb=function(e){return rT(),new Hx(null,new hT(F(e,25).a,16))},R(hG,`NetworkSimplexPlacer/lambda$24$Type`,1418),J(1419,1,JB,doe),Q.Mb=function(e){return Jpe(this.a,F(e,9))},R(hG,`NetworkSimplexPlacer/lambda$25$Type`,1419),J(1420,1,jB,mfe),Q.Ad=function(e){K2e(this.a,this.b,F(e,9))},R(hG,`NetworkSimplexPlacer/lambda$26$Type`,1420),J(1421,1,JB,Ote),Q.Mb=function(e){return rT(),!AE(F(e,17))},R(hG,`NetworkSimplexPlacer/lambda$27$Type`,1421),J(1422,1,JB,Ti),Q.Mb=function(e){return rT(),!AE(F(e,17))},R(hG,`NetworkSimplexPlacer/lambda$28$Type`,1422),J(1423,1,{},foe),Q.Te=function(e,t){return uhe(this.a,F(e,25),F(t,25))},R(hG,`NetworkSimplexPlacer/lambda$29$Type`,1423),J(1397,1,{},Ei),Q.Kb=function(e){return rT(),new Hx(null,new ZS(new fS(Sy(GM(F(e,9)).a.Jc(),new f))))},R(hG,`NetworkSimplexPlacer/lambda$3$Type`,1397),J(1398,1,JB,kte),Q.Mb=function(e){return rT(),xMe(F(e,17))},R(hG,`NetworkSimplexPlacer/lambda$4$Type`,1398),J(1399,1,jB,poe),Q.Ad=function(e){iat(this.a,F(e,17))},R(hG,`NetworkSimplexPlacer/lambda$5$Type`,1399),J(1400,1,{},Di),Q.Kb=function(e){return rT(),new Hx(null,new hT(F(e,25).a,16))},R(hG,`NetworkSimplexPlacer/lambda$6$Type`,1400),J(1401,1,JB,Ate),Q.Mb=function(e){return rT(),F(e,9).k==(_L(),YX)},R(hG,`NetworkSimplexPlacer/lambda$7$Type`,1401),J(1402,1,{},Oi),Q.Kb=function(e){return rT(),new Hx(null,new ZS(new fS(Sy(WM(F(e,9)).a.Jc(),new f))))},R(hG,`NetworkSimplexPlacer/lambda$8$Type`,1402),J(1403,1,JB,jte),Q.Mb=function(e){return rT(),dCe(F(e,17))},R(hG,`NetworkSimplexPlacer/lambda$9$Type`,1403),J(1385,1,lG,nie),Q.pg=function(e){return F(q(F(e,36),(X(),g$)),22).Gc((YL(),LQ))?Yjt:null},Q.If=function(e,t){eot(F(e,36),t)};var Yjt;R(hG,`SimpleNodePlacer`,1385),J(185,1,{185:1},xR),Q.Ib=function(){var e=``;return this.c==(Aw(),G2)?e+=xH:this.c==W2&&(e+=bH),this.o==(Ww(),K2)?e+=DH:this.o==q2?e+=`UP`:e+=`BALANCED`,e},R(_G,`BKAlignedLayout`,185),J(510,24,{3:1,35:1,24:1,510:1},hfe);var W2,G2,Xjt=rk(_G,`BKAlignedLayout/HDirection`,510,GJ,ike,rxe),Zjt;J(509,24,{3:1,35:1,24:1,509:1},gfe);var K2,q2,Qjt=rk(_G,`BKAlignedLayout/VDirection`,509,GJ,ake,ixe),$jt;J(1667,1,{},_fe),R(_G,`BKAligner`,1667),J(1670,1,{},rQe),R(_G,`BKCompactor`,1670),J(653,1,{653:1},ki),Q.a=0,R(_G,`BKCompactor/ClassEdge`,653),J(456,1,{456:1},Nf),Q.a=null,Q.b=0,R(_G,`BKCompactor/ClassNode`,456),J(1388,1,lG,upe),Q.pg=function(e){return F(q(F(e,36),(X(),g$)),22).Gc((YL(),LQ))?eMt:null},Q.If=function(e,t){ddt(this,F(e,36),t)},Q.d=!1;var eMt;R(_G,`BKNodePlacer`,1388),J(1668,1,{},Mte),Q.d=0,R(_G,`NeighborhoodInformation`,1668),J(1669,1,dH,moe),Q.Le=function(e,t){return KRe(this,F(e,49),F(t,49))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(_G,`NeighborhoodInformation/NeighborComparator`,1669),J(810,1,{}),R(_G,`ThresholdStrategy`,810),J(1798,810,{},Uf),Q.vg=function(e,t,n){return this.a.o==(Ww(),q2)?LV:RV},Q.wg=function(){},R(_G,`ThresholdStrategy/NullThresholdStrategy`,1798),J(577,1,{577:1},wfe),Q.c=!1,Q.d=!1,R(_G,`ThresholdStrategy/Postprocessable`,577),J(1799,810,{},Lse),Q.vg=function(e,t,n){var r,i=t==n,a;return r=this.a.a[n.p]==t,i||r?(a=e,this.a.c,Aw(),i&&(a=rot(this,t,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=rot(this,n,!1)),a):e},Q.wg=function(){for(var e,t,n,r,i;this.d.b!=0;)i=F(Eke(this.d),577),r=cit(this,i),r.a&&(e=r.a,n=Xp(this.a.f[this.a.g[i.b.p].p]),(n||AE(e)||e.c.i.c!=e.d.i.c)&&(t=h5e(this,i),t||sme(this.e,i)));for(;this.e.a.c.length!=0;)h5e(this,F(DWe(this.e),577))},R(_G,`ThresholdStrategy/SimpleThresholdStrategy`,1799),J(636,1,{636:1,188:1,196:1},Ai),Q.bg=function(){return gHe(this)},Q.og=function(){return gHe(this)};var J2;R(vG,`EdgeRouterFactory`,636),J(1446,1,lG,rie),Q.pg=function(e){return vet(F(e,36))},Q.If=function(e,t){fot(F(e,36),t)};var tMt,nMt,rMt,iMt,aMt,oMt,sMt,cMt;R(vG,`OrthogonalEdgeRouter`,1446),J(1439,1,lG,dpe),Q.pg=function(e){return v$e(F(e,36))},Q.If=function(e,t){Llt(this,F(e,36),t)};var lMt,uMt,dMt,fMt,Y2,pMt;R(vG,`PolylineEdgeRouter`,1439),J(1440,1,hH,Nte),Q.Lb=function(e){return EHe(F(e,9))},Q.Fb=function(e){return this===e},Q.Mb=function(e){return EHe(F(e,9))},R(vG,`PolylineEdgeRouter/1`,1440),J(1854,1,JB,ji),Q.Mb=function(e){return F(e,133).c==(QE(),X2)},R(yG,`HyperEdgeCycleDetector/lambda$0$Type`,1854),J(1855,1,{},Mi),Q.Xe=function(e){return F(e,133).d},R(yG,`HyperEdgeCycleDetector/lambda$1$Type`,1855),J(1856,1,JB,Pte),Q.Mb=function(e){return F(e,133).c==(QE(),X2)},R(yG,`HyperEdgeCycleDetector/lambda$2$Type`,1856),J(1857,1,{},Ni),Q.Xe=function(e){return F(e,133).d},R(yG,`HyperEdgeCycleDetector/lambda$3$Type`,1857),J(1858,1,{},Fte),Q.Xe=function(e){return F(e,133).d},R(yG,`HyperEdgeCycleDetector/lambda$4$Type`,1858),J(1859,1,{},Pi),Q.Xe=function(e){return F(e,133).d},R(yG,`HyperEdgeCycleDetector/lambda$5$Type`,1859),J(116,1,{35:1,116:1},LA),Q.Dd=function(e){return Jce(this,F(e,116))},Q.Fb=function(e){var t;return N(e,116)?(t=F(e,116),this.g==t.g):!1},Q.Hb=function(){return this.g},Q.Ib=function(){for(var e=new Ey(`{`),t,n,r=new D(this.n);r.a`+this.b+` (`+$ge(this.c)+`)`},Q.d=0,R(yG,`HyperEdgeSegmentDependency`,133),J(516,24,{3:1,35:1,24:1,516:1},bfe);var X2,Z2,mMt=rk(yG,`HyperEdgeSegmentDependency/DependencyType`,516,GJ,oke,axe),hMt;J(1860,1,{},hoe),R(yG,`HyperEdgeSegmentSplitter`,1860),J(1861,1,{},ile),Q.a=0,Q.b=0,R(yG,`HyperEdgeSegmentSplitter/AreaRating`,1861),J(340,1,{340:1},ax),Q.a=0,Q.b=0,Q.c=0,R(yG,`HyperEdgeSegmentSplitter/FreeArea`,340),J(1862,1,dH,Ite),Q.Le=function(e,t){return Pye(F(e,116),F(t,116))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(yG,`HyperEdgeSegmentSplitter/lambda$0$Type`,1862),J(1863,1,jB,VDe),Q.Ad=function(e){VNe(this.a,this.d,this.c,this.b,F(e,116))},Q.b=0,R(yG,`HyperEdgeSegmentSplitter/lambda$1$Type`,1863),J(1864,1,{},Fi),Q.Kb=function(e){return new Hx(null,new hT(F(e,116).e,16))},R(yG,`HyperEdgeSegmentSplitter/lambda$2$Type`,1864),J(1865,1,{},Lte),Q.Kb=function(e){return new Hx(null,new hT(F(e,116).j,16))},R(yG,`HyperEdgeSegmentSplitter/lambda$3$Type`,1865),J(1866,1,{},Ii),Q.We=function(e){return k(P(e))},R(yG,`HyperEdgeSegmentSplitter/lambda$4$Type`,1866),J(654,1,{},cEe),Q.a=0,Q.b=0,Q.c=0,R(yG,`OrthogonalRoutingGenerator`,654),J(1671,1,{},Rte),Q.Kb=function(e){return new Hx(null,new hT(F(e,116).e,16))},R(yG,`OrthogonalRoutingGenerator/lambda$0$Type`,1671),J(1672,1,{},Li),Q.Kb=function(e){return new Hx(null,new hT(F(e,116).j,16))},R(yG,`OrthogonalRoutingGenerator/lambda$1$Type`,1672),J(661,1,{}),R(bG,`BaseRoutingDirectionStrategy`,661),J(1852,661,{},Rse),Q.xg=function(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g;if(!e.r||e.q)for(d=t+e.o*n,u=new D(e.n);u.aRH&&(o=d,a=e,i=new j(f,o),Sx(s.a,i),jR(this,s,a,i,!1),p=e.r,p&&(m=k(P(vP(p.e,0))),i=new j(m,o),Sx(s.a,i),jR(this,s,a,i,!1),o=t+p.o*n,a=p,i=new j(m,o),Sx(s.a,i),jR(this,s,a,i,!1)),i=new j(g,o),Sx(s.a,i),jR(this,s,a,i,!1)))},Q.yg=function(e){return e.i.n.a+e.n.a+e.a.a},Q.zg=function(){return Lz(),j5},Q.Ag=function(){return Lz(),m5},R(bG,`NorthToSouthRoutingStrategy`,1852),J(1853,661,{},zse),Q.xg=function(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g;if(!e.r||e.q)for(d=t-e.o*n,u=new D(e.n);u.aRH&&(o=d,a=e,i=new j(f,o),Sx(s.a,i),jR(this,s,a,i,!1),p=e.r,p&&(m=k(P(vP(p.e,0))),i=new j(m,o),Sx(s.a,i),jR(this,s,a,i,!1),o=t-p.o*n,a=p,i=new j(m,o),Sx(s.a,i),jR(this,s,a,i,!1)),i=new j(g,o),Sx(s.a,i),jR(this,s,a,i,!1)))},Q.yg=function(e){return e.i.n.a+e.n.a+e.a.a},Q.zg=function(){return Lz(),m5},Q.Ag=function(){return Lz(),j5},R(bG,`SouthToNorthRoutingStrategy`,1853),J(1851,661,{},Bse),Q.xg=function(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g;if(!e.r||e.q)for(d=t+e.o*n,u=new D(e.n);u.aRH&&(o=d,a=e,i=new j(o,f),Sx(s.a,i),jR(this,s,a,i,!0),p=e.r,p&&(m=k(P(vP(p.e,0))),i=new j(o,m),Sx(s.a,i),jR(this,s,a,i,!0),o=t+p.o*n,a=p,i=new j(o,m),Sx(s.a,i),jR(this,s,a,i,!0)),i=new j(o,g),Sx(s.a,i),jR(this,s,a,i,!0)))},Q.yg=function(e){return e.i.n.b+e.n.b+e.a.b},Q.zg=function(){return Lz(),p5},Q.Ag=function(){return Lz(),N5},R(bG,`WestToEastRoutingStrategy`,1851),J(813,1,{},lat),Q.Ib=function(){return sI(this.a)},Q.b=0,Q.c=!1,Q.d=!1,Q.f=0,R(SG,`NubSpline`,813),J(410,1,{410:1},$9e,yke),R(SG,`NubSpline/PolarCP`,410),J(1441,1,lG,TZe),Q.pg=function(e){return I1e(F(e,36))},Q.If=function(e,t){mut(this,F(e,36),t)};var gMt,_Mt,vMt,yMt,bMt;R(SG,`SplineEdgeRouter`,1441),J(273,1,{273:1},YE),Q.Ib=function(){return this.a+` ->(`+this.c+`) `+this.b},Q.c=0,R(SG,`SplineEdgeRouter/Dependency`,273),J(454,24,{3:1,35:1,24:1,454:1},xfe);var Q2,$2,xMt=rk(SG,`SplineEdgeRouter/SideToProcess`,454,GJ,ske,oxe),SMt;J(1442,1,JB,zte),Q.Mb=function(e){return UL(),!F(e,132).o},R(SG,`SplineEdgeRouter/lambda$0$Type`,1442),J(1443,1,{},Ri),Q.Xe=function(e){return UL(),F(e,132).v+1},R(SG,`SplineEdgeRouter/lambda$1$Type`,1443),J(1444,1,jB,Sfe),Q.Ad=function(e){gCe(this.a,this.b,F(e,49))},R(SG,`SplineEdgeRouter/lambda$2$Type`,1444),J(1445,1,jB,Cfe),Q.Ad=function(e){_Ce(this.a,this.b,F(e,49))},R(SG,`SplineEdgeRouter/lambda$3$Type`,1445),J(132,1,{35:1,132:1},V4e,Rot),Q.Dd=function(e){return Yce(this,F(e,132))},Q.b=0,Q.e=!1,Q.f=0,Q.g=0,Q.j=!1,Q.k=!1,Q.n=0,Q.o=!1,Q.p=!1,Q.q=!1,Q.s=0,Q.u=0,Q.v=0,Q.F=0,R(SG,`SplineSegment`,132),J(457,1,{457:1},Bte),Q.a=0,Q.b=!1,Q.c=!1,Q.d=!1,Q.e=!1,Q.f=0,R(SG,`SplineSegment/EdgeInformation`,457),J(1168,1,{},Vte),R(TG,Gft,1168),J(1169,1,dH,zi),Q.Le=function(e,t){return o6e(F(e,120),F(t,120))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(TG,Kft,1169),J(1167,1,{},Lle),R(TG,`MrTree`,1167),J(398,24,{3:1,35:1,24:1,398:1,188:1,196:1},n_),Q.bg=function(){return c6e(this)},Q.og=function(){return c6e(this)};var e4,t4,n4,r4,CMt=rk(TG,`TreeLayoutPhases`,398,GJ,bNe,sxe),wMt;J(1083,214,jH,Gve),Q.kf=function(e,t){var n,r,i,a,o,s,c,l;for(Xp(db(Y(e,(zR(),hNt))))||jw((n=new uu((Kh(),new Wp(e))),n)),o=t.dh(EG),o.Tg(`build tGraph`,1),s=(c=new XE,TA(c,e),G(c,(Iz(),S4),e),l=new Ad,Srt(e,c,l),Xrt(e,c,l),c),o.Ug(),o=t.dh(EG),o.Tg(`Split graph`,1),a=krt(this.a,s),o.Ug(),i=new D(a);i.a`+AT(this.c):`e_`+Rk(this)},R(OG,`TEdge`,65),J(120,150,{3:1,120:1,105:1,150:1},XE),Q.Ib=function(){var e,t,n,r,i=null;for(r=oP(this.b,0);r.b!=r.d.c;)n=F(YT(r),40),i+=(n.c==null||n.c.length==0?`n_`+n.g:`n_`+n.c)+` -`;for(t=oP(this.a,0);t.b!=t.d.c;)e=F(YT(t),65),i+=(e.b&&e.c?AT(e.b)+`->`+AT(e.c):`e_`+Rk(e))+` -`;return i};var TMt=R(OG,`TGraph`,120);J(634,494,{3:1,494:1,634:1,105:1,150:1}),R(OG,`TShape`,634),J(40,634,{3:1,494:1,40:1,634:1,105:1,150:1},pj),Q.Ib=function(){return AT(this)};var i4=R(OG,`TNode`,40);J(236,1,FB,Zu),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return new Qu(oP(this.a.d,0))},R(OG,`TNode/2`,236),J(334,1,bB,Qu),Q.Nb=function(e){jS(this,e)},Q.Pb=function(){return F(YT(this.a),65).c},Q.Ob=function(){return Qm(this.a)},Q.Qb=function(){CO(this.a)},R(OG,`TNode/2/1`,334),J(1896,1,wU,Ute),Q.If=function(e,t){rdt(this,F(e,120),t)},R(kG,`CompactionProcessor`,1896),J(1897,1,dH,yoe),Q.Le=function(e,t){return oHe(this.a,F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(kG,`CompactionProcessor/lambda$0$Type`,1897),J(1898,1,JB,Efe),Q.Mb=function(e){return KOe(this.b,this.a,F(e,49))},Q.a=0,Q.b=0,R(kG,`CompactionProcessor/lambda$1$Type`,1898),J(1907,1,dH,Gi),Q.Le=function(e,t){return YTe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(kG,`CompactionProcessor/lambda$10$Type`,1907),J(1908,1,dH,Wte),Q.Le=function(e,t){return Fge(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(kG,`CompactionProcessor/lambda$11$Type`,1908),J(1909,1,dH,Ki),Q.Le=function(e,t){return XTe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(kG,`CompactionProcessor/lambda$12$Type`,1909),J(1899,1,JB,boe),Q.Mb=function(e){return Lhe(this.a,F(e,49))},Q.a=0,R(kG,`CompactionProcessor/lambda$2$Type`,1899),J(_V,1,JB,xoe),Q.Mb=function(e){return Rhe(this.a,F(e,49))},Q.a=0,R(kG,`CompactionProcessor/lambda$3$Type`,_V),J(1901,1,JB,Gte),Q.Mb=function(e){return F(e,40).c.indexOf(DG)==-1},R(kG,`CompactionProcessor/lambda$4$Type`,1901),J(1902,1,{},Soe),Q.Kb=function(e){return yMe(this.a,F(e,40))},Q.a=0,R(kG,`CompactionProcessor/lambda$5$Type`,1902),J(1903,1,{},Coe),Q.Kb=function(e){return qLe(this.a,F(e,40))},Q.a=0,R(kG,`CompactionProcessor/lambda$6$Type`,1903),J(1904,1,dH,woe),Q.Le=function(e,t){return mFe(this.a,F(e,240),F(t,240))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(kG,`CompactionProcessor/lambda$7$Type`,1904),J(1905,1,dH,Toe),Q.Le=function(e,t){return hFe(this.a,F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(kG,`CompactionProcessor/lambda$8$Type`,1905),J(1906,1,dH,Kte),Q.Le=function(e,t){return Ige(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(kG,`CompactionProcessor/lambda$9$Type`,1906),J(1894,1,wU,qi),Q.If=function(e,t){Ott(F(e,120),t)},R(kG,`DirectionProcessor`,1894),J(1886,1,wU,Wve),Q.If=function(e,t){Krt(this,F(e,120),t)},R(kG,`FanProcessor`,1886),J(1253,1,wU,qte),Q.If=function(e,t){ott(F(e,120),t)},R(kG,`GraphBoundsProcessor`,1253),J(1254,1,{},Jte),Q.We=function(e){return F(e,40).e.a},R(kG,`GraphBoundsProcessor/lambda$0$Type`,1254),J(1255,1,{},Yte),Q.We=function(e){return F(e,40).e.b},R(kG,`GraphBoundsProcessor/lambda$1$Type`,1255),J(1256,1,{},Xte),Q.We=function(e){return dde(F(e,40))},R(kG,`GraphBoundsProcessor/lambda$2$Type`,1256),J(1257,1,{},Ji),Q.We=function(e){return fde(F(e,40))},R(kG,`GraphBoundsProcessor/lambda$3$Type`,1257),J(264,24,{3:1,35:1,24:1,264:1,196:1},r_),Q.bg=function(){switch(this.g){case 0:return new dp;case 1:return new Wve;case 2:return new cp;case 3:return new Zi;case 4:return new Xi;case 8:return new Yi;case 5:return new qi;case 6:return new ene;case 7:return new Ute;case 9:return new qte;case 10:return new tne;default:throw O(new qp(MU+(this.f==null?``+this.g:this.f)))}};var EMt,DMt,OMt,kMt,AMt,jMt,MMt,NMt,PMt,FMt,a4,IMt=rk(kG,NU,264,GJ,QVe,cxe),LMt;J(1893,1,wU,Yi),Q.If=function(e,t){Alt(F(e,120),t)},R(kG,`LevelCoordinatesProcessor`,1893),J(1891,1,wU,Xi),Q.If=function(e,t){X7e(this,F(e,120),t)},Q.a=0,R(kG,`LevelHeightProcessor`,1891),J(1892,1,FB,Zte),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return ew(),bh(),EY},R(kG,`LevelHeightProcessor/1`,1892),J(1887,1,wU,cp),Q.If=function(e,t){Get(this,F(e,120),t)},R(kG,`LevelProcessor`,1887),J(1888,1,JB,Qte),Q.Mb=function(e){return Xp(db(q(F(e,40),(Iz(),E4))))},R(kG,`LevelProcessor/lambda$0$Type`,1888),J(1889,1,wU,Zi),Q.If=function(e,t){I4e(this,F(e,120),t)},Q.a=0,R(kG,`NeighborsProcessor`,1889),J(1890,1,FB,$te),Q.Ic=function(e){wE(this,e)},Q.Jc=function(){return ew(),bh(),EY},R(kG,`NeighborsProcessor/1`,1890),J(1895,1,wU,ene),Q.If=function(e,t){Wrt(this,F(e,120),t)},Q.a=0,R(kG,`NodePositionProcessor`,1895),J(1885,1,wU,dp),Q.If=function(e,t){Fot(this,F(e,120),t)},R(kG,`RootProcessor`,1885),J(1910,1,wU,tne),Q.If=function(e,t){uXe(F(e,120),t)},R(kG,`Untreeifyer`,1910),J(385,24,{3:1,35:1,24:1,385:1},i_);var o4,s4,RMt,zMt=rk(jG,`EdgeRoutingMode`,385,GJ,$Ae,lxe),BMt,c4,l4,u4,VMt,HMt,d4,f4,UMt,p4,WMt,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,GMt,KMt,T4,E4,D4,O4;J(847,1,BH,iie),Q.tf=function(e){QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Oht),``),Fht),`Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level`),(ky(),!1)),(CI(),s6)),iY),JM((iP(),i6))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,kht),``),`Edge End Texture Length`),`Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing.`),7),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Aht),``),`Tree Level`),`The index for the tree level the node is in`),K(0)),d6),lY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,jht),``),Fht),`When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint`),K(-1)),d6),lY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Mht),``),`Weighting of Nodes`),`Which weighting to use when computing a node order.`),nNt),l6),ONt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Nht),``),`Edge Routing Mode`),`Chooses an Edge Routing algorithm.`),XMt),l6),zMt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Pht),``),`Search Order`),`Which search order to use when computing a spanning tree.`),$Mt),l6),jNt),JM(i6)))),cut((new aie,e))};var qMt,JMt,YMt,XMt,ZMt,QMt,$Mt,eNt,tNt,nNt;R(jG,`MrTreeMetaDataProvider`,847),J(991,1,BH,aie),Q.tf=function(e){cut(e)};var rNt,iNt,aNt,k4,oNt,sNt,A4,cNt,lNt,uNt,dNt,fNt,pNt,mNt,hNt,gNt,_Nt,vNt,j4,M4,yNt,bNt,xNt,N4,SNt,CNt,wNt,TNt,ENt,P4,DNt;R(jG,`MrTreeOptions`,991),J(992,1,{},Qi),Q.uf=function(){return new Gve},Q.vf=function(e){},R(jG,`MrTreeOptions/MrtreeFactory`,992),J(353,24,{3:1,35:1,24:1,353:1},a_);var F4,I4,L4,R4,ONt=rk(jG,`OrderWeighting`,353,GJ,gNe,uxe),kNt;J(425,24,{3:1,35:1,24:1,425:1},Dfe);var ANt,z4,jNt=rk(jG,`TreeifyingOrder`,425,GJ,cke,dxe),MNt;J(1447,1,lG,$re),Q.pg=function(e){return F(e,120),NNt},Q.If=function(e,t){yVe(this,F(e,120),t)};var NNt;R(`org.eclipse.elk.alg.mrtree.p1treeify`,`DFSTreeifyer`,1447),J(1448,1,lG,_c),Q.pg=function(e){return F(e,120),PNt},Q.If=function(e,t){Qet(this,F(e,120),t)};var PNt;R(NG,`NodeOrderer`,1448),J(1455,1,{},cne),Q.rd=function(e){return hCe(e)},R(NG,`NodeOrderer/0methodref$lambda$6$Type`,1455),J(1449,1,JB,lne),Q.Mb=function(e){return PO(),Xp(db(q(F(e,40),(Iz(),E4))))},R(NG,`NodeOrderer/lambda$0$Type`,1449),J(1450,1,JB,une),Q.Mb=function(e){return PO(),F(q(F(e,40),(zR(),j4)),15).a<0},R(NG,`NodeOrderer/lambda$1$Type`,1450),J(1451,1,JB,Doe),Q.Mb=function(e){return OBe(this.a,F(e,40))},R(NG,`NodeOrderer/lambda$2$Type`,1451),J(1452,1,JB,Eoe),Q.Mb=function(e){return bMe(this.a,F(e,40))},R(NG,`NodeOrderer/lambda$3$Type`,1452),J(1453,1,dH,dne),Q.Le=function(e,t){return JRe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(NG,`NodeOrderer/lambda$4$Type`,1453),J(1454,1,JB,$i),Q.Mb=function(e){return PO(),F(q(F(e,40),(Iz(),f4)),15).a!=0},R(NG,`NodeOrderer/lambda$5$Type`,1454),J(1456,1,lG,Cc),Q.pg=function(e){return F(e,120),FNt},Q.If=function(e,t){ort(this,F(e,120),t)},Q.b=0;var FNt;R(`org.eclipse.elk.alg.mrtree.p3place`,`NodePlacer`,1456),J(1457,1,lG,wc),Q.pg=function(e){return F(e,120),INt},Q.If=function(e,t){wnt(F(e,120),t)};var INt;R(PG,`EdgeRouter`,1457),J(1459,1,dH,rne),Q.Le=function(e,t){return Zv(F(e,15).a,F(t,15).a)},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/0methodref$compare$Type`,1459),J(1464,1,{},ine),Q.We=function(e){return k(P(e))},R(PG,`EdgeRouter/1methodref$doubleValue$Type`,1464),J(1466,1,dH,ane),Q.Le=function(e,t){return vM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/2methodref$compare$Type`,1466),J(1468,1,dH,one),Q.Le=function(e,t){return vM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/3methodref$compare$Type`,1468),J(1470,1,{},nne),Q.We=function(e){return k(P(e))},R(PG,`EdgeRouter/4methodref$doubleValue$Type`,1470),J(1472,1,dH,sne),Q.Le=function(e,t){return vM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/5methodref$compare$Type`,1472),J(1474,1,dH,ea),Q.Le=function(e,t){return vM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/6methodref$compare$Type`,1474),J(1458,1,{},fne),Q.Kb=function(e){return FO(),F(q(F(e,40),(zR(),P4)),15)},R(PG,`EdgeRouter/lambda$0$Type`,1458),J(1469,1,{},pne),Q.Kb=function(e){return l_e(F(e,40))},R(PG,`EdgeRouter/lambda$11$Type`,1469),J(1471,1,{},kfe),Q.Kb=function(e){return yCe(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(PG,`EdgeRouter/lambda$13$Type`,1471),J(1473,1,{},Ofe),Q.Kb=function(e){return u_e(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(PG,`EdgeRouter/lambda$15$Type`,1473),J(1475,1,dH,mne),Q.Le=function(e,t){return DYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/lambda$17$Type`,1475),J(1476,1,dH,ta),Q.Le=function(e,t){return OYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/lambda$18$Type`,1476),J(1477,1,dH,na),Q.Le=function(e,t){return AYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/lambda$19$Type`,1477),J(1460,1,JB,Ooe),Q.Mb=function(e){return Oke(this.a,F(e,40))},Q.a=0,R(PG,`EdgeRouter/lambda$2$Type`,1460),J(1478,1,dH,ra),Q.Le=function(e,t){return kYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/lambda$20$Type`,1478),J(1461,1,dH,ia),Q.Le=function(e,t){return RSe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/lambda$3$Type`,1461),J(1462,1,dH,aa),Q.Le=function(e,t){return LSe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`EdgeRouter/lambda$4$Type`,1462),J(1463,1,{},hne),Q.Kb=function(e){return c_e(F(e,40))},R(PG,`EdgeRouter/lambda$5$Type`,1463),J(1465,1,{},Afe),Q.Kb=function(e){return vCe(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(PG,`EdgeRouter/lambda$7$Type`,1465),J(1467,1,{},jfe),Q.Kb=function(e){return d_e(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(PG,`EdgeRouter/lambda$9$Type`,1467),J(662,1,{662:1},cZe),Q.e=0,Q.f=!1,Q.g=!1,R(PG,`MultiLevelEdgeNodeNodeGap`,662),J(1867,1,dH,gne),Q.Le=function(e,t){return kAe(F(e,240),F(t,240))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`MultiLevelEdgeNodeNodeGap/lambda$0$Type`,1867),J(1868,1,dH,oa),Q.Le=function(e,t){return AAe(F(e,240),F(t,240))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(PG,`MultiLevelEdgeNodeNodeGap/lambda$1$Type`,1868);var B4;J(487,24,{3:1,35:1,24:1,487:1,188:1,196:1},Mfe),Q.bg=function(){return Sqe(this)},Q.og=function(){return Sqe(this)};var V4,H4,LNt=rk(Rht,`RadialLayoutPhases`,487,GJ,lke,fxe),RNt;J(1084,214,jH,Ble),Q.kf=function(e,t){var n=D9e(this,e),r,i,a,o,s;if(t.Tg(`Radial layout`,n.c.length),Xp(db(Y(e,(_I(),hPt))))||jw((r=new uu((Kh(),new Wp(e))),r)),s=B1e(e),_P(e,(xb(),B4),s),!s)throw O(new qp(`The given graph is not a tree!`));for(i=k(P(Y(e,$4))),i==0&&(i=W3e(e)),_P(e,$4,i),o=new D(D9e(this,e));o.a=3)for(S=F(U(b,0),26),ee=F(U(b,1),26),o=0;o+2=S.f+ee.f+d||ee.f>=x.f+S.f+d){ne=!0;break}++o}else ne=!0;if(ne){for(n=(kC(this.a),zS(this.a,(kN(),i3),F(Y(e,wFt),188)),zS(this.a,a3,F(Y(e,_Ft),188)),zS(this.a,o3,F(Y(e,xFt),188)),fme(this.a,(re=new vC,Mx(re,i3,($F(),l3)),Mx(re,a3,c3),Xp(db(Y(e,hFt)))&&Mx(re,i3,u3),Xp(db(Y(e,cFt)))&&Mx(re,i3,s3),re)),xz(this.a,e)),u=1/n.c.length,te=0,h=new D(n);h.a0&&$We((_T(t-1,e.length),e.charCodeAt(t-1)),hpt);)--t;if(r>=t)throw O(new qp(`The given string does not contain any numbers.`));if(i=RR((uD(r,t,e.length),e.substr(r,t-r)),`,|;|\r| -`),i.length!=2)throw O(new qp(`Exactly two numbers are expected, `+i.length+` were found.`));try{this.a=dI(AI(i[0])),this.b=dI(AI(i[1]))}catch(e){throw e=WA(e),N(e,131)?(n=e,O(new qp(gpt+n))):O(e)}},Q.Ib=function(){return`(`+this.a+`,`+this.b+`)`},Q.a=0,Q.b=0;var h6=R(kU,`KVector`,8);J(79,66,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1,79:1,414:1},qf,zm,x_e),Q.Nc=function(){return wWe(this)},Q.ag=function(e){var t,n,r=RR(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),i,a,o;rw(this);try{for(n=0,a=0,i=0,o=0;n0&&(a%2==0?i=dI(r[n]):o=dI(r[n]),a>0&&a%2!=0&&Sx(this,new j(i,o)),++a),++n}catch(e){throw e=WA(e),N(e,131)?(t=e,O(new qp(`The given string does not match the expected format for vectors.`+t))):O(e)}},Q.Ib=function(){for(var e=new Ey(`(`),t=oP(this,0),n;t.b!=t.d.c;)n=F(YT(t),8),ov(e,n.a+`,`+n.b),t.b!=t.d.c&&(e.a+=`; `);return(e.a+=`)`,e).a};var qIt=R(kU,`KVectorChain`,79);J(256,24,{3:1,35:1,24:1,256:1},b_);var g6,_6,v6,y6,b6,x6,JIt=rk(_K,`Alignment`,256,GJ,UIe,Pxe),YIt;J(976,1,BH,sie),Q.tf=function(e){qrt(e)};var XIt,S6,ZIt,QIt,$It,eLt,tLt,nLt,rLt,iLt,aLt,oLt;R(_K,`BoxLayouterOptions`,976),J(977,1,{},no),Q.uf=function(){return new Bne},Q.vf=function(e){},R(_K,`BoxLayouterOptions/BoxFactory`,977),J(299,24,{3:1,35:1,24:1,299:1},x_);var C6,w6,T6,E6,D6,O6,k6=rk(_K,`ContentAlignment`,299,GJ,KIe,Fxe),sLt;J(689,1,BH,Oc),Q.tf=function(e){QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,zgt),``),`Layout Algorithm`),`Select a specific layout algorithm.`),(CI(),p6)),pY),JM((iP(),i6))))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,Bgt),``),`Resolved Layout Algorithm`),`Meta data associated with the selected algorithm.`),f6),VIt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,qmt),``),`Alignment`),`Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm.`),lLt),l6),JIt),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,qH),``),`Aspect Ratio`),`The desired aspect ratio of the drawing, that is the quotient of width by height.`),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,Vgt),``),`Bend Points`),`A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points.`),f6),qIt),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,rG),``),`Content Alignment`),`Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option.`),mLt),u6),k6),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,tG),``),`Debug Mode`),`Whether additional debug information shall be generated.`),(ky(),!1)),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,nG),``),`Direction`),`Overall direction of edges: horizontal (right / left) or vertical (down / up).`),hLt),l6),C8),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,JW),``),`Edge Routing`),`What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline.`),vLt),l6),kRt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Lgt),``),`Expand Nodes`),`If active, nodes are expanded to fill the area of their parent.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,qW),``),`Hierarchy Handling`),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),SLt),l6),GRt),eS(i6,W(A(o6,1),Z,160,0,[r6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,XH),``),`Padding`),`The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately.`),ILt),f6),zCt),eS(i6,W(A(o6,1),Z,160,0,[r6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,ZH),``),`Interactive`),`Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,sG),``),`interactive Layout`),`Whether the graph should be changeable interactively and by setting constraints`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,eU),``),`Omit Node Micro Layout`),`Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,QH),``),`Port Constraints`),`Defines constraints of the position of the ports of a node.`),KLt),l6),ezt),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,oG),``),`Position`),`The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position.`),f6),h6),eS(r6,W(A(o6,1),Z,160,0,[a6,n6]))))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,WH),``),`Priority`),`Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used.`),d6),lY),eS(r6,W(A(o6,1),Z,160,0,[t6]))))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,JH),``),`Randomization Seed`),`Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time).`),d6),lY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,YH),``),`Separate Connected Components`),`Whether each connected component should be processed separately.`),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,iht),``),`Junction Points`),`This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order.`),OLt),f6),qIt),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,cht),``),`Comment Box`),`Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related.`),!1),s6),iY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,lht),``),`Hypernode`),`Whether the node should be handled as a hypernode.`),!1),s6),iY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,Hgt),``),`Label Manager`),`Label managers can shorten labels upon a layout algorithm's request.`),f6),sHt),eS(i6,W(A(o6,1),Z,160,0,[n6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Ugt),``),`Softwrapping Fuzziness`),`Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line.`),0),c6),sY),JM(n6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,dht),``),`Margins`),`Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels.`),kLt),f6),LCt),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Gmt),``),`No Layout`),`No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node.`),!1),s6),iY),eS(r6,W(A(o6,1),Z,160,0,[t6,a6,n6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Wgt),``),`Scale Factor`),`The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set.`),1),c6),sY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,Ggt),``),`Child Area Width`),`The width of the area occupied by the laid out children of a node.`),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,Kgt),``),`Child Area Height`),`The height of the area occupied by the laid out children of a node.`),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,oU),``),jgt),`Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'`),!1),s6),iY),JM(i6)))),IT(e,oU,uU,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,qgt),``),`Animate`),`Whether the shift from the old layout to the new computed layout shall be animated.`),!0),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Jgt),``),`Animation Time Factor`),`Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'.`),K(100)),d6),lY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Ygt),``),`Layout Ancestors`),`Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Xgt),``),`Maximal Animation Time`),`The maximal time for animations, in milliseconds.`),K(4e3)),d6),lY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Zgt),``),`Minimal Animation Time`),`The minimal time for animations, in milliseconds.`),K(400)),d6),lY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Qgt),``),`Progress Bar`),`Whether a progress bar shall be displayed during layout computations.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,$gt),``),`Validate Graph`),`Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,e_t),``),`Validate Options`),`Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!0),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,t_t),``),`Zoom to Fit`),`Whether the zoom level shall be set to view the whole diagram after layout.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Rgt),`box`),`Box Layout Mode`),`Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better.`),fLt),l6),kzt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,n_t),`json`),`Shape Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports.`),DLt),l6),dzt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,r_t),`json`),`Edge Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels.`),TLt),l6),wRt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Nmt),YW),`Comment Comment Spacing`),`Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing.`),10),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Pmt),YW),`Comment Node Spacing`),`Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing.`),10),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Fmt),YW),`Components Spacing`),`Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated.`),20),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Imt),YW),`Edge Spacing`),`Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines.`),10),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,KH),YW),`Edge Label Spacing`),`The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option.`),2),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,eG),YW),`Edge Node Spacing`),`Spacing to be preserved between nodes and edges.`),10),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Lmt),YW),`Label Spacing`),`Determines the amount of space to be left between two labels of the same graph element.`),0),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Bmt),YW),`Label Node Spacing`),`Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option.`),5),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Rmt),YW),`Horizontal spacing between Label and Port`),`Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,zmt),YW),`Vertical spacing between Label and Port`),`Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,GH),YW),`Node Spacing`),`The minimal distance to be preserved between each two nodes.`),20),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Vmt),YW),`Node Self Loop Spacing`),`Spacing to be preserved between a node and its self loops.`),10),c6),sY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Hmt),YW),`Port Spacing`),`Spacing between pairs of ports of the same node.`),10),c6),sY),eS(i6,W(A(o6,1),Z,160,0,[r6]))))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,Umt),YW),`Individual Spacing`),`Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent.`),f6),jzt),eS(r6,W(A(o6,1),Z,160,0,[t6,a6,n6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,fht),YW),`Additional Port Space`),`Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border.`),fRt),f6),LCt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,aG),l_t),`Layout Partition`),`Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction).`),d6),lY),eS(i6,W(A(o6,1),Z,160,0,[r6]))))),IT(e,aG,iG,BLt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,iG),l_t),`Layout Partitioning`),`Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle.`),RLt),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Xmt),u_t),`Node Label Padding`),`Define padding for node labels that are placed inside of a node.`),jLt),f6),zCt),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,iU),u_t),`Node Label Placement`),`Hints for where node labels are to be placed; if empty, the node label's position is not modified.`),MLt),u6),Y8),eS(r6,W(A(o6,1),Z,160,0,[n6]))))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,$mt),xK),`Port Alignment`),`Defines the default port distribution for a node. May be overridden for each side individually.`),HLt),l6),$8),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,eht),xK),`Port Alignment (North)`),`Defines how ports on the northern side are placed, overriding the node's general port alignment.`),l6),$8),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,tht),xK),`Port Alignment (South)`),`Defines how ports on the southern side are placed, overriding the node's general port alignment.`),l6),$8),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,nht),xK),`Port Alignment (West)`),`Defines how ports on the western side are placed, overriding the node's general port alignment.`),l6),$8),JM(r6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,rht),xK),`Port Alignment (East)`),`Defines how ports on the eastern side are placed, overriding the node's general port alignment.`),l6),$8),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,rU),SK),`Node Size Constraints`),`What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed.`),NLt),u6),B5),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,nU),SK),`Node Size Options`),`Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications.`),FLt),u6),hzt),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,fU),SK),`Node Size Minimum`),`The minimal size to which a node can be reduced.`),PLt),f6),h6),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,tU),SK),`Fixed Graph Size`),`By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so.`),!1),s6),iY),JM(i6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,oht),ZW),`Edge Label Placement`),`Gives a hint on where to put edge labels.`),gLt),l6),ERt),JM(n6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,$H),ZW),`Inline Edge Labels`),`If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible.`),!1),s6),iY),JM(n6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,i_t),`font`),`Font Name`),`Font name used for a label.`),p6),pY),JM(n6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,a_t),`font`),`Font Size`),`Font size used for a label.`),d6),lY),JM(n6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,uht),CK),`Port Anchor Offset`),`The offset to the port position where connections shall be attached.`),f6),h6),JM(a6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,sht),CK),`Port Index`),`The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case.`),d6),lY),JM(a6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Kmt),CK),`Port Side`),`The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports.`),ZLt),l6),P5),JM(a6)))),QM(e,new SI(Im(Fm(Lm(Am(Pm(Mm(Nm(new to,Wmt),CK),`Port Border Offset`),`The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border.`),c6),sY),JM(a6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,aU),d_t),`Port Label Placement`),`Decides on a placement method for port labels; if empty, the node label's position is not modified.`),YLt),u6),f5),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Zmt),d_t),`Port Labels Next to Port`),`Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE.`),!1),s6),iY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Qmt),d_t),`Treat Port Labels as Group`),`If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port.`),!0),s6),iY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,yK),wK),`Number of size categories`),`Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator.`),K(3)),d6),lY),JM(i6)))),IT(e,yK,bK,yRt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,o_t),wK),`Weight of a node containing children for determining the graph size`),`When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five.`),K(4)),d6),lY),JM(i6)))),IT(e,o_t,yK,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,sU),wK),`Topdown Scale Factor`),`The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes.`),1),c6),sY),JM(i6)))),IT(e,sU,uU,gRt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,bK),wK),`Topdown Size Approximator`),`The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size.`),null),f6),qRt),JM(r6)))),IT(e,bK,uU,_Rt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,cU),wK),`Topdown Hierarchical Node Width`),`The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),150),c6),sY),eS(i6,W(A(o6,1),Z,160,0,[r6]))))),IT(e,cU,uU,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,lU),wK),`Topdown Hierarchical Node Aspect Ratio`),`The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),1.414),c6),sY),eS(i6,W(A(o6,1),Z,160,0,[r6]))))),IT(e,lU,uU,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,uU),wK),`Topdown Node Type`),`The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes.`),null),l6),vzt),JM(r6)))),IT(e,uU,tU,null),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,s_t),wK),`Topdown Scale Cap`),`Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes.`),1),c6),sY),JM(i6)))),IT(e,s_t,uU,hRt),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Jmt),f_t),`Activate Inside Self Loops`),`Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports.`),!1),s6),iY),JM(r6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,Ymt),f_t),`Inside Self Loop`),`Whether a self loop should be routed inside a node instead of around that node.`),!1),s6),iY),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,aht),`edge`),`Edge Thickness`),`The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it.`),1),c6),sY),JM(t6)))),QM(e,new SI(Im(Fm(Lm(jm(Am(Pm(Mm(Nm(new to,c_t),`edge`),`Edge Type`),`The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations.`),bLt),l6),LRt),JM(t6)))),Wh(e,new oT(Dm(km(Om(new Ha,BV),`Layered`),`The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.`))),Wh(e,new oT(Dm(km(Om(new Ha,`org.eclipse.elk.orthogonal`),`Orthogonal`),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),Wh(e,new oT(Dm(km(Om(new Ha,UH),`Force`),`Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.`))),Wh(e,new oT(Dm(km(Om(new Ha,`org.eclipse.elk.circle`),`Circle`),`Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.`))),Wh(e,new oT(Dm(km(Om(new Ha,Iht),`Tree`),`Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.`))),Wh(e,new oT(Dm(km(Om(new Ha,`org.eclipse.elk.planar`),`Planar`),`Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.`))),Wh(e,new oT(Dm(km(Om(new Ha,GG),`Radial`),`Radial layout algorithms usually position the nodes of the graph on concentric circles.`))),knt((new cie,e)),qrt((new sie,e)),itt((new kc,e))};var A6,cLt,lLt,j6,uLt,dLt,fLt,M6,N6,pLt,P6,mLt,F6,I6,hLt,L6,R6,gLt,_Lt,vLt,yLt,bLt,xLt,z6,SLt,CLt,B6,V6,H6,U6,wLt,TLt,ELt,DLt,W6,OLt,G6,kLt,ALt,jLt,K6,MLt,q6,NLt,J6,Y6,PLt,X6,FLt,Z6,Q6,$6,ILt,LLt,RLt,zLt,BLt,VLt,HLt,e8,t8,ULt,WLt,GLt,n8,r8,KLt,qLt,JLt,i8,YLt,XLt,a8,ZLt,o8,s8,QLt,c8,$Lt,eRt,tRt,nRt,rRt,iRt,aRt,oRt,l8,sRt,u8,cRt,lRt,d8,uRt,dRt,fRt,pRt,f8,p8,m8,h8,mRt,hRt,g8,gRt,_8,_Rt,vRt,yRt,bRt;R(_K,`CoreOptions`,689),J(86,24,{3:1,35:1,24:1,86:1},S_);var v8,y8,b8,x8,S8,C8=rk(_K,`Direction`,86,GJ,APe,Ixe),xRt;J(278,24,{3:1,35:1,24:1,278:1},C_);var w8,T8,SRt,CRt,wRt=rk(_K,`EdgeCoords`,278,GJ,xNe,Lxe),TRt;J(279,24,{3:1,35:1,24:1,279:1},w_);var E8,D8,O8,ERt=rk(_K,`EdgeLabelPlacement`,279,GJ,lje,Rxe),DRt;J(222,24,{3:1,35:1,24:1,222:1},T_);var k8,A8,j8,ORt,kRt=rk(_K,`EdgeRouting`,222,GJ,wNe,zxe),ARt;J(328,24,{3:1,35:1,24:1,328:1},E_);var jRt,MRt,NRt,PRt,FRt,IRt,LRt=rk(_K,`EdgeType`,328,GJ,qIe,Bxe),RRt;J(974,1,BH,cie),Q.tf=function(e){knt(e)};var zRt,BRt,VRt,HRt,URt,WRt,M8;R(_K,`FixedLayouterOptions`,974),J(975,1,{},ro),Q.uf=function(){return new Hne},Q.vf=function(e){},R(_K,`FixedLayouterOptions/FixedFactory`,975),J(347,24,{3:1,35:1,24:1,347:1},D_);var N8,P8,F8,GRt=rk(_K,`HierarchyHandling`,347,GJ,uje,Vxe),KRt,qRt=Rx(_K,`ITopdownSizeApproximator`);J(292,24,{3:1,35:1,24:1,292:1},O_);var I8,L8,R8,z8,JRt=rk(_K,`LabelSide`,292,GJ,TNe,Hxe),YRt;J(96,24,{3:1,35:1,24:1,96:1},k_);var B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8=rk(_K,`NodeLabelPlacement`,96,GJ,Bze,Uxe),XRt;J(257,24,{3:1,35:1,24:1,257:1},A_);var ZRt,X8,Z8,QRt,Q8,$8=rk(_K,`PortAlignment`,257,GJ,QPe,Wxe),$Rt;J(102,24,{3:1,35:1,24:1,102:1},j_);var e5,t5,n5,r5,i5,a5,ezt=rk(_K,`PortConstraints`,102,GJ,WIe,Gxe),tzt;J(280,24,{3:1,35:1,24:1,280:1},M_);var o5,s5,c5,l5,u5,d5,f5=rk(_K,`PortLabelPlacement`,280,GJ,GIe,Kxe),nzt;J(64,24,{3:1,35:1,24:1,64:1},P_);var p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5=rk(_K,`PortSide`,64,GJ,jPe,qxe),rzt;J(978,1,BH,kc),Q.tf=function(e){itt(e)};var izt,azt,ozt,szt,czt;R(_K,`RandomLayouterOptions`,978),J(979,1,{},io),Q.uf=function(){return new qne},Q.vf=function(e){},R(_K,`RandomLayouterOptions/RandomFactory`,979),J(300,24,{3:1,35:1,24:1,300:1},N_);var F5,lzt,uzt,dzt=rk(_K,`ShapeCoords`,300,GJ,dje,Jxe),fzt;J(380,24,{3:1,35:1,24:1,380:1},F_);var I5,L5,R5,z5,B5=rk(_K,`SizeConstraint`,380,GJ,CNe,Yxe),pzt;J(266,24,{3:1,35:1,24:1,266:1},I_);var V5,H5,U5,mzt,W5,G5,K5,q5,J5,hzt=rk(_K,`SizeOptions`,266,GJ,_Be,Xxe),gzt;J(281,24,{3:1,35:1,24:1,281:1},L_);var Y5,_zt,X5,vzt=rk(_K,`TopdownNodeTypes`,281,GJ,fje,Zxe),yzt;J(288,24,DK);var bzt,xzt,Szt,Czt,Z5=rk(_K,`TopdownSizeApproximator`,288,GJ,SNe,Qxe);J(970,288,DK,TCe),Q.Sg=function(e){return vXe(e)},rk(_K,`TopdownSizeApproximator/1`,970,Z5,null,null),J(971,288,DK,Bwe),Q.Sg=function(e){var t=F(Y(e,(Qz(),c8)),144),n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee=(Vm(),m=new Gf,m),te,ne,C;for(AL(ee,e),te=new Ad,o=new yy((!e.a&&(e.a=new I(p7,e,10,11)),e.a));o.e!=o.i.gc();)i=F(lP(o),26),y=(p=new Gf,p),kL(y,ee),AL(y,i),C=vXe(i),jv(y,r.Math.max(i.g,C.a),r.Math.max(i.f,C.b)),NI(te.f,i,y);for(a=new yy((!e.a&&(e.a=new I(p7,e,10,11)),e.a));a.e!=a.i.gc();)for(i=F(lP(a),26),d=new yy((!i.e&&(i.e=new Lb(i7,i,7,4)),i.e));d.e!=d.i.gc();)u=F(lP(d),85),x=F(Y_(nS(te.f,i)),26),S=F(tC(te,U((!u.c&&(u.c=new Lb(r7,u,5,8)),u.c),0)),26),b=(f=new fo,f),hD((!b.b&&(b.b=new Lb(r7,b,4,7)),b.b),x),hD((!b.c&&(b.c=new Lb(r7,b,5,8)),b.c),S),EL(b,qw(x)),AL(b,u);g=F(Ew(t.f),214);try{g.kf(ee,new so),lDe(t.f,g)}catch(e){throw e=WA(e),N(e,101)?(h=e,O(h)):O(e)}return lD(ee,N6)||lD(ee,M6)||Uz(ee),l=k(P(Y(ee,N6))),c=k(P(Y(ee,M6))),s=l/c,n=k(P(Y(ee,p8)))*r.Math.sqrt((!ee.a&&(ee.a=new I(p7,ee,10,11)),ee.a).i),ne=F(Y(ee,$6),104),v=ne.b+ne.c+1,_=ne.d+ne.a+1,new j(r.Math.max(v,n),r.Math.max(_,n/s))},rk(_K,`TopdownSizeApproximator/2`,971,Z5,null,null),J(972,288,DK,Ske),Q.Sg=function(e){var t,n=k(P(Y(e,(Qz(),p8)))),r,i,a,o;return t=n/k(P(Y(e,f8))),r=zit(e),a=F(Y(e,$6),104),i=k(P(cP(d8))),qw(e)&&(i=k(P(Y(qw(e),d8)))),o=dy(new j(n,t),r),Nb(o,new j(-(a.b+a.c)-i,-(a.d+a.a)-i))},rk(_K,`TopdownSizeApproximator/3`,972,Z5,null,null),J(973,288,DK,hTe),Q.Sg=function(e){for(var t,n,i,a,o,s=new yy((!e.a&&(e.a=new I(p7,e,10,11)),e.a)),c,l,u,d;s.e!=s.i.gc();)o=F(lP(s),26),Y(o,(Qz(),_8))!=null&&(!o.a&&(o.a=new I(p7,o,10,11)),o.a)&&(!o.a&&(o.a=new I(p7,o,10,11)),o.a).i>0?(n=F(Y(o,_8),522),d=n.Sg(o),u=F(Y(o,$6),104),jv(o,r.Math.max(o.g,d.a+u.b+u.c),r.Math.max(o.f,d.b+u.d+u.a))):(!o.a&&(o.a=new I(p7,o,10,11)),o.a).i!=0&&jv(o,k(P(Y(o,p8))),k(P(Y(o,p8)))/k(P(Y(o,f8))));t=F(Y(e,(Qz(),c8)),144),l=F(Ew(t.f),214);try{l.kf(e,new so),lDe(t.f,l)}catch(e){throw e=WA(e),N(e,101)?(c=e,O(c)):O(e)}return _P(e,A6,TK),tPe(e),Uz(e),a=k(P(Y(e,N6))),i=k(P(Y(e,M6))),new j(a,i)},rk(_K,`TopdownSizeApproximator/4`,973,Z5,null,null);var wzt;J(345,1,{853:1},up),Q.Tg=function(e,t){return n0e(this,e,t)},Q.Ug=function(){B2e(this)},Q.Vg=function(){return this.q},Q.Wg=function(){return this.f?uw(this.f):null},Q.Xg=function(){return uw(this.a)},Q.Yg=function(){return this.p},Q.Zg=function(){return!1},Q.$g=function(){return this.n},Q._g=function(){return this.p!=null&&!this.b},Q.ah=function(e){var t;this.n&&(t=e,fy(this.f,t))},Q.bh=function(e,t){var n,r;this.n&&e&&Ije(this,(n=new sEe,r=TR(n,e),zct(n),r),(Mj(),Nzt))},Q.dh=function(e){var t;return this.b?null:(t=eze(this,this.g),Sx(this.a,t),t.i=this,this.d=e,t)},Q.eh=function(e){e>0&&!this.b&&kBe(this,e)},Q.b=!1,Q.c=0,Q.d=-1,Q.e=null,Q.f=null,Q.g=-1,Q.j=!1,Q.k=!1,Q.n=!1,Q.o=0,Q.q=0,Q.r=0,R(cG,`BasicProgressMonitor`,345),J(706,214,jH,Bne),Q.kf=function(e,t){Fit(e,t)},R(cG,`BoxLayoutProvider`,706),J(966,1,dH,Foe),Q.Le=function(e,t){return Q7e(this,F(e,26),F(t,26))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},Q.a=!1,R(cG,`BoxLayoutProvider/1`,966),J(167,1,{167:1},jO,b_e),Q.Ib=function(){return this.c?snt(this.c):sI(this.b)},R(cG,`BoxLayoutProvider/Group`,167),J(327,24,{3:1,35:1,24:1,327:1},z_);var Tzt,Ezt,Dzt,Ozt,kzt=rk(cG,`BoxLayoutProvider/PackingMode`,327,GJ,ENe,$xe),Azt;J(967,1,dH,co),Q.Le=function(e,t){return vOe(F(e,167),F(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(cG,`BoxLayoutProvider/lambda$0$Type`,967),J(968,1,dH,Wne),Q.Le=function(e,t){return $De(F(e,167),F(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(cG,`BoxLayoutProvider/lambda$1$Type`,968),J(969,1,dH,lo),Q.Le=function(e,t){return eOe(F(e,167),F(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(cG,`BoxLayoutProvider/lambda$2$Type`,969),J(1339,1,{830:1},Gne),Q.Lg=function(e,t){return Lh(),!N(t,174)||Fle(($A(),F(e,174)),t)},R(cG,`ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type`,1339),J(1340,1,jB,Ioe),Q.Ad=function(e){zWe(this.a,F(e,147))},R(cG,`ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type`,1340),J(1341,1,jB,Kne),Q.Ad=function(e){F(e,105),Lh()},R(cG,`ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type`,1341),J(1345,1,jB,Loe),Q.Ad=function(e){nVe(this.a,F(e,105))},R(cG,`ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type`,1345),J(1343,1,JB,Ufe),Q.Mb=function(e){return qUe(this.a,this.b,F(e,147))},R(cG,`ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type`,1343),J(1342,1,JB,Wfe),Q.Mb=function(e){return f_e(this.a,this.b,F(e,830))},R(cG,`ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type`,1342),J(1344,1,jB,Gfe),Q.Ad=function(e){iTe(this.a,this.b,F(e,147))},R(cG,`ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type`,1344),J(931,1,{},ao),Q.Kb=function(e){return gme(e)},Q.Fb=function(e){return this===e},R(cG,`ElkUtil/lambda$0$Type`,931),J(932,1,jB,Kfe),Q.Ad=function(e){C6e(this.a,this.b,F(e,85))},Q.a=0,Q.b=0,R(cG,`ElkUtil/lambda$1$Type`,932),J(933,1,jB,qfe),Q.Ad=function(e){Np(this.a,this.b,F(e,170))},Q.a=0,Q.b=0,R(cG,`ElkUtil/lambda$2$Type`,933),J(934,1,jB,Jfe),Q.Ad=function(e){Lme(this.a,this.b,F(e,157))},Q.a=0,Q.b=0,R(cG,`ElkUtil/lambda$3$Type`,934),J(935,1,jB,Roe),Q.Ad=function(e){xCe(this.a,F(e,372))},R(cG,`ElkUtil/lambda$4$Type`,935),J(331,1,{35:1,331:1},Od),Q.Dd=function(e){return zhe(this,F(e,242))},Q.Fb=function(e){var t;return N(e,331)?(t=F(e,331),this.a==t.a):!1},Q.Hb=function(){return Nw(this.a)},Q.Ib=function(){return this.a+` (exclusive)`},Q.a=0,R(cG,`ExclusiveBounds/ExclusiveLowerBound`,331),J(1089,214,jH,Hne),Q.kf=function(e,t){var n,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C;for(t.Tg(`Fixed Layout`,1),o=F(Y(e,(Qz(),_Lt)),222),p=0,m=0,b=new yy((!e.a&&(e.a=new I(p7,e,10,11)),e.a));b.e!=b.i.gc();){for(v=F(lP(b),26),C=F(Y(v,(Dj(),M8)),8),C&&(Mv(v,C.a,C.b),F(Y(v,BRt),182).Gc((AN(),I5))&&(h=F(Y(v,HRt),8),h.a>0&&h.b>0&&Rz(v,h.a,h.b,!0,!0))),p=r.Math.max(p,v.i+v.g),m=r.Math.max(m,v.j+v.f),u=new yy((!v.n&&(v.n=new I(f7,v,1,7)),v.n));u.e!=u.i.gc();)c=F(lP(u),157),C=F(Y(c,M8),8),C&&Mv(c,C.a,C.b),p=r.Math.max(p,v.i+c.i+c.g),m=r.Math.max(m,v.j+c.j+c.f);for(ee=new yy((!v.c&&(v.c=new I(m7,v,9,9)),v.c));ee.e!=ee.i.gc();)for(S=F(lP(ee),125),C=F(Y(S,M8),8),C&&Mv(S,C.a,C.b),te=v.i+S.i,ne=v.j+S.j,p=r.Math.max(p,te+S.g),m=r.Math.max(m,ne+S.f),l=new yy((!S.n&&(S.n=new I(f7,S,1,7)),S.n));l.e!=l.i.gc();)c=F(lP(l),157),C=F(Y(c,M8),8),C&&Mv(c,C.a,C.b),p=r.Math.max(p,te+c.i+c.g),m=r.Math.max(m,ne+c.j+c.f);for(a=new fS(Sy(bL(v).a.Jc(),new f));sL(a);)n=F(FE(a),85),d=Glt(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b);for(i=new fS(Sy(yL(v).a.Jc(),new f));sL(i);)n=F(FE(i),85),qw(oI(n))!=e&&(d=Glt(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b))}if(o==(CM(),k8))for(y=new yy((!e.a&&(e.a=new I(p7,e,10,11)),e.a));y.e!=y.i.gc();)for(v=F(lP(y),26),i=new fS(Sy(bL(v).a.Jc(),new f));sL(i);)n=F(FE(i),85),s=sit(n),s.b==0?_P(n,W6,null):_P(n,W6,s);Xp(db(Y(e,(Dj(),VRt))))||(x=F(Y(e,URt),104),_=p+x.b+x.c,g=m+x.d+x.a,Rz(e,_,g,!0,!0)),t.Ug()},R(cG,`FixedLayoutProvider`,1089),J(379,150,{3:1,414:1,379:1,105:1,150:1},oo,uRe),Q.ag=function(e){var t,n,r,i,a,o,s,c,l;if(e)try{for(c=RR(e,`;,;`),a=c,o=0,s=a.length;o>16&iV|t^r<<16},Q.Jc=function(){return new zoe(this)},Q.Ib=function(){return this.a==null&&this.b==null?`pair(null,null)`:this.a==null?`pair(null,`+eN(this.b)+`)`:this.b==null?`pair(`+eN(this.a)+`,null)`:`pair(`+eN(this.a)+`,`+eN(this.b)+`)`},R(cG,`Pair`,49),J(980,1,bB,zoe),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},Q.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw O(new nf)},Q.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),O(new $d)},Q.b=!1,Q.c=!1,R(cG,`Pair/1`,980),J(1079,214,jH,qne),Q.kf=function(e,t){var n,r,i,a,o;t.Tg(`Random Layout`,1),(!e.a&&(e.a=new I(p7,e,10,11)),e.a).i==0||(a=F(Y(e,(iJe(),szt)),15),i=a&&a.a!=0?new _E(a.a):new XM,n=Zp(P(Y(e,izt))),o=Zp(P(Y(e,czt))),r=F(Y(e,azt),104),plt(e,i,n,o,r)),t.Ug()},R(cG,`RandomLayoutProvider`,1079),J(240,1,{240:1},ox),Q.Fb=function(e){return EC(this.a,F(e,240).a)&&EC(this.b,F(e,240).b)&&EC(this.c,F(e,240).c)},Q.Hb=function(){return zj(W(A(IJ,1),mB,1,5,[this.a,this.b,this.c]))},Q.Ib=function(){return`(`+this.a+pB+this.b+pB+this.c+`)`},R(cG,`Triple`,240);var Rzt;J(551,1,{}),Q.Jf=function(){return new j(this.f.i,this.f.j)},Q.mf=function(e){return WOe(e,(Qz(),n8))?Y(this.f,zzt):Y(this.f,e)},Q.Kf=function(){return new j(this.f.g,this.f.f)},Q.Lf=function(){return this.g},Q.nf=function(e){return lD(this.f,e)},Q.Mf=function(e){qO(this.f,e.a),JO(this.f,e.b)},Q.Nf=function(e){KO(this.f,e.a),VO(this.f,e.b)},Q.Of=function(e){this.g=e},Q.g=0;var zzt;R(OK,`ElkGraphAdapters/AbstractElkGraphElementAdapter`,551),J(553,1,{838:1},id),Q.Pf=function(){var e,t;if(!this.b)for(this.b=RT(AC(this.a).i),t=new yy(AC(this.a));t.e!=t.i.gc();)e=F(lP(t),157),fy(this.b,new Up(e));return this.b},Q.b=null,R(OK,`ElkGraphAdapters/ElkEdgeAdapter`,553),J(260,551,{},Wp),Q.Qf=function(){return xZe(this)},Q.a=null,R(OK,`ElkGraphAdapters/ElkGraphAdapter`,260),J(631,551,{187:1},Up),R(OK,`ElkGraphAdapters/ElkLabelAdapter`,631),J(552,551,{685:1},zy),Q.Pf=function(){return yZe(this)},Q.Tf=function(){var e=F(Y(this.f,(Qz(),G6)),140);return!e&&(e=new Rf),e},Q.Vf=function(){return bZe(this)},Q.Xf=function(e){var t=new $b(e);_P(this.f,(Qz(),G6),t)},Q.Yf=function(e){_P(this.f,(Qz(),$6),new sbe(e))},Q.Rf=function(){return this.d},Q.Sf=function(){var e,t;if(!this.a)for(this.a=new kd,t=new fS(Sy(yL(F(this.f,26)).a.Jc(),new f));sL(t);)e=F(FE(t),85),fy(this.a,new id(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=new kd,t=new fS(Sy(bL(F(this.f,26)).a.Jc(),new f));sL(t);)e=F(FE(t),85),fy(this.c,new id(e));return this.c},Q.Wf=function(){return sw(F(this.f,26)).i!=0||Xp(db(F(this.f,26).mf((Qz(),B6))))},Q.Zf=function(){aRe(this,(Kh(),Rzt))},Q.a=null,Q.b=null,Q.c=null,Q.d=null,Q.e=null,R(OK,`ElkGraphAdapters/ElkNodeAdapter`,552),J(1251,551,{837:1},ise),Q.Pf=function(){return MZe(this)},Q.Sf=function(){var e,t;if(!this.a)for(this.a=Ky(F(this.f,125).gh().i),t=new yy(F(this.f,125).gh());t.e!=t.i.gc();)e=F(lP(t),85),fy(this.a,new id(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=Ky(F(this.f,125).hh().i),t=new yy(F(this.f,125).hh());t.e!=t.i.gc();)e=F(lP(t),85),fy(this.c,new id(e));return this.c},Q.$f=function(){return F(F(this.f,125).mf((Qz(),a8)),64)},Q._f=function(){var e,t,n,r=Hw(F(this.f,125)),i,a,o,s;for(n=new yy(F(this.f,125).hh());n.e!=n.i.gc();)for(e=F(lP(n),85),s=new yy((!e.c&&(e.c=new Lb(r7,e,5,8)),e.c));s.e!=s.i.gc();)if(o=F(lP(s),84),EO(GF(o),r)||GF(o)==r&&Xp(db(Y(e,(Qz(),V6)))))return!0;for(t=new yy(F(this.f,125).gh());t.e!=t.i.gc();)for(e=F(lP(t),85),a=new yy((!e.b&&(e.b=new Lb(r7,e,4,7)),e.b));a.e!=a.i.gc();)if(i=F(lP(a),84),EO(GF(i),r))return!0;return!1},Q.a=null,Q.b=null,Q.c=null,R(OK,`ElkGraphAdapters/ElkPortAdapter`,1251),J(1252,1,dH,Jne),Q.Le=function(e,t){return ont(F(e,125),F(t,125))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(OK,`ElkGraphAdapters/PortComparator`,1252);var Q5=Rx(kK,`EObject`),$5=Rx(AK,g_t),e7=Rx(AK,__t),t7=Rx(AK,v_t),n7=Rx(AK,`ElkShape`),r7=Rx(AK,y_t),i7=Rx(AK,b_t),a7=Rx(AK,x_t),o7=Rx(kK,S_t),s7=Rx(kK,`EFactory`),Bzt,Vzt=Rx(kK,C_t),c7=Rx(kK,`EPackage`),l7,Hzt,Uzt,Wzt,u7,Gzt,Kzt,qzt,Jzt,d7,Yzt,Xzt,f7=Rx(AK,w_t),p7=Rx(AK,T_t),m7=Rx(AK,E_t);J(93,1,D_t),Q.qh=function(){return this.rh(),null},Q.rh=function(){return null},Q.sh=function(){return this.rh(),!1},Q.th=function(){return!1},Q.uh=function(e){fA(this,e)},R(jK,`BasicNotifierImpl`,93),J(100,93,j_t),Q.Vh=function(){return Ev(this)},Q.vh=function(e,t){return e},Q.wh=function(){throw O(new tf)},Q.xh=function(e){var t=NP(F(yO(this.Ah(),this.Ch()),19));return this.Mh().Qh(this,t.n,t.f,e)},Q.yh=function(e,t){throw O(new tf)},Q.zh=function(e,t,n){return kR(this,e,t,n)},Q.Ah=function(){var e;return this.wh()&&(e=this.wh().Lk(),e)?e:this.fi()},Q.Bh=function(){return aL(this)},Q.Ch=function(){throw O(new tf)},Q.Dh=function(){var e,t=this.Xh().Mk();return!t&&this.wh().Rk(t=(Yh(),e=vke(VR(this.Ah())),e==null?JBt:new By(this,e))),t},Q.Eh=function(e,t){return e},Q.Fh=function(e){return e.nk()?e.Jj():mN(this.Ah(),e)},Q.Gh=function(){var e=this.wh();return e?e.Ok():null},Q.Hh=function(){return this.wh()?this.wh().Lk():null},Q.Ih=function(e,t,n){return bP(this,e,t,n)},Q.Jh=function(e){return wD(this,e)},Q.Kh=function(e,t){return RE(this,e,t)},Q.Lh=function(){var e=this.wh();return!!e&&e.Pk()},Q.Mh=function(){throw O(new tf)},Q.Nh=function(){return qN(this)},Q.Oh=function(e,t,n,r){return gP(this,e,t,r)},Q.Ph=function(e,t,n){return F(yO(this.Ah(),t),69).uk().xk(this,this.ei(),t-this.gi(),e,n)},Q.Qh=function(e,t,n,r){return Tw(this,e,t,r)},Q.Rh=function(e,t,n){return F(yO(this.Ah(),t),69).uk().yk(this,this.ei(),t-this.gi(),e,n)},Q.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},Q.Th=function(e){return sP(this,e)},Q.Uh=function(e){return Gke(this,e)},Q.Wh=function(e){return Ect(this,e)},Q.Xh=function(){throw O(new tf)},Q.Yh=function(){return this.wh()?this.wh().Nk():null},Q.Zh=function(){return qN(this)},Q.$h=function(e,t){FI(this,e,t)},Q._h=function(e){this.Xh().Qk(e)},Q.ai=function(e){this.Xh().Tk(e)},Q.bi=function(e){this.Xh().Sk(e)},Q.ci=function(e,t){var n,r,i,a=this.Gh();return a&&e&&(t=yP(a.Cl(),this,t),a.Gl(this)),r=this.Mh(),r&&((_R(this,this.Mh(),this.Ch()).Bb&VV)==0?(t=(n=this.Ch(),n>=0?this.xh(t):this.Mh().Qh(this,-1-n,null,t)),t=this.zh(null,-1,t)):(i=r.Nh(),i&&(e?!a&&i.Gl(this):i.Fl(this)))),this.ai(e),t},Q.di=function(e){var t,n=this.Ah(),r,i,a=mN(n,e),o,s,c;if(t=this.gi(),a>=t)return F(e,69).uk().Bk(this,this.ei(),a-t);if(a<=-1){if(o=Cz((TI(),p9),n,e),o){if(Qh(),F(o,69).vk()||(o=bT(GD(p9,o))),i=(r=this.Fh(o),F(r>=0?this.Ih(r,!0,!0):ZI(this,o,!0),163)),c=o.Gk(),c>1||c==-1)return F(F(i,219).Ql(e,!1),78)}else throw O(new qp(MK+e.ve()+PK))}else if(e.Hk())return r=this.Fh(e),F(r>=0?this.Ih(r,!1,!0):ZI(this,e,!1),78);return s=new ppe(this,e),s},Q.ei=function(){return rRe(this)},Q.fi=function(){return(qS(),K7).S},Q.gi=function(){return JS(this.fi())},Q.hi=function(e){xI(this,e)},Q.Ib=function(){return fL(this)},R(IK,`BasicEObjectImpl`,100);var Zzt;J(117,100,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1}),Q.ii=function(e){return iRe(this)[e]},Q.ji=function(e,t){eC(iRe(this),e,t)},Q.ki=function(e){eC(iRe(this),e,null)},Q.qh=function(){return F(bA(this,4),129)},Q.rh=function(){throw O(new tf)},Q.sh=function(){return!!(this.Db&4)},Q.wh=function(){throw O(new tf)},Q.li=function(e){UN(this,2,e)},Q.yh=function(e,t){this.Db=t<<16|this.Db&255,this.li(e)},Q.Ah=function(){return Cw(this)},Q.Ch=function(){return this.Db>>16},Q.Dh=function(){var e,t;return Yh(),t=vke(VR((e=F(bA(this,16),29),e||this.fi()))),t==null?JBt:new By(this,t)},Q.th=function(){return!(this.Db&1)},Q.Gh=function(){return F(bA(this,128),1999)},Q.Hh=function(){return F(bA(this,16),29)},Q.Lh=function(){return!!(this.Db&32)},Q.Mh=function(){return F(bA(this,2),52)},Q.Sh=function(){return!!(this.Db&64)},Q.Xh=function(){throw O(new tf)},Q.Yh=function(){return F(bA(this,64),290)},Q._h=function(e){UN(this,16,e)},Q.ai=function(e){UN(this,128,e)},Q.bi=function(e){UN(this,64,e)},Q.ei=function(){return HN(this)},Q.Db=0,R(IK,`MinimalEObjectImpl`,117),J(118,117,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.li=function(e){this.Cb=e},Q.Mh=function(){return this.Cb},R(IK,`MinimalEObjectImpl/Container`,118),J(LK,118,{109:1,343:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return PZe(this,e,t,n)},Q.Rh=function(e,t,n){return c2e(this,e,t,n)},Q.Th=function(e){return Hje(this,e)},Q.$h=function(e,t){YUe(this,e,t)},Q.fi=function(){return Wz(),Xzt},Q.hi=function(e){aUe(this,e)},Q.lf=function(){return jYe(this)},Q.fh=function(){return!this.o&&(this.o=new yD((Wz(),d7),g7,this,0)),this.o},Q.mf=function(e){return Y(this,e)},Q.nf=function(e){return lD(this,e)},Q.of=function(e,t){return _P(this,e,t)},R(RK,`EMapPropertyHolderImpl`,LK),J(559,118,{109:1,372:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},po),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return bP(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return sP(this,e)},Q.$h=function(e,t){switch(e){case 0:HO(this,k(P(t)));return;case 1:UO(this,k(P(t)));return}FI(this,e,t)},Q.fi=function(){return Wz(),Hzt},Q.hi=function(e){switch(e){case 0:HO(this,0);return;case 1:UO(this,0);return}xI(this,e)},Q.Ib=function(){var e;return this.Db&64?fL(this):(e=new Ty(fL(this)),e.a+=` (x: `,Wm(e,this.a),e.a+=`, y: `,Wm(e,this.b),e.a+=`)`,e.a)},Q.a=0,Q.b=0,R(RK,`ElkBendPointImpl`,559),J(727,LK,{109:1,343:1,174:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return qGe(this,e,t,n)},Q.Ph=function(e,t,n){return JF(this,e,t,n)},Q.Rh=function(e,t,n){return BA(this,e,t,n)},Q.Th=function(e){return _He(this,e)},Q.$h=function(e,t){j$e(this,e,t)},Q.fi=function(){return Wz(),Gzt},Q.hi=function(e){EGe(this,e)},Q.ih=function(){return this.k},Q.jh=function(){return AC(this)},Q.Ib=function(){return RM(this)},Q.k=null,R(RK,`ElkGraphElementImpl`,727),J(728,727,{109:1,343:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return $Ke(this,e,t,n)},Q.Th=function(e){return yqe(this,e)},Q.$h=function(e,t){M$e(this,e,t)},Q.fi=function(){return Wz(),Yzt},Q.hi=function(e){zqe(this,e)},Q.kh=function(){return this.f},Q.lh=function(){return this.g},Q.mh=function(){return this.i},Q.nh=function(){return this.j},Q.oh=function(e,t){jv(this,e,t)},Q.ph=function(e,t){Mv(this,e,t)},Q.Ib=function(){return pI(this)},Q.f=0,Q.g=0,Q.i=0,Q.j=0,R(RK,`ElkShapeImpl`,728),J(729,728,{109:1,343:1,84:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return OXe(this,e,t,n)},Q.Ph=function(e,t,n){return l$e(this,e,t,n)},Q.Rh=function(e,t,n){return u$e(this,e,t,n)},Q.Th=function(e){return UUe(this,e)},Q.$h=function(e,t){B8e(this,e,t)},Q.fi=function(){return Wz(),Uzt},Q.hi=function(e){KYe(this,e)},Q.gh=function(){return!this.d&&(this.d=new Lb(i7,this,8,5)),this.d},Q.hh=function(){return!this.e&&(this.e=new Lb(i7,this,7,4)),this.e},R(RK,`ElkConnectableShapeImpl`,729),J(271,727,{109:1,343:1,85:1,174:1,271:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},fo),Q.xh=function(e){return vQe(this,e)},Q.Ih=function(e,t,n){switch(e){case 3:return Vw(this);case 4:return!this.b&&(this.b=new Lb(r7,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Lb(r7,this,5,8)),this.c;case 6:return!this.a&&(this.a=new I(a7,this,6,6)),this.a;case 7:return ky(),!this.b&&(this.b=new Lb(r7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Lb(r7,this,5,8)),this.c.i<=1));case 8:return ky(),!!rL(this);case 9:return ky(),!!qI(this);case 10:return ky(),!this.b&&(this.b=new Lb(r7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Lb(r7,this,5,8)),this.c.i!=0)}return qGe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16,r>=0?vQe(this,n):this.Cb.Qh(this,-1-r,null,n))),dve(this,F(e,26),n);case 4:return!this.b&&(this.b=new Lb(r7,this,4,7)),xN(this.b,e,n);case 5:return!this.c&&(this.c=new Lb(r7,this,5,8)),xN(this.c,e,n);case 6:return!this.a&&(this.a=new I(a7,this,6,6)),xN(this.a,e,n)}return JF(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 3:return dve(this,null,n);case 4:return!this.b&&(this.b=new Lb(r7,this,4,7)),yP(this.b,e,n);case 5:return!this.c&&(this.c=new Lb(r7,this,5,8)),yP(this.c,e,n);case 6:return!this.a&&(this.a=new I(a7,this,6,6)),yP(this.a,e,n)}return BA(this,e,t,n)},Q.Th=function(e){switch(e){case 3:return!!Vw(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Lb(r7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Lb(r7,this,5,8)),this.c.i<=1));case 8:return rL(this);case 9:return qI(this);case 10:return!this.b&&(this.b=new Lb(r7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Lb(r7,this,5,8)),this.c.i!=0)}return _He(this,e)},Q.$h=function(e,t){switch(e){case 3:EL(this,F(t,26));return;case 4:!this.b&&(this.b=new Lb(r7,this,4,7)),yz(this.b),!this.b&&(this.b=new Lb(r7,this,4,7)),YS(this.b,F(t,18));return;case 5:!this.c&&(this.c=new Lb(r7,this,5,8)),yz(this.c),!this.c&&(this.c=new Lb(r7,this,5,8)),YS(this.c,F(t,18));return;case 6:!this.a&&(this.a=new I(a7,this,6,6)),yz(this.a),!this.a&&(this.a=new I(a7,this,6,6)),YS(this.a,F(t,18));return}j$e(this,e,t)},Q.fi=function(){return Wz(),Wzt},Q.hi=function(e){switch(e){case 3:EL(this,null);return;case 4:!this.b&&(this.b=new Lb(r7,this,4,7)),yz(this.b);return;case 5:!this.c&&(this.c=new Lb(r7,this,5,8)),yz(this.c);return;case 6:!this.a&&(this.a=new I(a7,this,6,6)),yz(this.a);return}EGe(this,e)},Q.Ib=function(){return Gat(this)},R(RK,`ElkEdgeImpl`,271),J(443,LK,{109:1,343:1,170:1,443:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},mo),Q.xh=function(e){return fQe(this,e)},Q.Ih=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new hy(e7,this,5)),this.a;case 6:return Wke(this);case 7:return t?MP(this):this.i;case 8:return t?jP(this):this.f;case 9:return!this.g&&(this.g=new Lb(a7,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Lb(a7,this,10,9)),this.e;case 11:return this.d}return PZe(this,e,t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?fQe(this,n):this.Cb.Qh(this,-1-i,null,n))),fve(this,F(e,85),n);case 9:return!this.g&&(this.g=new Lb(a7,this,9,10)),xN(this.g,e,n);case 10:return!this.e&&(this.e=new Lb(a7,this,10,9)),xN(this.e,e,n)}return a=F(yO((r=F(bA(this,16),29),r||(Wz(),u7)),t),69),a.uk().xk(this,HN(this),t-JS((Wz(),u7)),e,n)},Q.Rh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new hy(e7,this,5)),yP(this.a,e,n);case 6:return fve(this,null,n);case 9:return!this.g&&(this.g=new Lb(a7,this,9,10)),yP(this.g,e,n);case 10:return!this.e&&(this.e=new Lb(a7,this,10,9)),yP(this.e,e,n)}return c2e(this,e,t,n)},Q.Th=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!Wke(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Hje(this,e)},Q.$h=function(e,t){switch(e){case 1:YO(this,k(P(t)));return;case 2:XO(this,k(P(t)));return;case 3:WO(this,k(P(t)));return;case 4:GO(this,k(P(t)));return;case 5:!this.a&&(this.a=new hy(e7,this,5)),yz(this.a),!this.a&&(this.a=new hy(e7,this,5)),YS(this.a,F(t,18));return;case 6:N7e(this,F(t,85));return;case 7:Ck(this,F(t,84));return;case 8:Sk(this,F(t,84));return;case 9:!this.g&&(this.g=new Lb(a7,this,9,10)),yz(this.g),!this.g&&(this.g=new Lb(a7,this,9,10)),YS(this.g,F(t,18));return;case 10:!this.e&&(this.e=new Lb(a7,this,10,9)),yz(this.e),!this.e&&(this.e=new Lb(a7,this,10,9)),YS(this.e,F(t,18));return;case 11:VBe(this,fb(t));return}YUe(this,e,t)},Q.fi=function(){return Wz(),u7},Q.hi=function(e){switch(e){case 1:YO(this,0);return;case 2:XO(this,0);return;case 3:WO(this,0);return;case 4:GO(this,0);return;case 5:!this.a&&(this.a=new hy(e7,this,5)),yz(this.a);return;case 6:N7e(this,null);return;case 7:Ck(this,null);return;case 8:Sk(this,null);return;case 9:!this.g&&(this.g=new Lb(a7,this,9,10)),yz(this.g);return;case 10:!this.e&&(this.e=new Lb(a7,this,10,9)),yz(this.e);return;case 11:VBe(this,null);return}aUe(this,e)},Q.Ib=function(){return e8e(this)},Q.b=0,Q.c=0,Q.d=null,Q.j=0,Q.k=0,R(RK,`ElkEdgeSectionImpl`,443),J(161,118,{109:1,94:1,93:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Ih=function(e,t,n){var r;return e==0?(!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab):OD(this,e-JS(this.fi()),yO((r=F(bA(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n)):(i=F(yO((r=F(bA(this,16),29),r||this.fi()),t),69),i.uk().xk(this,HN(this),t-JS(this.fi()),e,n))},Q.Rh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n)):(i=F(yO((r=F(bA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,HN(this),t-JS(this.fi()),e,n))},Q.Th=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:QT(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.Wh=function(e){return zlt(this,e)},Q.$h=function(e,t){var n;e===0?(!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18))):$M(this,e-JS(this.fi()),yO((n=F(bA(this,16),29),n||this.fi()),e),t)},Q.ai=function(e){UN(this,128,e)},Q.fi=function(){return nB(),LBt},Q.hi=function(e){var t;e===0?(!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab)):dM(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.mi=function(){this.Bb|=1},Q.ni=function(e){return AR(this,e)},Q.Bb=0,R(IK,`EModelElementImpl`,161),J(710,161,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},Ac),Q.oi=function(e,t){return cct(this,e,t)},Q.pi=function(e){var t,n,r,i,a;if(this.a!=LO(e)||e.Bb&256)throw O(new qp(WK+e.zb+VK));for(r=Sw(e);cE(r.a).i!=0;){if(n=F(Ez(r,0,(t=F(U(cE(r.a),0),87),a=t.c,N(a,88)?F(a,29):(nB(),t9))),29),$P(n))return i=LO(n).ti().pi(n),F(i,52)._h(e),i;r=Sw(n)}return(e.D==null?e.B:e.D)==`java.util.Map$Entry`?new wCe(e):new GSe(e)},Q.qi=function(e,t){return Gz(this,e,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.a}return OD(this,e-JS((nB(),Q7)),yO((r=F(bA(this,16),29),r||Q7),e),t,n)},Q.Ph=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 1:return this.a&&(n=F(this.a,52).Qh(this,4,c7,n)),pGe(this,F(e,241),n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),Q7)),t),69),i.uk().xk(this,HN(this),t-JS((nB(),Q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 1:return pGe(this,null,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),Q7)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),Q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return QT(this,e-JS((nB(),Q7)),yO((t=F(bA(this,16),29),t||Q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:q0e(this,F(t,241));return}$M(this,e-JS((nB(),Q7)),yO((n=F(bA(this,16),29),n||Q7),e),t)},Q.fi=function(){return nB(),Q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:q0e(this,null);return}dM(this,e-JS((nB(),Q7)),yO((t=F(bA(this,16),29),t||Q7),e))};var h7,Qzt,$zt;R(IK,`EFactoryImpl`,710),J(1019,710,{109:1,2078:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},ho),Q.oi=function(e,t){switch(e.fk()){case 12:return F(t,147).Og();case 13:return eN(t);default:throw O(new qp(BK+e.ve()+VK))}},Q.pi=function(e){var t,n,r,i,a,o,s,c;switch(e.G==-1&&(e.G=(t=LO(e),t?EP(t.si(),e):-1)),e.G){case 4:return a=new go,a;case 6:return o=new Gf,o;case 7:return s=new Kf,s;case 8:return r=new fo,r;case 9:return n=new po,n;case 10:return i=new mo,i;case 11:return c=new Yne,c;default:throw O(new qp(WK+e.zb+VK))}},Q.qi=function(e,t){switch(e.fk()){case 13:case 12:return null;default:throw O(new qp(BK+e.ve()+VK))}},R(RK,`ElkGraphFactoryImpl`,1019),J(439,161,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Dh=function(){var e,t=(e=F(bA(this,16),29),vke(VR(e||this.fi())));return t==null?(Yh(),Yh(),JBt):new C_e(this,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.ve()}return OD(this,e-JS(this.fi()),yO((r=F(bA(this,16),29),r||this.fi()),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return QT(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:this.ri(fb(t));return}$M(this,e-JS(this.fi()),yO((n=F(bA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return nB(),RBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:this.ri(null);return}dM(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.ve=function(){return this.zb},Q.ri=function(e){Bk(this,e)},Q.Ib=function(){return aM(this)},Q.zb=null,R(IK,`ENamedElementImpl`,439),J(184,439,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},COe),Q.xh=function(e){return gQe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new SS(this,F7,this)),this.rb;case 6:return!this.vb&&(this.vb=new Fb(c7,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?F(this.Cb,241):null:rAe(this)}return OD(this,e-JS((nB(),r9)),yO((r=F(bA(this,16),29),r||r9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 4:return this.sb&&(n=F(this.sb,52).Qh(this,1,s7,n)),LGe(this,F(e,469),n);case 5:return!this.rb&&(this.rb=new SS(this,F7,this)),xN(this.rb,e,n);case 6:return!this.vb&&(this.vb=new Fb(c7,this,6,7)),xN(this.vb,e,n);case 7:return this.Cb&&(n=(i=this.Db>>16,i>=0?gQe(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,7,n)}return a=F(yO((r=F(bA(this,16),29),r||(nB(),r9)),t),69),a.uk().xk(this,HN(this),t-JS((nB(),r9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 4:return LGe(this,null,n);case 5:return!this.rb&&(this.rb=new SS(this,F7,this)),yP(this.rb,e,n);case 6:return!this.vb&&(this.vb=new Fb(c7,this,6,7)),yP(this.vb,e,n);case 7:return kR(this,null,7,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),r9)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),r9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!rAe(this)}return QT(this,e-JS((nB(),r9)),yO((t=F(bA(this,16),29),t||r9),e))},Q.Wh=function(e){return m9e(this,e)||zlt(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:Bk(this,fb(t));return;case 2:Wk(this,fb(t));return;case 3:Uk(this,fb(t));return;case 4:uI(this,F(t,469));return;case 5:!this.rb&&(this.rb=new SS(this,F7,this)),yz(this.rb),!this.rb&&(this.rb=new SS(this,F7,this)),YS(this.rb,F(t,18));return;case 6:!this.vb&&(this.vb=new Fb(c7,this,6,7)),yz(this.vb),!this.vb&&(this.vb=new Fb(c7,this,6,7)),YS(this.vb,F(t,18));return}$M(this,e-JS((nB(),r9)),yO((n=F(bA(this,16),29),n||r9),e),t)},Q.bi=function(e){var t,n;if(e&&this.rb)for(n=new yy(this.rb);n.e!=n.i.gc();)t=lP(n),N(t,360)&&(F(t,360).w=null);UN(this,64,e)},Q.fi=function(){return nB(),r9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:Bk(this,null);return;case 2:Wk(this,null);return;case 3:Uk(this,null);return;case 4:uI(this,null);return;case 5:!this.rb&&(this.rb=new SS(this,F7,this)),yz(this.rb);return;case 6:!this.vb&&(this.vb=new Fb(c7,this,6,7)),yz(this.vb);return}dM(this,e-JS((nB(),r9)),yO((t=F(bA(this,16),29),t||r9),e))},Q.mi=function(){aF(this)},Q.si=function(){return!this.rb&&(this.rb=new SS(this,F7,this)),this.rb},Q.ti=function(){return this.sb},Q.ui=function(){return this.ub},Q.vi=function(){return this.xb},Q.wi=function(){return this.yb},Q.xi=function(e){this.ub=e},Q.Ib=function(){var e;return this.Db&64?aM(this):(e=new Ty(aM(this)),e.a+=` (nsURI: `,rv(e,this.yb),e.a+=`, nsPrefix: `,rv(e,this.xb),e.a+=`)`,e.a)},Q.xb=null,Q.yb=null;var eBt;R(IK,`EPackageImpl`,184),J(556,184,{109:1,2080:1,556:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},x8e),Q.q=!1,Q.r=!1;var tBt=!1;R(RK,`ElkGraphPackageImpl`,556),J(362,728,{109:1,343:1,174:1,157:1,276:1,362:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},go),Q.xh=function(e){return pQe(this,e)},Q.Ih=function(e,t,n){switch(e){case 7:return iAe(this);case 8:return this.a}return $Ke(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===7?(this.Cb&&(n=(r=this.Db>>16,r>=0?pQe(this,n):this.Cb.Qh(this,-1-r,null,n))),xwe(this,F(e,174),n)):JF(this,e,t,n)},Q.Rh=function(e,t,n){return t==7?xwe(this,null,n):BA(this,e,t,n)},Q.Th=function(e){switch(e){case 7:return!!iAe(this);case 8:return!zb(``,this.a)}return yqe(this,e)},Q.$h=function(e,t){switch(e){case 7:f9e(this,F(t,174));return;case 8:NBe(this,fb(t));return}M$e(this,e,t)},Q.fi=function(){return Wz(),Kzt},Q.hi=function(e){switch(e){case 7:f9e(this,null);return;case 8:NBe(this,``);return}zqe(this,e)},Q.Ib=function(){return i4e(this)},Q.a=``,R(RK,`ElkLabelImpl`,362),J(206,729,{109:1,343:1,84:1,174:1,26:1,276:1,206:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},Gf),Q.xh=function(e){return MQe(this,e)},Q.Ih=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new I(m7,this,9,9)),this.c;case 10:return!this.a&&(this.a=new I(p7,this,10,11)),this.a;case 11:return qw(this);case 12:return!this.b&&(this.b=new I(i7,this,12,3)),this.b;case 13:return ky(),!this.a&&(this.a=new I(p7,this,10,11)),this.a.i>0}return OXe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new I(m7,this,9,9)),xN(this.c,e,n);case 10:return!this.a&&(this.a=new I(p7,this,10,11)),xN(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16,r>=0?MQe(this,n):this.Cb.Qh(this,-1-r,null,n))),Jve(this,F(e,26),n);case 12:return!this.b&&(this.b=new I(i7,this,12,3)),xN(this.b,e,n)}return l$e(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new I(m7,this,9,9)),yP(this.c,e,n);case 10:return!this.a&&(this.a=new I(p7,this,10,11)),yP(this.a,e,n);case 11:return Jve(this,null,n);case 12:return!this.b&&(this.b=new I(i7,this,12,3)),yP(this.b,e,n)}return u$e(this,e,t,n)},Q.Th=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!qw(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new I(p7,this,10,11)),this.a.i>0}return UUe(this,e)},Q.$h=function(e,t){switch(e){case 9:!this.c&&(this.c=new I(m7,this,9,9)),yz(this.c),!this.c&&(this.c=new I(m7,this,9,9)),YS(this.c,F(t,18));return;case 10:!this.a&&(this.a=new I(p7,this,10,11)),yz(this.a),!this.a&&(this.a=new I(p7,this,10,11)),YS(this.a,F(t,18));return;case 11:kL(this,F(t,26));return;case 12:!this.b&&(this.b=new I(i7,this,12,3)),yz(this.b),!this.b&&(this.b=new I(i7,this,12,3)),YS(this.b,F(t,18));return}B8e(this,e,t)},Q.fi=function(){return Wz(),qzt},Q.hi=function(e){switch(e){case 9:!this.c&&(this.c=new I(m7,this,9,9)),yz(this.c);return;case 10:!this.a&&(this.a=new I(p7,this,10,11)),yz(this.a);return;case 11:kL(this,null);return;case 12:!this.b&&(this.b=new I(i7,this,12,3)),yz(this.b);return}KYe(this,e)},Q.Ib=function(){return snt(this)},R(RK,`ElkNodeImpl`,206),J(193,729,{109:1,343:1,84:1,174:1,125:1,276:1,193:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},Kf),Q.xh=function(e){return mQe(this,e)},Q.Ih=function(e,t,n){return e==9?Hw(this):OXe(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===9?(this.Cb&&(n=(r=this.Db>>16,r>=0?mQe(this,n):this.Cb.Qh(this,-1-r,null,n))),pve(this,F(e,26),n)):l$e(this,e,t,n)},Q.Rh=function(e,t,n){return t==9?pve(this,null,n):u$e(this,e,t,n)},Q.Th=function(e){return e==9?!!Hw(this):UUe(this,e)},Q.$h=function(e,t){e===9?P7e(this,F(t,26)):B8e(this,e,t)},Q.fi=function(){return Wz(),Jzt},Q.hi=function(e){e===9?P7e(this,null):KYe(this,e)},Q.Ib=function(){return cnt(this)},R(RK,`ElkPortImpl`,193);var nBt=Rx(nq,`BasicEMap/Entry`);J(1092,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,117:1,118:1},Yne),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.Hb=function(){return Py(this)},Q.Ai=function(e){PBe(this,F(e,147))},Q.Ih=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return bP(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return sP(this,e)},Q.$h=function(e,t){switch(e){case 0:PBe(this,F(t,147));return;case 1:ABe(this,t);return}FI(this,e,t)},Q.fi=function(){return Wz(),d7},Q.hi=function(e){switch(e){case 0:PBe(this,null);return;case 1:ABe(this,null);return}xI(this,e)},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?Rk(e):0),this.a},Q.kd=function(){return this.c},Q.zi=function(e){this.a=e},Q.ld=function(e){var t=this.c;return ABe(this,e),t},Q.Ib=function(){var e;return this.Db&64?fL(this):(e=new gm,ov(ov(ov(e,this.b?this.b.Og():hB),EU),wy(this.c)),e.a)},Q.a=-1,Q.c=null;var g7=R(RK,`ElkPropertyToValueMapEntryImpl`,1092);J(981,1,{},_o),R(iq,`JsonAdapter`,981),J(215,63,QB,am),R(iq,`JsonImportException`,215),J(851,1,{},a8e),R(iq,`JsonImporter`,851),J(885,1,{},Yfe),Q.Bi=function(e){d$e(this.a,this.b,F(e,139))},R(iq,`JsonImporter/lambda$0$Type`,885),J(886,1,{},Xfe),Q.Bi=function(e){u6e(this.a,this.b,F(e,139))},R(iq,`JsonImporter/lambda$1$Type`,886),J(894,1,{},Boe),Q.Bi=function(e){wDe(this.a,F(e,149))},R(iq,`JsonImporter/lambda$10$Type`,894),J(896,1,{},Zfe),Q.Bi=function(e){M3e(this.a,this.b,F(e,139))},R(iq,`JsonImporter/lambda$11$Type`,896),J(897,1,{},Qfe),Q.Bi=function(e){N3e(this.a,this.b,F(e,139))},R(iq,`JsonImporter/lambda$12$Type`,897),J(903,1,{},JDe),Q.Bi=function(e){H2e(this.a,this.b,this.c,this.d,F(e,139))},R(iq,`JsonImporter/lambda$13$Type`,903),J(902,1,{},YDe),Q.Bi=function(e){Brt(this.a,this.b,this.c,this.d,F(e,149))},R(iq,`JsonImporter/lambda$14$Type`,902),J(898,1,{},$fe),Q.Bi=function(e){Yve(this.a,this.b,fb(e))},R(iq,`JsonImporter/lambda$15$Type`,898),J(899,1,{},epe),Q.Bi=function(e){Xve(this.a,this.b,fb(e))},R(iq,`JsonImporter/lambda$16$Type`,899),J(900,1,{},tpe),Q.Bi=function(e){qZe(this.b,this.a,F(e,139))},R(iq,`JsonImporter/lambda$17$Type`,900),J(901,1,{},npe),Q.Bi=function(e){JZe(this.b,this.a,F(e,139))},R(iq,`JsonImporter/lambda$18$Type`,901),J(906,1,{},Voe),Q.Bi=function(e){u2e(this.a,F(e,149))},R(iq,`JsonImporter/lambda$19$Type`,906),J(887,1,{},ad),Q.Bi=function(e){FQe(this.a,F(e,139))},R(iq,`JsonImporter/lambda$2$Type`,887),J(904,1,{},Hoe),Q.Bi=function(e){YO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$20$Type`,904),J(905,1,{},Uoe),Q.Bi=function(e){XO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$21$Type`,905),J(909,1,{},Woe),Q.Bi=function(e){l2e(this.a,F(e,149))},R(iq,`JsonImporter/lambda$22$Type`,909),J(907,1,{},Goe),Q.Bi=function(e){WO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$23$Type`,907),J(908,1,{},od),Q.Bi=function(e){GO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$24$Type`,908),J(911,1,{},Koe),Q.Bi=function(e){l1e(this.a,F(e,139))},R(iq,`JsonImporter/lambda$25$Type`,911),J(910,1,{},qoe),Q.Bi=function(e){TDe(this.a,F(e,149))},R(iq,`JsonImporter/lambda$26$Type`,910),J(912,1,jB,rpe),Q.Ad=function(e){$Ie(this.b,this.a,fb(e))},R(iq,`JsonImporter/lambda$27$Type`,912),J(913,1,jB,ipe),Q.Ad=function(e){eLe(this.b,this.a,fb(e))},R(iq,`JsonImporter/lambda$28$Type`,913),J(914,1,{},ape),Q.Bi=function(e){e5e(this.a,this.b,F(e,139))},R(iq,`JsonImporter/lambda$29$Type`,914),J(890,1,{},Joe),Q.Bi=function(e){Pqe(this.a,F(e,149))},R(iq,`JsonImporter/lambda$3$Type`,890),J(915,1,{},ope),Q.Bi=function(e){x7e(this.a,this.b,F(e,139))},R(iq,`JsonImporter/lambda$30$Type`,915),J(916,1,{},Yoe),Q.Bi=function(e){oRe(this.a,P(e))},R(iq,`JsonImporter/lambda$31$Type`,916),J(917,1,{},Xoe),Q.Bi=function(e){lRe(this.a,P(e))},R(iq,`JsonImporter/lambda$32$Type`,917),J(918,1,{},Zoe),Q.Bi=function(e){sRe(this.a,P(e))},R(iq,`JsonImporter/lambda$33$Type`,918),J(919,1,{},Qoe),Q.Bi=function(e){cRe(this.a,P(e))},R(iq,`JsonImporter/lambda$34$Type`,919),J(920,1,{},$oe),Q.Bi=function(e){V0e(this.a,F(e,57))},R(iq,`JsonImporter/lambda$35$Type`,920),J(921,1,{},sd),Q.Bi=function(e){H0e(this.a,F(e,57))},R(iq,`JsonImporter/lambda$36$Type`,921),J(925,1,{},qDe),R(iq,`JsonImporter/lambda$37$Type`,925),J(922,1,jB,rSe),Q.Ad=function(e){xVe(this.a,this.c,this.b,F(e,372))},R(iq,`JsonImporter/lambda$38$Type`,922),J(923,1,jB,spe),Q.Ad=function(e){Tpe(this.a,this.b,F(e,170))},R(iq,`JsonImporter/lambda$39$Type`,923),J(888,1,{},cd),Q.Bi=function(e){YO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$4$Type`,888),J(924,1,jB,cpe),Q.Ad=function(e){Epe(this.a,this.b,F(e,170))},R(iq,`JsonImporter/lambda$40$Type`,924),J(926,1,jB,iSe),Q.Ad=function(e){SVe(this.a,this.b,this.c,F(e,8))},R(iq,`JsonImporter/lambda$41$Type`,926),J(889,1,{},ese),Q.Bi=function(e){XO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$5$Type`,889),J(893,1,{},ld),Q.Bi=function(e){Fqe(this.a,F(e,149))},R(iq,`JsonImporter/lambda$6$Type`,893),J(891,1,{},ud),Q.Bi=function(e){WO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$7$Type`,891),J(892,1,{},dd),Q.Bi=function(e){GO(this.a,k(P(e)))},R(iq,`JsonImporter/lambda$8$Type`,892),J(895,1,{},fd),Q.Bi=function(e){u1e(this.a,F(e,139))},R(iq,`JsonImporter/lambda$9$Type`,895),J(945,1,jB,tse),Q.Ad=function(e){aC(this.a,new oC(fb(e)))},R(iq,`JsonMetaDataConverter/lambda$0$Type`,945),J(946,1,jB,nse),Q.Ad=function(e){eEe(this.a,F(e,244))},R(iq,`JsonMetaDataConverter/lambda$1$Type`,946),J(947,1,jB,rse),Q.Ad=function(e){PAe(this.a,F(e,144))},R(iq,`JsonMetaDataConverter/lambda$2$Type`,947),J(948,1,jB,pd),Q.Ad=function(e){tEe(this.a,F(e,160))},R(iq,`JsonMetaDataConverter/lambda$3$Type`,948),J(244,24,{3:1,35:1,24:1,244:1},H_);var _7,v7,rBt,y7,b7,x7,iBt,aBt,S7=rk(NH,`GraphFeature`,244,GJ,XRe,_Se),oBt;J(11,1,{35:1,147:1},hd,kb,dv,Vv),Q.Dd=function(e){return Bhe(this,F(e,147))},Q.Fb=function(e){return WOe(this,e)},Q.Rg=function(){return cP(this)},Q.Og=function(){return this.b},Q.Hb=function(){return _j(this.b)},Q.Ib=function(){return this.b},R(NH,`Property`,11),J(657,1,dH,md),Q.Le=function(e,t){return kKe(this,F(e,105),F(t,105))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Gl(this)},R(NH,`PropertyHolderComparator`,657),J(698,1,bB,gd),Q.Nb=function(e){jS(this,e)},Q.Pb=function(){return rLe(this)},Q.Qb=function(){xle()},Q.Ob=function(){return!!this.a},R(lq,`ElkGraphUtil/AncestorIterator`,698);var sBt=Rx(nq,`EList`);J(71,56,{20:1,31:1,56:1,18:1,16:1,71:1,61:1}),Q._c=function(e,t){gM(this,e,t)},Q.Ec=function(e){return hD(this,e)},Q.ad=function(e,t){return pUe(this,e,t)},Q.Fc=function(e){return YS(this,e)},Q.Gi=function(){return new Uy(this)},Q.Hi=function(){return new Wy(this)},Q.Ii=function(e){return dk(this,e)},Q.Ji=function(){return!0},Q.Ki=function(e,t){},Q.Li=function(){},Q.Mi=function(e,t){cD(this,e,t)},Q.Ni=function(e,t,n){},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Fb=function(e){return htt(this,e)},Q.Hb=function(){return KHe(this)},Q.Qi=function(){return!1},Q.Jc=function(){return new yy(this)},Q.cd=function(){return new Hy(this)},Q.dd=function(e){var t=this.gc();if(e<0||e>t)throw O(new Rb(e,t));return new LTe(this,e)},Q.Si=function(e,t){this.Ri(e,this.bd(t))},Q.Kc=function(e){return rO(this,e)},Q.Ui=function(e,t){return t},Q.fd=function(e,t){return TP(this,e,t)},Q.Ib=function(){return pqe(this)},Q.Wi=function(){return!0},Q.Xi=function(e,t){return vj(this,t)},R(nq,`AbstractEList`,71),J(67,71,mq,vo,TO,VVe),Q.Ci=function(e,t){return YF(this,e,t)},Q.Di=function(e){return GXe(this,e)},Q.Ei=function(e,t){sM(this,e,t)},Q.Fi=function(e){HE(this,e)},Q.Yi=function(e){return cLe(this,e)},Q.$b=function(){VE(this)},Q.Gc=function(e){return TF(this,e)},Q.Xb=function(e){return U(this,e)},Q.Zi=function(e){var t,n,r;++this.j,n=this.g==null?0:this.g.length,e>n&&(r=this.g,t=n+(n/2|0)+4,t=0&&(this.ed(t),!0)},Q.Vi=function(e,t){return this.Bj(e,this.Xi(e,t))},Q.gc=function(){return this.Cj()},Q.Nc=function(){return this.Dj()},Q.Oc=function(e){return this.Ej(e)},Q.Ib=function(){return this.Fj()},R(nq,`DelegatingEList`,2058),J(2059,2058,jvt),Q.Ci=function(e,t){return lit(this,e,t)},Q.Di=function(e){return this.Ci(this.Cj(),e)},Q.Ei=function(e,t){S8e(this,e,t)},Q.Fi=function(e){X6e(this,e)},Q.Ji=function(){return!this.Kj()},Q.$b=function(){bz(this)},Q.Gj=function(e,t,n,r,i){return new HOe(this,e,t,n,r,i)},Q.Hj=function(e){fA(this.hj(),e)},Q.Ij=function(){return null},Q.Jj=function(){return-1},Q.hj=function(){return null},Q.Kj=function(){return!1},Q.Lj=function(e,t){return t},Q.Mj=function(e,t){return t},Q.Nj=function(){return!1},Q.Oj=function(){return!this.yj()},Q.Ri=function(e,t){var n,r;return this.Nj()?(r=this.Oj(),n=W0e(this,e,t),this.Hj(this.Gj(7,K(t),n,e,r)),n):W0e(this,e,t)},Q.ed=function(e){var t,n,r,i;return this.Nj()?(n=null,r=this.Oj(),t=this.Gj(4,i=jx(this,e),null,e,r),this.Kj()&&i&&(n=this.Mj(i,n)),n?(n.lj(t),n.mj()):this.Hj(t),i):(i=jx(this,e),this.Kj()&&i&&(n=this.Mj(i,null),n&&n.mj()),i)},Q.Vi=function(e,t){return uit(this,e,t)},R(jK,`DelegatingNotifyingListImpl`,2059),J(151,1,Tq),Q.lj=function(e){return g1e(this,e)},Q.mj=function(){LD(this)},Q.ej=function(){return this.d},Q.Ij=function(){return null},Q.Pj=function(){return null},Q.fj=function(e){return-1},Q.gj=function(){return fet(this)},Q.hj=function(){return null},Q.ij=function(){return pet(this)},Q.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},Q.Qj=function(){return!1},Q.kj=function(e){var t,n,r,i,a,o,s,c,l,u,d;switch(this.d){case 1:case 2:switch(i=e.ej(),i){case 1:case 2:if(a=e.hj(),M(a)===M(this.hj())&&this.fj(null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0}case 4:if(i=e.ej(),i===4&&(a=e.hj(),M(a)===M(this.hj())&&this.fj(null)==e.fj(null)))return l=wst(this),c=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.jj(),this.d=6,d=new TO(2),c<=o?(hD(d,this.n),hD(d,e.ij()),this.g=W(A(q9,1),vV,30,15,[this.o=c,o+1])):(hD(d,e.ij()),hD(d,this.n),this.g=W(A(q9,1),vV,30,15,[this.o=o,c])),this.n=d,l||(this.o=-2-this.o-1),!0;break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),M(a)===M(this.hj())&&this.fj(null)==e.fj(null))){for(l=wst(this),o=e.jj(),u=F(this.g,54),r=H(q9,vV,30,u.length+1,15,1),t=0;t>>0,t.toString(16)));switch(r.a+=` (eventType: `,this.d){case 1:r.a+=`SET`;break;case 2:r.a+=`UNSET`;break;case 3:r.a+=`ADD`;break;case 5:r.a+=`ADD_MANY`;break;case 4:r.a+=`REMOVE`;break;case 6:r.a+=`REMOVE_MANY`;break;case 7:r.a+=`MOVE`;break;case 8:r.a+=`REMOVING_ADAPTER`;break;case 9:r.a+=`RESOLVE`;break;default:Gm(r,this.d)}if(Tnt(this)&&(r.a+=`, touch: true`),r.a+=`, position: `,Gm(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=`, notifier: `,nv(r,this.hj()),r.a+=`, feature: `,nv(r,this.Ij()),r.a+=`, oldValue: `,nv(r,pet(this)),r.a+=`, newValue: `,this.d==6&&N(this.g,54)){for(n=F(this.g,54),r.a+=`[`,e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new Vx(this),this.a=this.j),hh(this.b,e)):TF(this,e)},Q.Wi=function(){return!0},Q.a=0,R(nq,`AbstractEList/1`,950),J(306,99,FV,Rb),R(nq,`AbstractEList/BasicIndexOutOfBoundsException`,306),J(42,1,bB,yy),Q.Nb=function(e){jS(this,e)},Q.Vj=function(){if(this.i.j!=this.f)throw O(new Xd)},Q.Wj=function(){return lP(this)},Q.Ob=function(){return this.e!=this.i.gc()},Q.Pb=function(){return this.Wj()},Q.Qb=function(){jF(this)},Q.e=0,Q.f=0,Q.g=-1,R(nq,`AbstractEList/EIterator`,42),J(286,42,EB,Hy,LTe),Q.Qb=function(){jF(this)},Q.Rb=function(e){rJe(this,e)},Q.Xj=function(){var e;try{return e=this.d.Xb(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=WA(e),N(e,99)?(this.Vj(),O(new nf)):O(e)}},Q.Yj=function(e){tZe(this,e)},Q.Sb=function(){return this.e!=0},Q.Tb=function(){return this.e},Q.Ub=function(){return this.Xj()},Q.Vb=function(){return this.e-1},Q.Wb=function(e){this.Yj(e)},R(nq,`AbstractEList/EListIterator`,286),J(355,42,bB,Uy),Q.Wj=function(){return uP(this)},Q.Qb=function(){throw O(new tf)},R(nq,`AbstractEList/NonResolvingEIterator`,355),J(391,286,EB,Wy,Oye),Q.Rb=function(e){throw O(new tf)},Q.Wj=function(){var e;try{return e=this.c.Ti(this.e),this.Vj(),this.g=this.e++,e}catch(e){throw e=WA(e),N(e,99)?(this.Vj(),O(new nf)):O(e)}},Q.Xj=function(){var e;try{return e=this.c.Ti(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=WA(e),N(e,99)?(this.Vj(),O(new nf)):O(e)}},Q.Qb=function(){throw O(new tf)},Q.Wb=function(e){throw O(new tf)},R(nq,`AbstractEList/NonResolvingEListIterator`,391),J(2045,71,Mvt),Q.Ci=function(e,t){var n,r,i=t.gc(),a,o,s,c,l,u,d,f;if(i!=0){for(l=F(bA(this.a,4),129),u=l==null?0:l.length,f=u+i,r=wj(this,f),d=u-e,d>0&&LR(l,e,r,e+i,d),c=t.Jc(),o=0;on)throw O(new Rb(e,n));return new aDe(this,e)},Q.$b=function(){var e,t;++this.j,e=F(bA(this.a,4),129),t=e==null?0:e.length,pP(this,null),cD(this,t,e)},Q.Gc=function(e){var t=F(bA(this.a,4),129),n,r,i,a;if(t!=null){if(e!=null){for(r=t,i=0,a=r.length;i=n)throw O(new Rb(e,n));return t[e]},Q.bd=function(e){var t=F(bA(this.a,4),129),n,r;if(t!=null){if(e!=null){for(n=0,r=t.length;nn)throw O(new Rb(e,n));return new iDe(this,e)},Q.Ri=function(e,t){var n=_Je(this),r,i=n==null?0:n.length;if(e>=i)throw O(new zp(dq+e+fq+i));if(t>=i)throw O(new zp(pq+t+fq+i));return r=n[t],e!=t&&(e0&&LR(e,0,t,0,n),t},Q.Oc=function(e){var t=F(bA(this.a,4),129),n,r=t==null?0:t.length;return r>0&&(e.lengthr&&eC(e,r,null),e};var pBt;R(nq,`ArrayDelegatingEList`,2045),J(1033,42,bB,nFe),Q.Vj=function(){if(this.b.j!=this.f||M(F(bA(this.b.a,4),129))!==M(this.a))throw O(new Xd)},Q.Qb=function(){jF(this),this.a=F(bA(this.b.a,4),129)},R(nq,`ArrayDelegatingEList/EIterator`,1033),J(712,286,EB,fTe,iDe),Q.Vj=function(){if(this.b.j!=this.f||M(F(bA(this.b.a,4),129))!==M(this.a))throw O(new Xd)},Q.Yj=function(e){tZe(this,e),this.a=F(bA(this.b.a,4),129)},Q.Qb=function(){jF(this),this.a=F(bA(this.b.a,4),129)},R(nq,`ArrayDelegatingEList/EListIterator`,712),J(1034,355,bB,rFe),Q.Vj=function(){if(this.b.j!=this.f||M(F(bA(this.b.a,4),129))!==M(this.a))throw O(new Xd)},R(nq,`ArrayDelegatingEList/NonResolvingEIterator`,1034),J(713,391,EB,pTe,aDe),Q.Vj=function(){if(this.b.j!=this.f||M(F(bA(this.b.a,4),129))!==M(this.a))throw O(new Xd)},R(nq,`ArrayDelegatingEList/NonResolvingEListIterator`,713),J(606,306,FV,fv),R(nq,`BasicEList/BasicIndexOutOfBoundsException`,606),J(699,67,mq,mpe),Q._c=function(e,t){throw O(new tf)},Q.Ec=function(e){throw O(new tf)},Q.ad=function(e,t){throw O(new tf)},Q.Fc=function(e){throw O(new tf)},Q.$b=function(){throw O(new tf)},Q.Zi=function(e){throw O(new tf)},Q.Jc=function(){return this.Gi()},Q.cd=function(){return this.Hi()},Q.dd=function(e){return this.Ii(e)},Q.Ri=function(e,t){throw O(new tf)},Q.Si=function(e,t){throw O(new tf)},Q.ed=function(e){throw O(new tf)},Q.Kc=function(e){throw O(new tf)},Q.fd=function(e,t){throw O(new tf)},R(nq,`BasicEList/UnmodifiableEList`,699),J(711,1,{3:1,20:1,18:1,16:1,61:1,587:1}),Q._c=function(e,t){xhe(this,e,F(t,45))},Q.Ec=function(e){return D_e(this,F(e,45))},Q.Ic=function(e){wE(this,e)},Q.Xb=function(e){return F(U(this.c,e),136)},Q.Ri=function(e,t){return F(this.c.Ri(e,t),45)},Q.Si=function(e,t){She(this,e,F(t,45))},Q.ed=function(e){return F(this.c.ed(e),45)},Q.fd=function(e,t){return ZTe(this,e,F(t,45))},Q.gd=function(e){Gk(this,e)},Q.Lc=function(){return new hT(this,16)},Q.Mc=function(){return new Hx(null,new hT(this,16))},Q.ad=function(e,t){return this.c.ad(e,t)},Q.Fc=function(e){return this.c.Fc(e)},Q.$b=function(){this.c.$b()},Q.Gc=function(e){return this.c.Gc(e)},Q.Hc=function(e){return UA(this.c,e)},Q.Zj=function(){var e,t,n;if(this.d==null){for(this.d=H(cBt,Nvt,67,2*this.f+1,0,1),n=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)e=F(t.Wj(),136),PP(this,e);this.e=n}},Q.Fb=function(e){return Bye(this,e)},Q.Hb=function(){return KHe(this.c)},Q.bd=function(e){return this.c.bd(e)},Q.$j=function(){this.c=new ase(this)},Q.dc=function(){return this.f==0},Q.Jc=function(){return this.c.Jc()},Q.cd=function(){return this.c.cd()},Q.dd=function(e){return this.c.dd(e)},Q._j=function(){return oD(this)},Q.ak=function(e,t,n){return new sSe(e,t,n)},Q.bk=function(){return new Co},Q.Kc=function(e){return rBe(this,e)},Q.gc=function(){return this.f},Q.hd=function(e,t){return new mT(this.c,e,t)},Q.Nc=function(){return this.c.Nc()},Q.Oc=function(e){return this.c.Oc(e)},Q.Ib=function(){return pqe(this.c)},Q.e=0,Q.f=0,R(nq,`BasicEMap`,711),J(1028,67,mq,ase),Q.Ki=function(e,t){cf(this,F(t,136))},Q.Ni=function(e,t,n){var r;++(r=this,F(t,136),r).a.e},Q.Oi=function(e,t){Nse(this,F(t,136))},Q.Pi=function(e,t,n){Gge(this,F(t,136),F(n,136))},Q.Mi=function(e,t){cHe(this.a)},R(nq,`BasicEMap/1`,1028),J(1029,67,mq,Co),Q.$i=function(e){return H(mBt,Pvt,612,e,0,1)},R(nq,`BasicEMap/2`,1029),J(1030,wB,TB,ose),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return vN(this.a,e)},Q.Jc=function(){return this.a.f==0?(bb(),E7.a):new sle(this.a)},Q.Kc=function(e){var t=this.a.f;return BN(this.a,e),this.a.f!=t},Q.gc=function(){return this.a.f},R(nq,`BasicEMap/3`,1030),J(1031,31,CB,sse),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return gtt(this.a,e)},Q.Jc=function(){return this.a.f==0?(bb(),E7.a):new cle(this.a)},Q.gc=function(){return this.a.f},R(nq,`BasicEMap/4`,1031),J(1032,wB,TB,cse),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){var t,n,r,i,a,o,s,c,l;if(this.a.f>0&&N(e,45)&&(this.a.Zj(),c=F(e,45),s=c.jd(),i=s==null?0:Rk(s),a=wve(this.a,i),t=this.a.d[a],t)){for(n=F(t.g,374),l=t.i,o=0;o`+this.c},Q.a=0;var mBt=R(nq,`BasicEMap/EntryImpl`,612);J(535,1,{},xo),R(nq,`BasicEMap/View`,535);var E7;J(770,1,{}),Q.Fb=function(e){return V8e((ew(),CY),e)},Q.Hb=function(){return BUe((ew(),CY))},Q.Ib=function(){return sI((ew(),CY))},R(nq,`ECollections/BasicEmptyUnmodifiableEList`,770),J(1303,1,EB,So),Q.Nb=function(e){jS(this,e)},Q.Rb=function(e){throw O(new tf)},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Pb=function(){throw O(new nf)},Q.Tb=function(){return 0},Q.Ub=function(){throw O(new nf)},Q.Vb=function(){return-1},Q.Qb=function(){throw O(new tf)},Q.Wb=function(e){throw O(new tf)},R(nq,`ECollections/BasicEmptyUnmodifiableEList/1`,1303),J(1301,770,{20:1,18:1,16:1,61:1},Vse),Q._c=function(e,t){Ule()},Q.Ec=function(e){return Hle()},Q.ad=function(e,t){return Wle()},Q.Fc=function(e){return Gle()},Q.$b=function(){Kle()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){wE(this,e)},Q.Xb=function(e){return Mpe((ew(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return qle()},Q.Si=function(e,t){Jle()},Q.ed=function(e){return Yle()},Q.Kc=function(e){return Xle()},Q.fd=function(e,t){return Zle()},Q.gc=function(){return 0},Q.gd=function(e){Gk(this,e)},Q.Lc=function(){return new hT(this,16)},Q.Mc=function(){return new Hx(null,new hT(this,16))},Q.hd=function(e,t){return ew(),new mT(CY,e,t)},Q.Nc=function(){return Lwe((ew(),CY))},Q.Oc=function(e){return ew(),WP(CY,e)},R(nq,`ECollections/EmptyUnmodifiableEList`,1301),J(1302,770,{20:1,18:1,16:1,61:1,587:1},Jf),Q._c=function(e,t){Ule()},Q.Ec=function(e){return Hle()},Q.ad=function(e,t){return Wle()},Q.Fc=function(e){return Gle()},Q.$b=function(){Kle()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){wE(this,e)},Q.Xb=function(e){return Mpe((ew(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return qle()},Q.Si=function(e,t){Jle()},Q.ed=function(e){return Yle()},Q.Kc=function(e){return Xle()},Q.fd=function(e,t){return Zle()},Q.gc=function(){return 0},Q.gd=function(e){Gk(this,e)},Q.Lc=function(){return new hT(this,16)},Q.Mc=function(){return new Hx(null,new hT(this,16))},Q.hd=function(e,t){return ew(),new mT(CY,e,t)},Q.Nc=function(){return Lwe((ew(),CY))},Q.Oc=function(e){return ew(),WP(CY,e)},Q._j=function(){return ew(),ew(),wY},R(nq,`ECollections/EmptyUnmodifiableEMap`,1302);var hBt=Rx(nq,`Enumerator`),D7;J(290,1,{290:1},rR),Q.Fb=function(e){var t;return this===e?!0:N(e,290)?(t=F(e,290),this.f==t.f&&rwe(this.i,t.i)&&nwe(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&nwe(this.d,t.d)&&nwe(this.g,t.g)&&nwe(this.e,t.e)&&HYe(this,t)):!1},Q.Hb=function(){return this.f},Q.Ib=function(){return Nrt(this)},Q.f=0;var gBt=0,_Bt=0,vBt=0,yBt=0,bBt=0,xBt=0,SBt=0,CBt=0,wBt=0,TBt,O7=0,k7=0,EBt=0,DBt=0,A7,OBt;R(nq,`URI`,290),J(1091,44,ZV,Yf),Q.yc=function(e,t){return F($w(this,fb(e),F(t,290)),290)},R(nq,`URI/URICache`,1091),J(492,67,mq,wo,Yx),Q.Qi=function(){return!0},R(nq,`UniqueEList`,492),J(579,63,QB,XD),R(nq,`WrappedException`,579);var j7=Rx(kK,Lvt),M7=Rx(kK,Rvt),N7=Rx(kK,zvt),P7=Rx(kK,Bvt),F7=Rx(kK,Vvt),I7=Rx(kK,`EClass`),kBt=Rx(kK,`EDataType`),ABt;J(1199,44,ZV,Xf),Q.xc=function(e){return q_(e)?Mw(this,e):Y_(nS(this.f,e))},R(kK,`EDataType/Internal/ConversionDelegate/Factory/Registry/Impl`,1199);var L7=Rx(kK,`EEnum`),R7=Rx(kK,Hvt),z7=Rx(kK,Uvt),B7=Rx(kK,Wvt),V7,H7=Rx(kK,Gvt),U7=Rx(kK,Kvt);J(Oq,1,{},Zne),Q.Ib=function(){return`NIL`},R(kK,`EStructuralFeature/Internal/DynamicValueHolder/1`,Oq);var jBt;J(1023,44,ZV,Hse),Q.xc=function(e){return q_(e)?Mw(this,e):Y_(nS(this.f,e))},R(kK,`EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl`,1023);var W7=Rx(kK,qvt),G7=Rx(kK,`EValidator/PatternMatcher`),MBt,NBt,K7,q7,J7,Y7,PBt,FBt,IBt,X7,Z7,Q7,$7,e9,LBt,RBt,t9,n9,zBt,r9,i9,a9,o9,BBt,VBt,s9,c9=Rx(kq,`FeatureMap/Entry`);J(534,1,{75:1},U_),Q.Jk=function(){return this.a},Q.kd=function(){return this.b},R(IK,`BasicEObjectImpl/1`,534),J(1022,1,Aq,ppe),Q.Dk=function(e){return RE(this.a,this.b,e)},Q.Oj=function(){return Gke(this.a,this.b)},Q.Wb=function(e){Nke(this.a,this.b,e)},Q.Ek=function(){qEe(this.a,this.b)},R(IK,`BasicEObjectImpl/4`,1022),J(2046,1,{114:1}),Q.Kk=function(e){this.e=e==0?HBt:H(IJ,mB,1,e,5,1)},Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Lk=function(){return this.c},Q.Mk=function(){throw O(new tf)},Q.Nk=function(){throw O(new tf)},Q.Ok=function(){return this.d},Q.Pk=function(){return this.e!=null},Q.Qk=function(e){this.c=e},Q.Rk=function(e){throw O(new tf)},Q.Sk=function(e){throw O(new tf)},Q.Tk=function(e){this.d=e};var HBt;R(IK,`BasicEObjectImpl/EPropertiesHolderBaseImpl`,2046),J(192,2046,{114:1},Mc),Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},R(IK,`BasicEObjectImpl/EPropertiesHolderImpl`,192),J(502,100,j_t,To),Q.rh=function(){return this.f},Q.wh=function(){return this.k},Q.yh=function(e,t){this.g=e,this.i=t},Q.Ah=function(){return this.j&2?this.Xh().Lk():this.fi()},Q.Ch=function(){return this.i},Q.th=function(){return!!(this.j&1)},Q.Mh=function(){return this.g},Q.Sh=function(){return!!(this.j&4)},Q.Xh=function(){return!this.k&&(this.k=new Mc),this.k},Q._h=function(e){this.Xh().Qk(e),e?this.j|=2:this.j&=-3},Q.bi=function(e){this.Xh().Sk(e),e?this.j|=4:this.j&=-5},Q.fi=function(){return(qS(),K7).S},Q.i=0,Q.j=1,R(IK,`EObjectImpl`,502),J(786,502,{109:1,94:1,93:1,57:1,114:1,52:1,100:1},GSe),Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Ah=function(){return this.d},Q.Fh=function(e){return mN(this.d,e)},Q.Hh=function(){return this.d},Q.Lh=function(){return this.e!=null},Q.Xh=function(){return!this.k&&(this.k=new Eo),this.k},Q._h=function(e){this.d=e},Q.ei=function(){var e;return this.e??=(e=JS(this.d),e==0?UBt:H(IJ,mB,1,e,5,1)),this},Q.gi=function(){return 0};var UBt;R(IK,`DynamicEObjectImpl`,786),J(1484,786,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1},wCe),Q.Fb=function(e){return this===e},Q.Hb=function(){return Py(this)},Q._h=function(e){this.d=e,this.b=PL(e,`key`),this.c=PL(e,KK)},Q.yi=function(){var e;return this.a==-1&&(e=tO(this,this.b),this.a=e==null?0:Rk(e)),this.a},Q.jd=function(){return tO(this,this.b)},Q.kd=function(){return tO(this,this.c)},Q.zi=function(e){this.a=e},Q.Ai=function(e){Nke(this,this.b,e)},Q.ld=function(e){var t=tO(this,this.c);return Nke(this,this.c,e),t},Q.a=0,R(IK,`DynamicEObjectImpl/BasicEMapEntry`,1484),J(1485,1,{114:1},Eo),Q.Kk=function(e){throw O(new tf)},Q.ii=function(e){throw O(new tf)},Q.ji=function(e,t){throw O(new tf)},Q.ki=function(e){throw O(new tf)},Q.Lk=function(){throw O(new tf)},Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Ok=function(){return this.c},Q.Pk=function(){throw O(new tf)},Q.Qk=function(e){throw O(new tf)},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},Q.Tk=function(e){this.c=e},R(IK,`DynamicEObjectImpl/DynamicEPropertiesHolderImpl`,1485),J(505,161,{109:1,94:1,93:1,588:1,158:1,57:1,114:1,52:1,100:1,505:1,161:1,117:1,118:1},Do),Q.xh=function(e){return _Qe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new sb((nB(),o9),d9,this)),this.b):(!this.b&&(this.b=new sb((nB(),o9),d9,this)),oD(this.b));case 3:return aAe(this);case 4:return!this.a&&(this.a=new hy(Q5,this,4)),this.a;case 5:return!this.c&&(this.c=new _y(Q5,this,5)),this.c}return OD(this,e-JS((nB(),q7)),yO((r=F(bA(this,16),29),r||q7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 3:return this.Cb&&(n=(i=this.Db>>16,i>=0?_Qe(this,n):this.Cb.Qh(this,-1-i,null,n))),Swe(this,F(e,158),n)}return a=F(yO((r=F(bA(this,16),29),r||(nB(),q7)),t),69),a.uk().xk(this,HN(this),t-JS((nB(),q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 2:return!this.b&&(this.b=new sb((nB(),o9),d9,this)),Vb(this.b,e,n);case 3:return Swe(this,null,n);case 4:return!this.a&&(this.a=new hy(Q5,this,4)),yP(this.a,e,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),q7)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!aAe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return QT(this,e-JS((nB(),q7)),yO((t=F(bA(this,16),29),t||q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:PCe(this,fb(t));return;case 2:!this.b&&(this.b=new sb((nB(),o9),d9,this)),oA(this.b,t);return;case 3:p9e(this,F(t,158));return;case 4:!this.a&&(this.a=new hy(Q5,this,4)),yz(this.a),!this.a&&(this.a=new hy(Q5,this,4)),YS(this.a,F(t,18));return;case 5:!this.c&&(this.c=new _y(Q5,this,5)),yz(this.c),!this.c&&(this.c=new _y(Q5,this,5)),YS(this.c,F(t,18));return}$M(this,e-JS((nB(),q7)),yO((n=F(bA(this,16),29),n||q7),e),t)},Q.fi=function(){return nB(),q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:MBe(this,null);return;case 2:!this.b&&(this.b=new sb((nB(),o9),d9,this)),this.b.c.$b();return;case 3:p9e(this,null);return;case 4:!this.a&&(this.a=new hy(Q5,this,4)),yz(this.a);return;case 5:!this.c&&(this.c=new _y(Q5,this,5)),yz(this.c);return}dM(this,e-JS((nB(),q7)),yO((t=F(bA(this,16),29),t||q7),e))},Q.Ib=function(){return ZGe(this)},Q.d=null,R(IK,`EAnnotationImpl`,505),J(142,711,Jvt,yD),Q.Ei=function(e,t){zme(this,e,F(t,45))},Q.Uk=function(e,t){return Fye(this,F(e,45),t)},Q.Yi=function(e){return F(F(this.c,72).Yi(e),136)},Q.Gi=function(){return F(this.c,72).Gi()},Q.Hi=function(){return F(this.c,72).Hi()},Q.Ii=function(e){return F(this.c,72).Ii(e)},Q.Vk=function(e,t){return Vb(this,e,t)},Q.Dk=function(e){return F(this.c,78).Dk(e)},Q.$j=function(){},Q.Oj=function(){return F(this.c,78).Oj()},Q.ak=function(e,t,n){var r=F(LO(this.b).ti().pi(this.b),136);return r.zi(e),r.Ai(t),r.ld(n),r},Q.bk=function(){return new Td(this)},Q.Wb=function(e){oA(this,e)},Q.Ek=function(){F(this.c,78).Ek()},R(kq,`EcoreEMap`,142),J(169,142,Jvt,sb),Q.Zj=function(){var e,t,n,r,i,a;if(this.d==null){for(a=H(cBt,Nvt,67,2*this.f+1,0,1),n=this.c.Jc();n.e!=n.i.gc();)t=F(n.Wj(),136),r=t.yi(),i=(r&lB)%a.length,e=a[i],!e&&(e=a[i]=new Td(this)),e.Ec(t);this.d=a}},R(IK,`EAnnotationImpl/1`,169),J(293,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,470:1,52:1,100:1,161:1,293:1,117:1,118:1}),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ky(),!!(this.Bb&256);case 3:return ky(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return ky(),!!this.Hk();case 7:return ky(),i=this.s,i>=1;case 8:return t?vF(this):this.r;case 9:return this.q}return OD(this,e-JS(this.fi()),yO((r=F(bA(this,16),29),r||this.fi()),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 9:return nEe(this,n)}return i=F(yO((r=F(bA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,HN(this),t-JS(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&sC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&sC(this.q).i==0)}return QT(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:this.ri(fb(t));return;case 2:fM(this,Xp(db(t)));return;case 3:pM(this,Xp(db(t)));return;case 4:QO(this,F(t,15).a);return;case 5:this.Xk(F(t,15).a);return;case 8:Wj(this,F(t,143));return;case 9:r=XF(this,F(t,87),null),r&&r.mj();return}$M(this,e-JS(this.fi()),yO((n=F(bA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return nB(),VBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:this.ri(null);return;case 2:fM(this,!0);return;case 3:pM(this,!0);return;case 4:QO(this,0);return;case 5:this.Xk(1);return;case 8:Wj(this,null);return;case 9:n=XF(this,null,null),n&&n.mj();return}dM(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.mi=function(){vF(this),this.Bb|=1},Q.Fk=function(){return vF(this)},Q.Gk=function(){return this.t},Q.Hk=function(){var e=this.t;return e>1||e==-1},Q.Qi=function(){return!!(this.Bb&512)},Q.Wk=function(e,t){return zGe(this,e,t)},Q.Xk=function(e){$O(this,e)},Q.Ib=function(){return t8e(this)},Q.s=0,Q.t=1,R(IK,`ETypedElementImpl`,293),J(451,293,{109:1,94:1,93:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,451:1,293:1,117:1,118:1,682:1}),Q.xh=function(e){return BZe(this,e)},Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ky(),!!(this.Bb&256);case 3:return ky(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return ky(),!!this.Hk();case 7:return ky(),i=this.s,i>=1;case 8:return t?vF(this):this.r;case 9:return this.q;case 10:return ky(),(this.Bb&Oq)!=0;case 11:return ky(),(this.Bb&LK)!=0;case 12:return ky(),(this.Bb&zV)!=0;case 13:return this.j;case 14:return DL(this);case 15:return ky(),(this.Bb&jq)!=0;case 16:return ky(),(this.Bb&kB)!=0;case 17:return Jw(this)}return OD(this,e-JS(this.fi()),yO((r=F(bA(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 17:return this.Cb&&(n=(i=this.Db>>16,i>=0?BZe(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,17,n)}return a=F(yO((r=F(bA(this,16),29),r||this.fi()),t),69),a.uk().xk(this,HN(this),t-JS(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 9:return nEe(this,n);case 17:return kR(this,null,17,n)}return i=F(yO((r=F(bA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,HN(this),t-JS(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&sC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&sC(this.q).i==0);case 10:return(this.Bb&Oq)==0;case 11:return(this.Bb&LK)!=0;case 12:return(this.Bb&zV)!=0;case 13:return this.j!=null;case 14:return DL(this)!=null;case 15:return(this.Bb&jq)!=0;case 16:return(this.Bb&kB)!=0;case 17:return!!Jw(this)}return QT(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:uT(this,fb(t));return;case 2:fM(this,Xp(db(t)));return;case 3:pM(this,Xp(db(t)));return;case 4:QO(this,F(t,15).a);return;case 5:this.Xk(F(t,15).a);return;case 8:Wj(this,F(t,143));return;case 9:r=XF(this,F(t,87),null),r&&r.mj();return;case 10:kM(this,Xp(db(t)));return;case 11:jM(this,Xp(db(t)));return;case 12:AM(this,Xp(db(t)));return;case 13:bpe(this,fb(t));return;case 15:OM(this,Xp(db(t)));return;case 16:KM(this,Xp(db(t)));return}$M(this,e-JS(this.fi()),yO((n=F(bA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return nB(),BBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:N(this.Cb,88)&&II(jE(F(this.Cb,88)),4),Bk(this,null);return;case 2:fM(this,!0);return;case 3:pM(this,!0);return;case 4:QO(this,0);return;case 5:this.Xk(1);return;case 8:Wj(this,null);return;case 9:n=XF(this,null,null),n&&n.mj();return;case 10:kM(this,!0);return;case 11:jM(this,!1);return;case 12:AM(this,!1);return;case 13:this.i=null,wk(this,null);return;case 15:OM(this,!1);return;case 16:KM(this,!1);return}dM(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.mi=function(){FC(GD((TI(),p9),this)),vF(this),this.Bb|=1},Q.nk=function(){return this.f},Q.gk=function(){return DL(this)},Q.ok=function(){return Jw(this)},Q.sk=function(){return null},Q.Yk=function(){return this.k},Q.Jj=function(){return this.n},Q.tk=function(){return FF(this)},Q.uk=function(){var e,t,n,r,i,a,o,s,c;return this.p||(n=Jw(this),(n.i??VR(n),n.i).length,r=this.sk(),r&&JS(Jw(r)),i=vF(this),o=i.ik(),e=o?o.i&1?o==J9?iY:o==q9?lY:o==Q9?cY:o==Z9?sY:o==Y9?uY:o==$9?fY:o==X9?aY:oY:o:null,t=DL(this),s=i.gk(),HKe(this),(this.Bb&kB)!=0&&((a=f$e((TI(),p9),n))&&a!=this||(a=bT(GD(p9,this))))?this.p=new _pe(this,a):this.Hk()?this.$k()?this.p=r?(this.Bb&jq)==0?e?this._k()?new QC(49,e,this,r):new QC(7,e,this,r):this._k()?new dE(48,this,r):new dE(6,this,r):e?this._k()?new QC(47,e,this,r):new QC(5,e,this,r):this._k()?new dE(46,this,r):new dE(4,this,r):(this.Bb&jq)==0?e?e==VJ?new sx(41,nBt,this):this._k()?new sx(45,e,this):new sx(3,e,this):this._k()?new _w(44,this):new _w(2,this):e?e==VJ?new sx(50,nBt,this):this._k()?new sx(43,e,this):new sx(1,e,this):this._k()?new _w(42,this):new _w(0,this):N(i,159)?this.p=e==c9?new _w(40,this):this.Bb&512?(this.Bb&jq)==0?e?new sx(11,e,this):new _w(10,this):e?new sx(9,e,this):new _w(8,this):(this.Bb&jq)==0?e?new sx(15,e,this):new _w(14,this):e?new sx(13,e,this):new _w(12,this):r?(c=r.t,this.p=c>1||c==-1?this._k()?(this.Bb&jq)==0?e?new QC(27,e,this,r):new dE(26,this,r):e?new QC(25,e,this,r):new dE(24,this,r):(this.Bb&jq)==0?e?new QC(31,e,this,r):new dE(30,this,r):e?new QC(29,e,this,r):new dE(28,this,r):this._k()?(this.Bb&jq)==0?e?new QC(35,e,this,r):new dE(34,this,r):e?new QC(33,e,this,r):new dE(32,this,r):(this.Bb&jq)==0?e?new QC(39,e,this,r):new dE(38,this,r):e?new QC(37,e,this,r):new dE(36,this,r)):this.p=this._k()?(this.Bb&jq)==0?e?new sx(19,e,this):new _w(18,this):e?new sx(17,e,this):new _w(16,this):(this.Bb&jq)==0?e?new sx(23,e,this):new _w(22,this):e?new sx(21,e,this):new _w(20,this):this.p=this.Zk()?this._k()?new lSe(F(i,29),this,r):new xke(F(i,29),this,r):N(i,159)?e==c9?new _w(40,this):(this.Bb&jq)==0?e?new Twe(t,s,this,(ON(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new XDe(F(i,159),t,s,this):e?new Ewe(t,s,this,(ON(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new ZDe(F(i,159),t,s,this):this.$k()?r?(this.Bb&jq)==0?this._k()?new fSe(F(i,29),this,r):new cx(F(i,29),this,r):this._k()?new mSe(F(i,29),this,r):new pSe(F(i,29),this,r):(this.Bb&jq)==0?this._k()?new P_e(F(i,29),this):new cb(F(i,29),this):this._k()?new I_e(F(i,29),this):new F_e(F(i,29),this):this._k()?r?(this.Bb&jq)==0?new uSe(F(i,29),this,r):new hSe(F(i,29),this,r):(this.Bb&jq)==0?new M_e(F(i,29),this):new L_e(F(i,29),this):r?(this.Bb&jq)==0?new dSe(F(i,29),this,r):new gSe(F(i,29),this,r):(this.Bb&jq)==0?new Jx(F(i,29),this):new N_e(F(i,29),this)),this.p},Q.pk=function(){return(this.Bb&Oq)!=0},Q.Zk=function(){return!1},Q.$k=function(){return!1},Q.qk=function(){return(this.Bb&kB)!=0},Q.vk=function(){return iO(this)},Q._k=function(){return!1},Q.rk=function(){return(this.Bb&jq)!=0},Q.al=function(e){this.k=e},Q.ri=function(e){uT(this,e)},Q.Ib=function(){return oR(this)},Q.e=!1,Q.n=0,R(IK,`EStructuralFeatureImpl`,451),J(335,451,{109:1,94:1,93:1,38:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,335:1,161:1,451:1,293:1,117:1,118:1,682:1},Zf),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ky(),!!(this.Bb&256);case 3:return ky(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return ky(),!!d6e(this);case 7:return ky(),i=this.s,i>=1;case 8:return t?vF(this):this.r;case 9:return this.q;case 10:return ky(),(this.Bb&Oq)!=0;case 11:return ky(),(this.Bb&LK)!=0;case 12:return ky(),(this.Bb&zV)!=0;case 13:return this.j;case 14:return DL(this);case 15:return ky(),(this.Bb&jq)!=0;case 16:return ky(),(this.Bb&kB)!=0;case 17:return Jw(this);case 18:return ky(),(this.Bb&FK)!=0;case 19:return t?RA(this):VFe(this)}return OD(this,e-JS((nB(),J7)),yO((r=F(bA(this,16),29),r||J7),e),t,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return d6e(this);case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&sC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&sC(this.q).i==0);case 10:return(this.Bb&Oq)==0;case 11:return(this.Bb&LK)!=0;case 12:return(this.Bb&zV)!=0;case 13:return this.j!=null;case 14:return DL(this)!=null;case 15:return(this.Bb&jq)!=0;case 16:return(this.Bb&kB)!=0;case 17:return!!Jw(this);case 18:return(this.Bb&FK)!=0;case 19:return!!VFe(this)}return QT(this,e-JS((nB(),J7)),yO((t=F(bA(this,16),29),t||J7),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:uT(this,fb(t));return;case 2:fM(this,Xp(db(t)));return;case 3:pM(this,Xp(db(t)));return;case 4:QO(this,F(t,15).a);return;case 5:vle(this,F(t,15).a);return;case 8:Wj(this,F(t,143));return;case 9:r=XF(this,F(t,87),null),r&&r.mj();return;case 10:kM(this,Xp(db(t)));return;case 11:jM(this,Xp(db(t)));return;case 12:AM(this,Xp(db(t)));return;case 13:bpe(this,fb(t));return;case 15:OM(this,Xp(db(t)));return;case 16:KM(this,Xp(db(t)));return;case 18:qM(this,Xp(db(t)));return}$M(this,e-JS((nB(),J7)),yO((n=F(bA(this,16),29),n||J7),e),t)},Q.fi=function(){return nB(),J7},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:N(this.Cb,88)&&II(jE(F(this.Cb,88)),4),Bk(this,null);return;case 2:fM(this,!0);return;case 3:pM(this,!0);return;case 4:QO(this,0);return;case 5:this.b=0,$O(this,1);return;case 8:Wj(this,null);return;case 9:n=XF(this,null,null),n&&n.mj();return;case 10:kM(this,!0);return;case 11:jM(this,!1);return;case 12:AM(this,!1);return;case 13:this.i=null,wk(this,null);return;case 15:OM(this,!1);return;case 16:KM(this,!1);return;case 18:qM(this,!1);return}dM(this,e-JS((nB(),J7)),yO((t=F(bA(this,16),29),t||J7),e))},Q.mi=function(){RA(this),FC(GD((TI(),p9),this)),vF(this),this.Bb|=1},Q.Hk=function(){return d6e(this)},Q.Wk=function(e,t){return this.b=0,this.a=null,zGe(this,e,t)},Q.Xk=function(e){vle(this,e)},Q.Ib=function(){var e;return this.Db&64?oR(this):(e=new Ty(oR(this)),e.a+=` (iD: `,Km(e,(this.Bb&FK)!=0),e.a+=`)`,e.a)},Q.b=0,R(IK,`EAttributeImpl`,335),J(360,439,{109:1,94:1,93:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1}),Q.bl=function(e){return e.Ah()==this},Q.xh=function(e){return nF(this,e)},Q.yh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return $P(this);case 4:return this.gk();case 5:return this.F;case 6:return t?LO(this):Kw(this);case 7:return!this.A&&(this.A=new gy(W7,this,7)),this.A}return OD(this,e-JS(this.fi()),yO((r=F(bA(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?nF(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,6,n)}return a=F(yO((r=F(bA(this,16),29),r||this.fi()),t),69),a.uk().xk(this,HN(this),t-JS(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 6:return kR(this,null,6,n);case 7:return!this.A&&(this.A=new gy(W7,this,7)),yP(this.A,e,n)}return i=F(yO((r=F(bA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,HN(this),t-JS(this.fi()),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!$P(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Kw(this);case 7:return!!this.A&&this.A.i!=0}return QT(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:dT(this,fb(t));return;case 2:Fv(this,fb(t));return;case 5:Oz(this,fb(t));return;case 7:!this.A&&(this.A=new gy(W7,this,7)),yz(this.A),!this.A&&(this.A=new gy(W7,this,7)),YS(this.A,F(t,18));return}$M(this,e-JS(this.fi()),yO((n=F(bA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return nB(),PBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:N(this.Cb,184)&&(F(this.Cb,184).tb=null),Bk(this,null);return;case 2:Ij(this,null),ek(this,this.D);return;case 5:Oz(this,null);return;case 7:!this.A&&(this.A=new gy(W7,this,7)),yz(this.A);return}dM(this,e-JS(this.fi()),yO((t=F(bA(this,16),29),t||this.fi()),e))},Q.fk=function(){var e;return this.G==-1&&(this.G=(e=LO(this),e?EP(e.si(),this):-1)),this.G},Q.gk=function(){return null},Q.hk=function(){return LO(this)},Q.cl=function(){return this.v},Q.ik=function(){return $P(this)},Q.jk=function(){return this.D==null?this.B:this.D},Q.kk=function(){return this.F},Q.dk=function(e){return PR(this,e)},Q.dl=function(e){this.v=e},Q.el=function(e){dVe(this,e)},Q.fl=function(e){this.C=e},Q.ri=function(e){dT(this,e)},Q.Ib=function(){return gN(this)},Q.C=null,Q.D=null,Q.G=-1,R(IK,`EClassifierImpl`,360),J(88,360,{109:1,94:1,93:1,29:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,88:1,360:1,161:1,471:1,117:1,118:1,681:1},jc),Q.bl=function(e){return fye(this,e.Ah())},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return $P(this);case 4:return null;case 5:return this.F;case 6:return t?LO(this):Kw(this);case 7:return!this.A&&(this.A=new gy(W7,this,7)),this.A;case 8:return ky(),!!(this.Bb&256);case 9:return ky(),!!(this.Bb&512);case 10:return Sw(this);case 11:return!this.q&&(this.q=new I(B7,this,11,10)),this.q;case 12:return tz(this);case 13:return ZR(this);case 14:return ZR(this),this.r;case 15:return tz(this),this.k;case 16:return R4e(this);case 17:return qR(this);case 18:return VR(this);case 19:return CL(this);case 20:return tz(this),this.o;case 21:return!this.s&&(this.s=new I(N7,this,21,17)),this.s;case 22:return cE(this);case 23:return eR(this)}return OD(this,e-JS((nB(),Y7)),yO((r=F(bA(this,16),29),r||Y7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?nF(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,6,n);case 11:return!this.q&&(this.q=new I(B7,this,11,10)),xN(this.q,e,n);case 21:return!this.s&&(this.s=new I(N7,this,21,17)),xN(this.s,e,n)}return a=F(yO((r=F(bA(this,16),29),r||(nB(),Y7)),t),69),a.uk().xk(this,HN(this),t-JS((nB(),Y7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 6:return kR(this,null,6,n);case 7:return!this.A&&(this.A=new gy(W7,this,7)),yP(this.A,e,n);case 11:return!this.q&&(this.q=new I(B7,this,11,10)),yP(this.q,e,n);case 21:return!this.s&&(this.s=new I(N7,this,21,17)),yP(this.s,e,n);case 22:return yP(cE(this),e,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),Y7)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),Y7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!$P(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Kw(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!!(this.Bb&256);case 9:return!!(this.Bb&512);case 10:return!!this.u&&cE(this.u.a).i!=0&&!(this.n&&LP(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return tz(this).i!=0;case 13:return ZR(this).i!=0;case 14:return ZR(this),this.r.i!=0;case 15:return tz(this),this.k.i!=0;case 16:return R4e(this).i!=0;case 17:return qR(this).i!=0;case 18:return VR(this).i!=0;case 19:return CL(this).i!=0;case 20:return tz(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&LP(this.n);case 23:return eR(this).i!=0}return QT(this,e-JS((nB(),Y7)),yO((t=F(bA(this,16),29),t||Y7),e))},Q.Wh=function(e){return(this.i==null||this.q&&this.q.i!=0?null:PL(this,e))||zlt(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:dT(this,fb(t));return;case 2:Fv(this,fb(t));return;case 5:Oz(this,fb(t));return;case 7:!this.A&&(this.A=new gy(W7,this,7)),yz(this.A),!this.A&&(this.A=new gy(W7,this,7)),YS(this.A,F(t,18));return;case 8:YGe(this,Xp(db(t)));return;case 9:XGe(this,Xp(db(t)));return;case 10:bz(Sw(this)),YS(Sw(this),F(t,18));return;case 11:!this.q&&(this.q=new I(B7,this,11,10)),yz(this.q),!this.q&&(this.q=new I(B7,this,11,10)),YS(this.q,F(t,18));return;case 21:!this.s&&(this.s=new I(N7,this,21,17)),yz(this.s),!this.s&&(this.s=new I(N7,this,21,17)),YS(this.s,F(t,18));return;case 22:yz(cE(this)),YS(cE(this),F(t,18));return}$M(this,e-JS((nB(),Y7)),yO((n=F(bA(this,16),29),n||Y7),e),t)},Q.fi=function(){return nB(),Y7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:N(this.Cb,184)&&(F(this.Cb,184).tb=null),Bk(this,null);return;case 2:Ij(this,null),ek(this,this.D);return;case 5:Oz(this,null);return;case 7:!this.A&&(this.A=new gy(W7,this,7)),yz(this.A);return;case 8:YGe(this,!1);return;case 9:XGe(this,!1);return;case 10:this.u&&bz(this.u);return;case 11:!this.q&&(this.q=new I(B7,this,11,10)),yz(this.q);return;case 21:!this.s&&(this.s=new I(N7,this,21,17)),yz(this.s);return;case 22:this.n&&yz(this.n);return}dM(this,e-JS((nB(),Y7)),yO((t=F(bA(this,16),29),t||Y7),e))},Q.mi=function(){var e,t;if(tz(this),ZR(this),R4e(this),qR(this),VR(this),CL(this),eR(this),VE(wSe(jE(this))),this.s)for(e=0,t=this.s.i;e=0;--t)U(this,t);return Hqe(this,e)},Q.Ek=function(){yz(this)},Q.Xi=function(e,t){return tBe(this,e,t)},R(kq,`EcoreEList`,624),J(491,624,Bq,yx),Q.Ji=function(){return!1},Q.Jj=function(){return this.c},Q.Kj=function(){return!1},Q.ml=function(){return!0},Q.Qi=function(){return!0},Q.Ui=function(e,t){return t},Q.Wi=function(){return!1},Q.c=0,R(kq,`EObjectEList`,491),J(81,491,Bq,hy),Q.Kj=function(){return!0},Q.kl=function(){return!1},Q.$k=function(){return!0},R(kq,`EObjectContainmentEList`,81),J(544,81,Bq,my),Q.Li=function(){this.b=!0},Q.Oj=function(){return this.b},Q.Ek=function(){var e;yz(this),Ev(this.e)?(e=this.b,this.b=!1,fA(this.e,new NE(this.e,2,this.c,e,!1))):this.b=!1},Q.b=!1,R(kq,`EObjectContainmentEList/Unsettable`,544),J(1131,544,Bq,Cwe),Q.Ri=function(e,t){var n=F(EM(this,e,t),87),r;return Ev(this.e)&&lf(this,new xD(this.a,7,(nB(),FBt),K(t),(r=n.c,N(r,88)?F(r,29):t9),e)),n},Q.Sj=function(e,t){return Xqe(this,F(e,87),t)},Q.Tj=function(e,t){return Yqe(this,F(e,87),t)},Q.Uj=function(e,t,n){return D$e(this,F(e,87),F(t,87),n)},Q.Gj=function(e,t,n,r,i){switch(e){case 3:return eT(this,e,t,n,r,this.i>1);case 5:return eT(this,e,t,n,r,this.i-F(n,16).gc()>0);default:return new ZD(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return LP(this)},Q.Ek=function(){yz(this)},R(IK,`EClassImpl/1`,1131),J(1145,1144,Avt),Q.bj=function(e){var t,n=e.ej(),r,i,a,o,s;if(n!=8){if(r=SYe(e),r==0)switch(n){case 1:case 9:s=e.ij(),s!=null&&(t=jE(F(s,471)),!t.c&&(t.c=new Vo),rO(t.c,e.hj())),o=e.gj(),o!=null&&(i=F(o,471),i.Bb&1||(t=jE(i),!t.c&&(t.c=new Vo),hD(t.c,F(e.hj(),29))));break;case 3:o=e.gj(),o!=null&&(i=F(o,471),i.Bb&1||(t=jE(i),!t.c&&(t.c=new Vo),hD(t.c,F(e.hj(),29))));break;case 5:if(o=e.gj(),o!=null)for(a=F(o,18).Jc();a.Ob();)i=F(a.Pb(),471),i.Bb&1||(t=jE(i),!t.c&&(t.c=new Vo),hD(t.c,F(e.hj(),29)));break;case 4:s=e.ij(),s!=null&&(i=F(s,471),i.Bb&1||(t=jE(i),!t.c&&(t.c=new Vo),rO(t.c,e.hj())));break;case 6:if(s=e.ij(),s!=null)for(a=F(s,18).Jc();a.Ob();)i=F(a.Pb(),471),i.Bb&1||(t=jE(i),!t.c&&(t.c=new Vo),rO(t.c,e.hj()))}this.ol(r)}},Q.ol=function(e){Ptt(this,e)},Q.b=63,R(IK,`ESuperAdapter`,1145),J(1146,1145,Avt,use),Q.ol=function(e){II(this,e)},R(IK,`EClassImpl/10`,1146),J(1135,699,Bq),Q.Ci=function(e,t){return YF(this,e,t)},Q.Di=function(e){return GXe(this,e)},Q.Ei=function(e,t){sM(this,e,t)},Q.Fi=function(e){HE(this,e)},Q.Yi=function(e){return cLe(this,e)},Q.Vi=function(e,t){return nO(this,e,t)},Q.Uk=function(e,t){throw O(new tf)},Q.Gi=function(){return new Uy(this)},Q.Hi=function(){return new Wy(this)},Q.Ii=function(e){return dk(this,e)},Q.Vk=function(e,t){throw O(new tf)},Q.Dk=function(e){return this},Q.Oj=function(){return this.i!=0},Q.Wb=function(e){throw O(new tf)},Q.Ek=function(){throw O(new tf)},R(kq,`EcoreEList/UnmodifiableEList`,1135),J(333,1135,Bq,pv),Q.Wi=function(){return!1},R(kq,`EcoreEList/UnmodifiableEList/FastCompare`,333),J(1138,333,Bq,OUe),Q.bd=function(e){var t,n,r;if(N(e,179)&&(t=F(e,179),n=t.Jj(),n!=-1)){for(r=this.i;n4){if(this.dk(e)){if(this.$k()){if(r=F(e,52),n=r.Bh(),s=n==this.b&&(this.kl()?r.vh(r.Ch(),F(yO(Cw(this.b),this.Jj()).Fk(),29).ik())==NP(F(yO(Cw(this.b),this.Jj()),19)).n:-1-r.Ch()==this.Jj()),this.ll()&&!s&&!n&&r.Gh()){for(i=0;i1||r==-1)):!1},Q.kl=function(){var e,t=yO(Cw(this.b),this.Jj()),n;return N(t,103)?(e=F(t,19),n=NP(e),!!n):!1},Q.ll=function(){var e,t=yO(Cw(this.b),this.Jj());return N(t,103)?(e=F(t,19),(e.Bb&VV)!=0):!1},Q.bd=function(e){var t,n,r=this.xj(e),i;if(r>=0)return r;if(this.ml()){for(n=0,i=this.Cj();n=0;--e)Ez(this,e,this.vj(e));return this.Dj()},Q.Oc=function(e){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)Ez(this,t,this.vj(t));return this.Ej(e)},Q.Ek=function(){bz(this)},Q.Xi=function(e,t){return _Le(this,e,t)},R(kq,`DelegatingEcoreEList`,744),J(1141,744,eyt,_ve),Q.oj=function(e,t){j_e(this,e,F(t,29))},Q.pj=function(e){Fme(this,F(e,29))},Q.vj=function(e){var t=F(U(cE(this.a),e),87).c;return N(t,88)?F(t,29):(nB(),t9)},Q.Aj=function(e){var t=F(JL(cE(this.a),e),87).c;return N(t,88)?F(t,29):(nB(),t9)},Q.Bj=function(e,t){return qXe(this,e,F(t,29))},Q.Ji=function(){return!1},Q.Gj=function(e,t,n,r,i){return null},Q.qj=function(){return new fse(this)},Q.rj=function(){yz(cE(this.a))},Q.sj=function(e){return $Ge(this,e)},Q.tj=function(e){for(var t,n=e.Jc();n.Ob();)if(t=n.Pb(),!$Ge(this,t))return!1;return!0},Q.uj=function(e){var t,n,r;if(N(e,16)&&(r=F(e,16),r.gc()==cE(this.a).i)){for(t=r.Jc(),n=new yy(this);t.Ob();)if(M(t.Pb())!==M(lP(n)))return!1;return!0}return!1},Q.wj=function(){var e,t,n=1,r,i;for(t=new yy(cE(this.a));t.e!=t.i.gc();)e=F(lP(t),87),r=(i=e.c,N(i,88)?F(i,29):(nB(),t9)),n=31*n+(r?Py(r):0);return n},Q.xj=function(e){var t,n,r=0,i;for(n=new yy(cE(this.a));n.e!=n.i.gc();){if(t=F(lP(n),87),M(e)===M((i=t.c,N(i,88)?F(i,29):(nB(),t9))))return r;++r}return-1},Q.yj=function(){return cE(this.a).i==0},Q.zj=function(){return null},Q.Cj=function(){return cE(this.a).i},Q.Dj=function(){var e,t,n,r,i,a=cE(this.a).i;for(i=H(IJ,mB,1,a,5,1),n=0,t=new yy(cE(this.a));t.e!=t.i.gc();)e=F(lP(t),87),i[n++]=(r=e.c,N(r,88)?F(r,29):(nB(),t9));return i},Q.Ej=function(e){var t,n,r,i,a,o,s=cE(this.a).i;for(e.lengths&&eC(e,s,null),r=0,n=new yy(cE(this.a));n.e!=n.i.gc();)t=F(lP(n),87),a=(o=t.c,N(o,88)?F(o,29):(nB(),t9)),eC(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new mm;for(i.a+=`[`,e=cE(this.a),t=0,r=cE(this.a).i;t>16,i>=0?nF(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,6,n);case 9:return!this.a&&(this.a=new I(R7,this,9,5)),xN(this.a,e,n)}return a=F(yO((r=F(bA(this,16),29),r||(nB(),X7)),t),69),a.uk().xk(this,HN(this),t-JS((nB(),X7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 6:return kR(this,null,6,n);case 7:return!this.A&&(this.A=new gy(W7,this,7)),yP(this.A,e,n);case 9:return!this.a&&(this.a=new I(R7,this,9,5)),yP(this.a,e,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),X7)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),X7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!$P(this);case 4:return!!LWe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!Kw(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256);case 9:return!!this.a&&this.a.i!=0}return QT(this,e-JS((nB(),X7)),yO((t=F(bA(this,16),29),t||X7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:dT(this,fb(t));return;case 2:Fv(this,fb(t));return;case 5:Oz(this,fb(t));return;case 7:!this.A&&(this.A=new gy(W7,this,7)),yz(this.A),!this.A&&(this.A=new gy(W7,this,7)),YS(this.A,F(t,18));return;case 8:mM(this,Xp(db(t)));return;case 9:!this.a&&(this.a=new I(R7,this,9,5)),yz(this.a),!this.a&&(this.a=new I(R7,this,9,5)),YS(this.a,F(t,18));return}$M(this,e-JS((nB(),X7)),yO((n=F(bA(this,16),29),n||X7),e),t)},Q.fi=function(){return nB(),X7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:N(this.Cb,184)&&(F(this.Cb,184).tb=null),Bk(this,null);return;case 2:Ij(this,null),ek(this,this.D);return;case 5:Oz(this,null);return;case 7:!this.A&&(this.A=new gy(W7,this,7)),yz(this.A);return;case 8:mM(this,!0);return;case 9:!this.a&&(this.a=new I(R7,this,9,5)),yz(this.a);return}dM(this,e-JS((nB(),X7)),yO((t=F(bA(this,16),29),t||X7),e))},Q.mi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?F(this.Cb,675):null}return OD(this,e-JS((nB(),Z7)),yO((r=F(bA(this,16),29),r||Z7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 5:return this.Cb&&(n=(i=this.Db>>16,i>=0?hQe(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,5,n)}return a=F(yO((r=F(bA(this,16),29),r||(nB(),Z7)),t),69),a.uk().xk(this,HN(this),t-JS((nB(),Z7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 5:return kR(this,null,5,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),Z7)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),Z7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&F(this.Cb,675))}return QT(this,e-JS((nB(),Z7)),yO((t=F(bA(this,16),29),t||Z7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:Bk(this,fb(t));return;case 2:ZO(this,F(t,15).a);return;case 3:F6e(this,F(t,2004));return;case 4:yk(this,fb(t));return}$M(this,e-JS((nB(),Z7)),yO((n=F(bA(this,16),29),n||Z7),e),t)},Q.fi=function(){return nB(),Z7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:Bk(this,null);return;case 2:ZO(this,0);return;case 3:F6e(this,null);return;case 4:yk(this,null);return}dM(this,e-JS((nB(),Z7)),yO((t=F(bA(this,16),29),t||Z7),e))},Q.Ib=function(){return this.c??this.zb},Q.b=null,Q.c=null,Q.d=0,R(IK,`EEnumLiteralImpl`,568);var KBt=Rx(IK,`EFactoryImpl/InternalEDateTimeFormat`);J(485,1,{2079:1},_d),R(IK,`EFactoryImpl/1ClientInternalEDateTimeFormat`,485),J(248,118,{109:1,94:1,93:1,87:1,57:1,114:1,52:1,100:1,248:1,117:1,118:1},Nd),Q.zh=function(e,t,n){var r;return n=kR(this,e,t,n),this.e&&N(e,179)&&(r=SL(this,this.e),r!=this.c&&(n=kz(this,r,n))),n},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new hy(z7,this,1)),this.d;case 2:return t?NR(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?BP(this):this.a}return OD(this,e-JS((nB(),$7)),yO((r=F(bA(this,16),29),r||$7),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return hGe(this,null,n);case 1:return!this.d&&(this.d=new hy(z7,this,1)),yP(this.d,e,n);case 3:return mGe(this,null,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),$7)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),$7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return QT(this,e-JS((nB(),$7)),yO((t=F(bA(this,16),29),t||$7),e))},Q.$h=function(e,t){var n;switch(e){case 0:n1e(this,F(t,87));return;case 1:!this.d&&(this.d=new hy(z7,this,1)),yz(this.d),!this.d&&(this.d=new hy(z7,this,1)),YS(this.d,F(t,18));return;case 3:t1e(this,F(t,87));return;case 4:J0e(this,F(t,835));return;case 5:IO(this,F(t,143));return}$M(this,e-JS((nB(),$7)),yO((n=F(bA(this,16),29),n||$7),e),t)},Q.fi=function(){return nB(),$7},Q.hi=function(e){var t;switch(e){case 0:n1e(this,null);return;case 1:!this.d&&(this.d=new hy(z7,this,1)),yz(this.d);return;case 3:t1e(this,null);return;case 4:J0e(this,null);return;case 5:IO(this,null);return}dM(this,e-JS((nB(),$7)),yO((t=F(bA(this,16),29),t||$7),e))},Q.Ib=function(){var e=new Ey(fL(this));return e.a+=` (expression: `,uz(this,e),e.a+=`)`,e.a};var qBt;R(IK,`EGenericTypeImpl`,248),J(2032,2027,Wq),Q.Ei=function(e,t){hve(this,e,t)},Q.Uk=function(e,t){return hve(this,this.gc(),e),t},Q.Yi=function(e){return vP(this.nj(),e)},Q.Gi=function(){return this.Hi()},Q.nj=function(){return new hse(this)},Q.Hi=function(){return this.Ii(0)},Q.Ii=function(e){return this.nj().dd(e)},Q.Vk=function(e,t){return pN(this,e,!0),t},Q.Ri=function(e,t){var n,r=pF(this,t);return n=this.dd(e),n.Rb(r),r},Q.Si=function(e,t){var n;pN(this,t,!0),n=this.dd(e),n.Rb(t)},R(kq,`AbstractSequentialInternalEList`,2032),J(482,2032,Wq,By),Q.Yi=function(e){return vP(this.nj(),e)},Q.Gi=function(){return this.b==null?(Xh(),Xh(),u9):this.ql()},Q.nj=function(){return new Gpe(this.a,this.b)},Q.Hi=function(){return this.b==null?(Xh(),Xh(),u9):this.ql()},Q.Ii=function(e){var t,n;if(this.b==null){if(e<0||e>1)throw O(new zp(Eq+e+`, size=0`));return Xh(),Xh(),u9}for(n=this.ql(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.nk()!=$5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(a=this.b.Kh(t,this.sl()),this.f=(Qh(),F(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=F(a,16),this.k=r):(r=F(a,72),this.k=this.j=r),N(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?S4e(this,this.p):a3e(this))return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=F(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=F(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}},Q.Pb=function(){return xA(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw O(new nf)},Q.Vb=function(){return this.a-1},Q.Qb=function(){throw O(new tf)},Q.sl=function(){return!1},Q.Wb=function(e){throw O(new tf)},Q.tl=function(){return!0},Q.a=0,Q.d=0,Q.f=!1,Q.g=0,Q.n=0,Q.o=0;var u9;R(kq,`EContentsEList/FeatureIteratorImpl`,287),J(700,287,Gq,w_e),Q.sl=function(){return!0},R(kq,`EContentsEList/ResolvingFeatureIteratorImpl`,700),J(1148,700,Gq,E_e),Q.tl=function(){return!1},R(IK,`ENamedElementImpl/1/1`,1148),J(1149,287,Gq,T_e),Q.tl=function(){return!1},R(IK,`ENamedElementImpl/1/2`,1149),J(39,151,Tq,pE,mE,CS,bD,ZD,NE,Wze,Jje,Gze,Yje,oFe,Xje,Jze,Zje,aFe,Qje,Kze,$je,wS,xD,ow,qze,eMe,iFe,qje),Q.Ij=function(){return JIe(this)},Q.Pj=function(){var e=JIe(this);return e?e.gk():null},Q.fj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,e)},Q.hj=function(){return this.c},Q.Qj=function(){var e=JIe(this);return e?e.rk():!1},Q.b=-1,R(IK,`ENotificationImpl`,39),J(403,293,{109:1,94:1,93:1,158:1,197:1,57:1,62:1,114:1,470:1,52:1,100:1,161:1,403:1,293:1,117:1,118:1},$f),Q.xh=function(e){return NQe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ky(),!!(this.Bb&256);case 3:return ky(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return ky(),a=this.t,a>1||a==-1;case 7:return ky(),i=this.s,i>=1;case 8:return t?vF(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?F(this.Cb,29):null;case 11:return!this.d&&(this.d=new gy(W7,this,11)),this.d;case 12:return!this.c&&(this.c=new I(H7,this,12,10)),this.c;case 13:return!this.a&&(this.a=new yb(this,this)),this.a;case 14:return qD(this)}return OD(this,e-JS((nB(),n9)),yO((r=F(bA(this,16),29),r||n9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?NQe(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,10,n);case 12:return!this.c&&(this.c=new I(H7,this,12,10)),xN(this.c,e,n)}return a=F(yO((r=F(bA(this,16),29),r||(nB(),n9)),t),69),a.uk().xk(this,HN(this),t-JS((nB(),n9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 9:return nEe(this,n);case 10:return kR(this,null,10,n);case 11:return!this.d&&(this.d=new gy(W7,this,11)),yP(this.d,e,n);case 12:return!this.c&&(this.c=new I(H7,this,12,10)),yP(this.c,e,n);case 14:return yP(qD(this),e,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),n9)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),n9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&sC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&sC(this.q).i==0);case 10:return!!(this.Db>>16==10&&F(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&qD(this.a.a).i!=0&&!(this.b&&RP(this.b));case 14:return!!this.b&&RP(this.b)}return QT(this,e-JS((nB(),n9)),yO((t=F(bA(this,16),29),t||n9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:Bk(this,fb(t));return;case 2:fM(this,Xp(db(t)));return;case 3:pM(this,Xp(db(t)));return;case 4:QO(this,F(t,15).a);return;case 5:$O(this,F(t,15).a);return;case 8:Wj(this,F(t,143));return;case 9:r=XF(this,F(t,87),null),r&&r.mj();return;case 11:!this.d&&(this.d=new gy(W7,this,11)),yz(this.d),!this.d&&(this.d=new gy(W7,this,11)),YS(this.d,F(t,18));return;case 12:!this.c&&(this.c=new I(H7,this,12,10)),yz(this.c),!this.c&&(this.c=new I(H7,this,12,10)),YS(this.c,F(t,18));return;case 13:!this.a&&(this.a=new yb(this,this)),bz(this.a),!this.a&&(this.a=new yb(this,this)),YS(this.a,F(t,18));return;case 14:yz(qD(this)),YS(qD(this),F(t,18));return}$M(this,e-JS((nB(),n9)),yO((n=F(bA(this,16),29),n||n9),e),t)},Q.fi=function(){return nB(),n9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:Bk(this,null);return;case 2:fM(this,!0);return;case 3:pM(this,!0);return;case 4:QO(this,0);return;case 5:$O(this,1);return;case 8:Wj(this,null);return;case 9:n=XF(this,null,null),n&&n.mj();return;case 11:!this.d&&(this.d=new gy(W7,this,11)),yz(this.d);return;case 12:!this.c&&(this.c=new I(H7,this,12,10)),yz(this.c);return;case 13:this.a&&bz(this.a);return;case 14:this.b&&yz(this.b);return}dM(this,e-JS((nB(),n9)),yO((t=F(bA(this,16),29),t||n9),e))},Q.mi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;es&&eC(e,s,null),r=0,n=new yy(qD(this.a));n.e!=n.i.gc();)t=F(lP(n),87),a=(o=t.c,o||(nB(),e9)),eC(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new mm;for(i.a+=`[`,e=qD(this.a),t=0,r=qD(this.a).i;t1);case 5:return eT(this,e,t,n,r,this.i-F(n,16).gc()>0);default:return new ZD(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return RP(this)},Q.Ek=function(){yz(this)},R(IK,`EOperationImpl/2`,1332),J(493,1,{2002:1,493:1},gpe),R(IK,`EPackageImpl/1`,493),J(14,81,Bq,I),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.kl=function(){return!0},Q.b=0,R(kq,`EObjectContainmentWithInverseEList`,14),J(361,14,Bq,Fb),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectContainmentWithInverseEList/Resolving`,361),J(313,361,Bq,SS),Q.Li=function(){this.a.tb=null},R(IK,`EPackageImpl/2`,313),J(1244,1,{},No),R(IK,`EPackageImpl/3`,1244),J(721,44,ZV,ep),Q._b=function(e){return q_(e)?fw(this,e):!!nS(this.f,e)},R(IK,`EPackageRegistryImpl`,721),J(504,293,{109:1,94:1,93:1,158:1,197:1,57:1,2081:1,114:1,470:1,52:1,100:1,161:1,504:1,293:1,117:1,118:1},tp),Q.xh=function(e){return PQe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ky(),!!(this.Bb&256);case 3:return ky(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return ky(),a=this.t,a>1||a==-1;case 7:return ky(),i=this.s,i>=1;case 8:return t?vF(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?F(this.Cb,62):null}return OD(this,e-JS((nB(),i9)),yO((r=F(bA(this,16),29),r||i9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),xN(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?PQe(this,n):this.Cb.Qh(this,-1-i,null,n))),kR(this,e,10,n)}return a=F(yO((r=F(bA(this,16),29),r||(nB(),i9)),t),69),a.uk().xk(this,HN(this),t-JS((nB(),i9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 9:return nEe(this,n);case 10:return kR(this,null,10,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),i9)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),i9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&sC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&sC(this.q).i==0);case 10:return!!(this.Db>>16==10&&F(this.Cb,62))}return QT(this,e-JS((nB(),i9)),yO((t=F(bA(this,16),29),t||i9),e))},Q.fi=function(){return nB(),i9},R(IK,`EParameterImpl`,504),J(103,451,{109:1,94:1,93:1,158:1,197:1,57:1,19:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,103:1,451:1,293:1,117:1,118:1,682:1},K_e),Q.Ih=function(e,t,n){var r,i,a,o;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ky(),!!(this.Bb&256);case 3:return ky(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return ky(),o=this.t,o>1||o==-1;case 7:return ky(),i=this.s,i>=1;case 8:return t?vF(this):this.r;case 9:return this.q;case 10:return ky(),(this.Bb&Oq)!=0;case 11:return ky(),(this.Bb&LK)!=0;case 12:return ky(),(this.Bb&zV)!=0;case 13:return this.j;case 14:return DL(this);case 15:return ky(),(this.Bb&jq)!=0;case 16:return ky(),(this.Bb&kB)!=0;case 17:return Jw(this);case 18:return ky(),(this.Bb&FK)!=0;case 19:return ky(),a=NP(this),!!(a&&(a.Bb&FK)!=0);case 20:return ky(),(this.Bb&VV)!=0;case 21:return t?NP(this):this.b;case 22:return t?SUe(this):tFe(this);case 23:return!this.a&&(this.a=new _y(P7,this,23)),this.a}return OD(this,e-JS((nB(),a9)),yO((r=F(bA(this,16),29),r||a9),e),t,n)},Q.Th=function(e){var t,n,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&sC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&sC(this.q).i==0);case 10:return(this.Bb&Oq)==0;case 11:return(this.Bb&LK)!=0;case 12:return(this.Bb&zV)!=0;case 13:return this.j!=null;case 14:return DL(this)!=null;case 15:return(this.Bb&jq)!=0;case 16:return(this.Bb&kB)!=0;case 17:return!!Jw(this);case 18:return(this.Bb&FK)!=0;case 19:return r=NP(this),!!r&&(r.Bb&FK)!=0;case 20:return(this.Bb&VV)==0;case 21:return!!this.b;case 22:return!!tFe(this);case 23:return!!this.a&&this.a.i!=0}return QT(this,e-JS((nB(),a9)),yO((t=F(bA(this,16),29),t||a9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:uT(this,fb(t));return;case 2:fM(this,Xp(db(t)));return;case 3:pM(this,Xp(db(t)));return;case 4:QO(this,F(t,15).a);return;case 5:$O(this,F(t,15).a);return;case 8:Wj(this,F(t,143));return;case 9:r=XF(this,F(t,87),null),r&&r.mj();return;case 10:kM(this,Xp(db(t)));return;case 11:jM(this,Xp(db(t)));return;case 12:AM(this,Xp(db(t)));return;case 13:bpe(this,fb(t));return;case 15:OM(this,Xp(db(t)));return;case 16:KM(this,Xp(db(t)));return;case 18:CAe(this,Xp(db(t)));return;case 20:zKe(this,Xp(db(t)));return;case 21:YBe(this,F(t,19));return;case 23:!this.a&&(this.a=new _y(P7,this,23)),yz(this.a),!this.a&&(this.a=new _y(P7,this,23)),YS(this.a,F(t,18));return}$M(this,e-JS((nB(),a9)),yO((n=F(bA(this,16),29),n||a9),e),t)},Q.fi=function(){return nB(),a9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:N(this.Cb,88)&&II(jE(F(this.Cb,88)),4),Bk(this,null);return;case 2:fM(this,!0);return;case 3:pM(this,!0);return;case 4:QO(this,0);return;case 5:$O(this,1);return;case 8:Wj(this,null);return;case 9:n=XF(this,null,null),n&&n.mj();return;case 10:kM(this,!0);return;case 11:jM(this,!1);return;case 12:AM(this,!1);return;case 13:this.i=null,wk(this,null);return;case 15:OM(this,!1);return;case 16:KM(this,!1);return;case 18:RKe(this,!1),N(this.Cb,88)&&II(jE(F(this.Cb,88)),2);return;case 20:zKe(this,!0);return;case 21:YBe(this,null);return;case 23:!this.a&&(this.a=new _y(P7,this,23)),yz(this.a);return}dM(this,e-JS((nB(),a9)),yO((t=F(bA(this,16),29),t||a9),e))},Q.mi=function(){SUe(this),FC(GD((TI(),p9),this)),vF(this),this.Bb|=1},Q.sk=function(){return NP(this)},Q.Zk=function(){var e=NP(this);return!!e&&(e.Bb&FK)!=0},Q.$k=function(){return(this.Bb&FK)!=0},Q._k=function(){return(this.Bb&VV)!=0},Q.Wk=function(e,t){return this.c=null,zGe(this,e,t)},Q.Ib=function(){var e;return this.Db&64?oR(this):(e=new Ty(oR(this)),e.a+=` (containment: `,Km(e,(this.Bb&FK)!=0),e.a+=`, resolveProxies: `,Km(e,(this.Bb&VV)!=0),e.a+=`)`,e.a)},R(IK,`EReferenceImpl`,103),J(550,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,550:1,117:1,118:1},ere),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return Py(this)},Q.Ai=function(e){FCe(this,fb(e))},Q.ld=function(e){return eCe(this,fb(e))},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.b;case 1:return this.c}return OD(this,e-JS((nB(),o9)),yO((r=F(bA(this,16),29),r||o9),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return QT(this,e-JS((nB(),o9)),yO((t=F(bA(this,16),29),t||o9),e))},Q.$h=function(e,t){var n;switch(e){case 0:ICe(this,fb(t));return;case 1:jBe(this,fb(t));return}$M(this,e-JS((nB(),o9)),yO((n=F(bA(this,16),29),n||o9),e),t)},Q.fi=function(){return nB(),o9},Q.hi=function(e){var t;switch(e){case 0:FBe(this,null);return;case 1:jBe(this,null);return}dM(this,e-JS((nB(),o9)),yO((t=F(bA(this,16),29),t||o9),e))},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:_j(e)),this.a},Q.zi=function(e){this.a=e},Q.Ib=function(){var e;return this.Db&64?fL(this):(e=new Ty(fL(this)),e.a+=` (key: `,rv(e,this.b),e.a+=`, value: `,rv(e,this.c),e.a+=`)`,e.a)},Q.a=-1,Q.b=null,Q.c=null;var d9=R(IK,`EStringToStringMapEntryImpl`,550),YBt=Rx(kq,`FeatureMap/Entry/Internal`);J(562,1,Kq),Q.vl=function(e){return this.wl(F(e,52))},Q.wl=function(e){return this.vl(e)},Q.Fb=function(e){var t,n;return this===e?!0:N(e,75)?(t=F(e,75),t.Jk()==this.c&&(n=this.kd(),n==null?t.kd()==null:lM(n,t.kd()))):!1},Q.Jk=function(){return this.c},Q.Hb=function(){var e=this.kd();return Rk(this.c)^(e==null?0:Rk(e))},Q.Ib=function(){var e=this.c,t=LO(e.ok()).vi();return e.ve(),(t!=null&&t.length!=0?t+`:`+e.ve():e.ve())+`=`+this.kd()},R(IK,`EStructuralFeatureImpl/BasicFeatureMapEntry`,562),J(778,562,Kq,Fve),Q.wl=function(e){return new Fve(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return LVe(this,e,this.a,t,n)},Q.yl=function(e,t,n){return RVe(this,e,this.a,t,n)},R(IK,`EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry`,778),J(1305,1,{},_pe),Q.wk=function(e,t,n,r,i){return F(wD(e,this.b),219).Wl(this.a).Dk(r)},Q.xk=function(e,t,n,r,i){return F(wD(e,this.b),219).Nl(this.a,r,i)},Q.yk=function(e,t,n,r,i){return F(wD(e,this.b),219).Ol(this.a,r,i)},Q.zk=function(e,t,n){return F(wD(e,this.b),219).Wl(this.a).Oj()},Q.Ak=function(e,t,n,r){F(wD(e,this.b),219).Wl(this.a).Wb(r)},Q.Bk=function(e,t,n){return F(wD(e,this.b),219).Wl(this.a)},Q.Ck=function(e,t,n){F(wD(e,this.b),219).Wl(this.a).Ek()},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator`,1305),J(89,1,{},sx,QC,_w,dE),Q.wk=function(e,t,n,r,i){var a=t.ii(n);if(a??t.ji(n,a=Zz(this,e)),!i)switch(this.e){case 50:case 41:return F(a,587)._j();case 40:return F(a,219).Tl()}return a},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return o??t.ji(n,o=Zz(this,e)),a=F(o,72).Uk(r,i),a},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return a!=null&&(i=F(a,72).Vk(r,i)),i},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&F(r,78).Oj()},Q.Ak=function(e,t,n,r){var i=F(t.ii(n),78);!i&&t.ji(n,i=Zz(this,e)),i.Wb(r)},Q.Bk=function(e,t,n){var r,i=t.ii(n);return i??t.ji(n,i=Zz(this,e)),N(i,78)?F(i,78):(r=F(t.ii(n),16),new mse(r))},Q.Ck=function(e,t,n){var r=F(t.ii(n),78);!r&&t.ji(n,r=Zz(this,e)),r.Ek()},Q.b=0,Q.e=0,R(IK,`EStructuralFeatureImpl/InternalSettingDelegateMany`,89),J(499,1,{}),Q.xk=function(e,t,n,r,i){throw O(new tf)},Q.yk=function(e,t,n,r,i){throw O(new tf)},Q.Bk=function(e,t,n){return new KDe(this,e,t,n)};var f9;R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingle`,499),J(1322,1,Aq,KDe),Q.Dk=function(e){return this.a.wk(this.c,this.d,this.b,e,!0)},Q.Oj=function(){return this.a.zk(this.c,this.d,this.b)},Q.Wb=function(e){this.a.Ak(this.c,this.d,this.b,e)},Q.Ek=function(){this.a.Ck(this.c,this.d,this.b)},Q.b=0,R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingle/1`,1322),J(771,499,{},xke),Q.wk=function(e,t,n,r,i){return _R(e,e.Mh(),e.Ch())==this.b?this._k()&&r?aL(e):e.Mh():null},Q.xk=function(e,t,n,r,i){var a,o;return e.Mh()&&(i=(a=e.Ch(),a>=0?e.xh(i):e.Mh().Qh(e,-1-a,null,i))),o=mN(e.Ah(),this.e),e.zh(r,o,i)},Q.yk=function(e,t,n,r,i){var a=mN(e.Ah(),this.e);return e.zh(null,a,i)},Q.zk=function(e,t,n){var r=mN(e.Ah(),this.e);return!!e.Mh()&&e.Ch()==r},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!PR(this.a,r))throw O(new Kp(qq+(N(r,57)?Z$e(F(r,57).Ah()):Tze(Tj(r)))+Jq+this.a+`'`));if(i=e.Mh(),o=mN(e.Ah(),this.e),M(r)!==M(i)||e.Ch()!=o&&r!=null){if(gF(e,F(r,57)))throw O(new qp(zK+e.Ib()));c=null,i&&(c=(a=e.Ch(),a>=0?e.xh(c):e.Mh().Qh(e,-1-a,null,c))),s=F(r,52),s&&(c=s.Oh(e,mN(s.Ah(),this.b),null,c)),c=e.zh(s,o,c),c&&c.mj()}else e.sh()&&e.th()&&fA(e,new CS(e,1,o,r,r))},Q.Ck=function(e,t,n){var r=e.Mh(),i,a,o;r?(o=(i=e.Ch(),i>=0?e.xh(null):e.Mh().Qh(e,-1-i,null,null)),a=mN(e.Ah(),this.e),o=e.zh(null,a,o),o&&o.mj()):e.sh()&&e.th()&&fA(e,new wS(e,1,this.e,null,null))},Q._k=function(){return!1},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainer`,771),J(1306,771,{},lSe),Q._k=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving`,1306),J(560,499,{}),Q.wk=function(e,t,n,r,i){var a=t.ii(n);return a==null?this.b:M(a)===M(f9)?null:a},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&(M(r)===M(f9)||!lM(r,this.b))},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=(a=t.ii(n),a==null?this.b:M(a)===M(f9)?null:a),r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),fA(e,this.d.Al(e,1,this.e,i,r))):r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=(i=t.ii(n),i==null?this.b:M(i)===M(f9)?null:i),t.ki(n),fA(e,this.d.Al(e,1,this.e,r,this.b))):t.ki(n)},Q.zl=function(e){throw O(new Ose)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData`,560),J(Yq,1,{},tre),Q.Al=function(e,t,n,r,i){return new wS(e,t,n,r,i)},Q.Bl=function(e,t,n,r,i,a){return new ow(e,t,n,r,i,a)};var XBt,ZBt,QBt,$Bt,eVt,tVt,nVt,rVt,iVt;R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator`,Yq),J(1323,Yq,{},Po),Q.Al=function(e,t,n,r,i){return new iFe(e,t,n,Xp(db(r)),Xp(db(i)))},Q.Bl=function(e,t,n,r,i,a){return new qje(e,t,n,Xp(db(r)),Xp(db(i)),a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1`,1323),J(1324,Yq,{},Fo),Q.Al=function(e,t,n,r,i){return new Wze(e,t,n,F(r,221).a,F(i,221).a)},Q.Bl=function(e,t,n,r,i,a){return new Jje(e,t,n,F(r,221).a,F(i,221).a,a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2`,1324),J(1325,Yq,{},Io),Q.Al=function(e,t,n,r,i){return new Gze(e,t,n,F(r,180).a,F(i,180).a)},Q.Bl=function(e,t,n,r,i,a){return new Yje(e,t,n,F(r,180).a,F(i,180).a,a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3`,1325),J(1326,Yq,{},Lo),Q.Al=function(e,t,n,r,i){return new oFe(e,t,n,k(P(r)),k(P(i)))},Q.Bl=function(e,t,n,r,i,a){return new Xje(e,t,n,k(P(r)),k(P(i)),a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4`,1326),J(1327,Yq,{},Ro),Q.Al=function(e,t,n,r,i){return new Jze(e,t,n,F(r,164).a,F(i,164).a)},Q.Bl=function(e,t,n,r,i,a){return new Zje(e,t,n,F(r,164).a,F(i,164).a,a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5`,1327),J(1328,Yq,{},nre),Q.Al=function(e,t,n,r,i){return new aFe(e,t,n,F(r,15).a,F(i,15).a)},Q.Bl=function(e,t,n,r,i,a){return new Qje(e,t,n,F(r,15).a,F(i,15).a,a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6`,1328),J(1329,Yq,{},zo),Q.Al=function(e,t,n,r,i){return new Kze(e,t,n,F(r,190).a,F(i,190).a)},Q.Bl=function(e,t,n,r,i,a){return new $je(e,t,n,F(r,190).a,F(i,190).a,a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7`,1329),J(1330,Yq,{},Bo),Q.Al=function(e,t,n,r,i){return new qze(e,t,n,F(r,191).a,F(i,191).a)},Q.Bl=function(e,t,n,r,i,a){return new eMe(e,t,n,F(r,191).a,F(i,191).a,a)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8`,1330),J(1308,560,{},XDe),Q.zl=function(e){if(!this.a.dk(e))throw O(new Kp(qq+Tj(e)+Jq+this.a+`'`))},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic`,1308),J(1309,560,{},Twe),Q.zl=function(e){},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic`,1309),J(772,560,{}),Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=!0,a=t.ii(n),a==null?(i=!1,a=this.b):M(a)===M(f9)&&(a=null),r==null?this.c==null?t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),fA(e,this.d.Bl(e,1,this.e,a,r,!i))):r==null?this.c==null?t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=!0,i=t.ii(n),i==null?(r=!1,i=this.b):M(i)===M(f9)&&(i=null),t.ki(n),fA(e,this.d.Bl(e,2,this.e,i,this.b,r))):t.ki(n)},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable`,772),J(1310,772,{},ZDe),Q.zl=function(e){if(!this.a.dk(e))throw O(new Kp(qq+Tj(e)+Jq+this.a+`'`))},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic`,1310),J(1311,772,{},Ewe),Q.zl=function(e){},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic`,1311),J(402,499,{},Jx),Q.wk=function(e,t,n,r,i){var a,o,s,c,l=t.ii(n);if(this.rk()&&M(l)===M(f9))return null;if(this._k()&&r&&l!=null){if(s=F(l,52),s.Sh()&&(c=eM(e,s),s!=c)){if(!PR(this.a,c))throw O(new Kp(qq+Tj(c)+Jq+this.a+`'`));t.ji(n,l=c),this.$k()&&(a=F(c,52),o=s.Qh(e,this.b?mN(s.Ah(),this.b):-1-mN(e.Ah(),this.e),null,null),!a.Mh()&&(o=a.Oh(e,this.b?mN(a.Ah(),this.b):-1-mN(e.Ah(),this.e),null,o)),o&&o.mj()),e.sh()&&e.th()&&fA(e,new wS(e,9,this.e,s,c))}return l}return l},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return M(o)===M(f9)&&(o=null),t.ji(n,r),this.Kj()?M(o)!==M(r)&&o!=null&&(a=F(o,52),i=a.Qh(e,mN(a.Ah(),this.b),null,i)):this.$k()&&o!=null&&(i=F(o,52).Qh(e,-1-mN(e.Ah(),this.e),null,i)),e.sh()&&e.th()&&(!i&&(i=new Bm(4)),i.lj(new wS(e,1,this.e,o,r))),i},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return M(a)===M(f9)&&(a=null),t.ki(n),e.sh()&&e.th()&&(!i&&(i=new Bm(4)),this.rk()?i.lj(new wS(e,2,this.e,a,null)):i.lj(new wS(e,1,this.e,a,null))),i},Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!PR(this.a,r))throw O(new Kp(qq+(N(r,57)?Z$e(F(r,57).Ah()):Tze(Tj(r)))+Jq+this.a+`'`));c=t.ii(n),s=c!=null,this.rk()&&M(c)===M(f9)&&(c=null),o=null,this.Kj()?M(c)!==M(r)&&(c!=null&&(i=F(c,52),o=i.Qh(e,mN(i.Ah(),this.b),null,o)),r!=null&&(i=F(r,52),o=i.Oh(e,mN(i.Ah(),this.b),null,o))):this.$k()&&M(c)!==M(r)&&(c!=null&&(o=F(c,52).Qh(e,-1-mN(e.Ah(),this.e),null,o)),r!=null&&(o=F(r,52).Oh(e,-1-mN(e.Ah(),this.e),null,o))),r==null&&this.rk()?t.ji(n,f9):t.ji(n,r),e.sh()&&e.th()?(a=new ow(e,1,this.e,c,r,this.rk()&&!s),o?(o.lj(a),o.mj()):fA(e,a)):o&&o.mj()},Q.Ck=function(e,t,n){var r,i,a,o,s=t.ii(n);o=s!=null,this.rk()&&M(s)===M(f9)&&(s=null),a=null,s!=null&&(this.Kj()?(r=F(s,52),a=r.Qh(e,mN(r.Ah(),this.b),null,a)):this.$k()&&(a=F(s,52).Qh(e,-1-mN(e.Ah(),this.e),null,a))),t.ki(n),e.sh()&&e.th()?(i=new ow(e,this.rk()?2:1,this.e,s,null,o),a?(a.lj(i),a.mj()):fA(e,i)):a&&a.mj()},Q.Kj=function(){return!1},Q.$k=function(){return!1},Q._k=function(){return!1},Q.rk=function(){return!1},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObject`,402),J(561,402,{},cb),Q.$k=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment`,561),J(1314,561,{},P_e),Q._k=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving`,1314),J(774,561,{},F_e),Q.rk=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable`,774),J(1316,774,{},I_e),Q._k=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving`,1316),J(639,561,{},cx),Q.Kj=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse`,639),J(1315,639,{},fSe),Q._k=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving`,1315),J(775,639,{},pSe),Q.rk=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable`,775),J(1317,775,{},mSe),Q._k=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving`,1317),J(640,402,{},M_e),Q._k=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving`,640),J(1318,640,{},L_e),Q.rk=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable`,1318),J(776,640,{},uSe),Q.Kj=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse`,776),J(1319,776,{},hSe),Q.rk=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable`,1319),J(1312,402,{},N_e),Q.rk=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable`,1312),J(773,402,{},dSe),Q.Kj=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse`,773),J(1313,773,{},gSe),Q.rk=function(){return!0},R(IK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable`,1313),J(777,562,Kq,MEe),Q.wl=function(e){return new MEe(this.a,this.c,e)},Q.kd=function(){return this.b},Q.xl=function(e,t,n){return EIe(this,e,this.b,n)},Q.yl=function(e,t,n){return DIe(this,e,this.b,n)},R(IK,`EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry`,777),J(1320,1,Aq,mse),Q.Dk=function(e){return this.a},Q.Oj=function(){return N(this.a,98)?F(this.a,98).Oj():!this.a.dc()},Q.Wb=function(e){this.a.$b(),this.a.Fc(F(e,16))},Q.Ek=function(){N(this.a,98)?F(this.a,98).Ek():this.a.$b()},R(IK,`EStructuralFeatureImpl/SettingMany`,1320),J(1321,562,Kq,oPe),Q.vl=function(e){return new Ab((wz(),A9),this.b.oi(this.a,e))},Q.kd=function(){return null},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},R(IK,`EStructuralFeatureImpl/SimpleContentFeatureMapEntry`,1321),J(641,562,Kq,Ab),Q.vl=function(e){return new Ab(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},R(IK,`EStructuralFeatureImpl/SimpleFeatureMapEntry`,641),J(396,492,mq,Vo),Q.$i=function(e){return H(I7,mB,29,e,0,1)},Q.Wi=function(){return!1},R(IK,`ESuperAdapter/1`,396),J(446,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,835:1,52:1,100:1,161:1,446:1,117:1,118:1},Ho),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new Xx(this,z7,this)),this.a}return OD(this,e-JS((nB(),s9)),yO((r=F(bA(this,16),29),r||s9),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(j7,this,0,3)),yP(this.Ab,e,n);case 2:return!this.a&&(this.a=new Xx(this,z7,this)),yP(this.a,e,n)}return i=F(yO((r=F(bA(this,16),29),r||(nB(),s9)),t),69),i.uk().yk(this,HN(this),t-JS((nB(),s9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return QT(this,e-JS((nB(),s9)),yO((t=F(bA(this,16),29),t||s9),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab),!this.Ab&&(this.Ab=new I(j7,this,0,3)),YS(this.Ab,F(t,18));return;case 1:Bk(this,fb(t));return;case 2:!this.a&&(this.a=new Xx(this,z7,this)),yz(this.a),!this.a&&(this.a=new Xx(this,z7,this)),YS(this.a,F(t,18));return}$M(this,e-JS((nB(),s9)),yO((n=F(bA(this,16),29),n||s9),e),t)},Q.fi=function(){return nB(),s9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(j7,this,0,3)),yz(this.Ab);return;case 1:Bk(this,null);return;case 2:!this.a&&(this.a=new Xx(this,z7,this)),yz(this.a);return}dM(this,e-JS((nB(),s9)),yO((t=F(bA(this,16),29),t||s9),e))},R(IK,`ETypeParameterImpl`,446),J(447,81,Bq,Xx),Q.Lj=function(e,t){return a0e(this,F(e,87),t)},Q.Mj=function(e,t){return o0e(this,F(e,87),t)},R(IK,`ETypeParameterImpl/1`,447),J(638,44,ZV,np),Q.ec=function(){return new vd(this)},R(IK,`ETypeParameterImpl/2`,638),J(557,wB,TB,vd),Q.Ec=function(e){return hye(this,F(e,87))},Q.Fc=function(e){var t,n,r=!1;for(n=e.Jc();n.Ob();)t=F(n.Pb(),87),TC(this.a,t,``)??(r=!0);return r},Q.$b=function(){IS(this.a)},Q.Gc=function(e){return kS(this.a,e)},Q.Jc=function(){return new yd(new lA(new Ll(this.a).a))},Q.Kc=function(e){return IFe(this,e)},Q.gc=function(){return mh(this.a)},R(IK,`ETypeParameterImpl/2/1`,557),J(558,1,bB,yd),Q.Nb=function(e){jS(this,e)},Q.Pb=function(){return F(Tk(this.a).jd(),87)},Q.Ob=function(){return this.a.b},Q.Qb=function(){nRe(this.a)},R(IK,`ETypeParameterImpl/2/1/1`,558),J(1282,44,ZV,rp),Q._b=function(e){return q_(e)?fw(this,e):!!nS(this.f,e)},Q.xc=function(e){var t=q_(e)?Mw(this,e):Y_(nS(this.f,e)),n;return N(t,836)?(n=F(t,836),t=n.Ik(),TC(this,F(e,241),t),t):t??(e==null?(Zh(),fVt):null)},R(IK,`EValidatorRegistryImpl`,1282),J(1304,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,2005:1,52:1,100:1,161:1,117:1,118:1},rre),Q.oi=function(e,t){switch(e.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:eN(t);case 25:return Sze(t);case 27:return fLe(t);case 28:return pLe(t);case 29:return t==null?null:mhe(h7[0],F(t,205));case 41:return t==null?``:Jm(F(t,298));case 42:return eN(t);case 50:return fb(t);default:throw O(new qp(BK+e.ve()+VK))}},Q.pi=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;switch(e.G==-1&&(e.G=(f=LO(e),f?EP(f.si(),e):-1)),e.G){case 0:return n=new Zf,n;case 1:return t=new Do,t;case 2:return r=new jc,r;case 4:return i=new rf,i;case 5:return a=new Qf,a;case 6:return o=new Tse,o;case 7:return s=new Ac,s;case 10:return l=new To,l;case 11:return u=new $f,u;case 12:return d=new COe,d;case 13:return p=new tp,p;case 14:return m=new K_e,m;case 17:return h=new ere,h;case 18:return c=new Nd,c;case 19:return g=new Ho,g;default:throw O(new qp(WK+e.zb+VK))}},Q.qi=function(e,t){switch(e.fk()){case 20:return t==null?null:new ble(t);case 21:return t==null?null:new Lv(t);case 23:case 22:return t==null?null:RJe(t);case 26:case 24:return t==null?null:eO(ER(t,-128,127)<<24>>24);case 25:return _5e(t);case 27:return FZe(t);case 28:return IZe(t);case 29:return I0e(t);case 32:case 31:return t==null?null:dI(t);case 38:case 37:return t==null?null:new ff(t);case 40:case 39:return t==null?null:K(ER(t,ZB,lB));case 41:return null;case 42:return null;case 44:case 43:return t==null?null:GN(zz(t));case 49:case 48:return t==null?null:nM(ER(t,Zq,32767)<<16>>16);case 50:return t;default:throw O(new qp(BK+e.ve()+VK))}},R(IK,`EcoreFactoryImpl`,1304),J(549,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,2003:1,52:1,100:1,161:1,184:1,549:1,117:1,118:1,680:1},oDe),Q.gb=!1,Q.hb=!1;var aVt,oVt=!1;R(IK,`EcorePackageImpl`,549),J(1200,1,{836:1},Uo),Q.Ik=function(){return nge(),pVt},R(IK,`EcorePackageImpl/1`,1200),J(1209,1,tJ,Wo),Q.dk=function(e){return N(e,158)},Q.ek=function(e){return H(o7,mB,158,e,0,1)},R(IK,`EcorePackageImpl/10`,1209),J(1210,1,tJ,Go),Q.dk=function(e){return N(e,197)},Q.ek=function(e){return H(Vzt,mB,197,e,0,1)},R(IK,`EcorePackageImpl/11`,1210),J(1211,1,tJ,Ko),Q.dk=function(e){return N(e,57)},Q.ek=function(e){return H(Q5,mB,57,e,0,1)},R(IK,`EcorePackageImpl/12`,1211),J(1212,1,tJ,qo),Q.dk=function(e){return N(e,403)},Q.ek=function(e){return H(B7,Zvt,62,e,0,1)},R(IK,`EcorePackageImpl/13`,1212),J(1213,1,tJ,Jo),Q.dk=function(e){return N(e,241)},Q.ek=function(e){return H(c7,mB,241,e,0,1)},R(IK,`EcorePackageImpl/14`,1213),J(1214,1,tJ,Yo),Q.dk=function(e){return N(e,504)},Q.ek=function(e){return H(H7,mB,2081,e,0,1)},R(IK,`EcorePackageImpl/15`,1214),J(1215,1,tJ,ire),Q.dk=function(e){return N(e,103)},Q.ek=function(e){return H(U7,zq,19,e,0,1)},R(IK,`EcorePackageImpl/16`,1215),J(1216,1,tJ,are),Q.dk=function(e){return N(e,179)},Q.ek=function(e){return H(N7,zq,179,e,0,1)},R(IK,`EcorePackageImpl/17`,1216),J(1217,1,tJ,Xo),Q.dk=function(e){return N(e,470)},Q.ek=function(e){return H(M7,mB,470,e,0,1)},R(IK,`EcorePackageImpl/18`,1217),J(1218,1,tJ,ore),Q.dk=function(e){return N(e,550)},Q.ek=function(e){return H(d9,Pvt,550,e,0,1)},R(IK,`EcorePackageImpl/19`,1218),J(1201,1,tJ,Zo),Q.dk=function(e){return N(e,335)},Q.ek=function(e){return H(P7,zq,38,e,0,1)},R(IK,`EcorePackageImpl/2`,1201),J(1219,1,tJ,Qo),Q.dk=function(e){return N(e,248)},Q.ek=function(e){return H(z7,$vt,87,e,0,1)},R(IK,`EcorePackageImpl/20`,1219),J(1220,1,tJ,$o),Q.dk=function(e){return N(e,446)},Q.ek=function(e){return H(W7,mB,835,e,0,1)},R(IK,`EcorePackageImpl/21`,1220),J(1221,1,tJ,es),Q.dk=function(e){return G_(e)},Q.ek=function(e){return H(iY,OB,473,e,8,1)},R(IK,`EcorePackageImpl/22`,1221),J(1222,1,tJ,ts),Q.dk=function(e){return N(e,195)},Q.ek=function(e){return H(X9,OB,195,e,0,2)},R(IK,`EcorePackageImpl/23`,1222),J(1223,1,tJ,ns),Q.dk=function(e){return N(e,221)},Q.ek=function(e){return H(aY,OB,221,e,0,1)},R(IK,`EcorePackageImpl/24`,1223),J(1224,1,tJ,sre),Q.dk=function(e){return N(e,180)},Q.ek=function(e){return H(oY,OB,180,e,0,1)},R(IK,`EcorePackageImpl/25`,1224),J(1225,1,tJ,rs),Q.dk=function(e){return N(e,205)},Q.ek=function(e){return H($J,OB,205,e,0,1)},R(IK,`EcorePackageImpl/26`,1225),J(1226,1,tJ,is),Q.dk=function(e){return!1},Q.ek=function(e){return H(cHt,mB,2177,e,0,1)},R(IK,`EcorePackageImpl/27`,1226),J(1227,1,tJ,as),Q.dk=function(e){return K_(e)},Q.ek=function(e){return H(sY,OB,346,e,7,1)},R(IK,`EcorePackageImpl/28`,1227),J(1228,1,tJ,cre),Q.dk=function(e){return N(e,61)},Q.ek=function(e){return H(sBt,kH,61,e,0,1)},R(IK,`EcorePackageImpl/29`,1228),J(1202,1,tJ,os),Q.dk=function(e){return N(e,505)},Q.ek=function(e){return H(j7,{3:1,4:1,5:1,1998:1},588,e,0,1)},R(IK,`EcorePackageImpl/3`,1202),J(1229,1,tJ,ss),Q.dk=function(e){return N(e,568)},Q.ek=function(e){return H(hBt,mB,2004,e,0,1)},R(IK,`EcorePackageImpl/30`,1229),J(1230,1,tJ,cs),Q.dk=function(e){return N(e,163)},Q.ek=function(e){return H(dVt,kH,163,e,0,1)},R(IK,`EcorePackageImpl/31`,1230),J(1231,1,tJ,lre),Q.dk=function(e){return N(e,75)},Q.ek=function(e){return H(c9,uyt,75,e,0,1)},R(IK,`EcorePackageImpl/32`,1231),J(1232,1,tJ,ure),Q.dk=function(e){return N(e,164)},Q.ek=function(e){return H(cY,OB,164,e,0,1)},R(IK,`EcorePackageImpl/33`,1232),J(1233,1,tJ,ls),Q.dk=function(e){return N(e,15)},Q.ek=function(e){return H(lY,OB,15,e,0,1)},R(IK,`EcorePackageImpl/34`,1233),J(1234,1,tJ,dre),Q.dk=function(e){return N(e,298)},Q.ek=function(e){return H(tbt,mB,298,e,0,1)},R(IK,`EcorePackageImpl/35`,1234),J(1235,1,tJ,us),Q.dk=function(e){return N(e,190)},Q.ek=function(e){return H(uY,OB,190,e,0,1)},R(IK,`EcorePackageImpl/36`,1235),J(1236,1,tJ,ds),Q.dk=function(e){return N(e,92)},Q.ek=function(e){return H(rbt,mB,92,e,0,1)},R(IK,`EcorePackageImpl/37`,1236),J(1237,1,tJ,fs),Q.dk=function(e){return N(e,589)},Q.ek=function(e){return H(sVt,mB,589,e,0,1)},R(IK,`EcorePackageImpl/38`,1237),J(1238,1,tJ,ps),Q.dk=function(e){return!1},Q.ek=function(e){return H(lHt,mB,2178,e,0,1)},R(IK,`EcorePackageImpl/39`,1238),J(1203,1,tJ,fre),Q.dk=function(e){return N(e,88)},Q.ek=function(e){return H(I7,mB,29,e,0,1)},R(IK,`EcorePackageImpl/4`,1203),J(1239,1,tJ,ms),Q.dk=function(e){return N(e,191)},Q.ek=function(e){return H(fY,OB,191,e,0,1)},R(IK,`EcorePackageImpl/40`,1239),J(1240,1,tJ,hs),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(IK,`EcorePackageImpl/41`,1240),J(1241,1,tJ,pre),Q.dk=function(e){return N(e,586)},Q.ek=function(e){return H(lBt,mB,586,e,0,1)},R(IK,`EcorePackageImpl/42`,1241),J(1242,1,tJ,gs),Q.dk=function(e){return!1},Q.ek=function(e){return H(uHt,OB,2179,e,0,1)},R(IK,`EcorePackageImpl/43`,1242),J(1243,1,tJ,_s),Q.dk=function(e){return N(e,45)},Q.ek=function(e){return H(VJ,LB,45,e,0,1)},R(IK,`EcorePackageImpl/44`,1243),J(1204,1,tJ,vs),Q.dk=function(e){return N(e,143)},Q.ek=function(e){return H(F7,mB,143,e,0,1)},R(IK,`EcorePackageImpl/5`,1204),J(1205,1,tJ,ys),Q.dk=function(e){return N(e,159)},Q.ek=function(e){return H(kBt,mB,159,e,0,1)},R(IK,`EcorePackageImpl/6`,1205),J(1206,1,tJ,bs),Q.dk=function(e){return N(e,459)},Q.ek=function(e){return H(L7,mB,675,e,0,1)},R(IK,`EcorePackageImpl/7`,1206),J(1207,1,tJ,xs),Q.dk=function(e){return N(e,568)},Q.ek=function(e){return H(R7,mB,684,e,0,1)},R(IK,`EcorePackageImpl/8`,1207),J(1208,1,tJ,Ss),Q.dk=function(e){return N(e,469)},Q.ek=function(e){return H(s7,mB,469,e,0,1)},R(IK,`EcorePackageImpl/9`,1208),J(1020,2045,Mvt,Gp),Q.Ki=function(e,t){UGe(this,F(t,415))},Q.Oi=function(e,t){H4e(this,e,F(t,415))},R(IK,`MinimalEObjectImpl/1ArrayDelegatingAdapterList`,1020),J(1021,151,Tq,NEe),Q.hj=function(){return this.a.a},R(IK,`MinimalEObjectImpl/1ArrayDelegatingAdapterList/1`,1021),J(1048,1047,{},Ume),R(`org.eclipse.emf.ecore.plugin`,`EcorePlugin`,1048);var sVt=Rx(dyt,`Resource`);J(787,1486,fyt),Q.Fl=function(e){},Q.Gl=function(e){},Q.Cl=function(){return!this.a&&(this.a=new wd(this)),this.a},Q.Dl=function(e){var t,n,r=e.length,i,a;if(r>0){if(_T(0,e.length),e.charCodeAt(0)==47){for(a=new pD(4),i=1,t=1;t0&&(e=(uD(0,n,e.length),e.substr(0,n))))}return Q3e(this,e)},Q.El=function(){return this.c},Q.Ib=function(){var e;return Jm(this.Pm)+`@`+(e=Rk(this)>>>0,e.toString(16))+` uri='`+this.d+`'`},Q.b=!1,R(nJ,`ResourceImpl`,787),J(1487,787,fyt,Cd),R(nJ,`BinaryResourceImpl`,1487),J(1160,697,hq),Q._i=function(e){return N(e,57)?GOe(this,F(e,57)):N(e,589)?new yy(F(e,589).Cl()):M(e)===M(this.f)?F(e,18).Jc():(bb(),E7.a)},Q.Ob=function(){return N6e(this)},Q.a=!1,R(kq,`EcoreUtil/ContentTreeIterator`,1160),J(1488,1160,hq,mTe),Q._i=function(e){return M(e)===M(this.f)?F(e,16).Jc():new HMe(F(e,57))},R(nJ,`ResourceImpl/5`,1488),J(648,2057,Qvt,wd),Q.Gc=function(e){return this.i<=4?TF(this,e):N(e,52)&&F(e,52).Gh()==this.a},Q.Ki=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},Q.Mi=function(e,t){e==0?this.a.b||(this.a.b=!0):cD(this,e,t)},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Jj=function(){return 2},Q.hj=function(){return this.a},Q.Kj=function(){return!0},Q.Lj=function(e,t){return t=F(e,52).ci(this.a,t),t},Q.Mj=function(e,t){return F(e,52).ci(null,t)},Q.Nj=function(){return!1},Q.Qi=function(){return!0},Q.$i=function(e){return H(Q5,mB,57,e,0,1)},Q.Wi=function(){return!1},R(nJ,`ResourceImpl/ContentsEList`,648),J(954,2027,KB,hse),Q.dd=function(e){return this.a.Ii(e)},Q.gc=function(){return this.a.gc()},R(kq,`AbstractSequentialInternalEList/1`,954);var cVt,lVt,p9,uVt;J(626,1,{},JSe);var m9,h9;R(kq,`BasicExtendedMetaData`,626),J(1151,1,{},vpe),Q.Hl=function(){return null},Q.Il=function(){return this.a==-2&&Uie(this,w0e(this.d,this.b)),this.a},Q.Jl=function(){return null},Q.Kl=function(){return ew(),ew(),CY},Q.ve=function(){return this.c==mJ&&Gie(this,tYe(this.d,this.b)),this.c},Q.Ll=function(){return 0},Q.a=-2,Q.c=mJ,R(kq,`BasicExtendedMetaData/EClassExtendedMetaDataImpl`,1151),J(1152,1,{},nMe),Q.Hl=function(){return this.a==(ZE(),m9)&&Cl(this,Wtt(this.f,this.b)),this.a},Q.Il=function(){return 0},Q.Jl=function(){return this.c==(ZE(),m9)&&wl(this,Gtt(this.f,this.b)),this.c},Q.Kl=function(){return!this.d&&qie(this,Git(this.f,this.b)),this.d},Q.ve=function(){return this.e==mJ&&Yie(this,tYe(this.f,this.b)),this.e},Q.Ll=function(){return this.g==-2&&Zie(this,k1e(this.f,this.b)),this.g},Q.e=mJ,Q.g=-2,R(kq,`BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl`,1152),J(1150,1,{},ype),Q.b=!1,Q.c=!1,R(kq,`BasicExtendedMetaData/EPackageExtendedMetaDataImpl`,1150),J(1153,1,{},rMe),Q.c=-2,Q.e=mJ,Q.f=mJ,R(kq,`BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl`,1153),J(582,624,Bq,bx),Q.Jj=function(){return this.c},Q.ml=function(){return!1},Q.Ui=function(e,t){return t},Q.c=0,R(kq,`EDataTypeEList`,582);var dVt=Rx(kq,`FeatureMap`);J(76,582,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},cA),Q._c=function(e,t){e9e(this,e,F(t,75))},Q.Ec=function(e){return r7e(this,F(e,75))},Q.Fi=function(e){iEe(this,F(e,75))},Q.Lj=function(e,t){return Iye(this,F(e,75),t)},Q.Mj=function(e,t){return Lye(this,F(e,75),t)},Q.Ri=function(e,t){return mrt(this,e,t)},Q.Ui=function(e,t){return Mst(this,e,F(t,75))},Q.fd=function(e,t){return ret(this,e,F(t,75))},Q.Sj=function(e,t){return Rye(this,F(e,75),t)},Q.Tj=function(e,t){return zye(this,F(e,75),t)},Q.Uj=function(e,t,n){return r1e(this,F(e,75),F(t,75),n)},Q.Xi=function(e,t){return UF(this,e,F(t,75))},Q.Ml=function(e,t){return qnt(this,e,t)},Q.ad=function(e,t){var n,r,i,a,o,s,c,l=new TO(t.gc()),u;for(i=t.Jc();i.Ob();)if(r=F(i.Pb(),75),a=r.Jk(),WL(this.e,a))(!a.Qi()||!rE(this,a,r.kd())&&!TF(l,r))&&hD(l,r);else{for(u=VL(this.e.Ah(),a),n=F(this.g,122),o=!0,s=0;s=0;)if(t=e[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},R(kq,`BasicFeatureMap/FeatureEIterator`,412),J(666,412,EB,mv),Q.sl=function(){return!0},R(kq,`BasicFeatureMap/ResolvingFeatureEIterator`,666),J(952,482,Wq,Ehe),Q.nj=function(){return this},R(kq,`EContentsEList/1`,952),J(953,482,Wq,Gpe),Q.sl=function(){return!1},R(kq,`EContentsEList/2`,953),J(951,287,Gq,Dhe),Q.ul=function(e){},Q.Ob=function(){return!1},Q.Sb=function(){return!1},R(kq,`EContentsEList/FeatureIteratorImpl/1`,951),J(825,582,Bq,Ghe),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;yz(this),Ev(this.e)?(e=this.a,this.a=!1,fA(this.e,new NE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(kq,`EDataTypeEList/Unsettable`,825),J(1923,582,Bq,Khe),Q.Qi=function(){return!0},R(kq,`EDataTypeUniqueEList`,1923),J(1924,825,Bq,qhe),Q.Qi=function(){return!0},R(kq,`EDataTypeUniqueEList/Unsettable`,1924),J(145,81,Bq,gy),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectContainmentEList/Resolving`,145),J(1154,544,Bq,Jhe),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectContainmentEList/Unsettable/Resolving`,1154),J(753,14,Bq,Qve),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;yz(this),Ev(this.e)?(e=this.a,this.a=!1,fA(this.e,new NE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(kq,`EObjectContainmentWithInverseEList/Unsettable`,753),J(1188,753,Bq,$ve),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectContainmentWithInverseEList/Unsettable/Resolving`,1188),J(745,491,Bq,Yhe),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;yz(this),Ev(this.e)?(e=this.a,this.a=!1,fA(this.e,new NE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(kq,`EObjectEList/Unsettable`,745),J(339,491,Bq,_y),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectResolvingEList`,339),J(1828,745,Bq,Xhe),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectResolvingEList/Unsettable`,1828),J(1489,1,{},Cs);var fVt;R(kq,`EObjectValidator`,1489),J(548,491,Bq,TS),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.Kj=function(){return!0},Q.kl=function(){return!0},Q.b=0,R(kq,`EObjectWithInverseEList`,548),J(1191,548,Bq,eye),Q.jl=function(){return!0},R(kq,`EObjectWithInverseEList/ManyInverse`,1191),J(627,548,Bq,Ib),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;yz(this),Ev(this.e)?(e=this.a,this.a=!1,fA(this.e,new NE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(kq,`EObjectWithInverseEList/Unsettable`,627),J(1190,627,Bq,tye),Q.jl=function(){return!0},R(kq,`EObjectWithInverseEList/Unsettable/ManyInverse`,1190),J(754,548,Bq,nye),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectWithInverseResolvingEList`,754),J(33,754,Bq,Lb),Q.jl=function(){return!0},R(kq,`EObjectWithInverseResolvingEList/ManyInverse`,33),J(755,627,Bq,rye),Q.ll=function(){return!0},Q.Ui=function(e,t){return nL(this,e,F(t,57))},R(kq,`EObjectWithInverseResolvingEList/Unsettable`,755),J(1189,755,Bq,iye),Q.jl=function(){return!0},R(kq,`EObjectWithInverseResolvingEList/Unsettable/ManyInverse`,1189),J(1155,624,Bq),Q.Ji=function(){return!(this.b&1792)},Q.Li=function(){this.b|=1},Q.il=function(){return!!(this.b&4)},Q.Kj=function(){return!!(this.b&40)},Q.jl=function(){return!!(this.b&16)},Q.kl=function(){return!!(this.b&8)},Q.ll=function(){return(this.b&LK)!=0},Q.$k=function(){return!!(this.b&32)},Q.ml=function(){return(this.b&Oq)!=0},Q.dk=function(e){return this.d?PNe(this.d,e):this.Jk().Fk().dk(e)},Q.Oj=function(){return this.b&2?!!(this.b&1):this.i!=0},Q.Qi=function(){return!!(this.b&128)},Q.Ek=function(){var e;yz(this),this.b&2&&(Ev(this.e)?(e=!!(this.b&1),this.b&=-2,lf(this,new NE(this.e,2,mN(this.e.Ah(),this.Jk()),e,!1))):this.b&=-2)},Q.Wi=function(){return!(this.b&1536)},Q.b=0,R(kq,`EcoreEList/Generic`,1155),J(1156,1155,Bq,TOe),Q.Jk=function(){return this.a},R(kq,`EcoreEList/Dynamic`,1156),J(752,67,mq,Td),Q.$i=function(e){return tk(this.a.a,e)},R(kq,`EcoreEMap/1`,752),J(751,81,Bq,gTe),Q.Ki=function(e,t){PP(this.b,F(t,136))},Q.Mi=function(e,t){cHe(this.b)},Q.Ni=function(e,t,n){var r;++(r=this.b,F(t,136),r).e},Q.Oi=function(e,t){DM(this.b,F(t,136))},Q.Pi=function(e,t,n){DM(this.b,F(n,136)),M(n)===M(t)&&F(n,136).zi(Pme(F(t,136).jd())),PP(this.b,F(t,136))},R(kq,`EcoreEMap/DelegateEObjectContainmentEList`,751),J(1186,142,Jvt,iBe),R(kq,`EcoreEMap/Unsettable`,1186),J(1187,751,Bq,aye),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;yz(this),Ev(this.e)?(e=this.a,this.a=!1,fA(this.e,new NE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(kq,`EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList`,1187),J(1159,223,ZV,sEe),Q.a=!1,Q.b=!1,R(kq,`EcoreUtil/Copier`,1159),J(747,1,bB,HMe),Q.Nb=function(e){jS(this,e)},Q.Ob=function(){return oJe(this)},Q.Pb=function(){var e;return oJe(this),e=this.b,this.b=null,e},Q.Qb=function(){this.a.Qb()},R(kq,`EcoreUtil/ProperContentIterator`,747),J(1490,1489,{},Nc);var pVt;R(kq,`EcoreValidator`,1490);var mVt;Rx(kq,`FeatureMapUtil/Validator`),J(1260,1,{2006:1},ws),Q.$l=function(e){return!0},R(kq,`FeatureMapUtil/1`,1260),J(760,1,{2006:1},hlt),Q.$l=function(e){var t;return this.c==e||(t=db(tC(this.a,e)),t==null?ent(this,e)?(_Fe(this.a,e,(ky(),rY)),!0):(_Fe(this.a,e,(ky(),nY)),!1):t==(ky(),rY))},Q.e=!1;var hVt;R(kq,`FeatureMapUtil/BasicValidator`,760),J(761,44,ZV,jhe),R(kq,`FeatureMapUtil/BasicValidator/Cache`,761),J(495,56,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},Q_),Q._c=function(e,t){met(this.c,this.b,e,t)},Q.Ec=function(e){return qnt(this.c,this.b,e)},Q.ad=function(e,t){return iot(this.c,this.b,e,t)},Q.Fc=function(e){return ny(this,e)},Q.Ei=function(e,t){oze(this.c,this.b,e,t)},Q.Uk=function(e,t){return Xtt(this.c,this.b,e,t)},Q.Yi=function(e){return iz(this.c,this.b,e,!1)},Q.Gi=function(){return bme(this.c,this.b)},Q.Hi=function(){return xme(this.c,this.b)},Q.Ii=function(e){return OIe(this.c,this.b,e)},Q.Vk=function(e,t){return Tve(this,e,t)},Q.$b=function(){uf(this)},Q.Gc=function(e){return rE(this.c,this.b,e)},Q.Hc=function(e){return FVe(this.c,this.b,e)},Q.Xb=function(e){return iz(this.c,this.b,e,!0)},Q.Dk=function(e){return this},Q.bd=function(e){return qNe(this.c,this.b,e)},Q.dc=function(){return W_(this)},Q.Oj=function(){return!yN(this.c,this.b)},Q.Jc=function(){return mRe(this.c,this.b)},Q.cd=function(){return hRe(this.c,this.b)},Q.dd=function(e){return CKe(this.c,this.b,e)},Q.Ri=function(e,t){return vit(this.c,this.b,e,t)},Q.Si=function(e,t){NIe(this.c,this.b,e,t)},Q.ed=function(e){return a4e(this.c,this.b,e)},Q.Kc=function(e){return znt(this.c,this.b,e)},Q.fd=function(e,t){return Xit(this.c,this.b,e,t)},Q.Wb=function(e){tL(this.c,this.b),ny(this,F(e,16))},Q.gc=function(){return wKe(this.c,this.b)},Q.Nc=function(){return aMe(this.c,this.b)},Q.Oc=function(e){return JNe(this.c,this.b,e)},Q.Ib=function(){var e,t=new mm;for(t.a+=`[`,e=bme(this.c,this.b);Cj(e);)rv(t,wy(SP(e))),Cj(e)&&(t.a+=pB);return t.a+=`]`,t.a},Q.Ek=function(){tL(this.c,this.b)},R(kq,`FeatureMapUtil/FeatureEList`,495),J(635,39,Tq,hE),Q.fj=function(e){return hM(this,e)},Q.kj=function(e){var t,n,r,i,a,o,s;switch(this.d){case 1:case 2:if(a=e.hj(),M(a)===M(this.c)&&hM(this,null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0;break;case 3:if(i=e.ej(),i===3&&(a=e.hj(),M(a)===M(this.c)&&hM(this,null)==e.fj(null)))return this.d=5,t=new TO(2),hD(t,this.g),hD(t,e.gj()),this.g=t,!0;break;case 5:if(i=e.ej(),i===3&&(a=e.hj(),M(a)===M(this.c)&&hM(this,null)==e.fj(null)))return n=F(this.g,18),n.Ec(e.gj()),!0;break;case 4:switch(i=e.ej(),i){case 3:if(a=e.hj(),M(a)===M(this.c)&&hM(this,null)==e.fj(null))return this.d=1,this.g=e.gj(),!0;break;case 4:if(a=e.hj(),M(a)===M(this.c)&&hM(this,null)==e.fj(null))return this.d=6,s=new TO(2),hD(s,this.n),hD(s,e.ij()),this.n=s,o=W(A(q9,1),vV,30,15,[this.o,e.jj()]),this.g=o,!0}break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),M(a)===M(this.c)&&hM(this,null)==e.fj(null)))return n=F(this.n,18),n.Ec(e.ij()),o=F(this.g,54),r=H(q9,vV,30,o.length+1,15,1),LR(o,0,r,0,o.length),r[o.length]=e.jj(),this.g=r,!0}return!1},R(kq,`FeatureMapUtil/FeatureENotificationImpl`,635),J(554,495,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},Nx),Q.Ml=function(e,t){return qnt(this.c,e,t)},Q.Nl=function(e,t,n){return Xtt(this.c,e,t,n)},Q.Ol=function(e,t,n){return Lat(this.c,e,t,n)},Q.Pl=function(){return this},Q.Ql=function(e,t){return rz(this.c,e,t)},Q.Rl=function(e){return F(iz(this.c,this.b,e,!1),75).Jk()},Q.Sl=function(e){return F(iz(this.c,this.b,e,!1),75).kd()},Q.Tl=function(){return this.a},Q.Ul=function(e){return!yN(this.c,e)},Q.Vl=function(e,t){lz(this.c,e,t)},Q.Wl=function(e){return LBe(this.c,e)},Q.Xl=function(e){lZe(this.c,e)},R(kq,`FeatureMapUtil/FeatureFeatureMap`,554),J(1259,1,Aq,Ope),Q.Dk=function(e){return iz(this.b,this.a,-1,e)},Q.Oj=function(){return!yN(this.b,this.a)},Q.Wb=function(e){lz(this.b,this.a,e)},Q.Ek=function(){tL(this.b,this.a)},R(kq,`FeatureMapUtil/FeatureValue`,1259);var g9,gVt,_Vt,_9,vVt,v9=Rx(gJ,`AnyType`);J(670,63,QB,sm),R(gJ,`InvalidDatatypeValueException`,670);var y9=Rx(gJ,gyt),b9=Rx(gJ,_yt),yVt=Rx(gJ,vyt),bVt,x9,xVt,S9,SVt,CVt,wVt,TVt,EVt,DVt,OVt,kVt,AVt,jVt,MVt,C9,NVt,w9,T9,PVt,E9,D9,O9,FVt,k9,A9;J(829,502,{109:1,94:1,93:1,57:1,52:1,100:1,842:1},ip),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new cA(this,0)),this.c):(!this.c&&(this.c=new cA(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new cA(this,0)),F(pT(this.c,(wz(),S9)),163)):(!this.c&&(this.c=new cA(this,0)),F(F(pT(this.c,(wz(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new cA(this,2)),this.b):(!this.b&&(this.b=new cA(this,2)),this.b.b)}return OD(this,e-JS(this.fi()),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():this.fi(),e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.c&&(this.c=new cA(this,0)),bR(this.c,e,n);case 1:return(!this.c&&(this.c=new cA(this,0)),F(F(pT(this.c,(wz(),S9)),163),72)).Vk(e,n);case 2:return!this.b&&(this.b=new cA(this,2)),bR(this.b,e,n)}return r=F(yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():this.fi(),t),69),r.uk().yk(this,rRe(this),t-JS(this.fi()),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new cA(this,0)),F(pT(this.c,(wz(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0}return QT(this,e-JS(this.fi()),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():this.fi(),e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new cA(this,0)),BS(this.c,t);return;case 1:(!this.c&&(this.c=new cA(this,0)),F(F(pT(this.c,(wz(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new cA(this,2)),BS(this.b,t);return}$M(this,e-JS(this.fi()),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():this.fi(),e),t)},Q.fi=function(){return wz(),xVt},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new cA(this,0)),yz(this.c);return;case 1:(!this.c&&(this.c=new cA(this,0)),F(pT(this.c,(wz(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new cA(this,2)),yz(this.b);return}dM(this,e-JS(this.fi()),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():this.fi(),e))},Q.Ib=function(){var e;return this.j&4?fL(this):(e=new Ty(fL(this)),e.a+=` (mixed: `,nv(e,this.c),e.a+=`, anyAttribute: `,nv(e,this.b),e.a+=`)`,e.a)},R(_J,`AnyTypeImpl`,829),J(671,502,{109:1,94:1,93:1,57:1,52:1,100:1,2084:1,671:1},vre),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return OD(this,e-JS((wz(),C9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():C9,e),t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return QT(this,e-JS((wz(),C9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():C9,e))},Q.$h=function(e,t){switch(e){case 0:$ie(this,fb(t));return;case 1:El(this,fb(t));return}$M(this,e-JS((wz(),C9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():C9,e),t)},Q.fi=function(){return wz(),C9},Q.hi=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}dM(this,e-JS((wz(),C9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():C9,e))},Q.Ib=function(){var e;return this.j&4?fL(this):(e=new Ty(fL(this)),e.a+=` (data: `,rv(e,this.a),e.a+=`, target: `,rv(e,this.b),e.a+=`)`,e.a)},Q.a=null,Q.b=null,R(_J,`ProcessingInstructionImpl`,671),J(672,829,{109:1,94:1,93:1,57:1,52:1,100:1,842:1,2085:1,672:1},ap),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new cA(this,0)),this.c):(!this.c&&(this.c=new cA(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new cA(this,0)),F(pT(this.c,(wz(),S9)),163)):(!this.c&&(this.c=new cA(this,0)),F(F(pT(this.c,(wz(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new cA(this,2)),this.b):(!this.b&&(this.b=new cA(this,2)),this.b.b);case 3:return!this.c&&(this.c=new cA(this,0)),fb(rz(this.c,(wz(),T9),!0));case 4:return cye(this.a,(!this.c&&(this.c=new cA(this,0)),fb(rz(this.c,(wz(),T9),!0))));case 5:return this.a}return OD(this,e-JS((wz(),w9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():w9,e),t,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new cA(this,0)),F(pT(this.c,(wz(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new cA(this,0)),fb(rz(this.c,(wz(),T9),!0))!=null;case 4:return cye(this.a,(!this.c&&(this.c=new cA(this,0)),fb(rz(this.c,(wz(),T9),!0))))!=null;case 5:return!!this.a}return QT(this,e-JS((wz(),w9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():w9,e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new cA(this,0)),BS(this.c,t);return;case 1:(!this.c&&(this.c=new cA(this,0)),F(F(pT(this.c,(wz(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new cA(this,2)),BS(this.b,t);return;case 3:iMe(this,fb(t));return;case 4:iMe(this,sye(this.a,t));return;case 5:eae(this,F(t,159));return}$M(this,e-JS((wz(),w9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():w9,e),t)},Q.fi=function(){return wz(),w9},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new cA(this,0)),yz(this.c);return;case 1:(!this.c&&(this.c=new cA(this,0)),F(pT(this.c,(wz(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new cA(this,2)),yz(this.b);return;case 3:!this.c&&(this.c=new cA(this,0)),lz(this.c,(wz(),T9),null);return;case 4:iMe(this,sye(this.a,null));return;case 5:this.a=null;return}dM(this,e-JS((wz(),w9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():w9,e))},R(_J,`SimpleAnyTypeImpl`,672),J(673,502,{109:1,94:1,93:1,57:1,52:1,100:1,2086:1,673:1},Wse),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new cA(this,0)),this.a):(!this.a&&(this.a=new cA(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new yD((nB(),o9),d9,this,1)),this.b):(!this.b&&(this.b=new yD((nB(),o9),d9,this,1)),oD(this.b));case 2:return n?(!this.c&&(this.c=new yD((nB(),o9),d9,this,2)),this.c):(!this.c&&(this.c=new yD((nB(),o9),d9,this,2)),oD(this.c));case 3:return!this.a&&(this.a=new cA(this,0)),pT(this.a,(wz(),D9));case 4:return!this.a&&(this.a=new cA(this,0)),pT(this.a,(wz(),O9));case 5:return!this.a&&(this.a=new cA(this,0)),pT(this.a,(wz(),k9));case 6:return!this.a&&(this.a=new cA(this,0)),pT(this.a,(wz(),A9))}return OD(this,e-JS((wz(),E9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():E9,e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.a&&(this.a=new cA(this,0)),bR(this.a,e,n);case 1:return!this.b&&(this.b=new yD((nB(),o9),d9,this,1)),Vb(this.b,e,n);case 2:return!this.c&&(this.c=new yD((nB(),o9),d9,this,2)),Vb(this.c,e,n);case 5:return!this.a&&(this.a=new cA(this,0)),Tve(pT(this.a,(wz(),k9)),e,n)}return r=F(yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():(wz(),E9),t),69),r.uk().yk(this,rRe(this),t-JS((wz(),E9)),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new cA(this,0)),!W_(pT(this.a,(wz(),D9)));case 4:return!this.a&&(this.a=new cA(this,0)),!W_(pT(this.a,(wz(),O9)));case 5:return!this.a&&(this.a=new cA(this,0)),!W_(pT(this.a,(wz(),k9)));case 6:return!this.a&&(this.a=new cA(this,0)),!W_(pT(this.a,(wz(),A9)))}return QT(this,e-JS((wz(),E9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():E9,e))},Q.$h=function(e,t){switch(e){case 0:!this.a&&(this.a=new cA(this,0)),BS(this.a,t);return;case 1:!this.b&&(this.b=new yD((nB(),o9),d9,this,1)),oA(this.b,t);return;case 2:!this.c&&(this.c=new yD((nB(),o9),d9,this,2)),oA(this.c,t);return;case 3:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),D9))),!this.a&&(this.a=new cA(this,0)),ny(pT(this.a,D9),F(t,18));return;case 4:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),O9))),!this.a&&(this.a=new cA(this,0)),ny(pT(this.a,O9),F(t,18));return;case 5:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),k9))),!this.a&&(this.a=new cA(this,0)),ny(pT(this.a,k9),F(t,18));return;case 6:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),A9))),!this.a&&(this.a=new cA(this,0)),ny(pT(this.a,A9),F(t,18));return}$M(this,e-JS((wz(),E9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():E9,e),t)},Q.fi=function(){return wz(),E9},Q.hi=function(e){switch(e){case 0:!this.a&&(this.a=new cA(this,0)),yz(this.a);return;case 1:!this.b&&(this.b=new yD((nB(),o9),d9,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new yD((nB(),o9),d9,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),D9)));return;case 4:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),O9)));return;case 5:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),k9)));return;case 6:!this.a&&(this.a=new cA(this,0)),uf(pT(this.a,(wz(),A9)));return}dM(this,e-JS((wz(),E9)),yO(this.j&2?(!this.k&&(this.k=new Mc),this.k).Lk():E9,e))},Q.Ib=function(){var e;return this.j&4?fL(this):(e=new Ty(fL(this)),e.a+=` (mixed: `,nv(e,this.a),e.a+=`)`,e.a)},R(_J,`XMLTypeDocumentRootImpl`,673),J(1993,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1,2087:1},mre),Q.oi=function(e,t){switch(e.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:eN(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return fb(t);case 6:return W_e(F(t,195));case 12:case 47:case 49:case 11:return cct(this,e,t);case 13:return t==null?null:dot(F(t,247));case 15:case 14:return t==null?null:VTe(k(P(t)));case 17:return i1e((wz(),t));case 18:return i1e(t);case 21:case 20:return t==null?null:HTe(F(t,164).a);case 27:return G_e(F(t,195));case 30:return uZe((wz(),F(t,16)));case 31:return uZe(F(t,16));case 40:return U_e((wz(),t));case 42:return a1e((wz(),t));case 43:return a1e(t);case 59:case 48:return H_e((wz(),t));default:throw O(new qp(BK+e.ve()+VK))}},Q.pi=function(e){var t,n,r,i,a;switch(e.G==-1&&(e.G=(n=LO(e),n?EP(n.si(),e):-1)),e.G){case 0:return t=new ip,t;case 1:return r=new vre,r;case 2:return i=new ap,i;case 3:return a=new Wse,a;default:throw O(new qp(WK+e.zb+VK))}},Q.qi=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;switch(e.fk()){case 5:case 52:case 4:return t;case 6:return MYe(t);case 8:case 7:return t==null?null:v1e(t);case 9:return t==null?null:eO(ER((r=sz(t,!0),r.length>0&&(_T(0,r.length),r.charCodeAt(0)==43)?(_T(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:eO(ER((i=sz(t,!0),i.length>0&&(_T(0,i.length),i.charCodeAt(0)==43)?(_T(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 11:return fb(Gz(this,(wz(),wVt),t));case 12:return fb(Gz(this,(wz(),TVt),t));case 13:return t==null?null:new ble(sz(t,!0));case 15:case 14:return c7e(t);case 16:return fb(Gz(this,(wz(),EVt),t));case 17:return vJe((wz(),t));case 18:return vJe(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return sz(t,!0);case 21:case 20:return S7e(t);case 22:return fb(Gz(this,(wz(),DVt),t));case 23:return fb(Gz(this,(wz(),OVt),t));case 24:return fb(Gz(this,(wz(),kVt),t));case 25:return fb(Gz(this,(wz(),AVt),t));case 26:return fb(Gz(this,(wz(),jVt),t));case 27:return vYe(t);case 30:return yJe((wz(),t));case 31:return yJe(t);case 32:return t==null?null:K(ER((u=sz(t,!0),u.length>0&&(_T(0,u.length),u.charCodeAt(0)==43)?(_T(1,u.length+1),u.substr(1)):u),ZB,lB));case 33:return t==null?null:new Lv((d=sz(t,!0),d.length>0&&(_T(0,d.length),d.charCodeAt(0)==43)?(_T(1,d.length+1),d.substr(1)):d));case 34:return t==null?null:K(ER((f=sz(t,!0),f.length>0&&(_T(0,f.length),f.charCodeAt(0)==43)?(_T(1,f.length+1),f.substr(1)):f),ZB,lB));case 36:return t==null?null:GN(zz((p=sz(t,!0),p.length>0&&(_T(0,p.length),p.charCodeAt(0)==43)?(_T(1,p.length+1),p.substr(1)):p)));case 37:return t==null?null:GN(zz((m=sz(t,!0),m.length>0&&(_T(0,m.length),m.charCodeAt(0)==43)?(_T(1,m.length+1),m.substr(1)):m)));case 40:return YXe((wz(),t));case 42:return bJe((wz(),t));case 43:return bJe(t);case 44:return t==null?null:new Lv((h=sz(t,!0),h.length>0&&(_T(0,h.length),h.charCodeAt(0)==43)?(_T(1,h.length+1),h.substr(1)):h));case 45:return t==null?null:new Lv((g=sz(t,!0),g.length>0&&(_T(0,g.length),g.charCodeAt(0)==43)?(_T(1,g.length+1),g.substr(1)):g));case 46:return sz(t,!1);case 47:return fb(Gz(this,(wz(),MVt),t));case 59:case 48:return JXe((wz(),t));case 49:return fb(Gz(this,(wz(),NVt),t));case 50:return t==null?null:nM(ER((_=sz(t,!0),_.length>0&&(_T(0,_.length),_.charCodeAt(0)==43)?(_T(1,_.length+1),_.substr(1)):_),Zq,32767)<<16>>16);case 51:return t==null?null:nM(ER((a=sz(t,!0),a.length>0&&(_T(0,a.length),a.charCodeAt(0)==43)?(_T(1,a.length+1),a.substr(1)):a),Zq,32767)<<16>>16);case 53:return fb(Gz(this,(wz(),PVt),t));case 55:return t==null?null:nM(ER((o=sz(t,!0),o.length>0&&(_T(0,o.length),o.charCodeAt(0)==43)?(_T(1,o.length+1),o.substr(1)):o),Zq,32767)<<16>>16);case 56:return t==null?null:nM(ER((s=sz(t,!0),s.length>0&&(_T(0,s.length),s.charCodeAt(0)==43)?(_T(1,s.length+1),s.substr(1)):s),Zq,32767)<<16>>16);case 57:return t==null?null:GN(zz((c=sz(t,!0),c.length>0&&(_T(0,c.length),c.charCodeAt(0)==43)?(_T(1,c.length+1),c.substr(1)):c)));case 58:return t==null?null:GN(zz((l=sz(t,!0),l.length>0&&(_T(0,l.length),l.charCodeAt(0)==43)?(_T(1,l.length+1),l.substr(1)):l)));case 60:return t==null?null:K(ER((n=sz(t,!0),n.length>0&&(_T(0,n.length),n.charCodeAt(0)==43)?(_T(1,n.length+1),n.substr(1)):n),ZB,lB));case 61:return t==null?null:K(ER(sz(t,!0),ZB,lB));default:throw O(new qp(BK+e.ve()+VK))}};var IVt,LVt,RVt,zVt;R(_J,`XMLTypeFactoryImpl`,1993),J(583,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1,2009:1,583:1},sDe),Q.N=!1,Q.O=!1;var BVt=!1;R(_J,`XMLTypePackageImpl`,583),J(1926,1,{836:1},hre),Q.Ik=function(){return mit(),oHt},R(_J,`XMLTypePackageImpl/1`,1926),J(1935,1,tJ,gre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/10`,1935),J(1936,1,tJ,_re),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/11`,1936),J(1937,1,tJ,Ts),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/12`,1937),J(1938,1,tJ,Es),Q.dk=function(e){return K_(e)},Q.ek=function(e){return H(sY,OB,346,e,7,1)},R(_J,`XMLTypePackageImpl/13`,1938),J(1939,1,tJ,Ds),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/14`,1939),J(1940,1,tJ,yre),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(BJ,kH,16,e,0,1)},R(_J,`XMLTypePackageImpl/15`,1940),J(1941,1,tJ,Os),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(BJ,kH,16,e,0,1)},R(_J,`XMLTypePackageImpl/16`,1941),J(1942,1,tJ,bre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/17`,1942),J(1943,1,tJ,ks),Q.dk=function(e){return N(e,164)},Q.ek=function(e){return H(cY,OB,164,e,0,1)},R(_J,`XMLTypePackageImpl/18`,1943),J(1944,1,tJ,As),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/19`,1944),J(1927,1,tJ,js),Q.dk=function(e){return N(e,842)},Q.ek=function(e){return H(v9,mB,842,e,0,1)},R(_J,`XMLTypePackageImpl/2`,1927),J(1945,1,tJ,Ms),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/20`,1945),J(1946,1,tJ,Ns),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/21`,1946),J(1947,1,tJ,xre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/22`,1947),J(1948,1,tJ,Ps),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/23`,1948),J(1949,1,tJ,Sre),Q.dk=function(e){return N(e,195)},Q.ek=function(e){return H(X9,OB,195,e,0,2)},R(_J,`XMLTypePackageImpl/24`,1949),J(1950,1,tJ,Fs),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/25`,1950),J(1951,1,tJ,Is),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/26`,1951),J(1952,1,tJ,Ls),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(BJ,kH,16,e,0,1)},R(_J,`XMLTypePackageImpl/27`,1952),J(1953,1,tJ,Rs),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(BJ,kH,16,e,0,1)},R(_J,`XMLTypePackageImpl/28`,1953),J(1954,1,tJ,zs),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/29`,1954),J(1928,1,tJ,Bs),Q.dk=function(e){return N(e,671)},Q.ek=function(e){return H(y9,mB,2084,e,0,1)},R(_J,`XMLTypePackageImpl/3`,1928),J(1955,1,tJ,Vs),Q.dk=function(e){return N(e,15)},Q.ek=function(e){return H(lY,OB,15,e,0,1)},R(_J,`XMLTypePackageImpl/30`,1955),J(1956,1,tJ,Cre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/31`,1956),J(1957,1,tJ,wre),Q.dk=function(e){return N(e,190)},Q.ek=function(e){return H(uY,OB,190,e,0,1)},R(_J,`XMLTypePackageImpl/32`,1957),J(1958,1,tJ,Tre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/33`,1958),J(1959,1,tJ,Ere),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/34`,1959),J(1960,1,tJ,Dre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/35`,1960),J(1961,1,tJ,Hs),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/36`,1961),J(1962,1,tJ,Us),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(BJ,kH,16,e,0,1)},R(_J,`XMLTypePackageImpl/37`,1962),J(1963,1,tJ,Ore),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(BJ,kH,16,e,0,1)},R(_J,`XMLTypePackageImpl/38`,1963),J(1964,1,tJ,kre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/39`,1964),J(1929,1,tJ,Are),Q.dk=function(e){return N(e,672)},Q.ek=function(e){return H(b9,mB,2085,e,0,1)},R(_J,`XMLTypePackageImpl/4`,1929),J(1965,1,tJ,jre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/40`,1965),J(1966,1,tJ,Ws),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/41`,1966),J(1967,1,tJ,Gs),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/42`,1967),J(1968,1,tJ,Ks),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/43`,1968),J(1969,1,tJ,qs),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/44`,1969),J(1970,1,tJ,Js),Q.dk=function(e){return N(e,191)},Q.ek=function(e){return H(fY,OB,191,e,0,1)},R(_J,`XMLTypePackageImpl/45`,1970),J(1971,1,tJ,Ys),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/46`,1971),J(1972,1,tJ,Mre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/47`,1972),J(1973,1,tJ,Xs),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/48`,1973),J(1974,1,tJ,Zs),Q.dk=function(e){return N(e,191)},Q.ek=function(e){return H(fY,OB,191,e,0,1)},R(_J,`XMLTypePackageImpl/49`,1974),J(1930,1,tJ,Qs),Q.dk=function(e){return N(e,673)},Q.ek=function(e){return H(yVt,mB,2086,e,0,1)},R(_J,`XMLTypePackageImpl/5`,1930),J(1975,1,tJ,$s),Q.dk=function(e){return N(e,190)},Q.ek=function(e){return H(uY,OB,190,e,0,1)},R(_J,`XMLTypePackageImpl/50`,1975),J(1976,1,tJ,Nre),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/51`,1976),J(1977,1,tJ,ec),Q.dk=function(e){return N(e,15)},Q.ek=function(e){return H(lY,OB,15,e,0,1)},R(_J,`XMLTypePackageImpl/52`,1977),J(1931,1,tJ,tc),Q.dk=function(e){return q_(e)},Q.ek=function(e){return H(pY,OB,2,e,6,1)},R(_J,`XMLTypePackageImpl/6`,1931),J(1932,1,tJ,Pre),Q.dk=function(e){return N(e,195)},Q.ek=function(e){return H(X9,OB,195,e,0,2)},R(_J,`XMLTypePackageImpl/7`,1932),J(1933,1,tJ,Fre),Q.dk=function(e){return G_(e)},Q.ek=function(e){return H(iY,OB,473,e,8,1)},R(_J,`XMLTypePackageImpl/8`,1933),J(1934,1,tJ,Ire),Q.dk=function(e){return N(e,221)},Q.ek=function(e){return H(aY,OB,221,e,0,1)},R(_J,`XMLTypePackageImpl/9`,1934);var j9,M9,N9,P9,$;J(53,63,QB,om),R(wJ,`RegEx/ParseException`,53),J(821,1,{},nc),Q._l=function(e){return en*16)throw O(new om(iB((Gv(),bvt))));n=n*16+i}while(1);if(this.a!=125)throw O(new om(iB((Gv(),xvt))));if(n>TJ)throw O(new om(iB((Gv(),Svt))));e=n}else{if(i=0,this.c!=0||(i=VP(this.a))<0||(n=i,Jz(this),this.c!=0||(i=VP(this.a))<0))throw O(new om(iB((Gv(),Cq))));n=n*16+i,e=n}break;case 117:if(r=0,Jz(this),this.c!=0||(r=VP(this.a))<0||(t=r,Jz(this),this.c!=0||(r=VP(this.a))<0)||(t=t*16+r,Jz(this),this.c!=0||(r=VP(this.a))<0)||(t=t*16+r,Jz(this),this.c!=0||(r=VP(this.a))<0))throw O(new om(iB((Gv(),Cq))));t=t*16+r,e=t;break;case 118:if(Jz(this),this.c!=0||(r=VP(this.a))<0||(t=r,Jz(this),this.c!=0||(r=VP(this.a))<0)||(t=t*16+r,Jz(this),this.c!=0||(r=VP(this.a))<0)||(t=t*16+r,Jz(this),this.c!=0||(r=VP(this.a))<0)||(t=t*16+r,Jz(this),this.c!=0||(r=VP(this.a))<0)||(t=t*16+r,Jz(this),this.c!=0||(r=VP(this.a))<0))throw O(new om(iB((Gv(),Cq))));if(t=t*16+r,t>TJ)throw O(new om(iB((Gv(),`parser.descappe.4`))));e=t;break;case 65:case 90:case 122:throw O(new om(iB((Gv(),Cvt))))}return e},Q.bm=function(e){var t,n;switch(e){case 100:n=(this.e&32)==32?Bz(`Nd`,!0):(eB(),B9);break;case 68:n=(this.e&32)==32?Bz(`Nd`,!1):(eB(),YVt);break;case 119:n=(this.e&32)==32?Bz(`IsWord`,!0):(eB(),U9);break;case 87:n=(this.e&32)==32?Bz(`IsWord`,!1):(eB(),ZVt);break;case 115:n=(this.e&32)==32?Bz(`IsSpace`,!0):(eB(),H9);break;case 83:n=(this.e&32)==32?Bz(`IsSpace`,!1):(eB(),XVt);break;default:throw O(new Op((t=e,Ryt+t.toString(16))))}return n},Q.cm=function(e){var t,n,r,i,a,o,s,c,l,u,d,f;for(this.b=1,Jz(this),t=null,this.c==0&&this.a==94?(Jz(this),e?u=(eB(),eB(),++W9,new ET(5)):(t=(eB(),eB(),++W9,new ET(4)),KL(t,0,TJ),u=(++W9,new ET(4)))):u=(eB(),eB(),++W9,new ET(4)),i=!0;(f=this.c)!=1&&(f!=0||this.a!=93||i);){if(i=!1,n=this.a,r=!1,f==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:cz(u,this.bm(n)),r=!0;break;case 105:case 73:case 99:case 67:n=this.sm(u,n),n<0&&(r=!0);break;case 112:case 80:if(d=f6e(this,n),!d)throw O(new om(iB((Gv(),bq))));cz(u,d),r=!0;break;default:n=this.am()}else if(f==20){if(o=qy(this.i,58,this.d),o<0)throw O(new om(iB((Gv(),fvt))));if(s=!0,wC(this.i,this.d)==94&&(++this.d,s=!1),a=yw(this.i,this.d,o),c=YIe(a,s,(this.e&512)==512),!c)throw O(new om(iB((Gv(),pvt))));if(cz(u,c),r=!0,o+1>=this.j||wC(this.i,o+1)!=93)throw O(new om(iB((Gv(),fvt))));this.d=o+2}if(Jz(this),!r){if(this.c!=0||this.a!=45)KL(u,n,n);else{if(Jz(this),(f=this.c)==1)throw O(new om(iB((Gv(),xq))));f==0&&this.a==93?(KL(u,n,n),KL(u,45,45)):(l=this.a,f==10&&(l=this.am()),Jz(this),KL(u,n,l))}}(this.e&Oq)==Oq&&this.c==0&&this.a==44&&Jz(this)}if(this.c==1)throw O(new om(iB((Gv(),xq))));return t&&(Dz(t,u),u=t),dL(u),gz(u),this.b=0,Jz(this),u},Q.dm=function(){for(var e,t,n=this.cm(!1),r;(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Jz(this),this.c!=9)throw O(new om(iB((Gv(),_vt))));if(t=this.cm(!1),r==4)cz(n,t);else if(e==45)Dz(n,t);else if(e==38)Yst(n,t);else throw O(new Op(`ASSERT`))}else throw O(new om(iB((Gv(),vvt))));return Jz(this),n},Q.em=function(){var e=this.a-48,t=(eB(),eB(),++W9,new Dw(12,null,e));return!this.g&&(this.g=new hf),sf(this.g,new Ed(e)),Jz(this),t},Q.fm=function(){return Jz(this),eB(),$Vt},Q.gm=function(){return Jz(this),eB(),QVt},Q.hm=function(){throw O(new om(iB((Gv(),wq))))},Q.im=function(){throw O(new om(iB((Gv(),wq))))},Q.jm=function(){return Jz(this),nWe()},Q.km=function(){return Jz(this),eB(),tHt},Q.lm=function(){return Jz(this),eB(),rHt},Q.mm=function(){var e;if(this.d>=this.j||((e=wC(this.i,this.d++))&65504)!=64)throw O(new om(iB((Gv(),cvt))));return Jz(this),eB(),eB(),++W9,new qx(0,e-64)},Q.nm=function(){return Jz(this),Lit()},Q.om=function(){return Jz(this),eB(),iHt},Q.pm=function(){var e=(eB(),eB(),++W9,new qx(0,105));return Jz(this),e},Q.qm=function(){return Jz(this),eB(),nHt},Q.rm=function(){return Jz(this),eB(),eHt},Q.sm=function(e,t){return this.am()},Q.tm=function(){return Jz(this),eB(),qVt},Q.um=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw O(new om(iB((Gv(),avt))));if(r=-1,t=null,e=wC(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new hf),sf(this.g,new Ed(r)),++this.d,wC(this.i,this.d)!=41)throw O(new om(iB((Gv(),yq))));++this.d}else switch(e==63&&--this.d,Jz(this),t=But(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw O(new om(iB((Gv(),yq))));break;default:throw O(new om(iB((Gv(),ovt))))}if(Jz(this),i=zN(this),n=null,i.e==2){if(i.Nm()!=2)throw O(new om(iB((Gv(),svt))));n=i.Jm(1),i=i.Jm(0)}if(this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),eB(),eB(),++W9,new URe(r,t,i,n)},Q.vm=function(){return Jz(this),eB(),JVt},Q.wm=function(){var e;if(Jz(this),e=AS(24,zN(this)),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),e},Q.xm=function(){var e;if(Jz(this),e=AS(20,zN(this)),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),e},Q.ym=function(){var e;if(Jz(this),e=AS(22,zN(this)),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),e},Q.zm=function(){var e=0,t,n=0,r,i;for(t=-1;this.d=this.j)throw O(new om(iB((Gv(),rvt))));if(t==45){for(++this.d;this.d=this.j)throw O(new om(iB((Gv(),rvt))))}if(t==58){if(++this.d,Jz(this),r=rEe(zN(this),e,n),this.c!=7)throw O(new om(iB((Gv(),yq))));Jz(this)}else if(t==41)++this.d,Jz(this),r=rEe(zN(this),e,n);else throw O(new om(iB((Gv(),ivt))));return r},Q.Am=function(){var e;if(Jz(this),e=AS(21,zN(this)),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),e},Q.Bm=function(){var e;if(Jz(this),e=AS(23,zN(this)),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),e},Q.Cm=function(){var e,t;if(Jz(this),e=this.f++,t=STe(zN(this),e),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),t},Q.Dm=function(){var e;if(Jz(this),e=STe(zN(this),0),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),e},Q.Em=function(e){return Jz(this),this.c==5?(Jz(this),Kx(e,(eB(),eB(),++W9,new oE(9,e)))):Kx(e,(eB(),eB(),++W9,new oE(3,e)))},Q.Fm=function(e){var t;return Jz(this),t=(eB(),eB(),++W9,new Kv(2)),this.c==5?(Jz(this),vz(t,V9),vz(t,e)):(vz(t,e),vz(t,V9)),t},Q.Gm=function(e){return Jz(this),this.c==5?(Jz(this),eB(),eB(),++W9,new oE(9,e)):(eB(),eB(),++W9,new oE(3,e))},Q.a=0,Q.b=0,Q.c=0,Q.d=0,Q.e=0,Q.f=1,Q.g=null,Q.j=0,R(wJ,`RegEx/RegexParser`,821),J(1913,821,{},op),Q._l=function(e){return!1},Q.am=function(){return ltt(this)},Q.bm=function(e){return DR(e)},Q.cm=function(e){return adt(this)},Q.dm=function(){throw O(new om(iB((Gv(),wq))))},Q.em=function(){throw O(new om(iB((Gv(),wq))))},Q.fm=function(){throw O(new om(iB((Gv(),wq))))},Q.gm=function(){throw O(new om(iB((Gv(),wq))))},Q.hm=function(){return Jz(this),DR(67)},Q.im=function(){return Jz(this),DR(73)},Q.jm=function(){throw O(new om(iB((Gv(),wq))))},Q.km=function(){throw O(new om(iB((Gv(),wq))))},Q.lm=function(){throw O(new om(iB((Gv(),wq))))},Q.mm=function(){return Jz(this),DR(99)},Q.nm=function(){throw O(new om(iB((Gv(),wq))))},Q.om=function(){throw O(new om(iB((Gv(),wq))))},Q.pm=function(){return Jz(this),DR(105)},Q.qm=function(){throw O(new om(iB((Gv(),wq))))},Q.rm=function(){throw O(new om(iB((Gv(),wq))))},Q.sm=function(e,t){return cz(e,DR(t)),-1},Q.tm=function(){return Jz(this),eB(),eB(),++W9,new qx(0,94)},Q.um=function(){throw O(new om(iB((Gv(),wq))))},Q.vm=function(){return Jz(this),eB(),eB(),++W9,new qx(0,36)},Q.wm=function(){throw O(new om(iB((Gv(),wq))))},Q.xm=function(){throw O(new om(iB((Gv(),wq))))},Q.ym=function(){throw O(new om(iB((Gv(),wq))))},Q.zm=function(){throw O(new om(iB((Gv(),wq))))},Q.Am=function(){throw O(new om(iB((Gv(),wq))))},Q.Bm=function(){throw O(new om(iB((Gv(),wq))))},Q.Cm=function(){var e;if(Jz(this),e=STe(zN(this),0),this.c!=7)throw O(new om(iB((Gv(),yq))));return Jz(this),e},Q.Dm=function(){throw O(new om(iB((Gv(),wq))))},Q.Em=function(e){return Jz(this),Kx(e,(eB(),eB(),++W9,new oE(3,e)))},Q.Fm=function(e){var t;return Jz(this),t=(eB(),eB(),++W9,new Kv(2)),vz(t,e),vz(t,V9),t},Q.Gm=function(e){return Jz(this),eB(),eB(),++W9,new oE(3,e)};var F9=null,I9=null;R(wJ,`RegEx/ParserForXMLSchema`,1913),J(121,1,NJ,Dd),Q.Hm=function(e){throw O(new Op(`Not supported.`))},Q.Im=function(){return-1},Q.Jm=function(e){return null},Q.Km=function(){return null},Q.Lm=function(e){},Q.Mm=function(e){},Q.Nm=function(){return 0},Q.Ib=function(){return this.Om(0)},Q.Om=function(e){return this.e==11?`.`:``},Q.e=0;var VVt,L9,R9,HVt,UVt,z9=null,B9,WVt=null,GVt,V9,KVt=null,qVt,JVt,YVt,XVt,ZVt,QVt,H9,$Vt,eHt,tHt,nHt,U9,rHt,iHt,W9=0,aHt=R(wJ,`RegEx/Token`,121);J(137,121,{3:1,137:1,121:1},ET),Q.Om=function(e){var t,n,r;if(this.e==4){if(this==GVt)n=`.`;else if(this==B9)n=`\\d`;else if(this==U9)n=`\\w`;else if(this==H9)n=`\\s`;else{for(r=new mm,r.a+=`[`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?rv(r,GR(this.b[t])):(rv(r,GR(this.b[t])),r.a+=`-`,rv(r,GR(this.b[t+1])));r.a+=`]`,n=r.a}}else if(this==YVt)n=`\\D`;else if(this==ZVt)n=`\\W`;else if(this==XVt)n=`\\S`;else{for(r=new mm,r.a+=`[^`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?rv(r,GR(this.b[t])):(rv(r,GR(this.b[t])),r.a+=`-`,rv(r,GR(this.b[t+1])));r.a+=`]`,n=r.a}return n},Q.a=!1,Q.c=!1,R(wJ,`RegEx/RangeToken`,137),J(581,1,{581:1},Ed),Q.a=0,R(wJ,`RegEx/RegexParser/ReferencePosition`,581),J(580,1,{3:1,580:1},wue),Q.Fb=function(e){var t;return e==null||!N(e,580)?!1:(t=F(e,580),zb(this.b,t.b)&&this.a==t.a)},Q.Hb=function(){return _j(this.b+`/`+M9e(this.a))},Q.Ib=function(){return this.c.Om(this.a)},Q.a=0,R(wJ,`RegEx/RegularExpression`,580),J(228,121,NJ,qx),Q.Im=function(){return this.a},Q.Om=function(e){var t,n,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r=`\\`+Tb(this.a&iV);break;case 12:r=`\\f`;break;case 10:r=`\\n`;break;case 13:r=`\\r`;break;case 9:r=`\\t`;break;case 27:r=`\\e`;break;default:this.a>=VV?(n=(t=this.a>>>0,`0`+t.toString(16)),r=`\\v`+yw(n,n.length-6,n.length)):r=``+Tb(this.a&iV)}break;case 8:r=this==qVt||this==JVt?``+Tb(this.a&iV):`\\`+Tb(this.a&iV);break;default:r=null}return r},Q.a=0,R(wJ,`RegEx/Token/CharToken`,228),J(323,121,NJ,oE),Q.Jm=function(e){return this.a},Q.Lm=function(e){this.b=e},Q.Mm=function(e){this.c=e},Q.Nm=function(){return 1},Q.Om=function(e){var t;if(this.e==3){if(this.c<0&&this.b<0)t=this.a.Om(e)+`*`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}`;else throw O(new Op(`Token#toString(): CLOSURE `+this.c+pB+this.b))}else if(this.c<0&&this.b<0)t=this.a.Om(e)+`*?`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}?`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}?`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}?`;else throw O(new Op(`Token#toString(): NONGREEDYCLOSURE `+this.c+pB+this.b));return t},Q.b=0,Q.c=0,R(wJ,`RegEx/Token/ClosureToken`,323),J(822,121,NJ,RTe),Q.Jm=function(e){return e==0?this.a:this.b},Q.Nm=function(){return 2},Q.Om=function(e){return this.b.e==3&&this.b.Jm(0)==this.a?this.a.Om(e)+`+`:this.b.e==9&&this.b.Jm(0)==this.a?this.a.Om(e)+`+?`:this.a.Om(e)+(``+this.b.Om(e))},R(wJ,`RegEx/Token/ConcatToken`,822),J(1911,121,NJ,URe),Q.Jm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw O(new Op(`Internal Error: `+e))},Q.Nm=function(){return this.b?2:1},Q.Om=function(e){var t=this.c>0?`(?(`+this.c+`)`:this.a.e==8?`(?(`+this.a+`)`:`(?`+this.a;return this.b?t+=this.d+`|`+this.b+`)`:t+=this.d+`)`,t},Q.c=0,R(wJ,`RegEx/Token/ConditionToken`,1911),J(1912,121,NJ,Dje),Q.Jm=function(e){return this.b},Q.Nm=function(){return 1},Q.Om=function(e){return`(?`+(this.a==0?``:M9e(this.a))+(this.c==0?``:M9e(this.c))+`:`+this.b.Om(e)+`)`},Q.a=0,Q.c=0,R(wJ,`RegEx/Token/ModifierToken`,1912),J(823,121,NJ,IEe),Q.Jm=function(e){return this.a},Q.Nm=function(){return 1},Q.Om=function(e){var t=null;switch(this.e){case 6:t=this.b==0?`(?:`+this.a.Om(e)+`)`:`(`+this.a.Om(e)+`)`;break;case 20:t=`(?=`+this.a.Om(e)+`)`;break;case 21:t=`(?!`+this.a.Om(e)+`)`;break;case 22:t=`(?<=`+this.a.Om(e)+`)`;break;case 23:t=`(?`+this.a.Om(e)+`)`}return t},Q.b=0,R(wJ,`RegEx/Token/ParenToken`,823),J(518,121,{3:1,121:1,518:1},Dw),Q.Km=function(){return this.b},Q.Om=function(e){return this.e==12?`\\`+this.a:B5e(this.b)},Q.a=0,R(wJ,`RegEx/Token/StringToken`,518),J(466,121,NJ,Kv),Q.Hm=function(e){vz(this,e)},Q.Jm=function(e){return F(pC(this.a,e),121)},Q.Nm=function(){return this.a?this.a.a.c.length:0},Q.Om=function(e){var t,n,r,i,a;if(this.e==1){if(this.a.a.c.length==2)t=F(pC(this.a,0),121),n=F(pC(this.a,1),121),i=n.e==3&&n.Jm(0)==t?t.Om(e)+`+`:n.e==9&&n.Jm(0)==t?t.Om(e)+`+?`:t.Om(e)+(``+n.Om(e));else{for(a=new mm,r=0;r=this.c.b:this.a<=this.c.b},Q.Sb=function(){return this.b>0},Q.Tb=function(){return this.b},Q.Vb=function(){return this.b-1},Q.Qb=function(){throw O(new nm(qyt))},Q.a=0,Q.b=0,R(Wyt,`ExclusiveRange/RangeIterator`,259);var K9=SC(Nq,`C`),q9=SC(Iq,`I`),J9=SC(oB,`Z`),Y9=SC(Lq,`J`),X9=SC(Mq,`B`),Z9=SC(Pq,`D`),Q9=SC(Fq,`F`),$9=SC(Rq,`S`),sHt=Rx(`org.eclipse.elk.core.labels`,`ILabelManager`),cHt=Rx(nq,`DiagnosticChain`),lHt=Rx(dyt,`ResourceSet`),uHt=R(nq,`InvocationTargetException`,null),dHt=(pm(),$Pe),fHt=fHt=W$e;uBe(Kd),fVe(`permProps`,[[[`locale`,`default`],[Jyt,`gecko1_8`]],[[`locale`,`default`],[Jyt,`safari`]]]),fHt(null,`elk`,null)}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],3:[function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:{};c(this,n);var r=Object.assign({},t),i=!1;try{e.resolve(`web-worker`),i=!0}catch{}if(t.workerUrl){if(i){var a=e("web-worker");r.workerFactory=function(e){return new a(e)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +`)}return[]}function jZe(e){var t=(bBe(),Ybt);return t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function MZe(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=TUe(r.Math.max(8,i))<<1,e.b==0?rf(e.a,n):(t=yb(e.a,n),cVe(e,t,i),e.a=t,e.b=0),e.c=i)}function NZe(e,t){var n=e.b;return n.nf((Hz(),L6))?n.$f()==(Dz(),x5)?-n.Kf().a-k(P(n.mf(L6))):t+k(P(n.mf(L6))):n.$f()==(Dz(),x5)?-n.Kf().a:t}function $P(e){var t;return e.b.c.length!=0&&F(kx(e.b,0),70).a?F(kx(e.b,0),70).a:(t=cw(e),t??``+(e.c?VD(e.c.a,e,0):-1))}function eF(e){var t;return e.f.c.length!=0&&F(kx(e.f,0),70).a?F(kx(e.f,0),70).a:(t=cw(e),t??``+(e.i?VD(e.i.j,e,0):-1))}function PZe(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n0?e.c:0),a=r.Math.max(a,t.d),++i;e.e=o,e.b=a}function IZe(e){var t,n;if(!e.b)for(e.b=XT(F(e.f,125).jh().i),n=new uy(F(e.f,125).jh());n.e!=n.i.gc();)t=F(aP(n),157),ry(e.b,new zp(t));return e.b}function LZe(e,t){var n,r,i;if(t.dc())return db(),db(),T7;for(n=new Tve(e,t.gc()),i=new uy(e);i.e!=i.i.gc();)r=aP(i),t.Gc(r)&&hD(n,r);return n}function RZe(e,t,n,r){return t==0?r?(!e.o&&(e.o=new yD((Pz(),a7),u7,e,0)),e.o):(!e.o&&(e.o=new yD((Pz(),a7),u7,e,0)),oD(e.o)):gP(e,t,n,r)}function tF(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t>22),i+=r>>22,i<0)?!1:(e.l=n&vV,e.m=r&vV,e.h=i&yV,!0)}function rF(e,t,n,r,i,a,o){var s,c;return!(t.Re()&&(c=e.a.Le(n,r),c<0||!i&&c==0)||t.Se()&&(s=e.a.Le(n,a),s>0||!o&&s==0))}function HZe(e,t){if(pj(),e.j.g-t.j.g!=0)return 0;switch(e.j.g){case 2:return qM(t,pTt)-qM(e,pTt);case 4:return qM(e,fTt)-qM(t,fTt)}return 0}function UZe(e){switch(e.g){case 0:return rQ;case 1:return iQ;case 2:return aQ;case 3:return oQ;case 4:return sQ;case 5:return cQ;default:return null}}function iF(e,t,n){var r=(i=new Xf,Hj(i,t),zk(i,n),hD((!e.c&&(e.c=new I(H7,e,12,10)),e.c),i),i),i;return QO(r,0),$O(r,1),lM(r,!0),cM(r,!0),r}function aF(e,t){var n,r;if(t>=e.i)throw O(new iv(t,e.i));return++e.j,n=e.g[t],r=e.i-t-1,r>0&&OR(e.g,t+1,e.g,t,r),fC(e.g,--e.i,null),e.Oi(t,n),e.Li(),n}function WZe(e,t){var n,r;return e.Db>>16==17?e.Cb.Qh(e,21,F7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||e.fi()),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function GZe(e){var t,n,r,i;for(fw(),Bv(e.c,e.a),i=new D(e.c);i.an.a.c.length))throw O(new Hp(`index must be >= 0 and <= layer node count`));e.c&&BD(e.c.a,e),e.c=n,n&&Kx(n.a,t,e)}function sQe(e,t){this.c=new kd,this.a=e,this.b=t,this.d=F(q(e,(X(),S$)),317),this.e=M(q(e,(zz(),_At)))===M((ND(),lQ))?new Bf:new zf}function lF(e,t){var n=e.dd(t),r;try{return r=n.Pb(),n.Qb(),r}catch(e){throw e=UA(e),N(e,112)?O(new Fp(`Can't remove element `+t)):O(e)}}function cQe(e,t){var n,r=new Yh,i=new jUe(r.q.getFullYear()-sV,r.q.getMonth(),r.q.getDate());if(n=Fat(e,t,i),n==0||n0?t:0),++n;return new j(i,a)}function pQe(e,t,n){var r,i=e.o;switch(r=e.d,t.g){case 1:return-r.d-n;case 3:return i.b+r.a+n;case 2:return i.a+r.c+n;case 4:return-r.b-n;default:return 0}}function mQe(e,t,n,r){var i,a,o,s;for(cT(t,F(r.Xb(0),25)),s=r.hd(1,r.gc()),a=F(n.Kb(t),20).Jc();a.Ob();)i=F(a.Pb(),17),o=i.c.i==t?i.d.i:i.c.i,mQe(e,o,n,s)}function hQe(e){var t=new kd;return Yy(e,(X(),E$))?F(q(e,E$),92):(xh(ZC(new Mx(null,new DT(e.j,16)),new dr),new Bae(t)),G(e,E$,t),t)}function dF(e,t){var n,r=null;return e.nf((Hz(),J6))&&(n=F(e.mf(J6),105),n.nf(t)&&(r=n.mf(t))),r==null&&e.Rf()&&(r=e.Rf().mf(t)),r??=iP(t),r}function gQe(e,t){var n,r;return e.Db>>16==6?e.Cb.Qh(e,6,Z5,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Pz(),i7)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function _Qe(e,t){var n,r;return e.Db>>16==7?e.Cb.Qh(e,1,J5,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Pz(),Qzt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function vQe(e,t){var n,r;return e.Db>>16==9?e.Cb.Qh(e,9,s7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Pz(),eBt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function yQe(e,t){var n,r;return e.Db>>16==5?e.Cb.Qh(e,9,L7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Kz(),Z7)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function bQe(e,t){var n,r;return e.Db>>16==7?e.Cb.Qh(e,6,n7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Kz(),r9)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function xQe(e,t){var n,r;return e.Db>>16==3?e.Cb.Qh(e,0,$5,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Kz(),q7)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function SQe(e,t){var n,r;return e.Db>>16==3?e.Cb.Qh(e,12,s7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Pz(),Xzt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function CQe(e,t,n){var r,i,a;for(n<0&&(n=0),a=e.i,i=n;igft)return fF(e,r);if(r==e)return!0}}return!1}function TQe(e){switch(Uy(),e.q.g){case 5:e6e(e,(Dz(),n5)),e6e(e,y5);break;case 4:$5e(e,(Dz(),n5)),$5e(e,y5);break;default:Rlt(e,(Dz(),n5)),Rlt(e,y5)}}function EQe(e){switch(Uy(),e.q.g){case 5:K6e(e,(Dz(),t5)),K6e(e,x5);break;case 4:zYe(e,(Dz(),t5)),zYe(e,x5);break;default:zlt(e,(Dz(),t5)),zlt(e,x5)}}function DQe(e){var t=F(q(e,(CR(),sCt)),15),n;t?(n=t.a,n==0?G(e,(Mk(),ZY),new KM):G(e,(Mk(),ZY),new wE(n))):G(e,(Mk(),ZY),new wE(1))}function OQe(e,t){var n=e.i;switch(t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-n.o.a;case 3:return e.n.b-n.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function kQe(e,t){switch(e.g){case 0:return t==(nN(),P$)?cZ:lZ;case 1:return t==(nN(),P$)?cZ:sZ;case 2:return t==(nN(),P$)?sZ:lZ;default:return sZ}}function pF(e,t){var n,i,a;for(BD(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=eG,i=new D(e.a);i.a>16==11?e.Cb.Qh(e,10,s7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Pz(),$zt)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function LQe(e,t){var n,r;return e.Db>>16==10?e.Cb.Qh(e,11,F7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Kz(),n9)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function RQe(e,t){var n,r;return e.Db>>16==10?e.Cb.Qh(e,12,B7,t):(r=kP(F(yO((n=F(yA(e,16),29),n||(Kz(),i9)),e.Db>>16),19)),e.Cb.Qh(e,r.n,r.f,t))}function zQe(e,t){var n,r,i,a,o;if(t)for(i=t.a.length,n=new rS(i),o=(n.b-n.a)*n.c<0?(Jh(),G9):new ly(n);o.Ob();)a=F(o.Pb(),15),r=rE(t,a.a),r&&L5e(e,r)}function BQe(){pde();var e,t;for(_dt((eC(),K7)),edt(K7),tF(K7),qBt=(Kz(),e9),t=new D(aVt);t.a>19,l=t.h>>19;return c==l?(i=e.h,s=t.h,i==s?(r=e.m,o=t.m,r==o?(n=e.l,a=t.l,n-a):r-o):i-s):l-c}function HQe(e,t,n){for(var i,a=e[n.g],o,s,c=new D(t.d);c.a0?e.b:0),++n;t.b=i,t.e=a}function WQe(e){var t,n,r=e.b;if(Oue(e.i,r.length)){for(n=r.length*2,e.b=H(CJ,NB,309,n,0,1),e.c=H(CJ,NB,309,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)FI(e,t,t);++e.g}}function _F(e,t){return e.b.a=r.Math.min(e.b.a,t.c),e.b.b=r.Math.min(e.b.b,t.d),e.a.a=r.Math.max(e.a.a,t.c),e.a.b=r.Math.max(e.a.b,t.d),zd(e.c,t),!0}function GQe(e,t,n){var r=t.c.i;r.k==(pL(),EX)?(G(e,(X(),a$),F(q(r,a$),12)),G(e,o$,F(q(r,o$),12))):(G(e,(X(),a$),t.c),G(e,o$,n.d))}function vF(e,t,n){GL();var i,a,o,s=t/2,c,l;return o=n/2,i=r.Math.abs(e.a),a=r.Math.abs(e.b),c=1,l=1,i>s&&(c=s/i),a>o&&(l=o/a),ny(e,r.Math.min(c,l)),e}function KQe(){UR();var e,t;try{if(t=F(L$e((Hh(),V7),jK),2078),t)return t}catch(t){if(t=UA(t),N(t,101))e=t,cEe((Iv(),e));else throw O(t)}return new oo}function qQe(){UR();var e,t;try{if(t=F(L$e((Hh(),V7),Iq),2005),t)return t}catch(t){if(t=UA(t),N(t,101))e=t,cEe((Iv(),e));else throw O(t)}return new Fo}function JQe(){dLe();var e,t;try{if(t=F(L$e((Hh(),V7),Yq),2087),t)return t}catch(t){if(t=UA(t),N(t,101))e=t,cEe((Iv(),e));else throw O(t)}return new _s}function YQe(e,t,n){var r,i=e.e;return e.e=t,e.Db&4&&!(e.Db&1)&&(r=new CS(e,1,4,i,t),n?n.lj(r):n=r),i!=t&&(n=t?yz(e,vL(e,t),n):yz(e,e.a,n)),n}function XQe(){Yh.call(this),this.e=-1,this.a=!1,this.p=VB,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=VB}function ZQe(e,t){var n,r=e.b.d.d,i;if(e.a||(r+=e.b.d.a),i=t.b.d.d,t.a||(i+=t.b.d.a),n=mM(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function QQe(e,t){var n,r=e.b.b.d,i;if(e.a||(r+=e.b.b.a),i=t.b.b.d,t.a||(i+=t.b.b.a),n=mM(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function $Qe(e,t){var n,r=e.b.g.d,i;if(e.a||(r+=e.b.g.a),i=t.b.g.d,t.a||(i+=t.b.g.a),n=mM(r,i),n==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function yF(){yF=C,FCt=tS(Sx(Sx(Sx(new AC,($F(),aX),(Uz(),Vwt)),aX,Hwt),oX,Uwt),oX,Awt),LCt=Sx(Sx(new AC,aX,Cwt),aX,jwt),ICt=tS(new AC,oX,Nwt)}function e$e(e){var t=F(q(e,(X(),HQ)),92),n,r,i,a=e.n;for(r=t.Bc().Jc();r.Ob();)n=F(r.Pb(),319),i=n.i,i.c+=a.a,i.d+=a.b,n.c?att(n):ott(n);G(e,HQ,null)}function t$e(e,t,n){var r,i=e.b;switch(r=i.d,t.g){case 1:return-r.d-n;case 2:return i.o.a+r.c+n;case 3:return i.o.b+r.a+n;case 4:return-r.b-n;default:return-1}}function n$e(e,t){for(var n,r=new D(t);r.a0&&(o=(a&$z)%e.d.length,i=O6e(e,o,a,t),i)?(s=i.ld(n),s):(r=e.ak(a,t,n),e.c.Ec(r),null)}function g$e(e,t){var n,r,i,a;switch(nM(e,t).Il()){case 3:case 2:for(n=KR(t),i=0,a=n.i;i=0;i--)if(kb(e[i].d,t)||kb(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function SF(e,t){var n;return dv(e)&&dv(t)&&(n=e/t,wV0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=r.Math.min(i,a))}function A$e(e,t){var n,r=!1;if(z_(t)&&(r=!0,_C(e,new vC(rb(t)))),r||N(t,242)&&(r=!0,_C(e,(n=Pb(F(t,242)),new Kc(n)))),!r)throw O(new Lp(tvt))}function j$e(e,t,n,r){var i=new ZD(e.e,1,10,(o=t.c,N(o,88)?F(o,29):(Kz(),t9)),(a=n.c,N(a,88)?F(a,29):(Kz(),t9)),SP(e,t),!1),a,o;return r?r.lj(i):r=i,r}function M$e(e){var t,n;switch(F(q(jC(e),(zz(),cAt)),420).g){case 0:return t=e.n,n=e.o,new j(t.a+n.a/2,t.b+n.b/2);case 1:return new pv(e.n);default:return null}}function TF(){TF=C,dQ=new kg(oU,0),eEt=new kg(`LEFTUP`,1),nEt=new kg(`RIGHTUP`,2),$Tt=new kg(`LEFTDOWN`,3),tEt=new kg(`RIGHTDOWN`,4),uQ=new kg(`BALANCED`,5)}function N$e(e,t,n){var r=mM(e.a[t.p],e.a[n.p]),i,a;if(r==0){if(i=F(q(t,(X(),t$)),16),a=F(q(n,t$),16),i.Gc(n))return-1;if(a.Gc(t))return 1}return r}function P$e(e){switch(e.g){case 1:return new Sne;case 2:return new sa;case 3:return new oa;case 0:return null;default:throw O(new Hp(wG+(e.f==null?``+e.g:e.f)))}}function F$e(e,t,n){switch(t){case 1:!e.n&&(e.n=new I(o7,e,1,7)),uz(e.n),!e.n&&(e.n=new I(o7,e,1,7)),nC(e.n,F(n,18));return;case 2:bk(e,rb(n));return}ZUe(e,t,n)}function I$e(e,t,n){switch(t){case 3:VO(e,k(P(n)));return;case 4:KO(e,k(P(n)));return;case 5:qO(e,k(P(n)));return;case 6:JO(e,k(P(n)));return}F$e(e,t,n)}function EF(e,t,n){var r,i,a=(r=new Xf,r);i=KF(a,t,null),i&&i.mj(),zk(a,n),hD((!e.c&&(e.c=new I(H7,e,12,10)),e.c),a),QO(a,0),$O(a,1),lM(a,!0),cM(a,!0)}function L$e(e,t){var n=tg(e.i,t),r,i;return N(n,241)?(i=F(n,241),i.wi(),i.ti()):N(n,493)?(r=F(n,2002),i=r.b,i):null}function R$e(e,t,n,r){var i,a;return aC(t),aC(n),a=F(Mb(e.d,t),15),$Le(!!a,`Row %s not in %s`,t,e.e),i=F(Mb(e.b,n),15),$Le(!!i,`Column %s not in %s`,n,e.c),ZHe(e,a.a,i.a,r)}function z$e(e){for(var t,n=null,r,i=e,a=0,o=i.length;a1||s==-1?(a=F(c,16),i.Wb(Nqe(e,a))):i.Wb(gR(e,F(c,57)))))}function J$e(e,t,n,r){zue();var i=gbt;_bt=r;function a(){for(var e=0;e0)return!1;return!0}function Z$e(e){switch(F(q(e.b,(zz(),tAt)),381).g){case 1:xh(QC(cO(new Mx(null,new DT(e.d,16)),new zr),new lte),new ute);break;case 2:qtt(e);break;case 0:y3e(e)}}function Q$e(e,t,n){var r=n,i,a;for(!r&&(r=new ip),r.Tg(`Layout`,e.a.c.length),a=new D(e.a);a.asG)return n;i>-1e-6&&++n}return n}function NF(e,t,n){if(N(t,271))return S7e(e,F(t,85),n);if(N(t,276))return AQe(e,F(t,276),n);throw O(new Hp(GK+rI(new Yp(W(A(hJ,1),iB,1,5,[t,n])))))}function PF(e,t,n){if(N(t,271))return C7e(e,F(t,85),n);if(N(t,276))return jQe(e,F(t,276),n);throw O(new Hp(GK+rI(new Yp(W(A(hJ,1),iB,1,5,[t,n])))))}function a1e(e,t){var n;t==e.b?e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,3,t,t)):(n=null,e.b&&(n=Lw(e.b,e,-4,n)),t&&(n=fP(t,e,-4,n)),n=gGe(e,t,n),n&&n.mj())}function o1e(e,t){var n;t==e.f?e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,0,t,t)):(n=null,e.f&&(n=Lw(e.f,e,-1,n)),t&&(n=fP(t,e,-1,n)),n=_Ge(e,t,n),n&&n.mj())}function s1e(e,t,n,r){var i,a,o,s;return _v(e.e)&&(i=t.Jk(),s=t.kd(),a=n.kd(),o=Aw(e,1,i,s,a,i.Hk()?zR(e,i,a,N(i,103)&&(F(i,19).Bb&jV)!=0):-1,!0),r?r.lj(o):r=o),r}function c1e(e){var t,n,r;if(e==null)return null;if(n=F(e,16),n.dc())return``;for(r=new lm,t=n.Jc();t.Ob();)Y_(r,(hz(),rb(t.Pb()))),r.a+=` `;return rme(r,r.a.length-1)}function l1e(e){var t,n,r;if(e==null)return null;if(n=F(e,16),n.dc())return``;for(r=new lm,t=n.Jc();t.Ob();)Y_(r,(hz(),rb(t.Pb()))),r.a+=` `;return rme(r,r.a.length-1)}function u1e(e,t){for(var n,r,i,a=new D(t.a),o;a.a0&&IC(e,e.length-1)==33)try{return t=T5e(jw(e,0,e.length-1)),t.e==null}catch(e){if(e=UA(e),!N(e,32))throw O(e)}return!1}function g1e(e,t,n){var r=kM(jC(t)),i=new uI;switch(uT(i,t),n.g){case 1:PI(i,bM(sN(r)));break;case 2:PI(i,sN(r))}return G(i,(zz(),Y1),P(q(e,Y1))),i}function _1e(e){var t=F(zE(new uS(py(zM(e.a).a.Jc(),new f))),17),n=F(zE(new uS(py(VM(e.a).a.Jc(),new f))),17);return Gp(nb(q(t,(X(),y$))))||Gp(nb(q(n,y$)))}function FF(){FF=C,gZ=new Sg(`ONE_SIDE`,0),vZ=new Sg(`TWO_SIDES_CORNER`,1),yZ=new Sg(`TWO_SIDES_OPPOSING`,2),_Z=new Sg(`THREE_SIDES`,3),hZ=new Sg(`FOUR_SIDES`,4)}function v1e(e,t){var n,r,i,a=new Od;for(i=0,r=t.Jc();r.Ob();){for(n=K(F(r.Pb(),15).a+i);n.a=e.f)break;zd(a.c,n)}return a}function y1e(e){for(var t,n=new D(e.e.b);n.a0&&XZe(this,this.c-1,(Dz(),t5)),this.c0&&e[0].length>0&&(this.c=Gp(nb(q(jC(e[0][0]),(X(),EEt))))),this.a=H(Zjt,vB,2082,e.length,0,2),this.b=H(Qjt,vB,2083,e.length,0,2),this.d=new PWe}function j1e(e){return e.c.length==0?!1:(OT(0,e.c.length),F(e.c[0],17)).c.i.k==(pL(),EX)||FE(QC(new Mx(null,new DT(e,16)),new pi),new mi)}function M1e(e,t){var n,i,a,o,s,c=HL(t),l;for(o=t.f,l=t.g,s=r.Math.sqrt(o*o+l*l),a=0,i=new D(c);i.a=0?(n=SF(e,CV),r=CN(e,CV)):(t=pS(e,1),n=SF(t,5e8),r=CN(t,5e8),r=IM(dS(r,1),FT(e,1))),IT(dS(r,32),FT(n,PV))}function J1e(e,t,n,r){for(var i=null,a=0,o,s=new D(t),c;s.a1;t>>=1)t&1&&(r=fE(r,n)),n=n.d==1?fE(n,n):new eYe(Grt(n.a,n.d,H(q9,cV,30,n.d<<1,15,1)));return r=fE(r,n),r}function $1e(){$1e=C;var e,t,n,r;for(Oxt=H(Z9,NV,30,25,15,1),kxt=H(Z9,NV,30,33,15,1),r=152587890625e-16,t=32;t>=0;t--)kxt[t]=r,r*=.5;for(n=1,e=24;e>=0;e--)Oxt[e]=n,n*=.5}function e0e(e){var t,n;if(Gp(nb(Y(e,(zz(),C1))))){for(n=new uS(py(gL(e).a.Jc(),new f));rL(n);)if(t=F(zE(n),85),UI(t)&&Gp(nb(Y(t,w1))))return!0}return!1}function t0e(e){for(var t=new ph,n=new ph,r,i=nP(e,0);i.b!=i.d.c;)r=F(sE(i),12),r.e.c.length==0?DE(n,r,n.c.b,n.c):DE(t,r,t.c.b,t.c);return cN(t).Fc(n),t}function n0e(e,t){var n,r,i;LS(e.f,t)&&(t.b=e,r=t.c,VD(e.j,r,0)!=-1||ry(e.j,r),i=t.d,VD(e.j,i,0)!=-1||ry(e.j,i),n=t.a.b,n.c.length!=0&&(!e.i&&(e.i=new mYe(e)),uHe(e.i,n)))}function r0e(e){var t,n=e.c.d,r=n.j,i=e.d.d,a=i.j;return r==a?n.p=0&&kb(e.substr(t,3),`GMT`)||t>=0&&kb(e.substr(t,3),`UTC`))&&(n[0]=t+3),Mrt(e,n,r)}function a0e(e,t){var n,r,i,a=e.g.a,o=e.g.b;for(r=new D(e.d);r.an;a--)e[a]|=t[a-n-1]>>>o,e[a-1]=t[a-n-1]<0&&OR(e.g,t,e.g,t+r,s),o=n.Jc(),e.i+=r,i=0;i>4&15,a=e[r]&15,o[i++]=iBt[n],o[i++]=iBt[a];return MN(o,0,o.length)}function JF(e){var t,n;return e>=jV?(t=MV+(e-jV>>10&1023)&JB,n=56320+(e-jV&1023)&JB,String.fromCharCode(t)+(``+String.fromCharCode(n))):String.fromCharCode(e&JB)}function b0e(e,t){pb();var n,r,i=F(F(VE(e.r,t),22),83),a;return i.gc()>=2&&(r=F(i.Jc().Pb(),115),n=e.u.Gc((II(),Y8)),a=e.u.Gc($8),!r.a&&!n&&(i.gc()==2||a))}function x0e(e,t,n,r,i){for(var a=Pet(e,t,n,r,i),o,s=!1;!a;)oL(e,i,!0),s=!0,a=Pet(e,t,n,r,i);s&&oL(e,i,!1),o=GA(i),o.c.length!=0&&(e.d&&e.d.Fg(o),x0e(e,i,n,r,o))}function YF(){YF=C,U4=new r_(`NODE_SIZE_REORDERER`,0),B4=new r_(`INTERACTIVE_NODE_REORDERER`,1),H4=new r_(`MIN_SIZE_PRE_PROCESSOR`,2),V4=new r_(`MIN_SIZE_POST_PROCESSOR`,3)}function XF(){XF=C,y8=new v_(oU,0),KRt=new v_(`DIRECTED`,1),JRt=new v_(`UNDIRECTED`,2),WRt=new v_(`ASSOCIATION`,3),qRt=new v_(`GENERALIZATION`,4),GRt=new v_(`DEPENDENCY`,5)}function S0e(e,t){var n;if(!eT(e))throw O(new Up(O_t));switch(n=eT(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-n.g;case 3:return e.j-n.f;case 4:return-(e.i+e.g)}return 0}function C0e(e,t,n){var r=t.Jk(),i,a=t.kd();return i=r.Hk()?Aw(e,4,r,a,null,zR(e,r,a,N(r,103)&&(F(r,19).Bb&jV)!=0),!0):Aw(e,r.rk()?2:1,r,a,r.gk(),-1,!0),n?n.lj(i):n=i,n}function ZF(e,t){var n,r;for(MC(t),r=e.b.c.length,ry(e.b,t);r>0;){if(n=r,r=(r-1)/2|0,e.a.Le(kx(e.b,r),t)<=0)return AE(e.b,n,t),!0;AE(e.b,n,kx(e.b,r))}return AE(e.b,r,t),!0}function w0e(e,t,n,i){var a=0,o;if(n)a=Bj(e.a[n.g][t.g],i);else for(o=0;o=s)}function E0e(e){switch(e.g){case 0:return new One;case 1:return new kne;default:throw O(new Hp(`No implementation is available for the width approximator `+(e.f==null?``+e.g:e.f)))}}function D0e(e,t,n,r){var i=!1;if(z_(r)&&(i=!0,bx(t,n,rb(r))),i||L_(r)&&(i=!0,D0e(e,t,n,r)),i||N(r,242)&&(i=!0,_w(t,n,F(r,242))),!i)throw O(new Lp(tvt))}function O0e(e,t){var n=t.ni(e.a),r,i;if(n&&(i=vN((!n.b&&(n.b=new Qy((Kz(),o9),d9,n)),n.b),kq),i!=null)){for(r=1;r<(xI(),cVt).length;++r)if(kb(cVt[r],i))return r}return 0}function k0e(e,t){var n=t.ni(e.a),r,i;if(n&&(i=vN((!n.b&&(n.b=new Qy((Kz(),o9),d9,n)),n.b),kq),i!=null)){for(r=1;r<(xI(),lVt).length;++r)if(kb(lVt[r],i))return r}return 0}function A0e(e,t){var n,r,i,a;if(MC(t),a=e.a.gc(),a0);a.a[i]!=n;)a=a.a[i],i=+(e.a.Le(n.d,a.d)>0);a.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function F0e(e){var t=new Od,n=H(J9,rH,30,e.a.c.length,16,1),r,i;for(bTe(n,n.length),i=new D(e.a);i.a0&&_rt((OT(0,n.c.length),F(n.c[0],25)),e),n.c.length>1&&_rt(F(kx(n,n.c.length-1),25),e),t.Ug()}function R0e(e){II();var t=Gx(X8,W(A(e5,1),Z,280,0,[Q8])),n;return!(SA(qw(t,e))>1||(n=Gx(Y8,W(A(e5,1),Z,280,0,[J8,$8])),SA(qw(n,e))>1))}function z0e(e,t){N(Ww((Hh(),V7),e),493)?dT(V7,e,new wpe(this,t)):dT(V7,e,this),oI(this,t),t==(Lm(),NBt)?(this.wb=F(this,2003),F(t,2005)):this.wb=(eC(),K7)}function B0e(e){var t,n,r;if(e==null)return null;for(t=null,n=0;na}function W0e(e,t){var n,r,i;if(X0e(e,t))return!0;for(r=new D(t);r.a=i||t<0)throw O(new Fp(ZK+t+QK+i));if(n>=i||n<0)throw O(new Fp($K+n+QK+i));return r=t==n?e.vj(n):(a=e.Aj(n),e.oj(t,a),a),r}function Y0e(e){var t,n,r=e;if(e)for(t=0,n=e.Bh();n;n=n.Bh()){if(++t>gft)return Y0e(n);if(r=n,n==e)throw O(new Up(`There is a cycle in the containment hierarchy of `+e))}return r}function rI(e){var t,n,r=new EA(rB,`[`,`]`);for(n=e.Jc();n.Ob();)t=n.Pb(),qE(r,M(t)===M(e)?`(this Collection)`:t==null?aB:XM(t));return r.a?r.e.length==0?r.a.a:r.a.a+(``+r.e):r.c}function X0e(e,t){var n,r=!1;if(t.gc()<2)return!1;for(n=0;n1&&(e.j.b+=e.e)):(e.j.a+=n.a,e.j.b=r.Math.max(e.j.b,n.b),e.d.c.length>1&&(e.j.a+=e.e))}function iI(){iI=C,CTt=W(A(S5,1),cU,64,0,[(Dz(),n5),t5,y5]),STt=W(A(S5,1),cU,64,0,[t5,y5,x5]),wTt=W(A(S5,1),cU,64,0,[y5,x5,n5]),TTt=W(A(S5,1),cU,64,0,[x5,n5,t5])}function t2e(e){var t,n,r,i,a,o,s,c,l;for(this.a=lXe(e),this.b=new Od,n=e,r=0,i=n.length;rsb(e.d).c?(e.i+=e.g.c,AN(e.d)):sb(e.d).c>sb(e.g).c?(e.e+=e.d.c,AN(e.g)):(e.i+=dwe(e.g),e.e+=dwe(e.d),AN(e.g),AN(e.d))}function a2e(e,t,n){var r,i,a=t.q,o=t.r;for(new _T(($E(),k2),t,a,1),new _T(k2,a,o,1),i=new D(n);i.ac&&(l=c/i),a>o&&(u=o/a),s=r.Math.min(l,u),e.a+=s*(t.a-e.a),e.b+=s*(t.b-e.b)}function d2e(e,t,n,r,i){var a,o=!1;for(a=F(kx(n.b,0),26);tat(e,t,a,r,i)&&(o=!0,$$e(n,a),n.b.c.length!=0);)a=F(kx(n.b,0),26);return n.b.c.length==0&&pF(n.j,n),o&&qP(t.q),o}function f2e(e,t,n,r){var i,a;return n==0?(!e.o&&(e.o=new yD((Pz(),a7),u7,e,0)),jb(e.o,t,r)):(a=F(yO((i=F(yA(e,16),29),i||e.fi()),n),69),a.uk().yk(e,RN(e),n-tC(e.fi()),t,r))}function oI(e,t){var n;t==e.sb?e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,4,t,t)):(n=null,e.sb&&(n=F(e.sb,52).Qh(e,1,e7,n)),t&&(n=F(t,52).Oh(e,1,e7,n)),n=VGe(e,t,n),n&&n.mj())}function p2e(e,t){var n,r,i,a;if(t)i=nk(t,`x`),n=new Woe(e),WO(n.a,(MC(i),i)),a=nk(t,`y`),r=new Goe(e),GO(r.a,(MC(a),a));else throw O(new em(`All edge sections need an end point.`))}function m2e(e,t){var n,r,i,a;if(t)i=nk(t,`x`),n=new od(e),YO(n.a,(MC(i),i)),a=nk(t,`y`),r=new Hoe(e),XO(r.a,(MC(a),a));else throw O(new em(`All edge sections need a start point.`))}function h2e(e,t){for(var n,r=nWe(e),i,a=0,o,s=r.length,c;a>22-t,i=e.h<>22-t):t<44?(n=0,r=e.l<>44-t):(n=0,r=0,i=e.l<=qB?`error`:r>=900?`warn`:r>=800?`info`:`log`),sEe(n,e.a),e.b&&y9e(t,n,e.b,`Exception: `,!0))}function S2e(e,t){var n,r,i=t==1?lX:cX,a,o;for(r=i.a.ec().Jc();r.Ob();)for(n=F(r.Pb(),86),o=F(VE(e.f.c,n),22).Jc();o.Ob();)a=F(o.Pb(),49),ry(e.b.b,F(a.b,82)),ry(e.b.a,F(a.b,82).d)}function C2e(e,t,n,r){var i,a,o,s,c=e.b;switch(a=t.d,o=a.j,s=gYe(o,c.d[o.g],n),i=wb(Jv(a.n),a.a),a.j.g){case 3:case 1:s.a+=i.a;break;case 2:s.b+=i.b;break;case 4:s.b+=i.b}DE(r,s,r.c.b,r.c)}function w2e(e,t){var n,r,i,a=t.b.j;for(e.a=H(q9,cV,30,a.c.length,15,1),i=0,r=0;re)throw O(new Hp(`k must be smaller than n`));return t==0||t==e?1:e==0?0:C$e(e)/(C$e(t)*C$e(e-t))}function E2e(e,t){for(var n=new Dv(e),r,i,a;n.g==null&&!n.c?Vke(n):n.g==null||n.i!=0&&F(n.g[n.i-1],50).Ob();)if(a=F(fL(n),57),N(a,174))for(r=F(a,174),i=0;i>4],t[n*2+1]=P9[a&15];return MN(t,0,t.length)}function B2e(e){var t,n;switch(e.c.length){case 0:return GC(),kbt;case 1:return t=F(R3e(new D(e)),45),sve(t.jd(),t.kd());default:return n=F(qN(e,H(bJ,DB,45,e.c.length,0,1)),175),new wde(n)}}function fI(e,t){switch(t.g){case 1:return ex(e.j,(Qk(),lwt));case 2:return ex(e.j,(Qk(),swt));case 3:return ex(e.j,(Qk(),dwt));case 4:return ex(e.j,(Qk(),fwt));default:return fw(),fw(),nY}}function V2e(e,t){var n=ZSe(t,e.e),r=F(pC(e.g.f,n),15).a,i=e.a.c.length-1;e.a.c.length!=0&&F(kx(e.a,i),295).c==r?(++F(kx(e.a,i),295).a,++F(kx(e.a,i),295).b):ry(e.a,new g_e(r))}function pI(){pI=C,zPt=(Hz(),U6),UPt=X6,NPt=E6,PPt=O6,FPt=k6,MPt=T6,IPt=j6,RPt=V6,k4=(Vnt(),gPt),A4=_Pt,BPt=CPt,N4=EPt,VPt=wPt,HPt=TPt,LPt=yPt,j4=xPt,M4=SPt,P4=DPt,WPt=kPt,jPt=hPt}function H2e(e,t){var n,r,i,a,o;if(e.e<=t||ije(e,e.g,t))return e.g;for(a=e.r,r=e.g,o=e.r,i=(a-r)/2+r;r+11&&(e.e.b+=e.a)):(e.e.a+=n.a,e.e.b=r.Math.max(e.e.b,n.b),e.d.c.length>1&&(e.e.a+=e.a))}function Y2e(e){var t,n,r,i=e.i;switch(t=i.b,r=i.j,n=i.g,i.a.g){case 0:n.a=(e.g.b.o.a-r.a)/2;break;case 1:n.a=t.d.n.a+t.d.a.a;break;case 2:n.a=t.d.n.a+t.d.a.a-r.a;break;case 3:n.b=t.d.n.b+t.d.a.b}}function X2e(e,t,n){for(var r,i=new uS(py(BM(n).a.Jc(),new f)),a;rL(i);)r=F(zE(i),17),!(IE(r)||!IE(r)&&r.c.i.c==r.d.i.c)&&(a=m7e(e,r,n,new Mf),a.c.length>1&&zd(t.c,a))}function Z2e(e,t,n,r,i){if(rr&&(e.a=r),e.bi&&(e.b=i),e}function Q2e(e){if(N(e,144))return m9e(F(e,144));if(N(e,233))return mqe(F(e,233));if(N(e,21))return v2e(F(e,21));throw O(new Hp(GK+rI(new Yp(W(A(hJ,1),iB,1,5,[e])))))}function $2e(e,t,n,r,i){for(var a=!0,o=0,s;o>>i|n[o+r+1]<>>i,++o}return a}function e4e(e,t,n,r){var i,a,o;if(t.k==(pL(),EX)){for(a=new uS(py(zM(t).a.Jc(),new f));rL(a);)if(i=F(zE(a),17),o=i.c.i.k,o==EX&&e.c.a[i.c.i.c.p]==r&&e.c.a[t.c.p]==n)return!0}return!1}function t4e(e,t){var n,r,i,a;return t&=63,n=e.h&yV,t<22?(a=n>>>t,i=e.m>>t|n<<22-t,r=e.l>>t|e.m<<22-t):t<44?(a=0,i=n>>>t-22,r=e.m>>t-22|e.h<<44-t):(a=0,i=0,r=n>>>t-44),Uv(r&vV,i&vV,a&yV)}function n4e(e,t,n,r){var i;this.b=r,this.e=e==(qj(),g2),i=t[n],this.d=Px(J9,[vB,rH],[171,30],16,[i.length,i.length],2),this.a=Px(q9,[vB,cV],[54,30],15,[i.length,i.length],2),this.c=new O1e(t,n)}function r4e(e){var t,n,r;for(e.k=new mje((Dz(),W(A(S5,1),cU,64,0,[b5,n5,t5,y5,x5])).length,e.j.c.length),r=new D(e.j);r.a=n)return gI(e,t,r.p),!0;return!1}function hI(e,t,n,r){var i,a,o=n.length,s,c,l;for(a=0,i=-1,l=kRe((kT(t,e.length+1),e.substr(t)),(Vb(),wxt)),s=0;sa&&vTe(l,kRe(n[s],wxt))&&(i=s,a=c);return i>=0&&(r[0]=t+a),i}function s4e(e,t,n){var r,i,a=e.d.p,o,s=a.e,c=a.r,l,u;e.g=new Ab(c),o=e.d.o.c.p,r=o>0?s[o-1]:H(SX,mU,9,0,0,1),i=s[o],l=on?r3e(e,n,`start index`):t<0||t>n?r3e(t,n,`end index`):QL(`end index (%s) must not be less than start index (%s)`,W(A(hJ,1),iB,1,5,[K(t),K(e)]))}function f4e(e,t){for(var n,r=0,i=e.length,a;r0&&h4e(e,a,n));t.p=0}function g4e(e){for(var t=xC(Q_(new _y(`Predicates.`),`and`),40),n=!0,r,i=new Pl(e);i.b=0?e.hi(i):V3e(e,r);else throw O(new Hp(vK+r.ve()+yK))}else sM(e,n,r)}function y4e(e){var t,n=null;if(t=!1,N(e,210)&&(t=!0,n=F(e,210).a),t||N(e,265)&&(t=!0,n=``+F(e,265).a),t||N(e,479)&&(t=!0,n=``+F(e,479).a),!t)throw O(new Lp(tvt));return n}function b4e(e,t,n){var r,i,a,o,s,c=LL(e.e.Ah(),t);for(r=0,s=e.i,i=F(e.g,122),o=0;o=e.d.b.c.length&&(t=new mC(e.d),t.p=r.p-1,ry(e.d.b,t),n=new mC(e.d),n.p=r.p,ry(e.d.b,n)),cT(r,F(kx(e.d.b,r.p),25))}function w4e(e){var t,n=new ph,r,i;for(Gk(n,e.o),r=new Pf;n.b!=0;)t=F(n.b==0?null:(Ky(n.b!=0),DO(n,n.a.a)),501),i=put(e,t,!0),i&&ry(r.a,t);for(;r.a.c.length!=0;)t=F(kWe(r),501),put(e,t,!1)}function vI(e){var t;this.c=new ph,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,this.j=e.i?e.i:(t=F(Rm(z3),10),new Rb(t,F(yb(t,t.length),10),0)),this.g=e.f}function yI(){yI=C,uLt=new d_(lH,0),B3=new d_(`BOOLEAN`,1),W3=new d_(`INT`,2),K3=new d_(`STRING`,3),V3=new d_(`DOUBLE`,4),H3=new d_(`ENUM`,5),U3=new d_(`ENUMSET`,6),G3=new d_(`OBJECT`,7)}function bI(e,t){var n,i=r.Math.min(e.c,t.c),a,o=r.Math.min(e.d,t.d),s;a=r.Math.max(e.c+e.b,t.c+t.b),s=r.Math.max(e.d+e.a,t.d+t.a),a=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++0;)CRe(this);this.b=t,this.a=null}function N4e(e,t){var n,r;t.a?V9e(e,t):(n=F(Ch(e.b,t.b),60),n&&n==e.a[t.b.f]&&n.a&&n.a!=t.b.a&&n.c.Ec(t.b),r=F(Sh(e.b,t.b),60),r&&e.a[r.f]==t.b&&r.a&&r.a!=t.b.a&&t.b.c.Ec(r),ey(e.b,t.b))}function P4e(e,t){var n=F(zC(e.b,t),127),r;F(F(VE(e.r,t),22),83).dc()?(n.n.b=0,n.n.c=0):(n.n.b=e.C.b,n.n.c=e.C.c,e.A.Gc((EN(),O5))&&Xtt(e,t),r=tXe(e,t),ttt(e,t)==(tP(),z8)&&(r+=2*e.w),n.a.a=r)}function F4e(e,t){var n=F(zC(e.b,t),127),r;F(F(VE(e.r,t),22),83).dc()?(n.n.d=0,n.n.a=0):(n.n.d=e.C.d,n.n.a=e.C.a,e.A.Gc((EN(),O5))&&Ztt(e,t),r=eXe(e,t),ttt(e,t)==(tP(),z8)&&(r+=2*e.w),n.a.b=r)}function I4e(e,t){var n,r,i,a=new Od;for(r=new D(t);r.ar&&(kT(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return r>0||tn.a&&(r.Gc((MF(),n6))?i=(t.a-n.a)/2:r.Gc(i6)&&(i=t.a-n.a)),t.b>n.b&&(r.Gc((MF(),o6))?a=(t.b-n.b)/2:r.Gc(a6)&&(a=t.b-n.b)),N0e(e,i,a)}function n3e(e,t,n,r,i,a,o,s,c,l,u,d,f){N(e.Cb,88)&&MI(LE(F(e.Cb,88)),4),zk(e,n),e.f=o,EM(e,s),DM(e,c),TM(e,l),wM(e,u),lM(e,d),HM(e,f),cM(e,!0),QO(e,i),e.Xk(a),Hj(e,t),r!=null&&(e.i=null,wk(e,r))}function r3e(e,t,n){if(e<0)return QL(Hdt,W(A(hJ,1),iB,1,5,[n,K(e)]));if(t<0)throw O(new Hp(Udt+t));return QL(`%s (%s) must not be greater than size (%s)`,W(A(hJ,1),iB,1,5,[n,K(e),K(t)]))}function i3e(e,t,n,r,i,a){var o=r-n,s,c,l;if(o<7)QKe(t,n,r,a);else if(c=n+i,s=r+i,l=c+(s-c>>1),i3e(t,e,c,l,-i,a),i3e(t,e,l,s,-i,a),a.Le(e[l-1],e[l])<=0)for(;n=0?e.$h(a,n):x7e(e,i,n);else throw O(new Hp(vK+i.ve()+yK))}else YM(e,r,i,n)}function l3e(e){var t,n;if(e.f){for(;e.n>0;){if(t=F(e.k.Xb(e.n-1),75),n=t.Jk(),N(n,103)&&(F(n,19).Bb&xK)!=0&&(!e.e||n.nk()!=K5||n.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}return e.n>0}function u3e(e){var t,n=F(e,52).Yh(),r,i;if(n)try{if(r=null,t=uL((Hh(),V7),Hrt(sqe(n))),t&&(i=t.Zh(),i&&(r=i.Dl(fce(n.e)))),r&&r!=e)return u3e(r)}catch(e){if(e=UA(e),!N(e,63))throw O(e)}return e}function d3e(e,t,n){var r,i,a;n.Tg(`Remove overlaps`,1),n.bh(t,$ht),r=F(Y(t,(fb(),y4)),26),e.f=r,e.a=EP(F(Y(t,(pI(),P4)),304)),i=P(Y(t,(Hz(),X6))),cl(e,(MC(i),i)),a=HL(r),Kct(e,t,a,n),n.bh(t,SG)}function f3e(e){var t,n,r;if(Gp(nb(Y(e,(Hz(),y6))))){for(r=new Od,n=new uS(py(gL(e).a.Jc(),new f));rL(n);)t=F(zE(n),85),UI(t)&&Gp(nb(Y(t,b6)))&&zd(r.c,t);return r}return fw(),fw(),nY}function p3e(e){if(!e)return wce(),zbt;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=NJ[typeof t];return n?n(t):cGe(typeof t)}return e instanceof Array||e instanceof r.Array?new Wc(e):new qc(e)}function m3e(e,t,n){var i,a,o=e.o;switch(i=F(zC(e.p,n),253),a=i.i,a.b=zI(i),a.a=RI(i),a.b=r.Math.max(a.b,o.a),a.b>o.a&&!t&&(a.b=o.a),a.c=-(a.b-o.a)/2,n.g){case 1:a.d=-a.a;break;case 3:a.d=o.b}jR(i),NR(i)}function h3e(e,t,n){var i,a,o=e.o;switch(i=F(zC(e.p,n),253),a=i.i,a.b=zI(i),a.a=RI(i),a.a=r.Math.max(a.a,o.b),a.a>o.b&&!t&&(a.a=o.b),a.d=-(a.a-o.b)/2,n.g){case 4:a.c=-a.b;break;case 2:a.c=o.a}jR(i),NR(i)}function g3e(e,t){var n,i,a;return N(t.g,9)&&F(t.g,9).k==(pL(),wX)?DV:(a=lE(t),a?r.Math.max(0,e.b/2-.5):(n=jT(t),n?(i=k(P(DN(n,(zz(),g0)))),r.Math.max(0,i/2-.5)):DV))}function _3e(e,t){var n,i,a;return N(t.g,9)&&F(t.g,9).k==(pL(),wX)?DV:(a=lE(t),a?r.Math.max(0,e.b/2-.5):(n=jT(t),n?(i=k(P(DN(n,(zz(),g0)))),r.Math.max(0,i/2-.5)):DV))}function v3e(e,t){var n,r,i,a,o;if(!t.dc()){if(i=F(t.Xb(0),132),t.gc()==1)tet(e,i,i,1,0,t);else for(n=1;n0)try{i=_R(t,VB,$z)}catch(e){throw e=UA(e),N(e,131)?(r=e,O(new XD(r))):O(e)}return n=(!e.a&&(e.a=new Cd(e)),e.a),i=0?F(U(n,i),57):null}function S3e(e,t){if(e<0)return QL(Hdt,W(A(hJ,1),iB,1,5,[`index`,K(e)]));if(t<0)throw O(new Hp(Udt+t));return QL(`%s (%s) must be less than size (%s)`,W(A(hJ,1),iB,1,5,[`index`,K(e),K(t)]))}function C3e(e){var t,n,r,i,a;if(e==null)return aB;for(a=new EA(rB,`[`,`]`),n=e,r=0,i=n.length;r`,O(new Hp(r.a))}function z3e(e){var t,n=-e.a;return t=W(A(K9,1),KB,30,15,[43,48,48,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&JB,t[2]=t[2]+(n/60|0)%10&JB,t[3]=t[3]+(n%60/10|0)&JB,t[4]=t[4]+n%10&JB,MN(t,0,t.length)}function B3e(e){var t,n,r,i;for(e.g=new tN(F(aC(S5),298)),r=0,n=(Dz(),n5),t=0;t=0?e.Ih(n,!0,!0):qI(e,i,!0),163)),F(r,219).Xl(t);else throw O(new Hp(vK+t.ve()+yK))}function H3e(e){var t,n;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),n=Gw(r.Math.floor(r.Math.log(e)/.6931471805599453)),(!t||e!=r.Math.pow(2,n))&&++n,n):YGe(gA(e))}function U3e(e){var t,n,r,i,a=new mv,o,s;for(n=new D(e);n.a2&&s.e.b+s.j.b<=2&&(i=s,r=o),a.a.yc(i,a),i.q=r);return a}function W3e(e,t,n){n.Tg(`Eades radial`,1),n.bh(t,SG),e.d=F(Y(t,(fb(),y4)),26),e.c=k(P(Y(t,(pI(),M4)))),e.e=EP(F(Y(t,P4),304)),e.a=Tqe(F(Y(t,WPt),426)),e.b=P$e(F(Y(t,LPt),354)),a$e(e),n.bh(t,SG)}function G3e(e,t){if(t.Tg(`Target Width Setter`,1),lD(e,(JL(),s3)))pP(e,(XL(),Q4),P(Y(e,s3)));else throw O(new Qp(`A target width has to be set if the TargetWidthWidthApproximator should be used.`));t.Ug()}function K3e(e,t){var n,r=new MP(e),i;return wA(r,t),G(r,(X(),KQ),t),G(r,(zz(),X1),(LF(),U8)),G(r,B$,(bP(),Z3)),Qc(r,(pL(),wX)),n=new uI,uT(n,r),PI(n,(Dz(),x5)),i=new uI,uT(i,r),PI(i,t5),r}function q3e(e,t){var n,r,i,a,o;for(e.c[t.p]=!0,ry(e.a,t),o=new D(t.j);o.a=a)o.$b();else for(i=o.Jc(),r=0;r0?_ce():o<0&&i6e(e,t,-o),!0)}function RI(e){var t,n,r,i,a,o,s=0;if(e.b==0){for(o=NXe(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}else s=Fce($k($C(ZC(zS(e.a),new Ie),new ze)));return s>0?s+e.n.d+e.n.a:0}function zI(e){var t,n,r,i,a,o,s=0;if(e.b==0)s=Fce($k($C(ZC(zS(e.a),new Le),new Re)));else{for(o=PXe(e,!0),t=0,r=o,i=0,a=r.length;i0&&(s+=n,++t);t>1&&(s+=e.c*(t-1))}return s>0?s+e.n.b+e.n.c:0}function o6e(e){var t,n;if(e.c.length!=2)throw O(new Up(`Order only allowed for two paths.`));t=(OT(0,e.c.length),F(e.c[0],17)),n=(OT(1,e.c.length),F(e.c[1],17)),t.d.i!=n.c.i&&(e.c.length=0,zd(e.c,n),zd(e.c,t))}function s6e(e,t,n){var r;for(Sv(n,t.g,t.f),Cv(n,t.i,t.j),r=0;r<(!t.a&&(t.a=new I(s7,t,10,11)),t.a).i;r++)s6e(e,F(U((!t.a&&(t.a=new I(s7,t,10,11)),t.a),r),26),F(U((!n.a&&(n.a=new I(s7,n,10,11)),n.a),r),26))}function c6e(e,t){var n,i,a,o=F(zC(e.b,t),127);for(n=o.a,a=F(F(VE(e.r,t),22),83).Jc();a.Ob();)i=F(a.Pb(),115),i.c&&(n.a=r.Math.max(n.a,yCe(i.c)));if(n.a>0)switch(t.g){case 2:o.n.c=e.s;break;case 4:o.n.b=e.s}}function l6e(e,t){var n=F(q(t,(CR(),WY)),15).a-F(q(e,WY),15).a,r,i;return n==0?(r=Tb(Jv(F(q(e,(Mk(),JY)),8)),F(q(e,YY),8)),i=Tb(Jv(F(q(t,JY),8)),F(q(t,YY),8)),mM(r.a*r.b,i.a*i.b)):n}function u6e(e,t){var n=F(q(t,(AR(),d4)),15).a-F(q(e,d4),15).a,r,i;return n==0?(r=Tb(Jv(F(q(e,(Ez(),V2)),8)),F(q(e,H2),8)),i=Tb(Jv(F(q(t,V2),8)),F(q(t,H2),8)),mM(r.a*r.b,i.a*i.b)):n}function d6e(e){var t,n=new dm;return n.a+=`e_`,t=CHe(e),t!=null&&(n.a+=``+t),e.c&&e.d&&(Q_((n.a+=` `,n),eF(e.c)),Q_(Z_((n.a+=`[`,n),e.c.i),`]`),Q_((n.a+=fU,n),eF(e.d)),Q_(Z_((n.a+=`[`,n),e.d.i),`]`)),n.a}function f6e(e){switch(e.g){case 0:return new sc;case 1:return new lie;case 2:return new pc;case 3:return new mc;default:throw O(new Hp(`No implementation is available for the layout phase `+(e.f==null?``+e.g:e.f)))}}function p6e(e,t,n,i,a){var o=0;switch(a.g){case 1:o=r.Math.max(0,t.b+e.b-(n.b+i));break;case 3:o=r.Math.max(0,-e.b-i);break;case 2:o=r.Math.max(0,-e.a-i);break;case 4:o=r.Math.max(0,t.a+e.a-(n.a+i))}return o}function m6e(e,t,n){var r,i,a,o,s;if(n)for(i=n.a.length,r=new rS(i),s=(r.b-r.a)*r.c<0?(Jh(),G9):new ly(r);s.Ob();)o=F(s.Pb(),15),a=rE(n,o.a),X_t in a.a||zK in a.a?Ant(e,a,t):Jut(e,a,t),fge(F(pC(e.c,PN(a)),85))}function h6e(e){var t,n;switch(e.b){case-1:return!0;case 0:return n=e.t,n>1||n==-1?(e.b=-1,!0):(t=mF(e),t&&(qh(),t.jk()==lyt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function g6e(e,t){var n,r,i,a;if(Rz(e),e.c!=0||e.a!=123)throw O(new tm(Jz((Iv(),Cvt))));if(a=t==112,r=e.d,n=Ry(e.i,125,r),n<0)throw O(new tm(Jz((Iv(),wvt))));return i=jw(e.i,r,n),e.d=n+1,YIe(i,a,(e.e&512)==512)}function _6e(e){var t,n,r,i,a,o,s=Ly(e.c.length);for(i=new D(e);i.a=0&&r=0?e.Ih(n,!0,!0):qI(e,i,!0),163)),F(r,219).Ul(t);throw O(new Hp(vK+t.ve()+bK))}function b6e(){pde();var e;return oVt?F(uL((Hh(),V7),Iq),2003):(nv(bJ,new ls),Nct(),e=F(N(Ww((Hh(),V7),Iq),549)?Ww(V7,Iq):new JEe,549),oVt=!0,kdt(e),Bdt(e),LC((fde(),MBt),e,new dre),dT(V7,Iq,e),e)}function x6e(e,t){var n,r,i,a;e.j=-1,_v(e.e)?(n=e.i,a=e.i!=0,WE(e,t),r=new ZD(e.e,3,e.c,null,t,n,a),i=t.xl(e.e,e.c,null),i=x1e(e,t,i),i?(i.lj(r),i.mj()):dA(e.e,r)):(WE(e,t),i=t.xl(e.e,e.c,null),i&&i.mj())}function HI(e,t){var n,r,i=0;if(r=t[0],r>=e.length)return-1;for(n=(kT(r,e.length),e.charCodeAt(r));n>=48&&n<=57&&(i=i*10+(n-48),++r,!(r>=e.length));)n=(kT(r,e.length),e.charCodeAt(r));return r>t[0]?t[0]=r:i=-1,i}function S6e(e,t,n){var r,i,a,o=e.c,s=e.d;a=sj(W(A(J3,1),vB,8,0,[o.i.n,o.n,o.a])).b,i=(a+sj(W(A(J3,1),vB,8,0,[s.i.n,s.n,s.a])).b)/2,r=null,r=o.j==(Dz(),t5)?new j(t+o.i.c.c.a+n,i):new j(t-n,i),zy(e.a,0,r)}function UI(e){for(var t=null,n,r=OS(ik(W(A(_J,1),iB,20,0,[(!e.b&&(e.b=new Db(X5,e,4,7)),e.b),(!e.c&&(e.c=new Db(X5,e,5,8)),e.c)]))),i;rL(r);)if(n=F(zE(r),84),i=VF(n),!t)t=i;else if(t!=i)return!1;return!0}function WI(e,t,n){var r;if(++e.j,t>=e.i)throw O(new Fp(ZK+t+QK+e.i));if(n>=e.i)throw O(new Fp($K+n+QK+e.i));return r=e.g[n],t!=n&&(t>16),t=r>>16&16,n=16-t,e>>=t,r=e-256,t=r>>16&8,n+=t,e<<=t,r=e-kV,t=r>>16&4,n+=t,e<<=t,r=e-yB,t=r>>16&2,n+=t,e<<=t,r=e>>14,t=r&~(r>>1),n+2-t)}function C6e(e,t){var n,r,i=new Od;for(r=nP(t.a,0);r.b!=r.d.c;)n=F(sE(r),65),n.c.g==e.g&&M(q(n.b,(AR(),p4)))!==M(q(n.c,p4))&&!FE(new Mx(null,new DT(i,16)),new Ku(n))&&zd(i.c,n);return Bv(i,new Ri),i}function w6e(e,t,n){var r,i,a,o;return N(t,155)&&N(n,155)?(a=F(t,155),o=F(n,155),e.a[a.a][o.a]+e.a[o.a][a.a]):N(t,251)&&N(n,251)&&(r=F(t,251),i=F(n,251),r.a==i.a)?F(q(i.a,(CR(),WY)),15).a:0}function T6e(e,t){var n,i,a,o,s,c,l,u=k(P(q(t,(zz(),b0))));for(l=e[0].n.a+e[0].o.a+e[0].d.c+u,c=1;c=0?n:(s=CC(Tb(new j(o.c+o.b/2,o.d+o.a/2),new j(a.c+a.b/2,a.d+a.a/2))),-(lit(a,o)-1)*s)}function D6e(e,t,n){var r;xh(new Mx(null,(!n.a&&(n.a=new I(Q5,n,6,6)),new DT(n.a,16))),new tpe(e,t)),xh(new Mx(null,(!n.n&&(n.n=new I(o7,n,1,7)),new DT(n.n,16))),new npe(e,t)),r=F(Y(n,(Hz(),C6)),79),r&&xVe(r,e,t)}function qI(e,t,n){var r,i,a=mz((xI(),p9),e.Ah(),t);if(a)return qh(),F(a,69).vk()||(a=MT(GD(p9,a))),i=(r=e.Fh(a),F(r>=0?e.Ih(r,!0,!0):qI(e,a,!0),163)),F(i,219).Ql(t,n);throw O(new Hp(vK+t.ve()+bK))}function O6e(e,t,n,r){var i=e.d[t],a,o,s,c;if(i){if(a=i.g,c=i.i,r!=null){for(s=0;s=n&&(r=t,l=(c.c+c.a)/2,o=l-n,c.c<=l-n&&(i=new Yb(c.c,o),Kx(e,r++,i)),s=l+n,s<=c.a&&(a=new Yb(s,c.a),pT(r,e.c.length),bg(e.c,r,a)))}function I6e(e,t,n){var r,i,a,o,s,c;if(!t.dc()){for(i=new ph,c=t.Jc();c.Ob();)for(s=F(c.Pb(),40),LC(e.a,K(s.g),K(n)),o=(r=nP(new qu(s).a.d,0),new Ju(r));qm(o.a);)a=F(sE(o.a),65).c,DE(i,a,i.c.b,i.c);I6e(e,i,n+1)}}function L6e(e){var t;if(!e.c&&e.g==null)e.d=e._i(e.f),hD(e,e.d),t=e.d;else if(e.g==null)return!0;else if(e.i==0)return!1;else t=F(e.g[e.i-1],50);return t==e.b&&null.Tm>=null.Sm()?(fL(e),L6e(e)):t.Ob()}function R6e(e){if(this.a=e,e.c.i.k==(pL(),wX))this.c=e.c,this.d=F(q(e.c.i,(X(),qQ)),64);else if(e.d.i.k==wX)this.c=e.d,this.d=F(q(e.d.i,(X(),qQ)),64);else throw O(new Hp(`Edge `+e+` is not an external edge.`))}function z6e(e,t){var n,r,i=e.b;e.b=t,e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,3,i,e.b)),t?t!=e&&(zk(e,t.zb),ZO(e,t.d),n=(r=t.c,r??t.zb),yk(e,n==null||kb(n,t.zb)?null:n)):(zk(e,null),ZO(e,0),yk(e,null))}function B6e(e){var t=(!OJ&&(OJ=hut()),OJ);return`"`+e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(e){return vke(e,t)})+`"`}function V6e(e,t,n,i,a,o){var s,c,l,u,d;if(a!=0)for(M(e)===M(n)&&(e=e.slice(t,t+a),t=0),l=n,c=t,u=t+a;c=o)throw O(new Ob(t,o));return i=n[t],o==1?r=null:(r=H(w7,pq,415,o-1,0,1),OR(n,0,r,0,t),a=o-t-1,a>0&&OR(n,t+1,r,t,a)),lP(e,r),K4e(e,t,i),i}function W6e(e){var t,n;if(e.f){for(;e.n0)for(o=e.c.d,s=e.d.d,i=ny(Tb(new j(s.a,s.b),o),1/(r+1)),a=new j(o.a,o.b),n=new D(e.a);n.a0?sN(n):bM(sN(n))),pP(t,$1,a)}function Y6e(e,t){var n,r;if(e.c.length!=0){if(e.c.length==2)VR((OT(0,e.c.length),F(e.c[0],9)),(sF(),w8)),VR((OT(1,e.c.length),F(e.c[1],9)),T8);else for(r=new D(e);r.a0&&rR(e,n,t),a):r.a==null?i.a==null?0:(rR(e,n,t),1):(rR(e,t,n),-1)}function Q6e(e){gT();for(var t,n=new CE,r,i=new D(e.e.b),a,o,s;i.a=0;)r=n[a],o.$l(r.Jk())&&hD(i,r);!Eut(e,i)&&_v(e.e)&&cf(e,t.Hk()?Aw(e,6,t,(fw(),nY),null,-1,!1):Aw(e,t.rk()?2:1,t,null,null,-1,!1))}function n8e(e,t){var n,r,i,a,o;return e.a==(aI(),fQ)||(a=t.a.c,n=t.a.c+t.a.b,!(t.j&&(r=t.A,o=r.c.c.a-r.o.a/2,i=a-(r.n.a+r.o.a),i>o)||t.q&&(r=t.C,o=r.c.c.a-r.o.a/2,i=r.n.a-n,i>o)))}function r8e(e,t,n){var r=0,i,a,o,s,c=n;for(t||(r=n*(e.c.length-1),c*=-1),a=new D(e);a.a=0?e.xh(null):e.Mh().Qh(e,-1-t,null,null)),e.yh(F(i,52),n),r&&r.mj(),e.sh()&&e.th()&&n>-1&&dA(e,new CS(e,9,n,a,i)),i):a}function b8e(e,t){var n,r,i,a=e.b.Ae(t),o;for(r=(n=e.a.get(a),n??H(hJ,iB,1,0,5,1)),o=0;o>5,i>=e.d)return e.e<0;if(n=e.a[i],t=1<<(t&31),e.e<0){if(r=BVe(e),i>16)),16).bd(a),s0&&(!(yv(e.a.c)&&t.n.d)&&!(bv(e.a.c)&&t.n.b)&&(t.g.d+=r.Math.max(0,i/2-.5)),!(yv(e.a.c)&&t.n.a)&&!(bv(e.a.c)&&t.n.c)&&(t.g.a-=i-1))}function N8e(e,t,n){var r,i,a=F(kx(t.e,0),17).c,o,s,c;r=a.i,i=r.k,c=F(kx(n.g,0),17).d,o=c.i,s=o.k,i==(pL(),EX)?G(e,(X(),a$),F(q(r,a$),12)):G(e,(X(),a$),a),s==EX?G(e,(X(),o$),F(q(o,o$),12)):G(e,(X(),o$),c)}function P8e(e,t){for(var n,r,i,a=new D(e.b),o,s;a.a>t,a=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(o=r?yV:0,a=n>>t-22,i=e.m>>t-22|n<<44-t):(o=r?yV:0,a=r?vV:0,i=n>>t-44),Uv(i&vV,a&vV,o&yV)}function B8e(e,t){var n,r,i,a,o,s,c,l,u;if(e.a.f>0&&N(t,45)&&(e.a.Zj(),l=F(t,45),c=l.jd(),a=c==null?0:Lk(c),o=Nve(e.a,a),n=e.a.d[o],n)){for(r=F(n.g,374),u=n.i,s=0;s=2)for(n=a.Jc(),t=P(n.Pb());n.Ob();)o=t,t=P(n.Pb()),i=r.Math.min(i,(MC(t),t-(MC(o),o)));return i}function t5e(e,t){var n,r,i=new Od;for(r=nP(t.a,0);r.b!=r.d.c;)n=F(sE(r),65),n.b.g==e.g&&!kb(n.b.c,pG)&&M(q(n.b,(AR(),p4)))!==M(q(n.c,p4))&&!FE(new Mx(null,new DT(i,16)),new Soe(n))&&zd(i.c,n);return Bv(i,new Vi),i}function n5e(e,t){var n,r,i;if(M(t)===M(aC(e)))return!0;if(!N(t,16)||(r=F(t,16),i=e.gc(),i!=r.gc()))return!1;if(N(r,59)){for(n=0;n0&&(i=n),o=new D(e.f.e);o.a0?i+=t:i+=1;return i}function m5e(e,t){var n,r,i,a,o,s,c,l=e,u,d;c=iE(l,`individualSpacings`),c&&(r=lD(t,(Hz(),J6)),o=!r,o&&(i=new eo,pP(t,J6,i)),s=F(Y(t,J6),379),d=c,a=null,d&&(a=(u=Ek(d,H(KJ,vB,2,0,6,1)),new dh(d,u))),a&&(n=new fpe(d,s),jE(a,n)))}function h5e(e,t){var n,r,i,a,o,s,c=null,l,u,d=e,f;return u=null,(svt in d.a||cvt in d.a||VK in d.a)&&(l=null,f=aUe(t),o=iE(d,svt),n=new qoe(f),Rqe(n.a,o),s=iE(d,cvt),r=new tse(f),zqe(r.a,s),a=nE(d,VK),i=new nse(f),l=(m1e(i.a,a),a),u=l),c=u,c}function g5e(e,t){var n,r,i;if(t===e)return!0;if(N(t,541)){if(i=F(t,834),e.a.d!=i.a.d||KC(e).gc()!=KC(i).gc())return!1;for(r=KC(i).Jc();r.Ob();)if(n=F(r.Pb(),416),fAe(e,n.a.jd())!=F(n.a.kd(),18).gc())return!1;return!0}return!1}function _5e(e,t){for(var n,r,i,a=new D(t.a);a.at.c?1:e.bt.b?1:e.a==t.a?e.d==(mE(),b2)&&t.d==y2?-1:+(e.d==y2&&t.d==b2):Lk(e.a)-Lk(t.a)}function aL(e){var t,n,i,a=DV,o,s,c,l;for(i=OV,n=new D(e.e.b);n.a0&&i<$W?(n=s5e(e.a,r.i,i,e.c),_ze(e.a,r.i,-n),n>0):i<0&&-i<$W&&(n=c5e(e.a,r.i,-i,e.c),_ze(e.a,r.i,n),n>0)}function b5e(e,t,n,r){var i=(t-e.d)/e.c.c.length,a=0,o,s,c,l,u,d;for(e.a+=n,e.d=t,d=new D(e.c);d.a>24;return o}function S5e(e){if(e.xe()){var t=e.c;e.o=t.ye()?`[`+t.n:t.xe()?`[`+t.ve():`[L`+t.ve()+`;`,e.b=t.ue()+`[]`,e.k=t.we()+`[]`}else{var n=e.j,r=e.d;r=r.split(`/`),e.o=jN(`.`,[n,jN(`$`,r)]),e.b=jN(`.`,[n,jN(`.`,r)]),e.k=r[r.length-1]}}function C5e(e,t){var n,r,i,a,o=null;for(a=new D(e.e.a);a.a0&&Bz(t,(OT(r-1,e.c.length),F(e.c[r-1],9)),i)>0;)AE(e,r,(OT(r-1,e.c.length),F(e.c[r-1],9))),--r;OT(r,e.c.length),e.c[r]=i}t.b=new kd,t.g=new kd}function N5e(e,t,n){for(var r=1,i,a;r0&&t.Le((OT(i-1,e.c.length),F(e.c[i-1],9)),a)>0;)AE(e,i,(OT(i-1,e.c.length),F(e.c[i-1],9))),--i;OT(i,e.c.length),e.c[i]=a}n.a=new kd,n.b=new kd}function oL(e,t,n){for(var i,a,o=t.Jc(),s,c,l,u,d,f,p;o.Ob();)a=F(o.Pb(),26),d=a.i+a.g/2,p=a.j+a.f/2,l=e.f,s=l.i+l.g/2,c=l.j+l.f/2,u=d-s,f=p-c,i=r.Math.sqrt(u*u+f*f),u*=e.e/i,f*=e.e/i,n?(d-=u,p-=f):(d+=u,p+=f),qO(a,d-a.g/2),JO(a,p-a.f/2)}function sL(e){var t,n,r;if(!e.c&&e.b!=null){for(t=e.b.length-4;t>=0;t-=2)for(n=0;n<=t;n+=2)(e.b[n]>e.b[n+2]||e.b[n]===e.b[n+2]&&e.b[n+1]>e.b[n+3])&&(r=e.b[n+2],e.b[n+2]=e.b[n],e.b[n]=r,r=e.b[n+3],e.b[n+3]=e.b[n+1],e.b[n+1]=r);e.c=!0}}function cL(e){var t,n=new _y(Um(e.Pm));return n.a+=`@`,Q_(n,(t=Lk(e)>>>0,t.toString(16))),e.Sh()?(n.a+=` (eProxyURI: `,Z_(n,e.Yh()),e.Hh()&&(n.a+=` eClass: `,Z_(n,e.Hh())),n.a+=`)`):e.Hh()&&(n.a+=` (eClass: `,Z_(n,e.Hh()),n.a+=`)`),n.a}function lL(e){var t,n,r,i;if(e.e)throw O(new Up((tb(yY),$V+yY.k+eH)));for(e.d==(hM(),o8)&&Sz(e,i8),n=new D(e.a.a);n.a>24}return n}function B5e(e,t,n){var r,i=F(zC(e.i,t),319),a;if(!i){if(i=new WRe(e.d,t,n),IS(e.i,t,i),OJe(t))Vhe(e.a,t.c,t.b,i);else switch(a=A4e(t),r=F(zC(e.p,a),253),a.g){case 1:case 3:i.j=!0,kp(r,t.b,i);break;case 4:case 2:i.k=!0,kp(r,t.c,i)}}return i}function V5e(e,t,n,r){var i,a,o,s=new lo,c=LL(e.e.Ah(),t),l;if(i=F(e.g,122),qh(),F(t,69).vk())for(o=0;o=0)return a;for(o=1,c=new D(t.j);c.a=0)return a;for(o=1,c=new D(t.j);c.a=0?(t||(t=new um,r>0&&Y_(t,(uD(0,r,e.length),e.substr(0,r)))),t.a+=`\\`,bC(t,n&JB)):t&&bC(t,n&JB);return t?t.a:e}function G5e(e){for(var t,n=new D(e.a.a.b),i;n.a0&&(!(yv(e.a.c)&&t.n.d)&&!(bv(e.a.c)&&t.n.b)&&(t.g.d-=r.Math.max(0,i/2-.5)),!(yv(e.a.c)&&t.n.a)&&!(bv(e.a.c)&&t.n.c)&&(t.g.a+=r.Math.max(0,i-1)))}function K5e(e,t,n){var r,i;if((e.c-e.b&e.a.length-1)==2)t==(Dz(),n5)||t==t5?(wO(F(rj(e),16),(sF(),w8)),wO(F(rj(e),16),T8)):(wO(F(rj(e),16),(sF(),T8)),wO(F(rj(e),16),w8));else for(i=new YC(e);i.a!=i.b;)r=F(Zj(i),16),wO(r,n)}function q5e(e,t,n){var r,i,a,o,s,c,l,u=-1,d=0;for(s=t,c=0,l=s.length;c0&&++d;++u}return d}function J5e(e,t){var n,r,i=tx(new md(e)),a,o,s=new qT(i,i.c.length),c;for(a=tx(new md(t)),c=new qT(a,a.c.length),o=null;s.b>0&&c.b>0&&(n=(Ky(s.b>0),F(s.a.Xb(s.c=--s.b),26)),r=(Ky(c.b>0),F(c.a.Xb(c.c=--c.b),26)),n==r);)o=n;return o}function Y5e(e,t){var n,r,i,a;for(t.Tg(`Self-Loop pre-processing`,1),r=new D(e.a);r.aDje(e,n)?(r=MM(n,(Dz(),t5)),e.d=r.dc()?0:vx(F(r.Xb(0),12)),o=MM(t,x5),e.b=o.dc()?0:vx(F(o.Xb(0),12))):(i=MM(n,(Dz(),x5)),e.d=i.dc()?0:vx(F(i.Xb(0),12)),a=MM(t,t5),e.b=a.dc()?0:vx(F(a.Xb(0),12)))}function Z5e(e){var t=!0,n,r,i=null,a=null,o,s,c;j:for(c=new D(e.a);c.ae.c));o++)i.a>=e.s&&(a<0&&(a=o),s=o);return c=(e.s+e.c)/2,a>=0&&(r=Ont(e,t,a,s),c=hde((OT(r,t.c.length),F(t.c[r],340))),F6e(t,r,n)),c}function dL(e,t,n){var r,i,a,o=(a=new bo,a),s,c,l;for(MBe(o,(MC(t),t)),l=(!o.b&&(o.b=new Qy((Kz(),o9),d9,o)),o.b),c=1;c=2}function r7e(e,t,n,r,i){for(var a=e.c.d.j,o=F(mP(n,0),8),s,c,l,u=1;u1||(t=Gx(k8,W(A(L8,1),Z,96,0,[O8,j8])),SA(qw(t,e))>1)||(r=Gx(I8,W(A(L8,1),Z,96,0,[F8,P8])),SA(qw(r,e))>1))}function a7e(e){for(var t=0,n,i=new D(e.a),a,o,s,c;i.a0&&(r.b.n-=r.c,r.b.n<=0&&r.b.u>0&&fx(t,r.b));for(i=new D(e.i);i.a0&&(r.a.u-=r.c,r.a.u<=0&&r.a.n>0&&fx(n,r.a))}function fL(e){var t,n,r,i,a;if(e.g==null&&(e.d=e._i(e.f),hD(e,e.d),e.c))return a=e.f,a;if(t=F(e.g[e.i-1],50),i=t.Pb(),e.e=t,n=e._i(i),n.Ob())e.d=n,hD(e,n);else for(e.d=null;!t.Ob()&&(fC(e.g,--e.i,null),e.i!=0);)r=F(e.g[e.i-1],50),t=r;return i}function s7e(e,t){var n,r=t,i=r.Jk(),a,o,s;if(BL(e.e,i)){if(i.Qi()&&hE(e,i,r.kd()))return!1}else for(s=LL(e.e.Ah(),i),n=F(e.g,122),a=0;a1||n>1)return 2;return t+n==1?2:0}function _L(e,t){var n,i,a,o=e.a*VV+e.b*1502,s,c=e.b*VV+11;return n=r.Math.floor(c*HV),o+=n,c-=n*Tft,o%=Tft,e.a=o,e.b=c,t<=24?r.Math.floor(e.a*Oxt[t]):(a=e.a*(1<=2147483648&&(i-=4294967296),i)}function g7e(e,t,n){var r,i,a=new Od,o,s,c,l=new ph;for(o=new ph,jat(e,l,o,t),Xst(e,l,o,t,n),c=new D(e);c.ar.b.g&&zd(a.c,r);return a}function _7e(e,t,n){var r,i,a,o,s=e.c,c;for(o=(n.q?n.q:(fw(),fw(),rY)).vc().Jc();o.Ob();)a=F(o.Pb(),45),r=!Ym(ZC(new Mx(null,new DT(s,16)),new Jl(new Kfe(t,a)))).zd((bh(),_Y)),r&&(c=a.kd(),N(c,4)&&(i=IJe(c),i!=null&&(c=i)),t.of(F(a.jd(),147),c))}function v7e(e,t){var n,r,i,a;for(t.Tg(`Resize child graph to fit parent.`,1),r=new D(e.b);r.a1)for(i=new D(e.a);i.a=0?e.Ih(r,!0,!0):qI(e,a,!0),163)),F(i,219).Vl(t,n)}else throw O(new Hp(vK+t.ve()+yK))}function S7e(e,t,n){var r,i,a,o,s,c=yve(e,F(pC(e.e,t),26));if(s=null,c)switch(c.g){case 3:r=whe(e,$w(t)),s=(MC(n),n+(MC(r),r));break;case 2:i=whe(e,$w(t)),o=(MC(n),n+(MC(i),i)),a=whe(e,F(pC(e.e,t),26)),s=o-(MC(a),a);break;default:s=n}else s=n;return s}function C7e(e,t,n){var r,i,a,o,s,c=yve(e,F(pC(e.e,t),26));if(s=null,c)switch(c.g){case 3:r=The(e,$w(t)),s=(MC(n),n+(MC(r),r));break;case 2:i=The(e,$w(t)),o=(MC(n),n+(MC(i),i)),a=The(e,F(pC(e.e,t),26)),s=o-(MC(a),a);break;default:s=n}else s=n;return s}function vL(e,t){var n,r,i,a,o;if(t){for(a=N(e.Cb,88)||N(e.Cb,103),o=!a&&N(e.Cb,335),r=new uy((!t.a&&(t.a=new Vx(t,z7,t)),t.a));r.e!=r.i.gc();)if(n=F(aP(r),87),i=wR(n),a?N(i,88):o?N(i,159):i)return i;return a?(Kz(),t9):(Kz(),e9)}return null}function w7e(e,t){var n=new Od,r,i=cO(new Mx(null,new DT(e,16)),new Ni),a=cO(new Mx(null,new DT(e,16)),new zte),o=GLe(zFe($C(H7e(W(A(Wxt,1),iB,833,0,[i,a])),new Pi)));for(r=1;r=2*t&&ry(n,new Yb(o[r-1]+t,o[r]-t));return n}function T7e(e,t,n){var r,i,a,o,s,c,l,u;if(n)for(a=n.a.length,r=new rS(a),s=(r.b-r.a)*r.c<0?(Jh(),G9):new ly(r);s.Ob();)o=F(s.Pb(),15),i=rE(n,o.a),i&&(c=vNe(e,(l=(Im(),u=new Hf,u),t&&R7e(l,t),l),i),bk(c,aE(i,UK)),BF(i,c),b3e(i,c),cj(e,i,c))}function yL(e){var t,n,r,i,a,o;if(!e.j){if(o=new Eo,t=l9,a=t.a.yc(e,t),a==null){for(r=new uy(Pw(e));r.e!=r.i.gc();)n=F(aP(r),29),i=yL(n),nC(o,i),hD(o,n);t.a.Ac(e)}Fj(o),e.j=new av((F(U(z((eC(),K7).o),11),19),o.i),o.g),LE(e).b&=-33}return e.j}function E7e(e){var t,n,r,i;if(e==null)return null;if(r=QR(e,!0),i=eJ.length,kb(r.substr(r.length-i,i),eJ)){if(n=r.length,n==4){if(t=(kT(0,r.length),r.charCodeAt(0)),t==43)return zVt;if(t==45)return RVt}else if(n==3)return zVt}return new uf(r)}function D7e(e){var t,n=e.l,r;return n&n-1||(r=e.m,r&r-1)||(t=e.h,t&t-1)||t==0&&r==0&&n==0?-1:t==0&&r==0&&n!=0?fBe(n):t==0&&r!=0&&n==0?fBe(r)+22:t!=0&&r==0&&n==0?fBe(t)+44:-1}function bL(e,t){var n,r,i=t.a&e.f,a=null,o;for(r=e.b[i];;r=r.b){if(r==t){a?a.b=t.b:e.b[i]=t.b;break}a=r}for(o=t.f&e.f,a=null,n=e.c[o];;n=n.d){if(n==t){a?a.d=t.d:e.c[o]=t.d;break}a=n}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function O7e(e,t){var n;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(n=F(SC(F(GE(e.b,t.a),262)),262),n.a=0,++e.c):(n=F(SC(F(pC(e.b,t.a),262)),262),--n.a,t.e?t.e.c=t.c:n.b=F(SC(t.c),498),t.c?t.c.e=t.e:n.c=F(SC(t.e),498)),--e.d}function xL(e,t){var n,r,i,a=new qT(e,0);for(n=(Ky(a.b0),a.a.Xb(a.c=--a.b),_b(a,i),Ky(a.b3&&QD(e,0,t-3))}function M7e(e){var t,n,r,i;return M(q(e,(zz(),x1)))===M((Ej(),x8))?!e.e&&M(q(e,a1))!==M((kA(),wQ)):(r=F(q(e,o1),302),i=Gp(nb(q(e,c1)))||M(q(e,l1))===M((rN(),VZ)),t=F(q(e,Gkt),15).a,n=e.a.c.length,!i&&r!=(kA(),wQ)&&(t==0||t>n))}function N7e(e,t){for(var n,r,i=e.Jc(),a,o,s,c;i.Ob();)for(r=F(i.Pb(),9),s=new uI,uT(s,r),PI(s,(Dz(),t5)),G(s,(X(),p$),(by(),!0)),o=t.Jc();o.Ob();)a=F(o.Pb(),9),c=new uI,uT(c,a),PI(c,x5),G(c,p$,!0),n=new Dw,G(n,p$,!0),sT(n,s),lT(n,c)}function P7e(e){for(var t,n=0;n0);n++);if(n>0&&n0);t++);return t>0&&n>16!=6&&t){if(fF(e,t))throw O(new Hp(TK+i8e(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?gQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=fP(t,e,6,r)),r=xve(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,6,t,t))}function SL(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(fF(e,t))throw O(new Hp(TK+eot(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?SQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=fP(t,e,12,r)),r=bve(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,3,t,t))}function R7e(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=9&&t){if(fF(e,t))throw O(new Hp(TK+_nt(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?vQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=fP(t,e,9,r)),r=Sve(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,9,t,t))}function CL(e){var t,n,r=mF(e),i,a=e.j;if(a==null&&r)return e.Hk()?null:r.gk();if(N(r,159)){if(n=r.hk(),n&&(i=n.ti(),i!=e.i)){if(t=F(r,159),t.lk())try{e.g=i.qi(t,a)}catch(t){if(t=UA(t),N(t,80))e.g=null;else throw O(t)}e.i=i}return e.g}return null}function z7e(e){var t=new Od;return ry(t,new ig(new j(e.c,e.d),new j(e.c+e.b,e.d))),ry(t,new ig(new j(e.c,e.d),new j(e.c,e.d+e.a))),ry(t,new ig(new j(e.c+e.b,e.d+e.a),new j(e.c+e.b,e.d))),ry(t,new ig(new j(e.c+e.b,e.d+e.a),new j(e.c,e.d+e.a))),t}function B7e(e){var t,n,r=e.a.d.j,i=e.c.d.j;for(n=new D(e.i.d);n.a>>0),n.toString(16)),uYe(PHe(),(vh(),`Exception during lenientFormat for `+r),t),`<`+r+` threw `+Um(t.Pm)+`>`;throw O(i)}}function H7e(e){var t,n,r=!1,i,a,o,s,l,u;for(t=336,n=0,a=new kve(e.length),s=e,l=0,u=s.length;l1)for(t=Sy((n=new gf,++e.b,n),e.d),s=nP(a,0);s.b!=s.d.c;)o=F(sE(s),124),FL(Eh(Th(Dh(wh(new hf,1),0),t),o))}function TL(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=11&&t){if(fF(e,t))throw O(new Hp(TK+gnt(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?IQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=fP(t,e,10,r)),r=rye(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,11,t,t))}function q7e(e,t,n){var r,i,a=0,o=0,s,c;if(e.c)for(c=new D(e.d.i.j);c.aa.a?-1:i.ac){for(u=e.d,e.d=H(dBt,qvt,67,2*c+4,0,1),a=0;a=0x8000000000000000?(fO(),Bbt):(i=!1,e<0&&(i=!0,e=-e),r=0,e>=SV&&(r=Gw(e/SV),e-=r*SV),n=0,e>=xV&&(n=Gw(e/xV),e-=n*xV),t=Gw(e),a=Uv(t,n,r),i&&oj(a),a)}function u9e(e){var t,n,r,i,a=new Od;if(kO(e.b,new Zl(a)),e.b.c.length=0,a.c.length!=0){for(t=(OT(0,a.c.length),F(a.c[0],80)),n=1,r=a.c.length;n>16!=7&&t){if(fF(e,t))throw O(new Hp(TK+c4e(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?_Qe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=F(t,52).Oh(e,1,J5,r)),r=Ewe(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,7,t,t))}function _9e(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(fF(e,t))throw O(new Hp(TK+tKe(e)));r=null,e.Cb&&(r=(n=e.Db>>16,n>=0?xQe(e,r):e.Cb.Qh(e,-1-n,null,r))),t&&(r=F(t,52).Oh(e,0,$5,r)),r=Dwe(e,t,r),r&&r.mj()}else e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,3,t,t))}function OL(e,t){KL();var n,r,i,a,o,s,c,l,u;return t.d>e.d&&(s=e,e=t,t=s),t.d<63?Tet(e,t):(o=(e.d&-2)<<4,l=cFe(e,o),u=cFe(t,o),r=ZR(e,BE(l,o)),i=ZR(t,BE(u,o)),c=OL(l,u),n=OL(r,i),a=OL(ZR(l,r),ZR(i,u)),a=pz(pz(a,c),n),a=BE(a,o),c=BE(c,o<<1),pz(pz(c,a),n))}function kL(){kL=C,j0=new Fg(Oht,0),ZAt=new Fg(`LONGEST_PATH`,1),QAt=new Fg(`LONGEST_PATH_SOURCE`,2),O0=new Fg(`COFFMAN_GRAHAM`,3),XAt=new Fg(jU,4),$At=new Fg(`STRETCH_WIDTH`,5),A0=new Fg(`MIN_WIDTH`,6),D0=new Fg(`BF_MODEL_ORDER`,7),k0=new Fg(`DF_MODEL_ORDER`,8)}function v9e(e,t){var n,r,i,a,o,s;if(!e.tb){for(a=(!e.rb&&(e.rb=new SS(e,P7,e)),e.rb),s=new yh(a.i),i=new uy(a);i.e!=i.i.gc();)r=F(aP(i),143),o=r.ve(),n=F(o==null?kI(s.f,null,r):jM(s.i,o,r),143),n&&(o==null?kI(s.f,null,n):jM(s.i,o,n));e.tb=s}return F(Ww(e.tb,t),143)}function AL(e,t){var n,r,i,a,o;if((e.i??MR(e),e.i).length,!e.p){for(o=new yh((3*e.g.i/2|0)+1),i=new Py(e.g);i.e!=i.i.gc();)r=F(oP(i),179),a=r.ve(),n=F(a==null?kI(o.f,null,r):jM(o.i,a,r),179),n&&(a==null?kI(o.f,null,n):jM(o.i,a,n));e.p=o}return F(Ww(e.p,t),179)}function y9e(e,t,n,r,i){var a,o,s,c,l;for(XJe(r+Mw(n,n.ge()),i),sEe(t,Oqe(n)),a=n.f,a&&y9e(e,t,a,`Caused by: `,!1),s=(n.k??=H(DJ,vB,80,0,0,1),n.k),c=0,l=s.length;c=0;a+=n?1:-1)o|=t.c.jg(c,a,n,r&&!Gp(nb(q(t.j,(X(),JQ))))&&!Gp(nb(q(t.j,(X(),b$))))),o|=t.q.tg(c,a,n),o|=Wtt(e,c[a],n,r);return LS(e.c,t),o}function ML(e,t,n){for(var r,i,a,o,s,c,l,u=DMe(e.j),d=0,f=u.length;d1&&(e.a=!0),xwe(F(n.b,68),wb(Jv(F(t.b,68).c),ny(Tb(Jv(F(n.b,68).a),F(t.b,68).a),i))),uAe(e,t),S9e(e,n)}function C9e(e){for(var t,n,r,i,a=new D(e.a.a),o,s;a.a0&&a>0?o.p=t++:r>0?o.p=n++:a>0?o.p=i++:o.p=n++}fw(),Bv(e.j,new Vn)}function E9e(e){var t,n=null;t=F(kx(e.g,0),17);do{if(n=t.d.i,Yy(n,(X(),o$)))return F(q(n,o$),12).i;if(n.k!=(pL(),OX)&&rL(new uS(py(VM(n).a.Jc(),new f))))t=F(zE(new uS(py(VM(n).a.Jc(),new f))),17);else if(n.k!=OX)return null}while(n&&n.k!=(pL(),OX));return n}function D9e(e,t){var n,r,i,a,o,s=t.j,c,l,u;for(o=t.g,c=F(kx(s,s.c.length-1),113),u=(OT(0,s.c.length),F(s.c[0],113)),l=JP(e,o,c,u),a=1;al&&(c=n,u=i,l=r);t.a=u,t.c=c}function PL(e,t,n,r){var i=M(q(n,(zz(),X$)))===M((YA(),OQ)),a=F(q(n,Ukt),16);if(Yy(e,(X(),u$))){if(i){if(a.Gc(q(e,Z$))&&a.Gc(q(t,Z$)))return r*F(q(e,Z$),15).a+F(q(e,u$),15).a}else return F(q(e,u$),15).a}else return-1;return F(q(e,u$),15).a}function O9e(e,t,n){var r,i,a,o,s,c,l=new Gm(new Wu(e));for(o=W(A(pwt,1),Dpt,12,0,[t,n]),s=0,c=o.length;sc-e.b&&sc-e.a&&sn.p):a.Ob()?1:-1}function B9e(e,t){var n,i,a,o,s,c;t.Tg(Fgt,1),a=F(Y(e,(JL(),a3)),104),o=(!e.a&&(e.a=new I(s7,e,10,11)),e.a),s=nQe(o),c=r.Math.max(s.a,k(P(Y(e,(XL(),X4))))-(a.b+a.c)),i=r.Math.max(s.b,k(P(Y(e,q4)))-(a.d+a.a)),n=i-s.b,pP(e,W4,n),pP(e,K4,c),pP(e,G4,i+n),t.Ug()}function IL(e){var t,n;if((!e.a&&(e.a=new I(Q5,e,6,6)),e.a).i==0)return aUe(e);for(t=F(U((!e.a&&(e.a=new I(Q5,e,6,6)),e.a),0),170),uz((!t.a&&(t.a=new oy(q5,t,5)),t.a)),YO(t,0),XO(t,0),WO(t,0),GO(t,0),n=(!e.a&&(e.a=new I(Q5,e,6,6)),e.a);n.i>1;)UL(n,n.i-1);return t}function LL(e,t){qh();var n,r,i,a;return t?t==(hz(),FVt)||(t==CVt||t==S9||t==SVt)&&e!=xVt?new Tlt(e,t):(r=F(t,682),n=r.Yk(),n||=(qC(GD((xI(),p9),t)),r.Yk()),a=(!n.i&&(n.i=new kd),n.i),i=F(V_(Yx(a.f,e)),2006),!i&&LC(a,e,i=new Tlt(e,t)),i):mVt}function V9e(e,t){var n;if(!RS(e.b,t.b))throw O(new Up(`Invalid hitboxes for scanline constraint calculation.`));(nUe(t.b,F(Uue(e.b,t.b),60))||nUe(t.b,F(Hue(e.b,t.b),60)))&&gh(),e.a[t.b.f]=F(Ch(e.b,t.b),60),n=F(Sh(e.b,t.b),60),n&&(e.a[n.f]=t.b)}function H9e(e,t){var n,r,i,a,o,s,c=F(q(e,(X(),d$)),12),l=sj(W(A(J3,1),vB,8,0,[c.i.n,c.n,c.a])).a,u=e.i.n.b;for(n=YT(e.e),i=n,a=0,o=i.length;a0?a.a?(s=a.b.Kf().a,n>s&&(i=(n-s)/2,a.d.b=i,a.d.c=i)):a.d.c=e.s+n:VS(e.u)&&(r=h0e(a.b),r.c<0&&(a.d.b=-r.c),r.c+r.b>a.b.Kf().a&&(a.d.c=r.c+r.b-a.b.Kf().a))}function J9e(e,t){var n,r,i,a,o=new Od;n=t;do a=F(pC(e.b,n),132),a.B=n.c,a.D=n.d,zd(o.c,a),n=F(pC(e.k,n),17);while(n);return r=(OT(0,o.c.length),F(o.c[0],132)),r.j=!0,r.A=F(r.d.a.ec().Jc().Pb(),17).c.i,i=F(kx(o,o.c.length-1),132),i.q=!0,i.C=F(i.d.a.ec().Jc().Pb(),17).d.i,o}function Y9e(e){var t,n=F(q(e,(zz(),E1)),165);t=F(q(e,(X(),$Q)),316),n==(nN(),P$)?(G(e,E1,L$),G(e,$Q,(uO(),NQ))):n==I$?(G(e,E1,L$),G(e,$Q,(uO(),jQ))):t==(uO(),NQ)?(G(e,E1,P$),G(e,$Q,MQ)):t==jQ&&(G(e,E1,I$),G(e,$Q,MQ))}function RL(){RL=C,O2=new Fte,AMt=Sx(new AC,($F(),iX),(Uz(),VX)),NMt=tS(Sx(new AC,iX,QX),oX,ZX),PMt=LN(LN(Bh(tS(Sx(new AC,nX,iZ),oX,rZ),aX),nZ),aZ),jMt=tS(Sx(Sx(Sx(new AC,rX,UX),aX,GX),aX,KX),oX,WX),MMt=tS(Sx(Sx(new AC,aX,KX),aX,RX),oX,LX)}function zL(){zL=C,LMt=Sx(tS(new AC,($F(),oX),(Uz(),Mwt)),iX,VX),VMt=LN(LN(Bh(tS(Sx(new AC,nX,iZ),oX,rZ),aX),nZ),aZ),RMt=tS(Sx(Sx(Sx(new AC,rX,UX),aX,GX),aX,KX),oX,WX),BMt=Sx(Sx(new AC,iX,QX),oX,ZX),zMt=tS(Sx(Sx(new AC,aX,KX),aX,RX),oX,LX)}function X9e(e,t,n,r,i){var a,o;(!IE(t)&&t.c.i.c==t.d.i.c||!UBe(sj(W(A(J3,1),vB,8,0,[i.i.n,i.n,i.a])),n))&&!IE(t)&&(t.c==i?zy(t.a,0,new pv(n)):fx(t.a,new pv(n)),r&&!uh(e.a,n)&&(o=F(q(t,(zz(),T1)),79),o||(o=new Uf,G(t,T1,o)),a=new pv(n),DE(o,a,o.c.b,o.c),LS(e.a,a)))}function Z9e(e,t){var n,r,i,a=Wx(LM(jB,WC(Wx(LM(t==null?0:Lk(t),MB)),15)));for(n=a&e.b.length-1,i=null,r=e.b[n];r;i=r,r=r.a)if(r.d==a&&EC(r.i,t))return i?i.a=r.a:e.b[n]=r.a,Yce(F(SC(r.c),594),F(SC(r.f),594)),Vd(F(SC(r.b),227),F(SC(r.e),227)),--e.f,++e.e,!0;return!1}function Q9e(e){for(var t,n=new uS(py(zM(e).a.Jc(),new f));rL(n);)if(t=F(zE(n),17),t.c.i.k!=(pL(),TX))throw O(new Qp(bU+$P(e)+`' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen.`))}function $9e(e,t){var n,r,i=t?new Xr:new Zr,a=!1,o,s,c,l,u,d,f;do for(a=!1,l=t?cN(e.b):e.b,c=l.Jc();c.Ob();)for(s=F(c.Pb(),25),f=NT(s.a),t||cN(f),d=new D(f);d.a=0;o+=i?1:-1){for(s=t[o],c=r==(Dz(),t5)?i?MM(s,r):cN(MM(s,r)):i?cN(MM(s,r)):MM(s,r),a&&(e.c[s.p]=c.gc()),d=c.Jc();d.Ob();)u=F(d.Pb(),12),e.d[u.p]=l++;VA(n,c)}}function ret(e,t,n){var r,i,a=k(P(e.b.Jc().Pb())),o,s,c,l=k(P(FHe(t.b))),u;for(r=ny(Jv(e.a),l-n),i=ny(Jv(t.a),n-a),u=wb(r,i),ny(u,1/(l-a)),this.a=u,this.b=new Od,s=!0,o=e.b.Jc(),o.Pb();o.Ob();)c=k(P(o.Pb())),s&&c-n>sG&&(this.b.Ec(n),s=!1),this.b.Ec(c);s&&this.b.Ec(n)}function iet(e){var t,n,r,i;if(jnt(e,e.n),e.d.c.length>0){for(Xp(e.c);j8e(e,F(B(new D(e.e.a)),124))>5,i,a,o;if(t&=31,r>=e.d)return e.e<0?(iR(),uxt):(iR(),QJ);if(a=e.d-r,i=H(q9,cV,30,a+1,15,1),$2e(i,a,e.a,r,t),e.e<0){for(n=0;n0&&e.a[n]<<32-t){for(n=0;n=0?!1:(n=mz((xI(),p9),i,t),!n||(r=n.Gk(),(r>1||r==-1)&&NC(GD(p9,n))!=3))):!1}function pet(e,t,n,r){var i,a,o,s,c=e.c.d,l=e.d.d,u,d,f,p;if(c.j!=l.j)for(p=e.b,u=null,s=null,o=GJe(e),o&&p.i&&(u=e.b.i.i,s=p.i.j),i=c.j,d=null;i!=l.j;)d=t==0?xM(i):xKe(i),a=gYe(i,p.d[i.g],n),f=gYe(d,p.d[d.g],n),o&&u&&s&&(i==u?iqe(a,u,s):d==u&&iqe(f,u,s)),fx(r,wb(a,f)),i=d}function met(e,t,n){var r=rle(n,e.length),i,a,o=e[r],s,c;if(a=nle(n,o.length),o[a].k==(pL(),wX))for(c=t.j,i=0;i0&&(n[0]+=e.d,s-=n[0]),n[2]>0&&(n[2]+=e.d,s-=n[2]),o=r.Math.max(0,s),n[1]=r.Math.max(n[1],s),gFe(e,xY,a.c+i.b+n[0]-(n[1]-s)/2,n),t==xY&&(e.c.b=o,e.c.c=a.c+i.b+(o-s)/2)}function Oet(){this.c=H(Z9,NV,30,(Dz(),W(A(S5,1),cU,64,0,[b5,n5,t5,y5,x5])).length,15,1),this.b=H(Z9,NV,30,W(A(S5,1),cU,64,0,[b5,n5,t5,y5,x5]).length,15,1),this.a=H(Z9,NV,30,W(A(S5,1),cU,64,0,[b5,n5,t5,y5,x5]).length,15,1),Dde(this.c,DV),Dde(this.b,OV),Dde(this.a,OV)}function ket(e,t,n,r){var i,a,o,s,c=t.i;for(s=n[c.g][e.d[c.g]],i=!1,o=new D(t.d);o.a=i&&(e.c=!1,e.a=!1),e.b[r++]=i,e.b[r]=a,e.c||sL(e)}}function Aet(e,t,n){var r,i,a,o,s,c,l=t.d;for(e.a=new pD(l.c.length),e.c=new kd,s=new D(l);s.a=0?e.Ih(l,!1,!0):qI(e,n,!1),61));n:for(a=d.Jc();a.Ob();){for(i=F(a.Pb(),57),u=0;ue.d[o.p]&&(n+=APe(e.b,a),cE(e.a,K(a)));for(;!qp(e.a);)vRe(e.b,F(KS(e.a),15).a)}return n}function Bet(e,t,n){var r,i,a=(!t.a&&(t.a=new I(s7,t,10,11)),t.a).i,o;for(i=new uy((!t.a&&(t.a=new I(s7,t,10,11)),t.a));i.e!=i.i.gc();)r=F(aP(i),26),(!r.a&&(r.a=new I(s7,r,10,11)),r.a).i==0||(a+=Bet(e,r,!1));if(n)for(o=aT(t);o;)a+=(!o.a&&(o.a=new I(s7,o,10,11)),o.a).i,o=aT(o);return a}function UL(e,t){var n,r,i,a;return e.Nj()?(r=null,i=e.Oj(),e.Rj()&&(r=e.Tj(e.Yi(t),null)),n=e.Gj(4,a=aF(e,t),null,t,i),e.Kj()&&a!=null&&(r=e.Mj(a,r)),r?(r.lj(n),r.mj()):e.Hj(n),a):(a=aF(e,t),e.Kj()&&a!=null&&(r=e.Mj(a,null),r&&r.mj()),a)}function Vet(e){var t,n,i,a,o,s,c,l,u=e.a,d;for(t=new df,l=0,i=new D(e.d);i.ac.d&&(d=c.d+c.a+u));n.c.d=d,t.a.yc(n,t),l=r.Math.max(l,n.c.d+n.c.a)}return l}function Het(e,t,n){for(var r,i,a,o=F(q(e,(X(),XQ)),16).Jc(),s,c;o.Ob();){switch(a=F(o.Pb(),9),F(q(a,(zz(),E1)),165).g){case 2:cT(a,t);break;case 4:cT(a,n)}for(i=new uS(py(BM(a).a.Jc(),new f));rL(i);)r=F(zE(i),17),!(r.c&&r.d)&&(s=!r.d,c=F(q(r,jEt),12),s?lT(r,c):sT(r,c))}}function WL(){WL=C,mQ=new jg(`COMMENTS`,0),gQ=new jg(`EXTERNAL_PORTS`,1),_Q=new jg(`HYPEREDGES`,2),vQ=new jg(`HYPERNODES`,3),yQ=new jg(`NON_FREE_PORTS`,4),bQ=new jg(`NORTH_SOUTH_PORTS`,5),SQ=new jg(Kpt,6),pQ=new jg(`CENTER_LABELS`,7),hQ=new jg(`END_LABELS`,8),xQ=new jg(`PARTITIONS`,9)}function Uet(e,t,n,r,i){return r<0?(r=hI(e,i,W(A(KJ,1),vB,2,6,[YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV]),t),r<0&&(r=hI(e,i,W(A(KJ,1),vB,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,$B,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function Wet(e,t,n,r,i){return r<0?(r=hI(e,i,W(A(KJ,1),vB,2,6,[YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV]),t),r<0&&(r=hI(e,i,W(A(KJ,1),vB,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,$B,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]),t)),r<0?!1:(n.k=r,!0)):r>0&&(n.k=r-1,!0)}function Get(e,t,n,r,i,a){var o,s=32,c,l;if(r<0){if(t[0]>=e.length||(s=IC(e,t[0]),s!=43&&s!=45)||(++t[0],r=HI(e,t),r<0))return!1;s==45&&(r=-r)}return s==32&&t[0]-n==2&&i.b==2&&(c=new Yh,l=c.q.getFullYear()-sV+sV-80,o=l%100,a.a=r==o,r+=(l/100|0)*100+(r=0?yN(e):JS(yN(RD(e)))),tY[t]=K_(dS(e,t),0)?yN(dS(e,t)):JS(yN(RD(dS(e,t)))),e=LM(e,5);for(;t=u&&(l=i);l&&(d=r.Math.max(d,l.a.o.a)),d>p&&(f=u,p=d)}return f}function Qet(e){var t,n,r,i,a=new Gm(F(aC(new et),51)),o,s=OV;for(n=new D(e.d);n.aggt?Bv(l,e.b):i<=ggt&&i>_gt?Bv(l,e.d):i<=_gt&&i>vgt?Bv(l,e.c):i<=vgt&&Bv(l,e.a),o=ntt(e,l,o);return a}function rtt(e,t,n,r){var i=(r.c+r.a)/2,a,o,s,c,l;for(hw(t.j),fx(t.j,i),hw(n.e),fx(n.e,i),l=new lle,s=new D(e.f);s.a1,s&&(r=new j(i,n.b),fx(t.a,r)),fk(t.a,W(A(J3,1),vB,8,0,[f,d]))}function ctt(e,t,n){var r,i;for(t=48;n--)N9[n]=n-48<<24>>24;for(r=70;r>=65;r--)N9[r]=r-65+10<<24>>24;for(i=102;i>=97;i--)N9[i]=i-97+10<<24>>24;for(a=0;a<10;a++)P9[a]=48+a&JB;for(e=10;e<=15;e++)P9[e]=65+e-10&JB}function ftt(e,t){t.Tg(`Process graph bounds`,1),G(e,(Ez(),K2),ng(eA($C(new Mx(null,new DT(e.b,16)),new Zte)))),G(e,q2,ng(eA($C(new Mx(null,new DT(e.b,16)),new Qte)))),G(e,uNt,ng($k($C(new Mx(null,new DT(e.b,16)),new $te)))),G(e,dNt,ng($k($C(new Mx(null,new DT(e.b,16)),new ene)))),t.Ug()}function ptt(e){var t,n,i,a=F(q(e,(zz(),H1)),22),o=F(q(e,G1),22);n=new j(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new pv(n),a.Gc((EN(),T5))&&(i=F(q(e,W1),8),o.Gc((hR(),M5))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=r.Math.max(n.a,i.a),t.b=r.Math.max(n.b,i.b)),Gp(nb(q(e,U1)))||Vat(e,n,t)}function mtt(e){for(var t=!1,n=0,r,i=new D(e.d.b),a,o,s;i.a>19)return`-`+_tt(nj(e));for(n=e,r=``;n.l!=0||n.m!=0||n.h!=0;){if(i=aFe(CV),n=hst(n,i,!0),t=``+Lle(PJ),n.l!=0||n.m!=0||n.h!=0)for(a=9-t.length;a>0;a--)t=`0`+t;r=t+r}return r}function vtt(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e=`__proto__`,t=Object.create(null);return!(t[e]!==void 0||Object.getOwnPropertyNames(t).length!=0||(t[e]=42,t[e]!==42)||Object.getOwnPropertyNames(t).length==0)}function ytt(e,t,n){var r=n.c,i=n.d,a,o,s=AT(t.c),c=AT(t.d),l,u,d;for(r==t.c?(s=u7e(e,s,i),c=j0e(t.d)):(s=j0e(t.c),c=u7e(e,c,i)),l=new Pm(t.a),DE(l,s,l.a,l.a.a),DE(l,c,l.c.b,l.c),o=t.c==r,d=new Sf,a=0;a=e.a||!R1e(t,n))return-1;if(oE(F(i.Kb(t),20)))return 1;for(a=0,s=F(i.Kb(t),20).Jc();s.Ob();)if(o=F(s.Pb(),17),l=o.c.i==t?o.d.i:o.c.i,c=xtt(e,l,n,i),c==-1||(a=r.Math.max(a,c),a>e.c-1))return-1;return a+1}function JL(){JL=C,e3=new Mv((Hz(),u6),1.3),NFt=new Mv(D6,(by(),!1)),zFt=new kv(15),a3=new Mv(M6,zFt),o3=new Mv(X6,15),DFt=p6,MFt=E6,PFt=O6,FFt=k6,jFt=T6,r3=j6,BFt=V6,WFt=(mit(),SFt),UFt=xFt,s3=EFt,GFt=wFt,RFt=gFt,i3=hFt,LFt=mFt,HFt=yFt,kFt=x6,AFt=S6,t3=dFt,OFt=uFt,n3=fFt,VFt=vFt,IFt=pFt}function Stt(e,t){var n,r,i,a,o,s;if(M(t)===M(e))return!0;if(!N(t,16)||(r=F(t,16),s=e.gc(),r.gc()!=s))return!1;if(o=r.Jc(),e.Wi()){for(n=0;n0){if(e.Zj(),t!=null){for(a=0;a>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw O(new pm(`Invalid hexadecimal`))}}function Dtt(e,t,n,r){var i,a,o,s,c=CF(e,n),l=CF(t,n);for(i=!1;c&&l&&(r||SZe(c,l,n));)o=CF(c,n),s=CF(l,n),ID(t),ID(e),a=c.c,jst(c,!1),jst(l,!1),n?(cF(t,l.p,a),t.p=l.p,cF(e,c.p+1,a),e.p=c.p):(cF(e,c.p,a),e.p=c.p,cF(t,l.p+1,a),t.p=l.p),cT(c,null),cT(l,null),c=o,l=s,i=!0;return i}function Ott(e){switch(e.g){case 0:return new ac;case 1:return new oc;case 3:return new rde;case 4:return new bte;case 5:return new Zve;case 6:return new aie;case 2:return new sie;case 7:return new rie;case 8:return new oie;default:throw O(new Hp(`No implementation is available for the layerer `+(e.f==null?``+e.g:e.f)))}}function ktt(e,t,n,r){for(var i=!1,a=!1,o,s=new D(r.j),c;s.a=t.length)throw O(new Fp(`Greedy SwitchDecider: Free layer not in graph.`));this.c=t[e],this.e=new Ab(r),eVe(this.e,this.c,(Dz(),x5)),this.i=new Ab(r),eVe(this.i,this.c,t5),this.f=new nwe(this.c),this.a=!a&&i.i&&!i.s&&this.c[0].k==(pL(),wX),this.a&&s4e(this,e,t.length)}function Ptt(e,t){var n,r,i,a=!e.B.Gc((hR(),A5)),o=e.B.Gc(N5),s;e.a=new rJe(o,a,e.c),e.n&&WDe(e.a.n,e.n),kp(e.g,(MO(),xY),e.a),t||(r=new GN(1,a,e.c),r.n.a=e.k,IS(e.p,(Dz(),n5),r),i=new GN(1,a,e.c),i.n.d=e.k,IS(e.p,y5,i),s=new GN(0,a,e.c),s.n.c=e.k,IS(e.p,x5,s),n=new GN(0,a,e.c),n.n.b=e.k,IS(e.p,t5,n))}function Ftt(e){var t=F(q(e.d,(zz(),g1)),222),n,r;switch(t.g){case 2:n=zut(e);break;case 3:n=(r=new Od,xh(ZC(QC(cO(cO(new Mx(null,new DT(e.d.b,16)),new Jee),new Yee),new Xee),new Cr),new Nu(r)),r);break;default:throw O(new Up(`Compaction not supported for `+t+` edges.`))}nst(e,n),jE(new Tl(e.g),new Gae(e))}function Itt(e,t){var n,r,i,a,o,s,c;if(t.Tg(`Process directions`,1),n=F(q(e,(AR(),c4)),86),n!=(hM(),r8))for(i=nP(e.b,0);i.b!=i.d.c;){switch(r=F(sE(i),40),s=F(q(r,(Ez(),o4)),15).a,c=F(q(r,s4),15).a,n.g){case 4:c*=-1;break;case 1:a=s,s=c,c=a;break;case 2:o=s,s=-c,c=o}G(r,o4,K(s)),G(r,s4,K(c))}t.Ug()}function Ltt(e){var t,n,r,i,a,o,s,c=new IPe;for(s=new D(e.a);s.a0&&t=0)return!1;if(t.p=n.b,ry(n.e,t),i==(pL(),EX)||i==kX){for(o=new D(t.j);o.ae.d[s.p]&&(n+=APe(e.b,a),cE(e.a,K(a)))):++o;for(n+=e.b.d*o;!qp(e.a);)vRe(e.b,F(KS(e.a),15).a)}return n}function cnt(e){var t,n,r,i,a=0,o;return t=mF(e),t.ik()&&(a|=4),(e.Bb&_q)!=0&&(a|=2),N(e,103)?(n=F(e,19),i=kP(n),(n.Bb&xK)!=0&&(a|=32),i&&(tC(oT(i)),a|=8,o=i.t,(o>1||o==-1)&&(a|=16),(i.Bb&xK)!=0&&(a|=64)),(n.Bb&jV)!=0&&(a|=CK),a|=mq):N(t,459)?a|=512:(r=t.ik(),r&&r.i&1&&(a|=256)),e.Bb&512&&(a|=128),a}function lnt(e,t){var n;return e.f==hVt?(n=NC(GD((xI(),p9),t)),e.e?n==4&&t!=(YI(),_9)&&t!=(YI(),g9)&&t!=(YI(),gVt)&&t!=(YI(),_Vt):n==2):e.d&&(e.d.Gc(t)||e.d.Gc(MT(GD((xI(),p9),t)))||e.d.Gc(mz((xI(),p9),e.b,t)))?!0:e.f&&Z7e((xI(),e.f),JC(GD(p9,t)))?(n=NC(GD(p9,t)),e.e?n==4:n==2):!1}function unt(e,t){var n,r,i,a=new Od,o,s,c,l;for(t.b.c.length=0,n=F(TE(wAe(new Mx(null,new DT(new Tl(e.a.b),1))),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),16),i=n.Jc();i.Ob();)if(r=F(i.Pb(),15),o=ZMe(e.a,r),o.b!=0)for(s=new mC(t),zd(a.c,s),s.p=r.a,l=nP(o,0);l.b!=l.d.c;)c=F(sE(l),9),cT(c,s);VA(t.b,a)}function $L(e){var t,n,r,i,a,o,s=new kd;for(r=new D(e.a.b);r.axG&&(a-=xG),c=F(Y(i,U6),8),u=c.a,f=c.b+e,o=r.Math.atan2(f,u),o<0&&(o+=xG),o+=t,o>xG&&(o-=xG),Pv(),ok(1e-10),r.Math.abs(a-o)<=1e-10||a==o||isNaN(a)&&isNaN(o)?0:ao?1:vb(isNaN(a),isNaN(o))}function mnt(e,t,n,i){var a,o,s;t&&(o=k(P(q(t,(Ez(),r4))))+i,s=n+k(P(q(t,Z2)))/2,G(t,o4,K(Wx(gA(r.Math.round(o))))),G(t,s4,K(Wx(gA(r.Math.round(s))))),t.d.b==0||mnt(e,F(Xv((a=nP(new qu(t).a.d,0),new Ju(a))),40),n+k(P(q(t,Z2)))+e.b,i+k(P(q(t,e4)))),q(t,i4)!=null&&mnt(e,F(q(t,i4),40),n,i))}function hnt(e,t){var n,r,i,a=F(Y(e,(Hz(),H6)),64).g-F(Y(t,H6),64).g;if(a!=0)return a;if(n=F(Y(e,z6),15),r=F(Y(t,z6),15),n&&r&&(i=n.a-r.a,i!=0))return i;switch(F(Y(e,H6),64).g){case 1:return mM(e.i,t.i);case 2:return mM(e.j,t.j);case 3:return mM(t.i,e.i);case 4:return mM(t.j,e.j);default:throw O(new Up(Ept))}}function gnt(e){var t,n,r;return e.Db&64?lI(e):(t=new _y(z_t),n=e.k,n?Q_(Q_((t.a+=` "`,t),n),`"`):(!e.n&&(e.n=new I(o7,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new I(o7,e,1,7)),F(U(e.n,0),157)).a,!r||Q_(Q_((t.a+=` "`,t),r),`"`))),Q_(Hm(Q_(Hm(Q_(Hm(Q_(Hm((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function _nt(e){var t,n,r;return e.Db&64?lI(e):(t=new _y(B_t),n=e.k,n?Q_(Q_((t.a+=` "`,t),n),`"`):(!e.n&&(e.n=new I(o7,e,1,7)),e.n.i>0&&(r=(!e.n&&(e.n=new I(o7,e,1,7)),F(U(e.n,0),157)).a,!r||Q_(Q_((t.a+=` "`,t),r),`"`))),Q_(Hm(Q_(Hm(Q_(Hm(Q_(Hm((t.a+=` (`,t),e.i),`,`),e.j),` | `),e.g),`,`),e.f),`)`),t.a)}function vnt(e,t){var n,r,i,a,o,s,c,l,u,d,f,p=-1,m=0;for(u=t,d=0,f=u.length;d0&&++m;++p}return m}function ynt(e,t){var n,r,i,a,o;for(t==(Oj(),a2)&&DI(F(VE(e.a,(FF(),gZ)),16)),i=F(VE(e.a,(FF(),gZ)),16).Jc();i.Ob();)switch(r=F(i.Pb(),107),n=F(kx(r.j,0),113).d.j,a=new Lb(r.j),Bv(a,new rte),t.g){case 2:HF(e,a,n,(Fk(),xZ),1);break;case 1:case 0:o=P7e(a),HF(e,new ET(a,0,o),n,(Fk(),xZ),0),HF(e,new ET(a,o,a.c.length),n,xZ,1)}}function bnt(e){var t,n,r,i=F(q(e,(X(),e$)),9),a,o,s;for(r=e.j,n=(OT(0,r.c.length),F(r.c[0],12)),o=new D(i.j);o.ai.p?(PI(a,y5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=s-t)):a.j==y5&&i.p>e.p&&(PI(a,n5),a.d&&(s=a.o.b,t=a.a.b,a.a.b=-(s-t)));break}return i}function xnt(e,t){var n,r,i,a,o,s,c;if(t==null||t.length==0)return null;if(i=F(Ww(e.a,t),144),!i){for(r=(s=new kl(e.b).a.vc().Jc(),new Al(s));r.a.Ob();)if(n=(a=F(r.a.Pb(),45),F(a.kd(),144)),o=n.c,c=t.length,kb(o.substr(o.length-c,c),t)&&(t.length==o.length||IC(o,o.length-t.length-1)==46)){if(i)return null;i=n}i&&dT(e.a,t,i)}return i}function tR(e,t,n){for(var r,i,a=new j(t,n),o,s,c,l,u=new D(e.a),d,f;u.a1,s&&(r=new j(i,n.b),fx(t.a,r)),fk(t.a,W(A(J3,1),vB,8,0,[f,d]))}function oR(){oR=C,J0=new Ig(oU,0),K0=new Ig(`NIKOLOV`,1),q0=new Ig(`NIKOLOV_PIXEL`,2),ljt=new Ig(`NIKOLOV_IMPROVED`,3),ujt=new Ig(`NIKOLOV_IMPROVED_PIXEL`,4),cjt=new Ig(`DUMMYNODE_PERCENTAGE`,5),djt=new Ig(`NODECOUNT_PERCENTAGE`,6),Y0=new Ig(`NO_BOUNDARY`,7),W0=new Ig(`MODEL_ORDER_LEFT_TO_RIGHT`,8),G0=new Ig(`MODEL_ORDER_RIGHT_TO_LEFT`,9)}function sR(e,t){var n,r,i,a,o,s,c,l,u=null,d,f=Z8e(e,t),p;return r=null,s=F(Y(t,(Hz(),qLt)),300),r=s||(BO(),C5),p=r,p==(BO(),C5)&&(i=null,l=F(pC(e.r,f),300),i=l||w5,p=i),LC(e.r,t,p),a=null,c=F(Y(t,GLt),278),a=c||(Yj(),u8),d=a,d==(Yj(),u8)&&(o=null,n=F(pC(e.b,f),278),o=n||l8,d=o),u=F(LC(e.b,t,d),278),u}function Bnt(e){var t,n,r=e.length,i,a;for(t=new um,a=0;a=40,o&&Ait(e),Eot(e),iet(e),n=mKe(e),r=0;n&&r0&&fx(e.g,a)):(e.d[o]-=l+1,e.d[o]<=0&&e.a[o]>0&&fx(e.f,a))))}function prt(e,t,n,r){var i,a,o,s,c=new j(n,r),l,u;for(Tb(c,F(q(t,(Ez(),H2)),8)),u=nP(t.b,0);u.b!=u.d.c;)l=F(sE(u),40),wb(l.e,c),fx(e.b,l);for(s=F(TE(Jke(new Mx(null,new DT(t.a,16))),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),16).Jc();s.Ob();){for(o=F(s.Pb(),65),a=nP(o.a,0);a.b!=a.d.c;)i=F(sE(a),8),i.a+=c.a,i.b+=c.b;fx(e.a,o)}}function mrt(e,t){var n,r,i,a;if(0<(N(e,18)?F(e,18).gc():dE(e.Jc()))){if(i=t,1=0&&c1)&&t==1&&F(e.a[e.b],9).k==(pL(),TX)?VR(F(e.a[e.b],9),(sF(),w8)):r&&(!n||(e.c-e.b&e.a.length-1)>1)&&t==1&&F(e.a[e.c-1&e.a.length-1],9).k==(pL(),TX)?VR(F(e.a[e.c-1&e.a.length-1],9),(sF(),T8)):(e.c-e.b&e.a.length-1)==2?(VR(F(rj(e),9),(sF(),w8)),VR(F(rj(e),9),T8)):P5e(e,i),DPe(e)}function yrt(e){var t,n,i,a,o,s,c,l=new kd;for(t=new pf,s=e.Jc();s.Ob();)a=F(s.Pb(),9),c=Sy(Oh(new gf,a),t),kI(l.f,a,c);for(o=e.Jc();o.Ob();)for(a=F(o.Pb(),9),i=new uS(py(VM(a).a.Jc(),new f));rL(i);)n=F(zE(i),17),!IE(n)&&FL(Eh(Th(wh(Dh(new hf,r.Math.max(1,F(q(n,(zz(),jAt)),15).a)),1),F(pC(l,n.c.i),124)),F(pC(l,n.d.i),124)));return t}function brt(e,t,n,r){var i,a,o,s,c,l,u,d,f,p;if(gze(e,t,n),a=t[n],p=r?(Dz(),x5):(Dz(),t5),Xhe(t.length,n,r)){for(i=t[r?n-1:n+1],GFe(e,i,r?(uk(),n2):(uk(),t2)),c=a,u=0,f=c.length;ua*2?(u=new jO(d),l=Ux(o)/Hx(o),c=Mz(u,t,new Lf,n,r,i,l),wb(cv(u.e),c),d.c.length=0,a=0,zd(d.c,u),zd(d.c,o),a=Ux(u)*Hx(u)+Ux(o)*Hx(o)):(zd(d.c,o),a+=Ux(o)*Hx(o));return d}function Srt(e,t){var n,r,i,a,o,s,c;for(t.Tg(`Port order processing`,1),c=F(q(e,(zz(),kAt)),421),r=new D(e.b);r.an?t:n;l<=d;++l)l==n?s=r++:(a=i[l],u=m.$l(a.Jk()),l==t&&(c=l==d&&!u?r-1:r),u&&++r);return f=F(SM(e,t,n),75),s!=c&&cf(e,new xD(e.e,7,o,K(s),p.kd(),c)),f}}else return F(WI(e,t,n),75);return F(SM(e,t,n),75)}function wrt(e,t){var n,r,i,a,o,s,c,l,u,d=0;for(a=new Zv,cE(a,t);a.b!=a.c;)for(c=F(KS(a),218),l=0,u=F(q(t.j,(zz(),n1)),269),F(q(t.j,X$),329),o=k(P(q(t.j,q$))),s=k(P(q(t.j,J$))),u!=(NN(),X0)&&(l+=o*q5e(t.j,c.e,u),l+=s*vnt(t.j,c.e)),d+=OZe(c.d,c.e)+l,i=new D(c.b);i.a=0&&(s=VZe(e,o),!(s&&(l<22?c.l|=1<>>1,o.m=u>>>1|(d&1)<<21,o.l=f>>>1|(u&1)<<21,--l;return n&&oj(c),a&&(r?(PJ=nj(e),i&&(PJ=$He(PJ,(fO(),Hbt)))):PJ=Uv(e.l,e.m,e.h)),c}function Drt(e,t){var n,r,i,a,o,s,c,l=e.e[t.c.p][t.p]+1,u,d;for(c=t.c.a.c.length+1,s=new D(e.a);s.a0&&(kT(0,e.length),e.charCodeAt(0)==45||(kT(0,e.length),e.charCodeAt(0)==43))),r=o;rn)throw O(new pm(EV+e+`"`));return s}function Ort(e){var t,n,i,a,o,s=new ph,c;for(o=new D(e.a);o.a=e.length)return n.o=0,!0;switch(IC(e,t[0])){case 43:i=1;break;case 45:i=-1;break;default:return n.o=0,!0}if(++t[0],a=t[0],o=HI(e,t),o==0&&t[0]==a)return!1;if(t[0]s&&(s=i,u.c.length=0),i==s&&ry(u,new M_(n.c.i,n)));fw(),Bv(u,e.c),Kx(e.b,c.p,u)}}function Frt(e,t){for(var n,r,i,a,o=new D(t.b),s,c,l,u;o.as&&(s=i,u.c.length=0),i==s&&ry(u,new M_(n.d.i,n)));fw(),Bv(u,e.c),Kx(e.f,c.p,u)}}function Irt(e){var t,n,r,i,a=eT(e),o,s;for(i=new uy((!e.e&&(e.e=new Db(Z5,e,7,4)),e.e));i.e!=i.i.gc();)if(r=F(aP(i),85),s=VF(F(U((!r.c&&(r.c=new Db(X5,r,5,8)),r.c),0),84)),!EO(s,a))return!0;for(n=new uy((!e.d&&(e.d=new Db(Z5,e,8,5)),e.d));n.e!=n.i.gc();)if(t=F(aP(n),85),o=VF(F(U((!t.b&&(t.b=new Db(X5,t,4,7)),t.b),0),84)),!EO(o,a))return!0;return!1}function Lrt(e){var t,n,r=F(q(e,(X(),d$)),26),i,a=F(Y(r,(zz(),H1)),182).Gc((EN(),O5));e.e||(i=F(q(e,YQ),22),t=new j(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),i.Gc((WL(),gQ))?(pP(r,X1,(LF(),U8)),Oz(r,t.a,t.b,!1,!0)):Gp(nb(Y(r,U1)))||Oz(r,t.a,t.b,!0,!0)),a?pP(r,H1,WM(O5)):pP(r,H1,(n=F(Rm(k5),10),new Rb(n,F(yb(n,n.length),10),0)))}function Rrt(e,t){var n,r,i,a,o,s,c,l=nb(q(t,(AR(),VNt)));if(l==null||(MC(l),l)){for($6e(e,t),i=new Od,c=nP(t.b,0);c.b!=c.d.c;)o=F(sE(c),40),n=k4e(e,o,null),n&&(wA(n,t),zd(i.c,n));if(e.a=null,e.b=null,i.c.length>1)for(r=new D(i);r.a=0&&s!=n&&(a=new CS(e,1,s,o,null),r?r.lj(a):r=a),n>=0&&(a=new CS(e,1,n,s==n?o:null,t),r?r.lj(a):r=a)),r}function Hrt(e){var t,n,r;if(e.b==null){if(r=new lm,e.i!=null&&(Y_(r,e.i),r.a+=`:`),e.f&256){for(e.f&256&&e.a!=null&&(_De(e.i)||(r.a+=`//`),Y_(r,e.a)),e.d!=null&&(r.a+=`/`,Y_(r,e.d)),e.f&16&&(r.a+=`/`),t=0,n=e.j.length;tf?!1:(d=(c=WR(r,f,!1),c.a),u+s+d<=t.b&&(SD(n,a-n.s),n.c=!0,SD(r,a-n.s),wP(r,n.s,n.t+n.d+s),r.k=!0,WVe(n.q,r),p=!0,i&&(hk(t,r),r.j=t,e.c.length>o&&(pF((OT(o,e.c.length),F(e.c[o],186)),r),(OT(o,e.c.length),F(e.c[o],186)).a.c.length==0&&KE(e,o)))),p)}function Jrt(e,t){var n,r,i,a,o,s;if(t.Tg(`Partition midprocessing`,1),i=new Bw,xh(ZC(new Mx(null,new DT(e.a,16)),new Un),new Fae(i)),i.d!=0){for(s=F(TE(wAe((a=i.i,new Mx(null,(a||(i.i=new dy(i,i.c))).Lc()))),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),16),r=s.Jc(),n=F(r.Pb(),15);r.Ob();)o=F(r.Pb(),15),N7e(F(VE(i,n),22),F(VE(i,o),22)),n=o;t.Ug()}}function xR(e,t){var n,r,i,a,o;if(e.Ab){if(e.Ab){if(o=e.Ab.i,o>0){if(i=F(e.Ab.g,1998),t==null){for(a=0;an.s&&cc+m&&(h=d.g+f.g,f.a=(f.g*f.a+d.g*d.a)/h,f.g=h,d.f=f,n=!0)),a=s,d=f;return n}function tit(e,t,n){var r,i,a,o,s,c,l,u;for(n.Tg(zht,1),BS(e.b),BS(e.a),s=null,a=nP(t.b,0);!s&&a.b!=a.d.c;)l=F(sE(a),40),Gp(nb(q(l,(Ez(),a4))))&&(s=l);for(c=new ph,DE(c,s,c.c.b,c.c),Hlt(e,c),u=nP(t.b,0);u.b!=u.d.c;)l=F(sE(u),40),o=rb(q(l,(Ez(),J2))),i=Ww(e.b,o)==null?0:F(Ww(e.b,o),15).a,G(l,G2,K(i)),r=1+(Ww(e.a,o)==null?0:F(Ww(e.a,o),15).a),G(l,lNt,K(r));n.Ug()}function nit(e){Rh(e,new UF(xm(_m(bm(ym(new Fa,iK),`ELK Box`),`Algorithm for packing of unconnected boxes, i.e. graphs without edges.`),new Kne))),V(e,iK,IH,TLt),V(e,iK,jH,15),V(e,iK,AH,K(0)),V(e,iK,Zgt,iP(yLt)),V(e,iK,UH,iP(xLt)),V(e,iK,HH,iP(CLt)),V(e,iK,NH,Xgt),V(e,iK,LH,iP(bLt)),V(e,iK,QH,iP(SLt)),V(e,iK,Qgt,iP(t6)),V(e,iK,UW,iP(vLt))}function rit(e,t){var n,r,i=e.i,a,o=i.o.a,s,c,l,u;if(a=i.o.b,o<=0&&a<=0)return Dz(),b5;switch(l=e.n.a,u=e.n.b,s=e.o.a,n=e.o.b,t.g){case 2:case 1:if(l<0)return Dz(),x5;if(l+s>o)return Dz(),t5;break;case 4:case 3:if(u<0)return Dz(),n5;if(u+n>a)return Dz(),y5}return c=(l+s/2)/o,r=(u+n/2)/a,c+r<=1&&c-r<=0?(Dz(),x5):c+r>=1&&c-r>=0?(Dz(),t5):r<.5?(Dz(),n5):(Dz(),y5)}function iit(e,t,n,r,i,a,o){var s,c,l,u,d,f=new hv;for(l=t.Jc();l.Ob();)for(s=F(l.Pb(),838),d=new D(s.Pf());d.a0?c.a?(u=c.b.Kf().b,a>u&&(e.v||c.c.d.c.length==1?(s=(a-u)/2,c.d.d=s,c.d.a=s):(n=F(kx(c.c.d,0),187).Kf().b,i=(n-u)/2,c.d.d=r.Math.max(0,i),c.d.a=a-i-u))):c.d.a=e.t+a:VS(e.u)&&(o=h0e(c.b),o.d<0&&(c.d.d=-o.d),o.d+o.a>c.b.Kf().b&&(c.d.a=o.d+o.a-c.b.Kf().b))}function CR(){CR=C,WY=new Mv((Hz(),W6),K(1)),KY=new Mv(X6,80),uCt=new Mv(bRt,5),JSt=new Mv(u6,OH),sCt=new Mv(G6,K(1)),lCt=new Mv(q6,(by(),!0)),iCt=new kv(50),rCt=new Mv(M6,iCt),XSt=x6,aCt=R6,YSt=new Mv(g6,!1),nCt=j6,eCt=D6,tCt=k6,$St=E6,QSt=T6,oCt=V6,ZSt=(k2e(),zSt),qY=WSt,UY=RSt,GY=VSt,cCt=USt,pCt=$6,hCt=t8,fCt=Q6,dCt=Z6,mCt=(gM(),z5),new Mv(e8,mCt)}function sit(e,t){var n;switch(mO(e)){case 6:return z_(t);case 7:return R_(t);case 8:return L_(t);case 3:return Array.isArray(t)&&(n=mO(t),!(n>=14&&n<=16));case 11:return t!=null&&typeof t===Qz;case 12:return t!=null&&(typeof t===Yz||typeof t==Qz);case 0:return _P(t,e.__elementTypeId$);case 2:return AS(t)&&t.Rm!==ne;case 1:return AS(t)&&t.Rm!==ne||_P(t,e.__elementTypeId$);default:return!0}}function cit(e){var t,n,i=e.o,a;pb(),e.A.dc()||aM(e.A,ASt)?a=i.a:(a=e.D?r.Math.max(i.a,zI(e.f)):zI(e.f),e.A.Gc((EN(),E5))&&!e.B.Gc((hR(),F5))&&(a=r.Math.max(a,zI(F(zC(e.p,(Dz(),n5)),253))),a=r.Math.max(a,zI(F(zC(e.p,y5),253)))),t=rHe(e),t&&(a=r.Math.max(a,t.a))),i.a=Gp(nb(e.e.Rf().mf((Hz(),D6))))?r.Math.max(i.a,a):a,n=e.f.i,n.c=0,n.b=a,jR(e.f)}function lit(e,t){var n,i=r.Math.min(r.Math.abs(e.c-(t.c+t.b)),r.Math.abs(e.c+e.b-t.c)),a,o=r.Math.min(r.Math.abs(e.d-(t.d+t.a)),r.Math.abs(e.d+e.a-t.d));return n=r.Math.abs(e.c+e.b/2-(t.c+t.b/2)),n>e.b/2+t.b/2||(a=r.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:n==0&&a==0?0:n==0?o/a+1:a==0?i/n+1:r.Math.min(i/n,o/a)+1}function uit(e,t){var n,r,i,a=0,o,s=0,c=0;for(i=new D(e.f.e);i.a0&&e.d!=(JD(),tX)&&(s+=o*(r.d.a+e.a[t.a][r.a]*(t.d.a-r.d.a)/n)),n>0&&e.d!=(JD(),$Y)&&(c+=o*(r.d.b+e.a[t.a][r.a]*(t.d.b-r.d.b)/n)));switch(e.d.g){case 1:return new j(s/a,t.d.b);case 2:return new j(t.d.a,c/a);default:return new j(s/a,c/a)}}function dit(e){var t,n=(!e.a&&(e.a=new oy(q5,e,5)),e.a).i+2,r,i,a,o=new pD(n);for(ry(o,new j(e.j,e.k)),xh(new Mx(null,(!e.a&&(e.a=new oy(q5,e,5)),new DT(e.a,16))),new Loe(o)),ry(o,new j(e.b,e.c)),t=1;t0&&(ej(c,!1,(hM(),i8)),ej(c,!0,a8)),kO(t.g,new ife(e,n)),LC(e.g,t,n)}function mit(){mit=C,vFt=new rv(bgt,(by(),!1)),K(-1),uFt=new rv(xgt,K(-1)),K(-1),dFt=new rv(Sgt,K(-1)),fFt=new rv(Cgt,!1),pFt=new rv(wgt,!1),TFt=(PE(),c3),wFt=new rv(Tgt,TFt),EFt=new rv(Egt,-1),CFt=(GM(),$4),SFt=new rv(Dgt,CFt),xFt=new rv(Ogt,!0),_Ft=(PD(),l3),gFt=new rv(kgt,_Ft),hFt=new rv(Agt,!1),K(1),mFt=new rv(jgt,K(1)),bFt=(vM(),u3),yFt=new rv(Mgt,bFt)}function hit(){hit=C;var e;for(Zbt=W(A(q9,1),cV,30,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),WJ=H(q9,cV,30,37,15,1),Qbt=W(A(q9,1),cV,30,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),$bt=H(Y9,hft,30,37,14,1),e=2;e<=36;e++)WJ[e]=Gw(r.Math.pow(e,Zbt[e])),$bt[e]=SF(CB,WJ[e])}function git(e){var t;if((!e.a&&(e.a=new I(Q5,e,6,6)),e.a).i!=1)throw O(new Hp(k_t+(!e.a&&(e.a=new I(Q5,e,6,6)),e.a).i));return t=new Uf,HHe(F(U((!e.b&&(e.b=new Db(X5,e,4,7)),e.b),0),84))&&Gk(t,odt(e,HHe(F(U((!e.b&&(e.b=new Db(X5,e,4,7)),e.b),0),84)),!1)),HHe(F(U((!e.c&&(e.c=new Db(X5,e,5,8)),e.c),0),84))&&Gk(t,odt(e,HHe(F(U((!e.c&&(e.c=new Db(X5,e,5,8)),e.c),0),84)),!0)),t}function _it(e,t){var n,r,i=t.d?e.a.c==(Hw(),w2)?zM(t.b):VM(t.b):e.a.c==(Hw(),C2)?zM(t.b):VM(t.b),a=!1,o;for(r=new uS(py(i.a.Jc(),new f));rL(r);)if(n=F(zE(r),17),o=Gp(e.a.f[e.a.g[t.b.p].p]),(o||IE(n)||n.c.i.c!=n.d.i.c)&&!(Gp(e.a.n[e.a.g[t.b.p].p])||Gp(e.a.n[e.a.g[t.b.p].p]))&&(a=!0,uh(e.b,e.a.g[cZe(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=a,t.a=null,t}function vit(e,t,n){var r=n.gc(),i,a,o,s,c,l;if(r==0)return!1;if(e.Nj()){if(c=e.Oj(),Fqe(e,t,n),o=r==1?e.Gj(3,null,n.Jc().Pb(),t,c):e.Gj(5,null,n,t,c),e.Kj()){for(s=r<100?null:new Fm(r),a=t+r,i=t;i0){for(s=0;s>16==-15&&e.Cb.Vh()&&LD(new bD(e.Cb,9,13,n,e.c,SP(qD(F(e.Cb,62)),e))):N(e.Cb,88)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,N(t,88)||(t=(Kz(),t9)),N(n,88)||(n=(Kz(),t9)),LD(new bD(e.Cb,9,10,n,t,SP(bE(F(e.Cb,29)),e)))))),e.c}function Eit(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m;if(t==n)return!0;if(t=A8e(e,t),n=A8e(e,n),r=IP(t),r){if(u=IP(n),u!=r)return u?(c=r.kk(),m=u.kk(),c==m&&c!=null):!1;if(o=(!t.d&&(t.d=new oy(z7,t,1)),t.d),a=o.i,f=(!n.d&&(n.d=new oy(z7,n,1)),n.d),a==f.i){for(l=0;l0,s=QM(t,a),Yge(n?s.b:s.g,t),Ij(s).c.length==1&&DE(r,s,r.c.b,r.c),i=new M_(a,t),cE(e.o,i),BD(e.e.a,a))}function jit(e,t){var n,i=r.Math.abs(kS(e.b).a-kS(t.b).a),a,o,s,c=r.Math.abs(kS(e.b).b-kS(t.b).b),l;return a=0,l=0,n=1,s=1,i>e.b.b/2+t.b.b/2&&(a=r.Math.min(r.Math.abs(e.b.c-(t.b.c+t.b.b)),r.Math.abs(e.b.c+e.b.b-t.b.c)),n=1-a/i),c>e.b.a/2+t.b.a/2&&(l=r.Math.min(r.Math.abs(e.b.d-(t.b.d+t.b.a)),r.Math.abs(e.b.d+e.b.a-t.b.d)),s=1-l/c),o=r.Math.min(n,s),(1-o)*r.Math.sqrt(i*i+c*c)}function Mit(e){var t,n,r,i;for(Tz(e,e.e,e.f,(Vw(),j2),!0,e.c,e.i),Tz(e,e.e,e.f,j2,!1,e.c,e.i),Tz(e,e.e,e.f,M2,!0,e.c,e.i),Tz(e,e.e,e.f,M2,!1,e.c,e.i),Tit(e,e.c,e.e,e.f,e.i),r=new qT(e.i,0);r.b=65;n--)j9[n]=n-65<<24>>24;for(r=122;r>=97;r--)j9[r]=r-97+26<<24>>24;for(i=57;i>=48;i--)j9[i]=i-48+52<<24>>24;for(j9[43]=62,j9[47]=63,a=0;a<=25;a++)M9[a]=65+a&JB;for(o=26,c=0;o<=51;++o,c++)M9[o]=97+c&JB;for(e=52,s=0;e<=61;++e,s++)M9[e]=48+s&JB;M9[62]=43,M9[63]=47}function Pit(e,t){var n,i,a=dVe(e),o,s,c=dVe(t);return a==c?e.e==t.e&&e.a<54&&t.a<54?e.ft.f):(i=e.e-t.e,n=(e.d>0?e.d:r.Math.floor((e.a-1)*_ft)+1)-(t.d>0?t.d:r.Math.floor((t.a-1)*_ft)+1),n>i+1?a:n0&&(s=fE(s,kat(i))),jJe(o,s))):au&&(p=0,m+=l+t,l=0),tR(s,p,m),n=r.Math.max(n,p+d.a),l=r.Math.max(l,d.b),p+=d.a+t;return new j(n+t,m+l+t)}function Rit(e,t){var n,r,i,a,o,s,c;if(!eT(e))throw O(new Up(O_t));if(r=eT(e),a=r.g,i=r.f,a<=0&&i<=0)return Dz(),b5;switch(s=e.i,c=e.j,t.g){case 2:case 1:if(s<0)return Dz(),x5;if(s+e.g>a)return Dz(),t5;break;case 4:case 3:if(c<0)return Dz(),n5;if(c+e.f>i)return Dz(),y5}return o=(s+e.g/2)/a,n=(c+e.f/2)/i,o+n<=1&&o-n<=0?(Dz(),x5):o+n>=1&&o-n>=0?(Dz(),t5):n<.5?(Dz(),n5):(Dz(),y5)}function zit(e,t,n,r,i){var a=IM(FT(t[0],PV),FT(r[0],PV)),o;if(e[0]=Wx(a),a=fS(a,32),n>=i){for(o=1;o0&&(i.b[o++]=0,i.b[o++]=a.b[0]-1),t=1;t0&&(il(c,c.d-i.d),i.c==($E(),k2)&&rl(c,c.a-i.d),c.d<=0&&c.i>0&&DE(t,c,t.c.b,t.c)));for(a=new D(e.f);a.a0&&(al(s,s.i-i.d),i.c==($E(),k2)&&Kie(s,s.b-i.d),s.i<=0&&s.d>0&&DE(n,s,n.c.b,n.c)))}function Uit(e,t,n,r,i){var a,o,s,c,l,u,d,f,p;for(fw(),Bv(e,new Xne),o=nx(e),p=new Od,f=new Od,s=null,c=0;o.b!=0;)a=F(o.b==0?null:(Ky(o.b!=0),DO(o,o.a.a)),167),!s||Ux(s)*Hx(s)/21&&(c>Ux(s)*Hx(s)/2||o.b==0)&&(d=new jO(f),u=Ux(s)/Hx(s),l=Mz(d,t,new Lf,n,r,i,u),wb(cv(d.e),l),s=d,zd(p.c,d),c=0,f.c.length=0));return VA(p,f),p}function OR(e,t,n,r,i){gh();var a,o,s,c,l,u,d;if(ETe(e,`src`),ETe(n,`dest`),d=Cj(e),c=Cj(n),VSe(!!(d.i&4),`srcType is not an array`),VSe(!!(c.i&4),`destType is not an array`),u=d.c,o=c.c,VSe(u.i&1?u==o:!(o.i&1),`Array types don't match`),PUe(e,t,n,r,i),!(u.i&1)&&d!=c){if(l=zO(e),a=zO(n),M(e)===M(n)&&tr;)fC(a,s,l[--t]);else for(s=r+i;r0),r.a.Xb(r.c=--r.b),d>f+c&&kC(r);for(o=new D(p);o.a0),r.a.Xb(r.c=--r.b)}}function Kit(){Wz();var e,t,n,r,i,a;if(KVt)return KVt;for(e=(++W9,new RT(4)),$R(e,Az(uJ,!0)),_z(e,Az(`M`,!0)),_z(e,Az(`C`,!0)),a=(++W9,new RT(4)),r=0;r<11;r++)VL(a,r,r);return t=(++W9,new RT(4)),$R(t,Az(`M`,!0)),VL(t,4448,4607),VL(t,65438,65439),i=(++W9,new Lv(2)),lz(i,e),lz(i,V9),n=(++W9,new Lv(2)),n.Hm(Lx(a,Az(`L`,!0))),n.Hm(t),n=(++W9,new vE(3,n)),n=(++W9,new MTe(i,n)),KVt=n,KVt}function kR(e,t){var n=new RegExp(t,`g`),r,i,a,o,s,c=H(KJ,vB,2,0,6,1),l;for(r=0,l=e,a=null;;){if(s=n.exec(l),s==null||l==``){c[r]=l;break}o=s.index,c[r]=(uD(0,o,l.length),l.substr(0,o)),l=jw(l,o+s[0].length,l.length),n.lastIndex=0,a==l&&(c[r]=(uD(0,1,l.length),l.substr(0,1)),l=(kT(1,l.length+1),l.substr(1))),a=l,++r}if(e.length>0){for(i=c.length;i>0&&c[i-1]==``;)--i;id&&(d=l),lu&&(u=d),m=(r.Math.log(u)-r.Math.log(1))/t,o=r.Math.exp(m),a=o,s=0;s0&&(f-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(f-=i[2]+e.c),i[1]=r.Math.max(i[1],f),$x(e.a[1],n.c+t.b+i[0]-(i[1]-f)/2,i[1]);for(o=e.a,c=0,u=o.length;c0?(e.n.c.length-1)*e.i:0,i=new D(e.n);i.a1)for(r=nP(i,0);r.b!=r.d.c;)for(n=F(sE(r),235),a=0,c=new D(n.e);c.a0&&(t[0]+=e.c,f-=t[0]),t[2]>0&&(f-=t[2]+e.c),t[1]=r.Math.max(t[1],f),eS(e.a[1],i.d+n.d+t[0]-(t[1]-f)/2,t[1]);else for(h=i.d+n.d,m=i.a-n.d-n.a,s=e.a,l=0,d=s.length;l=t.o&&n.f<=t.f||t.a*.5<=n.f&&t.a*1.5>=n.f){if(o=F(kx(t.n,t.n.c.length-1),208),o.e+o.d+n.g+i<=r&&(a=F(kx(t.n,t.n.c.length-1),208),a.f-e.f+n.f<=e.b||e.a.c.length==1))return WKe(t,n),!0;if(t.s+n.g<=r&&t.t+t.d+n.f+i<=e.f+e.b)return ry(t.b,n),s=F(kx(t.n,t.n.c.length-1),208),ry(t.n,new Xw(t.s,s.f+s.a+t.i,t.i)),qXe(F(kx(t.n,t.n.c.length-1),208),n),Qit(t,n),!0}return!1}function PR(e,t,n,r){var i,a,o,s,c=LL(e.e.Ah(),t);if(i=F(e.g,122),qh(),F(t,69).vk()){for(o=0;o0||ZM(a.b.d,e.b.d+e.b.a)==0&&i.b<0||ZM(a.b.d+a.b.a,e.b.d)==0&&i.b>0){c=0;break}}else c=r.Math.min(c,A3e(e,a,i));c=r.Math.min(c,rat(e,o,c,i))}return c}function iat(e,t){var n,r,i,a,o,s,c;if(e.b<2)throw O(new Hp(`The vector chain must contain at least a source and a target point.`));for(i=(Ky(e.b!=0),F(e.a.a.c,8)),Tv(t,i.a,i.b),c=new Ny((!t.a&&(t.a=new oy(q5,t,5)),t.a)),o=nP(e,1);o.a=0&&a!=n))throw O(new Hp(XK));for(i=0,c=0;ck($v(o.g,o.d[0]).a)?(Ky(c.b>0),c.a.Xb(c.c=--c.b),_b(c,o),i=!0):s.e&&s.e.gc()>0&&(a=(!s.e&&(s.e=new Od),s.e).Kc(t),l=(!s.e&&(s.e=new Od),s.e).Kc(n),(a||l)&&((!s.e&&(s.e=new Od),s.e).Ec(o),++o.c));i||zd(r.c,o)}function cat(e,t,n){var r,i,a,o,s,c,l,u,d=e.a.i+e.a.g/2,f=e.a.i+e.a.g/2,p,m=t.i+t.g/2,h,g=t.j+t.f/2,_;return s=new j(m,g),l=F(Y(t,(Hz(),U6)),8),l.a+=d,l.b+=f,a=(s.b-l.b)/(s.a-l.a),r=s.b-a*s.a,h=n.i+n.g/2,_=n.j+n.f/2,c=new j(h,_),u=F(Y(n,U6),8),u.a+=d,u.b+=f,o=(c.b-u.b)/(c.a-u.a),i=c.b-o*c.a,p=(r-i)/(o-a),!(l.a>>0,`0`+t.toString(16)),r=`\\x`+jw(n,n.length-2,n.length)):e>=jV?(n=(t=e>>>0,`0`+t.toString(16)),r=`\\v`+jw(n,n.length-6,n.length)):r=``+String.fromCharCode(e&JB)}return r}function _at(e,t){for(var n,r,i,a=new D(e.b),o,s,c,l,u;a.an)t.Ug();else{switch(F(q(e,(zz(),C0)),350).g){case 2:a=new ri;break;case 0:a=new qr;break;default:a=new ii}if(r=a.mg(e,i),!a.ng())switch(F(q(e,T0),351).g){case 2:r=P3e(i,r);break;case 1:r=v1e(i,r)}Lot(e,i,r),t.Ug()}}function LR(e,t){var n,i,a,o,s,c,l,u;t%=24,e.q.getHours()!=t&&(i=new r.Date(e.q.getTime()),i.setDate(i.getDate()+1),c=e.q.getTimezoneOffset()-i.getTimezoneOffset(),c>0&&(l=c/60|0,u=c%60,a=e.q.getDate(),n=e.q.getHours(),n+l>=24&&++a,o=new r.Date(e.q.getFullYear(),e.q.getMonth(),a,t+l,e.q.getMinutes()+u,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(o.getTime()))),s=e.q.getTime(),e.q.setTime(s+36e5),e.q.getHours()!=t&&e.q.setTime(s)}function xat(e,t){var n,r,i,a;if(gAe(e.d,e.e),e.c.a.$b(),k(P(q(t.j,(zz(),q$))))!=0||k(P(q(t.j,q$)))!=0)for(n=$W,M(q(t.j,n1))!==M((NN(),X0))&&G(t.j,(X(),JQ),(by(),!0)),a=F(q(t.j,x0),15).a,i=0;ii&&++l,ry(o,(OT(s+l,t.c.length),F(t.c[s+l],15))),c+=(OT(s+l,t.c.length),F(t.c[s+l],15)).a-r,++n;n=_&&e.e[l.p]>h*e.b||b>=n*_)&&(zd(p.c,c),c=new Od,Gk(s,o),o.a.$b(),u-=d,m=r.Math.max(m,u*e.b+g),u+=b,y=b,b=0,d=0,g=0);return new M_(m,p)}function RR(e){var t,n,r,i,a,o,s;if(!e.d){if(s=new are,t=l9,a=t.a.yc(e,t),a==null){for(r=new uy(Pw(e));r.e!=r.i.gc();)n=F(aP(r),29),nC(s,RR(n));t.a.Ac(e),t.a.gc()}for(o=s.i,i=(!e.q&&(e.q=new I(B7,e,11,10)),new uy(e.q));i.e!=i.i.gc();++o)F(aP(i),403);nC(s,(!e.q&&(e.q=new I(B7,e,11,10)),e.q)),Fj(s),e.d=new av((F(U(z((eC(),K7).o),9),19),s.i),s.g),e.e=F(s.g,678),e.e??=WBt,LE(e).b&=-17}return e.d}function zR(e,t,n,r){var i,a,o,s,c,l=LL(e.e.Ah(),t);if(c=0,i=F(e.g,122),qh(),F(t,69).vk()){for(o=0;o1||m==-1){if(d=F(h,72),f=F(u,72),d.dc())f.$b();else for(o=!!kP(t),a=0,s=e.a?d.Jc():d.Gi();s.Ob();)l=F(s.Pb(),57),i=F(oO(e,l),57),i?(o?(c=f.bd(i),c==-1?f.Ei(a,i):a!=c&&f.Si(a,i)):f.Ei(a,i),++a):e.b&&!o&&(f.Ei(a,l),++a)}else h==null?u.Wb(null):(i=oO(e,h),i==null?e.b&&!kP(t)&&u.Wb(h):u.Wb(i))}}function Eat(e,t){for(var n=new dn,i,a=new uS(py(zM(t).a.Jc(),new f)),o,s,c,l,u;rL(a);)if(i=F(zE(a),17),!IE(i)&&(c=i.c.i,R1e(c,FX))){if(u=xtt(e,c,FX,PX),u==-1)continue;n.b=r.Math.max(n.b,u),!n.a&&(n.a=new Od),ry(n.a,c)}for(s=new uS(py(VM(t).a.Jc(),new f));rL(s);)if(o=F(zE(s),17),!IE(o)&&(l=o.d.i,R1e(l,PX))){if(u=xtt(e,l,PX,FX),u==-1)continue;n.d=r.Math.max(n.d,u),!n.c&&(n.c=new Od),ry(n.c,l)}return n}function Dat(e,t,n,r){var i,a,o,s,c,l,u;if(n.d.i!=t.i){for(i=new MP(e),Qc(i,(pL(),EX)),G(i,(X(),d$),n),G(i,(zz(),X1),(LF(),U8)),zd(r.c,i),o=new uI,uT(o,i),PI(o,(Dz(),x5)),s=new uI,uT(s,i),PI(s,t5),u=n.d,lT(n,o),a=new Dw,wA(a,n),G(a,T1,null),sT(a,s),lT(a,u),l=new qT(n.b,0);l.b1e6)throw O(new Pp(`power of ten too big`));if(e<=$z)return BE(JI(eY[1],t),t);for(r=JI(eY[1],$z),i=r,n=gA(e-$z),t=Gw(e%$z);Gj(n,$z)>0;)i=fE(i,r),n=RM(n,$z);for(i=fE(i,JI(eY[1],t)),i=BE(i,$z),n=gA(e-$z);Gj(n,$z)>0;)i=BE(i,$z),n=RM(n,$z);return i=BE(i,t),i}function Aat(e){for(var t,n,r,i,a,o,s,c=new D(e.a),l,u;c.al&&r>l)u=s,l=k(t.p[s.p])+k(t.d[s.p])+s.o.b+s.d.a;else{i=!1,n.$g()&&n.ah(`bk node placement breaks on `+s+` which should have been after `+u);break}if(!i)break}return n.$g()&&n.ah(t+` is feasible: `+i),i}function Nat(e,t,n,r){var i,a=new MP(e),o,s,c,l,u,d,f;if(Qc(a,(pL(),kX)),G(a,(zz(),X1),(LF(),U8)),i=0,t){for(o=new uI,G(o,(X(),d$),t),G(a,d$,t.i),PI(o,(Dz(),x5)),uT(o,a),f=YT(t.e),l=f,u=0,d=l.length;u0){if(i<0&&u.a&&(i=c,a=l[0],r=0),i>=0){if(s=u.b,c==i&&(s-=r++,s==0))return 0;if(!nut(t,l,u,s,o)){c=i-1,l[0]=a;continue}}else if(i=-1,!nut(t,l,u,0,o))return 0}else{if(i=-1,IC(u.c,0)==32){if(d=l[0],xze(t,l),l[0]>d)continue}else if(FOe(t,u.c,l[0])){l[0]+=u.c.length;continue}return 0}return Ilt(o,n)?l[0]:0}function Iat(e,t,n){var r,i,a,o,s,c,l,u=new bS(new ou(n)),d,f;for(s=H(J9,rH,30,e.f.e.c.length,16,1),bTe(s,s.length),n[t.a]=0,l=new D(e.f.e);l.a=s.a?a.b>=s.b?(r.a=s.a+(a.a-s.a)/2+i,r.b=s.b+(a.b-s.b)/2-i-e.e.b):(r.a=s.a+(a.a-s.a)/2+i,r.b=a.b+(s.b-a.b)/2+i):a.b>=s.b?(r.a=a.a+(s.a-a.a)/2+i,r.b=s.b+(a.b-s.b)/2+i):(r.a=a.a+(s.a-a.a)/2+i,r.b=a.b+(s.b-a.b)/2-i-e.e.b))}function HR(e){var t,n,r,i,a,o,s,c;if(!e.f){if(c=new Co,s=new Co,t=l9,o=t.a.yc(e,t),o==null){for(a=new uy(Pw(e));a.e!=a.i.gc();)i=F(aP(a),29),nC(c,HR(i));t.a.Ac(e),t.a.gc()}for(r=(!e.s&&(e.s=new I(M7,e,21,17)),new uy(e.s));r.e!=r.i.gc();)n=F(aP(r),179),N(n,103)&&hD(s,F(n,19));Fj(s),e.r=new rCe(e,(F(U(z((eC(),K7).o),6),19),s.i),s.g),nC(c,e.r),Fj(c),e.f=new av((F(U(z(K7.o),5),19),c.i),c.g),LE(e).b&=-3}return e.f}function UR(){UR=C,iBt=W(A(K9,1),KB,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),aBt=RegExp(`[ +\r\f]+`);try{l7=W(A(KBt,1),iB,2079,0,[new hd((Xme(),gN(`yyyy-MM-dd'T'HH:mm:ss'.'SSSZ`,Cb((om(),om(),jJ))))),new hd(gN(`yyyy-MM-dd'T'HH:mm:ss'.'SSS`,Cb(jJ))),new hd(gN(`yyyy-MM-dd'T'HH:mm:ss`,Cb(jJ))),new hd(gN(`yyyy-MM-dd'T'HH:mm`,Cb(jJ))),new hd(gN(`yyyy-MM-dd`,Cb(jJ)))])}catch(e){if(e=UA(e),!N(e,80))throw O(e)}}function Rat(e){var t,n=null,r,i,a,o,s=null;for(r=F(q(e.b,(zz(),_1)),348),r==(Oj(),o2)&&(n=new Od,s=new Od),o=new D(e.d);o.an);return a}function Bat(e,t){var n,r,i=_L(e.d,1)!=0,a;if(r=OI(e,t),r==0&&Gp(nb(q(t.j,(X(),JQ)))))return 0;!Gp(nb(q(t.j,(X(),JQ))))&&!Gp(nb(q(t.j,b$)))||M(q(t.j,(zz(),n1)))===M((NN(),X0))?t.c.kg(t.e,i):i=Gp(nb(q(t.j,JQ))),jL(e,t,i,!0),Gp(nb(q(t.j,b$)))&&G(t.j,b$,(by(),!1)),Gp(nb(q(t.j,JQ)))&&(G(t.j,JQ,(by(),!1)),G(t.j,b$,!0)),n=OI(e,t);do{if(sVe(e),n==0)return 0;i=!i,a=n,jL(e,t,i,!1),n=OI(e,t)}while(a>n);return a}function Vat(e,t,n){var r=F(q(e,(zz(),r1)),22),i,a,o,s;if(n.a>t.a&&(r.Gc((MF(),n6))?e.c.a+=(n.a-t.a)/2:r.Gc(i6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Gc((MF(),o6))?e.c.b+=(n.b-t.b)/2:r.Gc(a6)&&(e.c.b+=n.b-t.b)),F(q(e,(X(),YQ)),22).Gc((WL(),gQ))&&(n.a>t.a||n.b>t.b))for(s=new D(e.a);s.at.a&&(r.Gc((MF(),n6))?e.c.a+=(n.a-t.a)/2:r.Gc(i6)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Gc((MF(),o6))?e.c.b+=(n.b-t.b)/2:r.Gc(a6)&&(e.c.b+=n.b-t.b)),F(q(e,(X(),YQ)),22).Gc((WL(),gQ))&&(n.a>t.a||n.b>t.b))for(o=new D(e.a);o.a=0&&f<=1&&p>=0&&p<=1?wb(new j(e.a,e.b),ny(new j(t.a,t.b),f)):null}function WR(e,t,n){var i,a,o=0,s=e.t,c,l,u,d,f,p;for(a=0,i=0,l=0,p=0,f=0,n&&(e.n.c.length=0,ry(e.n,new Xw(e.s,e.t,e.i))),c=0,d=new D(e.b);d.a0?e.i:0)>t&&l>0&&(o=0,s+=l+e.i,a=r.Math.max(a,p),i+=l+e.i,l=0,p=0,n&&(++f,ry(e.n,new Xw(e.s,s,e.i))),c=0),p+=u.g+(c>0?e.i:0),l=r.Math.max(l,u.f),n&&qXe(F(kx(e.n,f),208),u),o+=u.g+(c>0?e.i:0),++c;return a=r.Math.max(a,p),i+=l,n&&(e.r=a,e.d=i,FZe(e.j)),new rw(e.s,e.t,a,i)}function GR(e){var t,n=M(Y(e,(zz(),u1)))===M((mL(),XZ))||M(Y(e,u1))===M(GZ)||M(Y(e,u1))===M(KZ)||M(Y(e,u1))===M(JZ)||M(Y(e,u1))===M(ZZ)||M(Y(e,u1))===M(QZ),r=M(Y(e,k1))===M((kL(),D0))||M(Y(e,k1))===M(k0)||M(Y(e,O1))===M((oR(),W0))||M(Y(e,O1))===M((oR(),G0));return t=M(Y(e,n1))!==M((NN(),X0))||Gp(nb(Y(e,i1)))||M(Y(e,K$))!==M((HN(),yX))||k(P(Y(e,q$)))!=0||k(P(Y(e,J$)))!=0,n||r||t}function KR(e){var t,n,r,i,a,o,s,c;if(!e.a){if(e.o=null,c=new pse(e),t=new wo,n=l9,s=n.a.yc(e,n),s==null){for(o=new uy(Pw(e));o.e!=o.i.gc();)a=F(aP(o),29),nC(c,KR(a));n.a.Ac(e),n.a.gc()}for(i=(!e.s&&(e.s=new I(M7,e,21,17)),new uy(e.s));i.e!=i.i.gc();)r=F(aP(i),179),N(r,335)&&hD(t,F(r,38));Fj(t),e.k=new nCe(e,(F(U(z((eC(),K7).o),7),19),t.i),t.g),nC(c,e.k),Fj(c),e.a=new av((F(U(z(K7.o),4),19),c.i),c.g),LE(e).b&=-2}return e.a}function Gat(e){var t,n,i,a,o,s,c=e.d,l,u,d,f=F(q(e,(X(),j$)),16),p;if(t=F(q(e,FQ),16),f||t){if(o=k(P(DN(e,(zz(),i0)))),s=k(P(DN(e,PAt))),p=0,f){for(u=0,a=f.Jc();a.Ob();)i=F(a.Pb(),9),u=r.Math.max(u,i.o.b),p+=i.o.a;p+=o*(f.gc()-1),c.d+=u+s}if(n=0,t){for(u=0,a=t.Jc();a.Ob();)i=F(a.Pb(),9),u=r.Math.max(u,i.o.b),n+=i.o.a;n+=o*(t.gc()-1),c.a+=u+s}l=r.Math.max(p,n),l>e.o.a&&(d=(l-e.o.a)/2,c.b=r.Math.max(c.b,d),c.c=r.Math.max(c.c,d))}}function Kat(e,t,n,r){var i,a,o,s,c,l,u=LL(e.e.Ah(),t);if(i=0,a=F(e.g,122),c=null,qh(),F(t,69).vk()){for(s=0;ss?1:-1,i==-1)d=-c,u=o==c?yFe(t.a,s,e.a,a):sD(t.a,s,e.a,a);else if(d=o,o==c){if(i==0)return iR(),QJ;u=yFe(e.a,a,t.a,s)}else u=sD(e.a,a,t.a,s);return l=new FS(d,u.length,u),WT(l),l}function Yat(e,t){var n,r,i,a=Fit(t);if(!t.c&&(t.c=new I(c7,t,9,9)),xh(new Mx(null,(!t.c&&(t.c=new I(c7,t,9,9)),new DT(t.c,16))),new gu(a)),i=F(q(a,(X(),YQ)),22),Rct(t,i),i.Gc((WL(),gQ)))for(r=new uy((!t.c&&(t.c=new I(c7,t,9,9)),t.c));r.e!=r.i.gc();)n=F(aP(r),125),ylt(e,t,a,n);return F(Y(t,(zz(),H1)),182).gc()!=0&&Ket(t,a),Gp(nb(q(a,xAt)))&&i.Ec(xQ),Yy(a,r0)&&oce(new pqe(k(P(q(a,r0)))),a),M(Y(t,x1))===M((Ej(),x8))?wdt(e,t,a):Dlt(e,t,a),a}function QR(e,t){var n,r,i,a,o,s,c;if(e==null)return null;if(a=e.length,a==0)return``;for(c=H(K9,KB,30,a,15,1),uD(0,a,e.length),uD(0,a,c.length),zTe(e,0,a,c,0),n=null,s=t,i=0,o=0;i0?jw(n.a,0,a-1):``):(uD(0,a-1,e.length),e.substr(0,a-1)):n?n.a:e}function Xat(e,t,n){var r,i,a;if(Yy(t,(zz(),E1))&&(M(q(t,E1))===M((nN(),P$))||M(q(t,E1))===M(I$))||Yy(n,E1)&&(M(q(n,E1))===M((nN(),P$))||M(q(n,E1))===M(I$)))return 0;if(r=jC(t),i=rnt(e,t,n),i!=0)return i;if(Yy(t,(X(),u$))&&Yy(n,u$)){if(a=Hv(PL(t,n,r,F(q(r,l$),15).a),PL(n,t,r,F(q(r,l$),15).a)),M(q(r,X$))===M((YA(),kQ))&&M(q(t,Z$))!==M(q(n,Z$))&&(a=0),a<0)return rR(e,t,n),a;if(a>0)return rR(e,n,t),a}return Z6e(e,t,n)}function Zat(e,t){for(var n,r=new uS(py(gL(t).a.Jc(),new f)),i,a,o,s,c,l,u,d,p;rL(r);)n=F(zE(r),85),N(U((!n.b&&(n.b=new Db(X5,n,4,7)),n.b),0),193)||(c=VF(F(U((!n.c&&(n.c=new Db(X5,n,5,8)),n.c),0),84)),$I(n)||(o=t.i+t.g/2,s=t.j+t.f/2,u=c.i+c.g/2,d=c.j+c.f/2,p=new Nm,p.a=u-o,p.b=d-s,a=new j(p.a,p.b),vF(a,t.g,t.f),p.a-=a.a,p.b-=a.b,o=u-p.a,s=d-p.b,l=new j(p.a,p.b),vF(l,c.g,c.f),p.a-=l.a,p.b-=l.b,u=o+p.a,d=s+p.b,i=IL(n),YO(i,o),XO(i,s),WO(i,u),GO(i,d),Zat(e,c)))}function $R(e,t){var n,r,i,a,o=F(t,137);if(sL(e),sL(o),o.b!=null){if(e.c=!0,e.b==null)e.b=H(q9,cV,30,o.b.length,15,1),OR(o.b,0,e.b,0,o.b.length);else{for(a=H(q9,cV,30,e.b.length+o.b.length,15,1),n=0,r=0,i=0;n=e.b.length?(a[i++]=o.b[r++],a[i++]=o.b[r++]):r>=o.b.length?(a[i++]=e.b[n++],a[i++]=e.b[n++]):o.b[r]0?e.i:0)),++t;for(MKe(e.n,l),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=DV,e.p=DV,o=new D(e.b);o.a0&&(i=(!e.n&&(e.n=new I(o7,e,1,7)),F(U(e.n,0),157)).a,!i||Q_(Q_((t.a+=` "`,t),i),`"`))),n=(!e.b&&(e.b=new Db(X5,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Db(X5,e,5,8)),e.c.i<=1))),n?t.a+=` [`:t.a+=` `,Q_(t,sge(new am,new uy(e.b))),n&&(t.a+=`]`),t.a+=fU,n&&(t.a+=`[`),Q_(t,sge(new am,new uy(e.c))),n&&(t.a+=`]`),t.a)}function tot(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x=e.c,S=t.c,ee,te,ne,C;for(n=VD(x.a,e,0),r=VD(S.a,t,0),y=F(dN(e,(uk(),t2)).Jc().Pb(),12),ne=F(dN(e,n2).Jc().Pb(),12),b=F(dN(t,t2).Jc().Pb(),12),C=F(dN(t,n2).Jc().Pb(),12),_=YT(y.e),ee=YT(ne.g),v=YT(b.e),te=YT(C.g),cF(e,r,S),o=v,u=0,m=o.length;u0&&l[i]&&(h=Kv(e.b,l[i],a)),g=r.Math.max(g,a.c.c.b+h);for(o=new D(d.e);o.ad?new _T(($E(),A2),n,t,u-d):u>0&&d>0&&(new _T(($E(),A2),t,n,0),new _T(A2,n,t,0))),s)}function oot(e,t,n){var r,i,a;for(e.a=new Od,a=nP(t.b,0);a.b!=a.d.c;){for(i=F(sE(a),40);F(q(i,(AR(),p4)),15).a>e.a.c.length-1;)ry(e.a,new M_($W,Rht));r=F(q(i,p4),15).a,n==(hM(),i8)||n==a8?(i.e.ak(P(F(kx(e.a,r),49).b))&&ul(F(kx(e.a,r),49),i.e.a+i.f.a)):(i.e.bk(P(F(kx(e.a,r),49).b))&&ul(F(kx(e.a,r),49),i.e.b+i.f.b))}}function sot(e,t,n,r){var i,a=kM(r),o,s=Gp(nb(q(r,(zz(),hAt)))),c,l,u;if((s||Gp(nb(q(e,S1))))&&!vv(F(q(e,X1),102)))i=sN(a),c=Zrt(e,n,n==(uk(),n2)?i:bM(i));else switch(c=new uI,uT(c,e),t?(u=c.n,u.a=t.a-e.n.a,u.b=t.b-e.n.b,Z2e(u,0,0,e.o.a,e.o.b),PI(c,rit(c,a))):(i=sN(a),PI(c,n==(uk(),n2)?i:bM(i))),o=F(q(r,(X(),YQ)),22),l=c.j,a.g){case 2:case 1:(l==(Dz(),n5)||l==y5)&&o.Ec((WL(),bQ));break;case 4:case 3:(l==(Dz(),t5)||l==x5)&&o.Ec((WL(),bQ))}return c}function cot(e,t){for(var n,i,a,o,s=new cA(new Dl(e.f.b).a),c;s.b;){if(o=Tk(s),a=F(o.jd(),592),t==1){if(a.yf()!=(hM(),s8)&&a.yf()!=r8)continue}else if(a.yf()!=(hM(),i8)&&a.yf()!=a8)continue;switch(i=F(F(o.kd(),49).b,82),c=F(F(o.kd(),49).a,194),n=c.c,a.yf().g){case 2:i.g.c=e.e.a,i.g.b=r.Math.max(1,i.g.b+n);break;case 1:i.g.c=i.g.c+n,i.g.b=r.Math.max(1,i.g.b-n);break;case 4:i.g.d=e.e.b,i.g.a=r.Math.max(1,i.g.a+n);break;case 3:i.g.d=i.g.d+n,i.g.a=r.Math.max(1,i.g.a-n)}}}function lot(e,t){var n,i,a,o,s,c,l,u,d,f;for(t.Tg(`Simple node placement`,1),f=F(q(e,(X(),S$)),317),c=0,o=new D(e.b);o.a1)throw O(new Hp(Zq));c||(a=gE(t,r.Jc().Pb()),o.Ec(a))}return hUe(e,b4e(e,t,n),o)}function ez(e,t,n){var r,i,a,o,s,c,l,u;if(BL(e.e,t))c=(qh(),F(t,69).vk()?new Cx(t,e):new W_(t,e)),ZI(c.c,c.b),qv(c,F(n,18));else{for(u=LL(e.e.Ah(),t),r=F(e.g,122),o=0;o`}c!=null&&(t.a+=``+c)}else e.e?(s=e.e.zb,s!=null&&(t.a+=``+s)):(t.a+=`?`,e.b?(t.a+=` super `,tz(e.b,t)):e.f&&(t.a+=` extends `,tz(e.f,t)))}function yot(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function bot(e){var t,n,i=Lz((!e.c&&(e.c=wT(gA(e.f))),e.c),0),a;if(e.e==0||e.a==0&&e.f!=-1&&e.e<0)return i;if(t=+(dVe(e)<0),n=e.e,a=(i.length+1+r.Math.abs(Gw(e.e)),new fm),t==1&&(a.a+=`-`),e.e>0){if(n-=i.length-t,n>=0){for(a.a+=`0.`;n>qJ.length;n-=qJ.length)qCe(a,qJ);Lve(a,qJ,Gw(n)),Q_(a,(kT(t,i.length+1),i.substr(t)))}else n=t-n,Q_(a,jw(i,t,Gw(n))),a.a+=`.`,Q_(a,aEe(i,Gw(n)))}else{for(Q_(a,(kT(t,i.length+1),i.substr(t)));n<-qJ.length;n+=qJ.length)qCe(a,qJ);Lve(a,qJ,Gw(-n))}return a.a}function nz(e){var t,n,r,i,a,o,s,c,l;return!(e.k!=(pL(),OX)||e.j.c.length<=1||(a=F(q(e,(zz(),X1)),102),a==(LF(),U8))||(i=(yP(),r=(e.q?e.q:(fw(),fw(),rY))._b(R1)?F(q(e,R1),203):F(q(jC(e),z1),203),r),i==I0)||i!=F0&&i!=P0&&(o=k(P(DN(e,b0))),t=F(q(e,y0),140),!t&&(t=new oye(o,o,o,o)),l=MM(e,(Dz(),x5)),c=t.d+t.a+(l.gc()-1)*o,c>e.o.b||(n=MM(e,t5),s=t.d+t.a+(n.gc()-1)*o,s>e.o.b)))}function xot(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;t.Tg(`Orthogonal edge routing`,1),l=k(P(q(e,(zz(),_0)))),n=k(P(q(e,s0))),r=k(P(q(e,u0))),f=new sC(0,n),g=0,o=new qT(e.b,0),s=null,u=null,c=null,d=null;do u=o.b0?(p=(m-1)*n,s&&(p+=r),u&&(p+=r),p0;for(s=F(q(e.c.i,q1),15).a,a=F(TE(ZC(t.Mc(),new Iae(s)),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),16),o=new ph,u=new df,fx(o,e.c.i),LS(u,e.c.i);o.b!=0;){if(n=F(o.b==0?null:(Ky(o.b!=0),DO(o,o.a.a)),9),a.Gc(n))return!0;for(i=new uS(py(VM(n).a.Jc(),new f));rL(i);)r=F(zE(i),17),c=r.d.i,u.a._b(c)||(u.a.yc(c,u),DE(o,c,o.c.b,o.c))}return!1}function Aot(e,t,n){var r,i,a,o,s,c,l,u,d=new Od;for(u=new jje(0,n),a=0,hk(u,new fj(0,0,u,n)),i=0,l=new uy(e);l.e!=l.i.gc();)c=F(aP(l),26),r=F(kx(u.a,u.a.c.length-1),173),s=i+c.g+(F(kx(u.a,0),173).b.c.length==0?0:n),(s>t||Gp(nb(Y(c,(JL(),n3)))))&&(i=0,a+=u.b+n,zd(d.c,u),u=new jje(a,n),r=new fj(0,u.f,u,n),hk(u,r),i=0),r.b.c.length==0||!Gp(nb(Y(aT(c),(JL(),i3))))&&(c.f>=r.o&&c.f<=r.f||r.a*.5<=c.f&&r.a*1.5>=c.f)?WKe(r,c):(o=new fj(r.s+r.r+n,u.f,u,n),hk(u,o),WKe(o,c)),i=c.i+c.g;return zd(d.c,u),d}function sz(e){var t,n,r,i;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,i=0;i=e.b[i+1])i+=2;else if(n0)for(r=new Lb(F(VE(e.a,a),22)),fw(),Bv(r,new uu(t)),i=new qT(a.b,0);i.b0&&r>=-6?r>=0?xy(a,n-Gw(e.e),`.`):(lA(a,t-1,t-1,`0.`),xy(a,t+1,MN(qJ,0,-Gw(r)-1))):(n-t>=1&&(xy(a,t,`.`),++n),xy(a,n,`E`),r>0&&xy(a,++n,`+`),xy(a,++n,``+_S(gA(r)))),e.g=a.a,e.g)):e.g}function Iot(e,t){var n,i=k(P(q(t,(zz(),vAt)))),a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=F(q(t,x0),15).a,ee,te;p=4,a=3,ee=20/S,m=!1,l=0,s=$z;do{for(o=l!=1,f=l!=0,te=0,_=e.a,y=0,x=_.length;yS)?(l=2,s=$z):l==0?(l=1,s=te):(l=0,s=te)):(m=te>=s||s-te=jV?Y_(n,BKe(r)):bC(n,r&JB),o=(++W9,new zw(10,null,0)),CTe(e.a,o,s-1)):(n=(o.Km().length+a,new um),Y_(n,o.Km())),t.e==0?(r=t.Im(),r>=jV?Y_(n,BKe(r)):bC(n,r&JB)):Y_(n,t.Km()),F(o,518).b=n.a))}}function Lot(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(!n.dc()){for(s=0,f=0,r=n.Jc(),m=F(r.Pb(),15).a;s0?1:vb(isNaN(i),!1))>=0^(ok(nG),(r.Math.abs(c)<=nG||c==0?0:c<0?-1:c>0?1:vb(isNaN(c),!1))>=0)?r.Math.max(c,i):(ok(nG),(r.Math.abs(i)<=nG||i==0?0:i<0?-1:i>0?1:vb(isNaN(i),!1))>0?r.Math.sqrt(c*c+i*i):-r.Math.sqrt(c*c+i*i))}function Vot(e){var t,n,i,a=e.o;pb(),e.A.dc()||aM(e.A,ASt)?t=a.b:(t=e.D?r.Math.max(a.b,RI(e.f)):RI(e.f),e.A.Gc((EN(),E5))&&!e.B.Gc((hR(),F5))&&(t=r.Math.max(t,RI(F(zC(e.p,(Dz(),t5)),253))),t=r.Math.max(t,RI(F(zC(e.p,x5),253)))),n=rHe(e),n&&(t=r.Math.max(t,n.b)),e.A.Gc(D5)&&(e.q==(LF(),W8)||e.q==U8)&&(t=r.Math.max(t,gx(F(zC(e.b,(Dz(),t5)),127))),t=r.Math.max(t,gx(F(zC(e.b,x5),127))))),a.b=Gp(nb(e.e.Rf().mf((Hz(),D6))))?r.Math.max(a.b,t):t,i=e.f.i,i.d=0,i.a=t,NR(e.f)}function Hot(e,t,n,r,i,a,o,s){var c=HE(W(A(iIt,1),iB,238,0,[t,n,r,i])),l,u,d=null;switch(e.b.g){case 1:d=HE(W(A(KFt,1),iB,524,0,[new ba,new va,new ya]));break;case 0:d=HE(W(A(KFt,1),iB,524,0,[new ya,new va,new ba]));break;case 2:d=HE(W(A(KFt,1),iB,524,0,[new va,new ba,new ya]))}for(u=new D(d);u.a1&&(c=l.Gg(c,e.a,s));return c.c.length==1?F(kx(c,c.c.length-1),238):c.c.length==2?Cot((OT(0,c.c.length),F(c.c[0],238)),(OT(1,c.c.length),F(c.c[1],238)),o,a):null}function Uot(e,t,n){var r,i=new qc(e),a=new l8e,o,s,c,l,u,d,f,p,m;r=(ME(a.n),ME(a.p),BS(a.c),ME(a.f),ME(a.o),BS(a.q),BS(a.d),BS(a.g),BS(a.k),BS(a.e),BS(a.i),BS(a.j),BS(a.r),BS(a.b),f=Y3e(a,i,null),L5e(a,i),f),t&&(c=new qc(t),o=qat(c),E2e(r,W(A(eLt,1),iB,525,0,[o]))),d=!1,u=!1,n&&(c=new qc(n),nq in c.a&&(d=Qw(c,nq).oe().a),fvt in c.a&&(u=Qw(c,fvt).oe().a)),l=cle(Vze(new ip,d),u),U2e(new ja,r,l),nq in i.a&&vO(i,nq,null),(d||u)&&(s=new Ep,Sit(l,s,d,u),vO(i,nq,s)),p=new Qoe(a),vUe(new Dv(r),p),m=new $oe(a),vUe(new Dv(r),m)}function Wot(e,t,n){var r,i,a,o,s,c,l;for(n.Tg(`Find roots`,1),e.a.c.length=0,i=nP(t.b,0);i.b!=i.d.c;)r=F(sE(i),40),r.b.b==0&&(G(r,(Ez(),a4),(by(),!0)),ry(e.a,r));switch(e.a.c.length){case 0:a=new dj(0,t,`DUMMY_ROOT`),G(a,(Ez(),a4),(by(),!0)),G(a,W2,!0),fx(t.b,a);break;case 1:break;default:for(o=new dj(0,t,pG),c=new D(e.a);c.a=r.Math.abs(i.b)?(i.b=0,o.d+o.a>s.d&&o.ds.c&&o.c0){if(t=new Spe(e.i,e.g),n=e.i,a=n<100?null:new Fm(n),e.Rj())for(r=0;r0){for(s=e.g,l=e.i,UE(e),a=l<100?null:new Fm(l),r=0;r>13|(e.m&15)<<9,i=e.m>>4&8191,a=e.m>>17|(e.h&255)<<5,o=(e.h&1048320)>>8,s=t.l&8191,c=t.l>>13|(t.m&15)<<9,l=t.m>>4&8191,u=t.m>>17|(t.h&255)<<5,d=(t.h&1048320)>>8,f,p,m,h,g,_,v,y,b,x,S,ee,te=n*s,ne=r*s,C=i*s,re=a*s,ie=o*s;return c!=0&&(ne+=n*c,C+=r*c,re+=i*c,ie+=a*c),l!=0&&(C+=n*l,re+=r*l,ie+=i*l),u!=0&&(re+=n*u,ie+=r*u),d!=0&&(ie+=n*d),p=te&vV,m=(ne&511)<<13,f=p+m,g=te>>22,_=ne>>9,v=(C&262143)<<4,y=(re&31)<<17,h=g+_+v+y,x=C>>18,S=re>>5,ee=(ie&4095)<<8,b=x+S+ee,h+=f>>22,f&=vV,b+=h>>22,h&=vV,b&=yV,Uv(f,h,b)}function Yot(e){var t,n,i,a,o,s,c=F(kx(e.j,0),12);if(c.g.c.length!=0&&c.e.c.length!=0)throw O(new Up(`Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges.`));if(c.g.c.length!=0){for(o=DV,n=new D(c.g);n.a0&&h4e(e,s,d);for(i=new D(d);i.a4){if(e.dk(t)){if(e.$k()){if(i=F(t,52),r=i.Bh(),c=r==e.e&&(e.kl()?i.vh(i.Ch(),e.gl())==e.hl():-1-i.Ch()==e.Jj()),e.ll()&&!c&&!r&&i.Gh()){for(a=0;ae.d[o.p]&&(n+=APe(e.b,a)*F(c.b,15).a,cE(e.a,K(a)));for(;!qp(e.a);)vRe(e.b,F(KS(e.a),15).a)}return n}function $ot(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_;for(t.Tg(jht,1),m=new Od,d=r.Math.max(e.a.c.length,F(q(e,(X(),l$)),15).a),n=d*F(q(e,LQ),15).a,c=M(q(e,(zz(),Y$)))===M((YA(),OQ)),g=new D(e.a);g.a0&&(l=e.n.a/a);break;case 2:case 4:i=e.i.o.b,i>0&&(l=e.n.b/i)}G(e,(X(),h$),l)}if(c=e.o,o=e.a,r)o.a=r.a,o.b=r.b,e.d=!0;else if(t!=K8&&t!=q8&&s!=b5)switch(s.g){case 1:o.a=c.a/2;break;case 2:o.a=c.a,o.b=c.b/2;break;case 3:o.a=c.a/2,o.b=c.b;break;case 4:o.b=c.b/2}else o.a=c.a/2,o.b=c.b/2}function dz(e){var t,n,r,i,a,o,s,c,l,u;if(e.Nj()){if(u=e.Cj(),c=e.Oj(),u>0){if(t=new HVe(e.nj()),n=u,a=n<100?null:new Fm(n),lb(e,n,t.g),i=n==1?e.Gj(4,U(t,0),null,0,c):e.Gj(6,t,null,-1,c),e.Kj()){for(r=new uy(t);r.e!=r.i.gc();)a=e.Mj(aP(r),a);a?(a.lj(i),a.mj()):e.Hj(i)}else a?(a.lj(i),a.mj()):e.Hj(i)}else lb(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(fw(),nY),null,-1,c))}else if(e.Kj()){if(u=e.Cj(),u>0){for(s=e.Dj(),l=u,lb(e,u,s),a=l<100?null:new Fm(l),r=0;r1&&Ux(o)*Hx(o)/2>s[0]){for(a=0;as[a];)++a;m=new ET(h,0,a+1),d=new jO(m),u=Ux(o)/Hx(o),c=Mz(d,t,new Lf,n,r,i,u),wb(cv(d.e),c),ix(ZF(f,d),IV),p=new ET(h,a+1,h.c.length),lQe(f,p),h.c.length=0,l=0,_we(s,s.length,0)}else g=f.b.c.length==0?null:kx(f.b,0),g!=null&&Ok(f,0),l>0&&(s[l]=s[l-1]),s[l]+=Ux(o)*Hx(o),++l,zd(h.c,o);return h}function cst(e,t){var n=t.b,r,i,a=new Lb(n.j);i=0,r=n.j,r.c.length=0,XS(F(fA(e.b,(Dz(),n5),(Fk(),SZ)),16),n),i=TP(a,i,new Lr,r),XS(F(fA(e.b,n5,xZ),16),n),i=TP(a,i,new ate,r),XS(F(fA(e.b,n5,bZ),16),n),XS(F(fA(e.b,t5,SZ),16),n),XS(F(fA(e.b,t5,xZ),16),n),i=TP(a,i,new ote,r),XS(F(fA(e.b,t5,bZ),16),n),XS(F(fA(e.b,y5,SZ),16),n),i=TP(a,i,new ste,r),XS(F(fA(e.b,y5,xZ),16),n),i=TP(a,i,new cte,r),XS(F(fA(e.b,y5,bZ),16),n),XS(F(fA(e.b,x5,SZ),16),n),i=TP(a,i,new tte,r),XS(F(fA(e.b,x5,xZ),16),n),XS(F(fA(e.b,x5,bZ),16),n)}function lst(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g;for(t.Tg(`Layer size calculation`,1),d=DV,u=OV,a=!1,c=new D(e.b);c.a.5?v-=s*2*(h-.5):h<.5&&(v+=o*2*(.5-h)),a=c.d.b,v_.a-g-d&&(v=_.a-g-d),c.n.a=t+v}}function pst(e){var t,n,r=F(q(e,(zz(),E1)),165),i,a;if(r==(nN(),P$)){for(n=new uS(py(zM(e).a.Jc(),new f));rL(n);)if(t=F(zE(n),17),!oFe(t))throw O(new Qp(bU+$P(e)+`' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges.`))}else if(r==I$){for(a=new uS(py(VM(e).a.Jc(),new f));rL(a);)if(i=F(zE(a),17),!oFe(i))throw O(new Qp(bU+$P(e)+`' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges.`))}}function fz(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m;if(e.e&&e.c.c>19&&(t=nj(t),c=!c),o=D7e(t),a=!1,i=!1,r=!1,e.h==bV&&e.m==0&&e.l==0){if(i=!0,a=!0,o==-1)e=lme((fO(),Bbt)),r=!0,c=!c;else return s=z8e(e,o),c&&oj(s),n&&(PJ=Uv(0,0,0)),s}else e.h>>19&&(a=!0,e=nj(e),r=!0,c=!c);return o==-1?VQe(e,t)<0?(n&&(PJ=a?nj(e):Uv(e.l,e.m,e.h)),Uv(0,0,0)):Ert(r?e:Uv(e.l,e.m,e.h),t,c,a,i,n):UUe(e,o,c,a,n)}function pz(e,t){var n,r,i,a,o=e.e,s,c=t.e,l,u,d,f,p,m;if(o==0)return t;if(c==0)return e;if(a=e.d,s=t.d,a+s==2)return n=FT(e.a[0],PV),r=FT(t.a[0],PV),o==c?(u=IM(n,r),m=Wx(u),p=Wx(pS(u,32)),p==0?new _E(o,m):new FS(o,2,W(A(q9,1),cV,30,15,[m,p]))):(iR(),K_(o<0?RM(r,n):RM(n,r),0)?yN(o<0?RM(r,n):RM(n,r)):JS(yN(RD(o<0?RM(r,n):RM(n,r)))));if(o==c)f=o,d=a>=s?sD(e.a,a,t.a,s):sD(t.a,s,e.a,a);else{if(i=a==s?_We(e.a,t.a,a):a>s?1:-1,i==0)return iR(),QJ;i==1?(f=o,d=yFe(e.a,a,t.a,s)):(f=c,d=yFe(t.a,s,e.a,a))}return l=new FS(f,d.length,d),WT(l),l}function gst(e,t){var n,r,i,a,o,s,c;if(!(e.g>t.f||t.g>e.f)){for(n=0,r=0,o=e.w.a.ec().Jc();o.Ob();)i=F(o.Pb(),12),Kj(sj(W(A(J3,1),vB,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&++n;for(s=e.r.a.ec().Jc();s.Ob();)i=F(s.Pb(),12),Kj(sj(W(A(J3,1),vB,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&--n;for(c=t.w.a.ec().Jc();c.Ob();)i=F(c.Pb(),12),Kj(sj(W(A(J3,1),vB,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++r;for(a=t.r.a.ec().Jc();a.Ob();)i=F(a.Pb(),12),Kj(sj(W(A(J3,1),vB,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--r;n=0)return n;switch(NC(GD(e,n))){case 2:if(kb(``,nM(e,n.ok()).ve())){if(c=JC(GD(e,n)),s=qC(GD(e,n)),u=E5e(e,t,c,s),u)return u;for(i=Gnt(e,t),o=0,d=i.gc();o1)throw O(new Hp(Zq));for(u=LL(e.e.Ah(),t),r=F(e.g,122),o=0;o1,u=new JE(p.b);Vv(u.a)||Vv(u.b);)l=F(Vv(u.a)?B(u.a):B(u.b),17),f=l.c==p?l.d:l.c,r.Math.abs(sj(W(A(J3,1),vB,8,0,[f.i.n,f.n,f.a])).b-s.b)>1&&X9e(e,l,s,o,p)}}function xst(e){var t,n,i,a=new qT(e.e,0),o,s;if(i=new qT(e.a,0),e.d)for(n=0;nsG;){for(o=t,s=0;r.Math.abs(t-o)0),a.a.Xb(a.c=--a.b),Git(e,e.b-s,o,i,a),Ky(a.b0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n0?(e.f[d.p]=m/(d.e.c.length+d.g.c.length),e.c=r.Math.min(e.c,e.f[d.p]),e.b=r.Math.max(e.b,e.f[d.p])):c&&(e.f[d.p]=m)}}function Cst(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function wst(e,t,n){var r,i,a,o;for(n.Tg(`Graph transformation (`+e.a+`)`,1),o=NT(t.a),a=new D(t.b);a.a=s.b.c)&&(s.b=t),(!s.c||t.c<=s.c.c)&&(s.d=s.c,s.c=t),(!s.e||t.d>=s.e.d)&&(s.e=t),(!s.f||t.d<=s.f.d)&&(s.f=t);return r=new uP((JA(),fX)),GT(e,YCt,new Yp(W(A(dX,1),iB,377,0,[r]))),o=new uP(hX),GT(e,JCt,new Yp(W(A(dX,1),iB,377,0,[o]))),i=new uP(pX),GT(e,qCt,new Yp(W(A(dX,1),iB,377,0,[i]))),a=new uP(mX),GT(e,KCt,new Yp(W(A(dX,1),iB,377,0,[a]))),xL(r.c,fX),xL(i.c,pX),xL(a.c,mX),xL(o.c,hX),s.a.c.length=0,VA(s.a,r.c),VA(s.a,cN(i.c)),VA(s.a,a.c),VA(s.a,cN(o.c)),s}function Dst(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h;for(t.Tg(Fgt,1),m=k(P(Y(e,(XL(),Q4)))),s=k(P(Y(e,(JL(),o3)))),c=F(Y(e,a3),104),aVe((!e.a&&(e.a=new I(s7,e,10,11)),e.a)),d=Aot((!e.a&&(e.a=new I(s7,e,10,11)),e.a),m,s),!e.a&&(e.a=new I(s7,e,10,11)),u=new D(d);u.a0&&(e.a=c+(m-1)*a,t.c.b+=e.a,t.f.b+=e.a)),h.a.gc()!=0&&(p=new sC(1,a),m=pct(p,t,h,g,t.f.b+c-t.c.b),m>0&&(t.f.b+=c+(m-1)*a))}function kst(e,t,n){var i,a,o,s,c,l,u,d=k(P(q(e,(zz(),l0)))),f,p,m,h,g,_,v,y,b,x;for(i=k(P(q(e,BAt))),p=new eo,G(p,l0,d+i),u=t,v=u.d,g=u.c.i,y=u.d.i,_=mme(g.c),b=mme(y.c),a=new Od,f=_;f<=b;f++)c=new MP(e),Qc(c,(pL(),EX)),G(c,(X(),d$),u),G(c,X1,(LF(),U8)),G(c,d0,p),m=F(kx(e.b,f),25),f==_?cF(c,m.a.c.length-n,m):cT(c,m),x=k(P(q(u,y1))),x<0&&(x=0,G(u,y1,x)),c.o.b=x,h=r.Math.floor(x/2),s=new uI,PI(s,(Dz(),x5)),uT(s,c),s.n.b=h,l=new uI,PI(l,t5),uT(l,c),l.n.b=h,lT(u,s),o=new Dw,wA(o,u),G(o,T1,null),sT(o,l),lT(o,v),GQe(c,u,o),zd(a.c,o),u=o;return a}function Ast(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h=t.b.c.length,g,_,v,y;if(!(h<3)){for(p=H(q9,cV,30,h,15,1),d=0,u=new D(t.b);u.ao)&&LS(e.b,F(g.b,17));++s}a=o}}}function jst(e,t){var n,r,i,a,o,s,c=F(fI(e,(Dz(),x5)).Jc().Pb(),12).e,l,u,d,f,p=F(fI(e,t5).Jc().Pb(),12).g,m,h,g,_,v,y;for(s=c.c.length,y=AT(F(kx(e.j,0),12));s-->0;){for(h=(OT(0,c.c.length),F(c.c[0],17)),i=(OT(0,p.c.length),F(p.c[0],17)),v=i.d.e,a=VD(v,i,0),vMe(h,i.d,a),sT(i,null),lT(i,null),m=h.a,t&&fx(m,new pv(y)),r=nP(i.a,0);r.b!=r.d.c;)n=F(sE(r),8),fx(m,new pv(n));for(_=h.b,f=new D(i.b);f.a-2;default:return!1}switch(t=e.Pj(),e.p){case 0:return t!=null&&Gp(nb(t))!=q_(e.k,0);case 1:return t!=null&&F(t,221).a!=Wx(e.k)<<24>>24;case 2:return t!=null&&F(t,180).a!=(Wx(e.k)&JB);case 6:return t!=null&&q_(F(t,190).a,e.k);case 5:return t!=null&&F(t,15).a!=Wx(e.k);case 7:return t!=null&&F(t,191).a!=Wx(e.k)<<16>>16;case 3:return t!=null&&k(P(t))!=e.j;case 4:return t!=null&&F(t,164).a!=e.j;default:return t==null?e.n!=null:!aM(t,e.n)}}function gz(e,t,n){var r,i,a,o;return e.ml()&&e.ll()&&(o=DS(e,F(n,57)),M(o)!==M(n))?(e.vj(t),e.Bj(t,_Le(e,t,o)),e.$k()&&(a=(i=F(n,52),e.kl()?e.il()?i.Qh(e.b,kP(F(yO(Fw(e.b),e.Jj()),19)).n,F(yO(Fw(e.b),e.Jj()).Fk(),29).ik(),null):i.Qh(e.b,uN(i.Ah(),kP(F(yO(Fw(e.b),e.Jj()),19))),null,null):i.Qh(e.b,-1-e.Jj(),null,null)),!F(o,52).Mh()&&(a=(r=F(o,52),e.kl()?e.il()?r.Oh(e.b,kP(F(yO(Fw(e.b),e.Jj()),19)).n,F(yO(Fw(e.b),e.Jj()).Fk(),29).ik(),a):r.Oh(e.b,uN(r.Ah(),kP(F(yO(Fw(e.b),e.Jj()),19))),null,a):r.Oh(e.b,-1-e.Jj(),null,a))),a&&a.mj()),_v(e.b)&&e.Hj(e.Gj(9,n,o,t,!1)),o):n}function Fst(e){for(var t,n,r=new Od,i,a,o=new D(e.e.a),s,c,l,u;o.a0&&(s=r.Math.max(s,wVe(e.C.b+i.d.b,a))),d=i,f=a,p=o;e.C&&e.C.c>0&&(m=p+e.C.c,u&&(m+=d.d.c),s=r.Math.max(s,(Pv(),ok(uH),r.Math.abs(f-1)<=uH||f==1?0:m/(1-f)))),n.n.b=0,n.a.a=s}}function Lst(e,t){var n=F(zC(e.b,t),127),i,a,o,s,c,l=F(F(VE(e.r,t),22),83),u,d,f,p,m;if(l.dc())n.n.d=0,n.n.a=0;else{for(u=e.u.Gc((II(),X8)),s=0,e.A.Gc((EN(),O5))&&Ztt(e,t),c=l.Jc(),d=null,p=0,f=0;c.Ob();)i=F(c.Pb(),115),o=k(P(i.b.mf((Uy(),NY)))),a=i.b.Kf().b,d?(m=f+d.d.a+e.w+i.d.d,s=r.Math.max(s,(Pv(),ok(uH),r.Math.abs(p-o)<=uH||p==o||isNaN(p)&&isNaN(o)?0:m/(o-p)))):e.C&&e.C.d>0&&(s=r.Math.max(s,wVe(e.C.d+i.d.d,o))),d=i,p=o,f=a;e.C&&e.C.a>0&&(m=f+e.C.a,u&&(m+=d.d.a),s=r.Math.max(s,(Pv(),ok(uH),r.Math.abs(p-1)<=uH||p==1?0:m/(1-p)))),n.n.d=0,n.a.b=s}}function Rst(e,t,n){var r,i,a,o,s,c;for(this.g=e,s=t.d.length,c=n.d.length,this.d=H(SX,mU,9,s+c,0,1),o=0;o0?AO(this,this.f/this.a):$v(t.g,t.d[0]).a!=null&&$v(n.g,n.d[0]).a!=null?AO(this,(k($v(t.g,t.d[0]).a)+k($v(n.g,n.d[0]).a))/2):$v(t.g,t.d[0]).a==null?$v(n.g,n.d[0]).a!=null&&AO(this,$v(n.g,n.d[0]).a):AO(this,$v(t.g,t.d[0]).a)}function zst(e,t,n,r,i,a,o,s){var c,l,u,d,f,p,m=!1,h,g,_;if(l=s9e(n.q,t.f+t.b-n.q.f),p=r.f>t.b&&s,_=i-(n.q.e+l-o),d=(c=WR(r,_,!1),c.a),p&&d>r.f)return!1;if(p){for(f=0,g=new D(t.d);g.a=(OT(a,e.c.length),F(e.c[a],186)).e,!p&&d>t.b&&!u)?!1:((u||p||d<=t.b)&&(u&&d>t.b?(n.d=d,SD(n,H2e(n,d))):(e1e(n.q,l),n.c=!0),SD(r,i-(n.s+n.r)),wP(r,n.q.e+n.q.d,t.f),hk(t,r),e.c.length>a&&(pF((OT(a,e.c.length),F(e.c[a],186)),r),(OT(a,e.c.length),F(e.c[a],186)).a.c.length==0&&KE(e,a)),m=!0),m)}function Bst(e,t){var n,r,i,a,o,s,c,l,u,d;for(e.a=new uEe(IUe(c8)),r=new D(t.a);r.a0&&(kT(0,n.length),n.charCodeAt(0)!=47)))throw O(new Hp(`invalid opaquePart: `+n));if(e&&!(t!=null&&ch(k7,t.toLowerCase()))&&n!=null&&eN(n,D7,O7)||e&&t!=null&&ch(k7,t.toLowerCase())&&!h1e(n))throw O(new Hp(Xvt+n));if(!fqe(r))throw O(new Hp(`invalid device: `+r));if(!aGe(i))throw o=i==null?`invalid segments: null`:`invalid segment: `+HWe(i),O(new Hp(o));if(a!=null&&lv(a,JF(35))!=-1)throw O(new Hp(`invalid query: `+a))}function Gst(e,t,n){var r,i,a,o,s,c,l,u,d,f=new pv(e.o),p,m,h,g,_=t.a/f.a;if(s=t.b/f.b,h=t.a-f.a,a=t.b-f.b,n)for(i=M(q(e,(zz(),X1)))===M((LF(),U8)),m=new D(e.j);m.a=1&&(g-o>0&&d>=0?(c.n.a+=h,c.n.b+=a*o):g-o<0&&u>=0&&(c.n.a+=h*g,c.n.b+=a));e.o.a=t.a,e.o.b=t.b,G(e,(zz(),H1),(EN(),r=F(Rm(k5),10),new Rb(r,F(yb(r,r.length),10),0)))}function Kst(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v;if(n.Tg(`Network simplex layering`,1),e.b=t,v=F(q(t,(zz(),x0)),15).a*4,_=e.b.a,_.c.length<1)n.Ug();else{for(o=Knt(e,_),g=null,a=nP(o,0);a.b!=a.d.c;){for(i=F(sE(a),16),c=v*Gw(r.Math.sqrt(i.gc())),s=yrt(i),mR(Vce(Uce(Hce(Hb(s),c),g),!0),n.dh(1)),p=e.b.b,h=new D(s.a);h.a1)for(g=H(q9,cV,30,e.b.b.c.length,15,1),f=0,u=new D(e.b.b);u.a0?(YN(e,n,0),n.a+=String.fromCharCode(r),i=zJe(t,a),YN(e,n,i),a+=i-1):r==39?a+10&&m.a<=0){c.c.length=0,zd(c.c,m);break}p=m.i-m.d,p>=s&&(p>s&&(c.c.length=0,s=p),zd(c.c,m))}c.c.length!=0&&(o=F(kx(c,CP(i,c.c.length)),116),y.a.Ac(o),o.g=u++,Hit(o,t,n,r),c.c.length=0)}for(g=e.c.length+1,f=new D(e);f.aOV||t.o==T2&&u=s&&i<=c)s<=i&&a<=c?(n[u++]=i,n[u++]=a,r+=2):s<=i?(n[u++]=i,n[u++]=c,e.b[r]=c+1,o+=2):a<=c?(n[u++]=s,n[u++]=a,r+=2):(n[u++]=s,n[u++]=c,e.b[r]=c+1);else if(cBB)&&c<10);Kce(e.c,new mt),nct(e),kTe(e.c),Tst(e.f)}function sct(e,t){var n,r,i,a,o,s,c,l,u,d,f;switch(e.k.g){case 1:if(r=F(q(e,(X(),d$)),17),n=F(q(r,OEt),79),n?Gp(nb(q(r,y$)))&&(n=eWe(n)):n=new Uf,l=F(q(e,a$),12),l){if(u=sj(W(A(J3,1),vB,8,0,[l.i.n,l.n,l.a])),t<=u.a)return u.b;DE(n,u,n.a,n.a.a)}if(d=F(q(e,o$),12),d){if(f=sj(W(A(J3,1),vB,8,0,[d.i.n,d.n,d.a])),f.a<=t)return f.b;DE(n,f,n.c.b,n.c)}if(n.b>=2){for(c=nP(n,0),o=F(sE(c),8),s=F(sE(c),8);s.a0&&ej(l,!0,(hM(),a8)),s.k==(pL(),wX)&&MEe(l),LC(e.f,s,t))}function lct(e,t){var n,i,a,o,s,c,l,u=DV,d=DV,f,p,m,h,g,_,v,y;for(c=OV,l=OV,p=new D(t.i);p.a=e.j?(++e.j,ry(e.b,K(1)),ry(e.c,u)):(r=e.d[t.p][1],AE(e.b,l,K(F(kx(e.b,l),15).a+1-r)),AE(e.c,l,k(P(kx(e.c,l)))+u-r*e.f)),(e.r==(oR(),K0)&&(F(kx(e.b,l),15).a>e.k||F(kx(e.b,l-1),15).a>e.k)||e.r==q0&&(k(P(kx(e.c,l)))>e.n||k(P(kx(e.c,l-1)))>e.n))&&(c=!1),o=new uS(py(zM(t).a.Jc(),new f));rL(o);)a=F(zE(o),17),s=a.c.i,e.g[s.p]==l&&(d=uct(e,s),i+=F(d.a,15).a,c&&=Gp(nb(d.b)));return e.g[t.p]=l,i+=e.d[t.p][0],new M_(K(i),(by(),!!c))}function dct(e,t,n){var r,i,a,o,s,c,l,u,d,f=e.c[t],p=e.c[n],m=F(q(f,(X(),t$)),16),h,g,_,v,y,b,x,S;return m&&m.gc()!=0&&m.Gc(p)||(h=f.k!=(pL(),EX)&&p.k!=EX,g=F(q(f,e$),9),_=F(q(p,e$),9),v=g!=_,y=!!g&&g!=f||!!_&&_!=p,b=zP(f,(Dz(),n5)),x=zP(p,y5),y|=zP(f,y5)||zP(p,n5),S=y&&v||b||x,h&&S)||f.k==(pL(),kX)&&p.k==OX||p.k==(pL(),kX)&&f.k==OX?!1:(u=e.c[t],a=e.c[n],i=u$e(e.e,u,a,(Dz(),x5)),c=u$e(e.i,u,a,t5),o9e(e.f,u,a),l=mWe(e.b,u,a)+F(i.a,15).a+F(c.a,15).a+e.f.d,s=mWe(e.b,a,u)+F(i.b,15).a+F(c.b,15).a+e.f.b,e.a&&(d=F(q(u,d$),12),o=F(q(a,d$),12),r=eQe(e.g,d,o),l+=F(r.a,15).a,s+=F(r.b,15).a),l>s)}function fct(e,t){var n=k(P(q(t,(zz(),o0)))),r,i,a,o;n<2&&G(t,o0,2),r=F(q(t,d1),86),r==(hM(),o8)&&G(t,d1,kM(t)),i=F(q(t,MAt),15),i.a==0?G(t,(X(),_$),new KM):G(t,(X(),_$),new wE(i.a)),a=nb(q(t,L1)),a??G(t,L1,(by(),M(q(t,g1))===M((yM(),m8)))),xh(new Mx(null,new DT(t.a,16)),new cu(e)),xh(cO(new Mx(null,new DT(t.b,16)),new lt),new lu(e)),o=new Ust(t),G(t,(X(),S$),o),VC(e.a),US(e.a,($F(),nX),F(q(t,u1),188)),US(e.a,rX,F(q(t,k1),188)),US(e.a,iX,F(q(t,l1),188)),US(e.a,aX,F(q(t,V1),188)),US(e.a,oX,gHe(F(q(t,g1),222))),xme(e.a,sdt(t)),G(t,g$,fz(e.a,t))}function pct(e,t,n,i,a){var o,s,c,l,u,d,f=new kd,p,m,h,g,_,v;for(s=new Od,W4e(e,n,e.d.zg(),s,f),W4e(e,i,e.d.Ag(),s,f),e.b=.2*(g=e5e(cO(new Mx(null,new DT(s,16)),new Fi)),_=e5e(cO(new Mx(null,new DT(s,16)),new Bte)),r.Math.min(g,_)),o=0,c=0;c=2&&(v=g7e(s,!0,p),!e.e&&(e.e=new yoe(e)),LJe(e.e,v,s,e.b)),z1e(s,p),Sct(s),m=-1,d=new D(s);d.a0&&(n+=c.n.a+c.o.a/2,++d),m=new D(c.j);m.a0&&(n/=d),_=H(Z9,NV,30,r.a.c.length,15,1),s=0,l=new D(r.a);l.a-1){for(a=nP(c,0);a.b!=a.d.c;)i=F(sE(a),132),i.v=s;for(;c.b!=0;)for(i=F(lF(c,0),132),n=new D(i.i);n.a-1){for(o=new D(c);o.a0)&&(ol(l,r.Math.min(l.o,a.o-1)),al(l,l.i-1),l.i==0&&zd(c.c,l))}}function Cct(e,t,n,i,a){var o,s,c,l=DV;return s=!1,c=Wat(e,Tb(new j(t.a,t.b),e),wb(new j(n.a,n.b),a),Tb(new j(i.a,i.b),n)),o=!!c&&!(r.Math.abs(c.a-e.a)<=nK&&r.Math.abs(c.b-e.b)<=nK||r.Math.abs(c.a-t.a)<=nK&&r.Math.abs(c.b-t.b)<=nK),c=Wat(e,Tb(new j(t.a,t.b),e),n,a),c&&((r.Math.abs(c.a-e.a)<=nK&&r.Math.abs(c.b-e.b)<=nK)==(r.Math.abs(c.a-t.a)<=nK&&r.Math.abs(c.b-t.b)<=nK)||o?l=r.Math.min(l,CC(Tb(c,n))):s=!0),c=Wat(e,Tb(new j(t.a,t.b),e),i,a),c&&(s||(r.Math.abs(c.a-e.a)<=nK&&r.Math.abs(c.b-e.b)<=nK)==(r.Math.abs(c.a-t.a)<=nK&&r.Math.abs(c.b-t.b)<=nK)||o)&&(l=r.Math.min(l,CC(Tb(c,i)))),l}function wct(e){Rh(e,new UF(vm(xm(_m(bm(ym(new Fa,ZH),Spt),`Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths.`),new st),kH))),V(e,ZH,LH,iP(TCt)),V(e,ZH,zH,(by(),!0)),V(e,ZH,UH,iP(OCt)),V(e,ZH,QH,iP(kCt)),V(e,ZH,HH,iP(ACt)),V(e,ZH,WH,iP(DCt)),V(e,ZH,BH,iP(jCt)),V(e,ZH,GH,iP(MCt)),V(e,ZH,_pt,iP(wCt)),V(e,ZH,ypt,iP(SCt)),V(e,ZH,bpt,iP(CCt)),V(e,ZH,xpt,iP(ECt)),V(e,ZH,vpt,iP(QY))}function Tct(e){for(var t=null,n,r=new D(e),i,a,o,s,c;r.a0&&n.c==0&&(!t&&(t=new Od),zd(t.c,n));if(t)for(;t.c.length!=0;){if(n=F(KE(t,0),239),n.b&&n.b.c.length>0){for(a=(!n.b&&(n.b=new Od),new D(n.b));a.aVD(e,n,0))return new M_(i,n)}else if(k($v(i.g,i.d[0]).a)>k($v(n.g,n.d[0]).a))return new M_(i,n)}for(s=(!n.e&&(n.e=new Od),n.e).Jc();s.Ob();)o=F(s.Pb(),239),c=(!o.b&&(o.b=new Od),o.b),pT(0,c.c.length),bg(c.c,0,n),o.c==c.c.length&&zd(t.c,o)}return null}function _z(e,t){var n,r,i,a,o,s,c,l,u;if(t.e==5)act(e,t);else if(l=t,l.b!=null&&e.b!=null){for(sL(e),sz(e),sL(l),sz(l),n=H(q9,cV,30,e.b.length+l.b.length,15,1),u=0,r=0,o=0;r=s&&i<=c)s<=i&&a<=c?r+=2:s<=i?(e.b[r]=c+1,o+=2):a<=c?(n[u++]=i,n[u++]=s-1,r+=2):(n[u++]=i,n[u++]=s-1,e.b[r]=c+1,o+=2);else if(c0),F(u.a.Xb(u.c=--u.b),17));a!=r&&u.b>0;)e.a[a.p]=!0,e.a[r.p]=!0,a=(Ky(u.b>0),F(u.a.Xb(u.c=--u.b),17));u.b>0&&kC(u)}}function kct(e,t,n){var i,a,o,s,c,l,u,d,f,p;if(n)for(i=-1,d=new qT(t,0);d.b0?i-=864e5:i+=864e5,c=new Dve(IM(gA(t.q.getTime()),i))),u=new fm,l=e.a.length,a=0;a=97&&r<=122||r>=65&&r<=90){for(o=a+1;o=l)throw O(new Hp(`Missing trailing '`));o+1=14&&u<=16))?t.a._b(r)?(n.a?Q_(n.a,n.b):n.a=new _y(n.d),X_(n.a,`[...]`)):(s=zO(r),l=new jx(t),qE(n,Pct(s,l))):N(r,171)?qE(n,E3e(F(r,171))):N(r,195)?qE(n,P1e(F(r,195))):N(r,201)?qE(n,O2e(F(r,201))):N(r,2076)?qE(n,F1e(F(r,2076))):N(r,54)?qE(n,T3e(F(r,54))):N(r,585)?qE(n,Q3e(F(r,585))):N(r,831)?qE(n,w3e(F(r,831))):N(r,108)&&qE(n,C3e(F(r,108))):qE(n,r==null?aB:XM(r));return n.a?n.e.length==0?n.a.a:n.a.a+(``+n.e):n.c}function vz(e,t){var n,r,i,a=e.F;t==null?(e.F=null,Pj(e,null)):(e.F=(MC(t),t),r=lv(t,JF(60)),r==-1?(i=t,lv(t,JF(46))==-1&&(r=lv(t,JF(91)),r!=-1&&(i=(uD(0,r,t.length),t.substr(0,r))),!kb(i,Xz)&&!kb(i,vq)&&!kb(i,yq)&&!kb(i,bq)&&!kb(i,xq)&&!kb(i,Sq)&&!kb(i,Cq)&&!kb(i,wq)?(i=uyt,r!=-1&&(i+=``+(kT(r,t.length+1),t.substr(r)))):i=t),Pj(e,i),i==t&&(e.F=e.D)):(i=(uD(0,r,t.length),t.substr(0,r)),lv(t,JF(46))==-1&&!kb(i,Xz)&&!kb(i,vq)&&!kb(i,yq)&&!kb(i,bq)&&!kb(i,xq)&&!kb(i,Sq)&&!kb(i,Cq)&&!kb(i,wq)&&(i=uyt),n=my(t,JF(62)),n!=-1&&(i+=``+(kT(n+1,t.length+1),t.substr(n+1))),Pj(e,i))),e.Db&4&&!(e.Db&1)&&dA(e,new CS(e,1,5,a,t))}function Fct(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m;if(e.c=e.e,m=nb(q(t,(zz(),NAt))),p=m==null||(MC(m),m),a=F(q(t,(X(),YQ)),22).Gc((WL(),gQ)),i=F(q(t,X1),102),n=i!=(LF(),H8)&&i!=W8&&i!=U8,p&&(n||!a)){for(d=new D(t.a);d.a=0)return i=$Ke(e,(uD(1,o,t.length),t.substr(1,o-1))),u=(uD(o+1,c,t.length),t.substr(o+1,c-(o+1))),But(e,u,i)}else{if(n=-1,Kbt??=RegExp(`\\d`),Kbt.test(String.fromCharCode(s))&&(n=Cye(t,JF(46),c-1),n>=0)){r=F(dFe(e,fze(e,(uD(1,n,t.length),t.substr(1,n-1))),!1),61),l=0;try{l=_R((kT(n+1,t.length+1),t.substr(n+1)),VB,$z)}catch(e){throw e=UA(e),N(e,131)?(a=e,O(new XD(a))):O(e)}if(l>16==-10?n=F(e.Cb,293).Wk(t,n):e.Db>>16==-15&&(!t&&(t=(Kz(),e9)),!l&&(l=(Kz(),e9)),e.Cb.Vh()&&(c=new ZD(e.Cb,1,13,l,t,SP(qD(F(e.Cb,62)),e),!1),n?n.lj(c):n=c));else if(N(e.Cb,88))e.Db>>16==-23&&(N(t,88)||(t=(Kz(),t9)),N(l,88)||(l=(Kz(),t9)),e.Cb.Vh()&&(c=new ZD(e.Cb,1,10,l,t,SP(bE(F(e.Cb,29)),e),!1),n?n.lj(c):n=c));else if(N(e.Cb,446))for(s=F(e.Cb,835),o=(!s.b&&(s.b=new _d(new Zf)),s.b),a=(r=new cA(new Dl(o.a).a),new vd(r));a.a.b;)i=F(Tk(a.a).jd(),87),n=yz(i,vL(i,s),n)}return n}function Rct(e,t){var n,r,i,a,o=Gp(nb(Y(e,(zz(),C1)))),s,c,l,u,d,f=F(Y(e,Q1),22);for(c=!1,l=!1,d=new uy((!e.c&&(e.c=new I(c7,e,9,9)),e.c));d.e!=d.i.gc()&&(!c||!l);){for(a=F(aP(d),125),s=0,i=OS(ik(W(A(_J,1),iB,20,0,[(!a.d&&(a.d=new Db(Z5,a,8,5)),a.d),(!a.e&&(a.e=new Db(Z5,a,7,4)),a.e)])));rL(i)&&(r=F(zE(i),85),u=o&&UI(r)&&Gp(nb(Y(r,w1))),n=Zot((!r.b&&(r.b=new Db(X5,r,4,7)),r.b),a)?e==aT(VF(F(U((!r.c&&(r.c=new Db(X5,r,5,8)),r.c),0),84))):e==aT(VF(F(U((!r.b&&(r.b=new Db(X5,r,4,7)),r.b),0),84))),!((u||n)&&(++s,s>1))););(s>0||f.Gc((II(),X8))&&(!a.n&&(a.n=new I(o7,a,1,7)),a.n).i>0)&&(c=!0),s>1&&(l=!0)}c&&t.Ec((WL(),gQ)),l&&t.Ec((WL(),_Q))}function zct(e){var t,n,i,a,o,s,c,l,u,d,f,p=F(Y(e,(Hz(),E6)),22);if(p.dc())return null;if(c=0,s=0,p.Gc((EN(),D5))){for(d=F(Y(e,R6),102),i=2,n=2,a=2,o=2,t=aT(e)?F(Y(aT(e),h6),86):F(Y(e,h6),86),u=new uy((!e.c&&(e.c=new I(c7,e,9,9)),e.c));u.e!=u.i.gc();)if(l=F(aP(u),125),f=F(Y(l,H6),64),f==(Dz(),b5)&&(f=Rit(l,t),pP(l,H6,f)),d==(LF(),U8))switch(f.g){case 1:i=r.Math.max(i,l.i+l.g);break;case 2:n=r.Math.max(n,l.j+l.f);break;case 3:a=r.Math.max(a,l.i+l.g);break;case 4:o=r.Math.max(o,l.j+l.f)}else switch(f.g){case 1:i+=l.g+2;break;case 2:n+=l.f+2;break;case 3:a+=l.g+2;break;case 4:o+=l.f+2}c=r.Math.max(i,a),s=r.Math.max(n,o)}return Oz(e,c,s,!0,!0)}function Bct(e,t){var n,i,a=null,o,s,c,l,u,d,f,p,m,h,g;for(i=new D(t.a);i.a1)for(a=e.e.b,fx(e.e,l),c=l.a.ec().Jc();c.Ob();)s=F(c.Pb(),9),LC(e.c,s,K(a))}}function Hct(e,t,n,a){var o,s=new R6e(t),c,l,u,d,f,p=ytt(e,t,s),m,h=r.Math.max(k(P(q(t,(zz(),y1)))),1);for(f=new D(p.a);f.a=0){for(c=null,s=new qT(u.a,l+1);s.b0,l?l&&(f=_.p,o?++f:--f,d=F(kx(_.c.a,f),9),r=gUe(d),p=!(X7e(r,S,n[0])||oTe(r,S,n[0]))):p=!0),m=!1,x=t.D.i,x&&x.c&&s.e&&(u=o&&x.p>0||!o&&x.p=0&&hs?1:vb(!1,isNaN(s)))<0&&(ok(nG),(r.Math.abs(s-1)<=nG||s==1?0:s<1?-1:s>1?1:vb(isNaN(s),!1))<0)&&(ok(nG),(r.Math.abs(0-c)<=nG||c==0?0:0c?1:vb(!1,isNaN(c)))<0)&&(ok(nG),(r.Math.abs(c-1)<=nG||c==1?0:c<1?-1:c>1?1:vb(isNaN(c),!1))<0)),o)}function Zct(e){var t,n,i,a,o,s,c,l,u,d,f;for(e.j=H(q9,cV,30,e.g,15,1),e.o=new Od,xh(cO(new Mx(null,new DT(e.e.b,16)),new Si),new hoe(e)),e.a=H(J9,rH,30,e.b,16,1),iM(new Mx(null,new DT(e.e.b,16)),new Gu(e)),i=(f=new Od,xh(ZC(cO(new Mx(null,new DT(e.e.b,16)),new Ci),new goe(e)),new xfe(e,f)),f),l=new D(i);l.a=u.c.c.length?PNe((pL(),OX),EX):PNe((pL(),EX),EX),d*=2,o=n.a.g,n.a.g=r.Math.max(o,o+(d-o)),s=n.b.g,n.b.g=r.Math.max(s,s+(d-s)),a=t}}function Sz(e,t){var n;if(e.e)throw O(new Up((tb(yY),$V+yY.k+eH)));if(!Xde(e.a,t))throw O(new wp(Bft+t+Vft));if(t==e.d)return e;switch(n=e.d,e.d=t,n.g){case 0:switch(t.g){case 2:KP(e);break;case 1:aj(e),KP(e);break;case 4:OF(e),KP(e);break;case 3:OF(e),aj(e),KP(e)}break;case 2:switch(t.g){case 1:aj(e),$L(e);break;case 4:OF(e),KP(e);break;case 3:OF(e),aj(e),KP(e)}break;case 1:switch(t.g){case 2:aj(e),$L(e);break;case 4:aj(e),OF(e),KP(e);break;case 3:aj(e),OF(e),aj(e),KP(e)}break;case 4:switch(t.g){case 2:OF(e),KP(e);break;case 1:OF(e),aj(e),KP(e);break;case 3:aj(e),$L(e)}break;case 3:switch(t.g){case 2:aj(e),OF(e),KP(e);break;case 1:aj(e),OF(e),aj(e),KP(e);break;case 4:aj(e),$L(e)}}return e}function Cz(e,t){var n;if(e.d)throw O(new Up((tb(uX),$V+uX.k+eH)));if(!Yde(e.a,t))throw O(new wp(Bft+t+Vft));if(t==e.c)return e;switch(n=e.c,e.c=t,n.g){case 0:switch(t.g){case 2:uj(e);break;case 1:ij(e),uj(e);break;case 4:kF(e),uj(e);break;case 3:kF(e),ij(e),uj(e)}break;case 2:switch(t.g){case 1:ij(e),eR(e);break;case 4:kF(e),uj(e);break;case 3:kF(e),ij(e),uj(e)}break;case 1:switch(t.g){case 2:ij(e),eR(e);break;case 4:ij(e),kF(e),uj(e);break;case 3:ij(e),kF(e),ij(e),uj(e)}break;case 4:switch(t.g){case 2:kF(e),uj(e);break;case 1:kF(e),ij(e),uj(e);break;case 3:ij(e),eR(e)}break;case 3:switch(t.g){case 2:ij(e),kF(e),uj(e);break;case 1:ij(e),kF(e),ij(e),uj(e);break;case 4:ij(e),eR(e)}}return e}function Qct(e){var t,n,r,i,a,o,s,c,l,u,d=e.b,f,p,m,h,g,_,v,y;for(u=new qT(d,0),_b(u,new mC(e)),v=!1,o=1;u.b `):t.a+=`Root `,n=e.Ah().zb,kb(n.substr(0,3),`Elk`)?Q_(t,(kT(3,n.length+1),n.substr(3))):t.a+=``+n,i=e.ih(),i)Q_((t.a+=` `,t),i);else if(N(e,362)&&(l=F(e,157).a,l))Q_((t.a+=` `,t),l);else{for(o=new uy(e.jh());o.e!=o.i.gc();)if(a=F(aP(o),157),l=a.a,l){Q_((t.a+=` `,t),l);return}if(N(e,271)&&(r=F(e,85),!r.b&&(r.b=new Db(X5,r,4,7)),r.b.i!=0&&(!r.c&&(r.c=new Db(X5,r,5,8)),r.c.i!=0))){for(t.a+=` (`,s=new Ny((!r.b&&(r.b=new Db(X5,r,4,7)),r.b));s.e!=s.i.gc();)s.e>0&&(t.a+=rB),wz(F(aP(s),174),t);for(t.a+=fU,c=new Ny((!r.c&&(r.c=new Db(X5,r,5,8)),r.c));c.e!=c.i.gc();)c.e>0&&(t.a+=rB),wz(F(aP(c),174),t);t.a+=`)`}}}function $ct(e,t,n){for(var i,a,o,s,c,l=new uy((!e.a&&(e.a=new I(s7,e,10,11)),e.a)),u,d;l.e!=l.i.gc();)for(c=F(aP(l),26),a=new uS(py(gL(c).a.Jc(),new f));rL(a);){if(i=F(zE(a),85),!i.b&&(i.b=new Db(X5,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new Db(X5,i,5,8)),i.c.i<=1)))throw O(new $p(`Graph must not contain hyperedges.`));if(!$I(i)&&c!=VF(F(U((!i.c&&(i.c=new Db(X5,i,5,8)),i.c),0),84)))for(u=new Jve,wA(u,i),G(u,(Mk(),XY),i),Hie(u,F(V_(Yx(n.f,c)),155)),Uie(u,F(pC(n,VF(F(U((!i.c&&(i.c=new Db(X5,i,5,8)),i.c),0),84))),155)),ry(t.c,u),s=new uy((!i.n&&(i.n=new I(o7,i,1,7)),i.n));s.e!=s.i.gc();)o=F(aP(s),157),d=new LNe(u,o.a),wA(d,o),G(d,XY,o),d.e.a=r.Math.max(o.g,1),d.e.b=r.Math.max(o.f,1),Lat(d),ry(t.d,d)}}function elt(e,t,n){var i,a,o,s,c,l,u,d,f,p;switch(n.Tg(`Node promotion heuristic`,1),e.i=t,e.r=F(q(t,(zz(),O1)),243),e.r!=(oR(),W0)&&e.r!=G0?Vlt(e):Ret(e),d=F(q(e.i,pAt),15).a,o=new Bn,e.r.g){case 2:case 1:oz(e,o);break;case 3:for(e.r=Y0,oz(e,o),l=0,c=new D(e.b);c.ae.k&&(e.r=K0,oz(e,o));break;case 4:for(e.r=Y0,oz(e,o),u=0,a=new D(e.c);a.ae.n&&(e.r=q0,oz(e,o));break;case 6:p=Gw(r.Math.ceil(e.g.length*d/100)),oz(e,new Pae(p));break;case 5:f=Gw(r.Math.ceil(e.e*d/100)),oz(e,new wu(f));break;case 8:gdt(e,!0);break;case 9:gdt(e,!1);break;default:oz(e,o)}e.r!=W0&&e.r!=G0?R9e(e,t):unt(e,t),n.Ug()}function tlt(e,t){var n,i,a,o,s,c,l,u,d,f=new Alt(e),p,m,h,g,_,v,y,b;for(_ke(f,t!=(hM(),s8)&&t!=r8),d=f.a,p=new Lf,a=(MO(),W(A(CY,1),Z,237,0,[bY,xY,SY])),s=0,l=a.length;s0&&(p.d+=d.n.d,p.d+=d.d),p.a>0&&(p.a+=d.n.a,p.a+=d.d),p.b>0&&(p.b+=d.n.b,p.b+=d.d),p.c>0&&(p.c+=d.n.c,p.c+=d.d),p}function nlt(e,t,n){var i,a,o,s,c,l,u,d,f,p=n.d,m,h;for(f=n.c,o=new j(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a),s=o.b,u=new D(e.a);u.a0&&(e.c[t.c.p][t.p].d+=_L(e.i,24)*HV*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function olt(e){for(var t,n,r,i,a,o,s,c,l,u,d,f,p,m=new D(e),h,g;m.ai.d,i.d=r.Math.max(i.d,t),c&&n&&(i.d=r.Math.max(i.d,i.a),i.a=i.d+a);break;case 3:n=t>i.a,i.a=r.Math.max(i.a,t),c&&n&&(i.a=r.Math.max(i.a,i.d),i.d=i.a+a);break;case 2:n=t>i.c,i.c=r.Math.max(i.c,t),c&&n&&(i.c=r.Math.max(i.b,i.c),i.b=i.c+a);break;case 4:n=t>i.b,i.b=r.Math.max(i.b,t),c&&n&&(i.b=r.Math.max(i.b,i.c),i.c=i.b+a)}}}function clt(e,t){var n,r,i,a,o,s,c,l=``,u;return t.length==0?e.le(oft,WB,-1,-1):(u=EI(t),kb(u.substr(0,3),`at `)&&(u=(kT(3,u.length+1),u.substr(3))),u=u.replace(/\[.*?\]/g,``),o=u.indexOf(`(`),o==-1?(o=u.indexOf(`@`),o==-1?(l=u,u=``):(l=EI((kT(o+1,u.length+1),u.substr(o+1))),u=EI((uD(0,o,u.length),u.substr(0,o))))):(n=u.indexOf(`)`,o),l=(uD(o+1,n,u.length),u.substr(o+1,n-(o+1))),u=EI((uD(0,o,u.length),u.substr(0,o)))),o=lv(u,JF(46)),o!=-1&&(u=(kT(o+1,u.length+1),u.substr(o+1))),(u.length==0||kb(u,`Anonymous function`))&&(u=WB),s=my(l,JF(58)),i=Cye(l,JF(58),s-1),c=-1,r=-1,a=oft,s!=-1&&i!=-1&&(a=(uD(0,i,l.length),l.substr(0,i)),c=i_e((uD(i+1,s,l.length),l.substr(i+1,s-(i+1)))),r=i_e((kT(s+1,l.length+1),l.substr(s+1)))),e.le(a,u,c,r))}function llt(e){for(var t,n,r,i,a,o,s,c,l=new D(e),u,d;l.a0||u.j==x5&&u.e.c.length-u.g.c.length<0)){t=!1;break}for(i=new D(u.g);i.a=u&&S>=_&&(p+=h.n.b+g.n.b+g.a.b-x,++c));if(n)for(s=new D(y.e);s.a=u&&S>=_&&(p+=h.n.b+g.n.b+g.a.b-x,++c))}c>0&&(ee+=p/c,++m)}m>0?(t.a=a*ee/m,t.g=m):(t.a=0,t.g=0)}function dlt(e,t,n,r){var i,a,o,s=new Alt(t),c;return d9e(s,r),i=!0,e&&e.nf((Hz(),h6))&&(a=F(e.mf((Hz(),h6)),86),i=a==(hM(),o8)||a==i8||a==a8),Ptt(s,!1),kO(s.e.Pf(),new vbe(s,!1,i)),Jw(s,s.f,(MO(),bY),(Dz(),n5)),Jw(s,s.f,SY,y5),Jw(s,s.g,bY,x5),Jw(s,s.g,SY,t5),ZYe(s,n5),ZYe(s,y5),dDe(s,t5),dDe(s,x5),pb(),o=s.A.Gc((EN(),T5))&&s.B.Gc((hR(),P5))?Yqe(s):null,o&&Jce(s.a,o),slt(s),EZe(s),DZe(s),Dct(s),cit(s),TQe(s),KN(s,n5),KN(s,y5),int(s),Vot(s),n&&(lqe(s),EQe(s),KN(s,t5),KN(s,x5),c=s.B.Gc((hR(),F5)),m3e(s,c,n5),m3e(s,c,y5),h3e(s,c,t5),h3e(s,c,x5),xh(new Mx(null,new DT(new kl(s.i),0)),new qe),xh(ZC(new Mx(null,eEe(s.r).a.oc()),new Je),new Ye),w1e(s),s.e.Nf(s.o),xh(new Mx(null,eEe(s.r).a.oc()),new Xe)),s.o}function flt(e){var t,n,i,a,o,s,c,l,u=DV,d,f,p,m,h,g;for(i=new D(e.a.b);i.a1)for(m=new qot(h,b,i),jE(b,new kfe(e,m)),zd(s.c,m),f=b.a.ec().Jc();f.Ob();)d=F(f.Pb(),49),BD(o,d.b);if(c.a.gc()>1)for(m=new qot(h,c,i),jE(c,new Afe(e,m)),zd(s.c,m),f=c.a.ec().Jc();f.Ob();)d=F(f.Pb(),49),BD(o,d.b)}}function vlt(e,t){var n,i,a,o,s,c;if(F(q(t,(X(),YQ)),22).Gc((WL(),gQ))){for(c=new D(t.a);c.a=0&&o0&&(F(zC(e.b,t),127).a.b=n)}function Dlt(e,t,n){var r,i,a,o,s,c,l,u,d,f,p=0,m,h,g,_;for(r=new df,a=new uy((!t.a&&(t.a=new I(s7,t,10,11)),t.a));a.e!=a.i.gc();)i=F(aP(a),26),Gp(nb(Y(i,(zz(),K1))))||(d=aT(i),GR(d)&&!Gp(nb(Y(i,e1)))&&(pP(i,(X(),u$),K(p)),++p,lD(i,Q$)&&LS(r,F(Y(i,Q$),15))),mlt(e,i,n));for(G(n,(X(),l$),K(p)),G(n,LQ,K(r.a.gc())),p=0,u=new uy((!t.b&&(t.b=new I(Z5,t,12,3)),t.b));u.e!=u.i.gc();)c=F(aP(u),85),GR(t)&&(pP(c,u$,K(p)),++p),g=nI(c),_=q0e(c),f=Gp(nb(Y(g,(zz(),C1)))),h=!Gp(nb(Y(c,K1))),m=f&&UI(c)&&Gp(nb(Y(c,w1))),o=aT(g)==t&&aT(g)==aT(_),s=(aT(g)==t&&_==t)^(aT(_)==t&&g==t),h&&!m&&(s||o)&&Ddt(e,c,t,n);if(aT(t))for(l=new uy(jDe(aT(t)));l.e!=l.i.gc();)c=F(aP(l),85),g=nI(c),g==t&&UI(c)&&(m=Gp(nb(Y(g,(zz(),C1))))&&Gp(nb(Y(c,w1))),m&&Ddt(e,c,t,n))}function Olt(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=new Od,ee,te,ne,C,re;for(m=new D(e.b);m.a=e.length)return{done:!0};var r=e[n++];return{value:[r,t.get(r)],done:!1}}}},vtt()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(e){return this.obj[`:`+e]},e.prototype.set=function(e,t){this.obj[`:`+e]=t},e.prototype[wft]=function(e){delete this.obj[`:`+e]},e.prototype.keys=function(){var e=[];for(var t in this.obj)t.charCodeAt(0)==58&&e.push(t.substring(1));return e}),e}function Ez(){Ez=C,t4=new fd(ppt),new fd(mpt),new bb(`DEPTH`,K(0)),G2=new bb(`FAN`,K(0)),lNt=new bb(Vht,K(0)),a4=new bb(`ROOT`,(by(),!1)),Y2=new bb(`LEFTNEIGHBOR`,null),pNt=new bb(`RIGHTNEIGHBOR`,null),X2=new bb(`LEFTSIBLING`,null),i4=new bb(`RIGHTSIBLING`,null),W2=new bb(`DUMMY`,!1),new bb(`LEVEL`,K(0)),fNt=new bb(`REMOVABLE_EDGES`,new ph),o4=new bb(`XCOOR`,K(0)),s4=new bb(`YCOOR`,K(0)),Z2=new bb(`LEVELHEIGHT`,0),$2=new bb(`LEVELMIN`,0),Q2=new bb(`LEVELMAX`,0),K2=new bb(`GRAPH_XMIN`,0),q2=new bb(`GRAPH_YMIN`,0),uNt=new bb(`GRAPH_XMAX`,0),dNt=new bb(`GRAPH_YMAX`,0),cNt=new bb(`COMPACT_LEVEL_ASCENSION`,!1),U2=new bb(`COMPACT_CONSTRAINTS`,new Od),J2=new bb(`ID`,``),n4=new bb(`POSITION`,K(0)),r4=new bb(`PRELIM`,0),e4=new bb(`MODIFIER`,0),H2=new fd(hpt),V2=new fd(gpt)}function Flt(e){Nit();var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(e==null)return null;if(d=e.length*8,d==0)return``;for(s=d%24,p=d/24|0,f=s==0?p:p+1,a=null,a=H(K9,KB,30,f*4,15,1),l=0,u=0,t=0,n=0,r=0,o=0,i=0,c=0;c>24,l=(t&3)<<24>>24,m=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,h=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,g=r&-128?(r>>6^252)<<24>>24:r>>6<<24>>24,a[o++]=M9[m],a[o++]=M9[h|l<<4],a[o++]=M9[u<<2|g],a[o++]=M9[r&63];return s==8?(t=e[i],l=(t&3)<<24>>24,m=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,a[o++]=M9[m],a[o++]=M9[l<<4],a[o++]=61,a[o++]=61):s==16&&(t=e[i],n=e[i+1],u=(n&15)<<24>>24,l=(t&3)<<24>>24,m=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,h=n&-128?(n>>4^240)<<24>>24:n>>4<<24>>24,a[o++]=M9[m],a[o++]=M9[h|l<<4],a[o++]=M9[u<<2],a[o++]=61),MN(a,0,a.length)}function Ilt(e,t){var n,i,a,o,s,c,l;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>VB&&BNe(t,e.p-sV),s=t.q.getDate(),Zw(t,1),e.k>=0&&Xke(t,e.k),e.c>=0?Zw(t,e.c):e.k>=0?(l=new jUe(t.q.getFullYear()-sV,t.q.getMonth(),35),i=35-l.q.getDate(),Zw(t,r.Math.min(i,s))):Zw(t,s),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),khe(t,e.f==24&&e.g?0:e.f),e.j>=0&&CFe(t,e.j),e.n>=0&&AIe(t,e.n),e.i>=0&&zpe(t,IM(LM(SF(gA(t.q.getTime()),qB),qB),e.i)),e.a&&(a=new Yh,BNe(a,a.q.getFullYear()-sV-80),Qh(gA(t.q.getTime()),gA(a.q.getTime()))&&BNe(t,a.q.getFullYear()-sV+100)),e.d>=0){if(e.c==-1)n=(7+e.d-t.q.getDay())%7,n>3&&(n-=7),c=t.q.getMonth(),Zw(t,t.q.getDate()+n),t.q.getMonth()!=c&&Zw(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>VB&&(o=t.q.getTimezoneOffset(),zpe(t,IM(gA(t.q.getTime()),(e.o-o)*60*qB))),!0}function Llt(e,t){var n,r,i=q(t,(X(),d$)),a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(N(i,206)){for(m=F(i,26),h=t.e,f=new pv(t.c),a=t.d,f.a+=a.b,f.b+=a.d,b=F(Y(m,(zz(),G1)),182),Oy(b,(hR(),j5))&&(p=F(Y(m,yAt),104),Bie(p,a.a),Zc(p,a.d),Xc(p,a.b),Vie(p,a.c)),n=new Od,u=new D(t.a);u.ar.c.length-1;)ry(r,new M_($W,Rht));n=F(q(i,p4),15).a,yv(F(q(e,c4),86))?(i.e.ak(P((OT(n,r.c.length),F(r.c[n],49)).b))&&ul((OT(n,r.c.length),F(r.c[n],49)),i.e.a+i.f.a)):(i.e.bk(P((OT(n,r.c.length),F(r.c[n],49)).b))&&ul((OT(n,r.c.length),F(r.c[n],49)),i.e.b+i.f.b))}for(a=nP(e.b,0);a.b!=a.d.c;)i=F(sE(a),40),n=F(q(i,(AR(),p4)),15).a,G(i,(Ez(),$2),P((OT(n,r.c.length),F(r.c[n],49)).a)),G(i,Q2,P((OT(n,r.c.length),F(r.c[n],49)).b));t.Ug()}function Vlt(e){var t,n,i,a,o,s,c,l,u,d,p,m,h,g,_;for(e.o=k(P(q(e.i,(zz(),g0)))),e.f=k(P(q(e.i,u0))),e.j=e.i.b.c.length,c=e.j-1,m=0,e.k=0,e.n=0,e.b=HE(H(HJ,vB,15,e.j,0,1)),e.c=HE(H(BJ,vB,346,e.j,7,1)),s=new D(e.i.b);s.a0&&ry(e.q,d),ry(e.p,d);t-=i,h=l+t,u+=t*e.f,AE(e.b,c,K(h)),AE(e.c,c,u),e.k=r.Math.max(e.k,h),e.n=r.Math.max(e.n,u),e.e+=t,t+=_}}function Hlt(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(t.b!=0){for(m=new ph,c=null,h=null,i=Gw(r.Math.floor(r.Math.log(t.b)*r.Math.LOG10E)+1),l=0,b=nP(t,0);b.b!=b.d.c;)for(v=F(sE(b),40),M(h)!==M(q(v,(Ez(),J2)))&&(h=rb(q(v,J2)),l=0),c=h==null?Oje(l++,i):h+Oje(l++,i),G(v,J2,c),_=(a=nP(new qu(v).a.d,0),new Ju(a));qm(_.a);)g=F(sE(_.a),65).c,DE(m,g,m.c.b,m.c),G(g,J2,c);for(p=new kd,s=0;s0&&(x-=h),fst(s,x),d=0,m=new D(s.a);m.a0),c.a.Xb(c.c=--c.b)),l=.4*i*d,!o&&c.b0&&(c=(kT(0,t.length),t.charCodeAt(0)),c!=64)){if(c==37&&(d=t.lastIndexOf(`%`),l=!1,d!=0&&(d==f-1||(l=(kT(d+1,t.length),t.charCodeAt(d+1)==46))))){if(o=(uD(1,d,t.length),t.substr(1,d-1)),y=kb(`%`,o)?null:eut(o),r=0,l)try{r=_R((kT(d+2,t.length+1),t.substr(d+2)),VB,$z)}catch(e){throw e=UA(e),N(e,131)?(s=e,O(new XD(s))):O(e)}for(g=KBe(e.Dh());g.Ob();)if(m=bA(g),N(m,505)&&(i=F(m,588),v=i.d,(y==null?v==null:kb(y,v))&&r--==0))return i;return null}if(u=t.lastIndexOf(`.`),p=u==-1?t:(uD(0,u,t.length),t.substr(0,u)),n=0,u!=-1)try{n=_R((kT(u+1,t.length+1),t.substr(u+1)),VB,$z)}catch(e){if(e=UA(e),N(e,131))p=t;else throw O(e)}for(p=kb(`%`,p)?null:eut(p),h=KBe(e.Dh());h.Ob();)if(m=bA(h),N(m,197)&&(a=F(m,197),_=a.ve(),(p==null?_==null:kb(p,_))&&n--==0))return a;return null}return Ict(e,t)}function Xlt(e){var t,n,r,i,a,o,s,c,l,u=new kd,d,p,m,h,g,_,v,y;for(c=new Bw,r=new D(e.a.a.b);r.at.d.c){if(m=e.c[t.a.d],_=e.c[d.a.d],m==_)continue;FL(Eh(Th(Dh(wh(new hf,1),100),m),_))}}}}}function Zlt(e,t){var n,i,a,o,s,c,l,u,d,f,p=F(F(VE(e.r,t),22),83),m,h,g,_,v,y,b,x,S,ee;if(t==(Dz(),t5)||t==x5)Elt(e,t);else{for(o=t==n5?(MA(),PY):(MA(),LY),x=t==n5?(lO(),jY):(lO(),kY),n=F(zC(e.b,t),127),i=n.i,a=i.c+OO(W(A(Z9,1),NV,30,15,[n.n.b,e.C.b,e.k])),v=i.c+i.b-OO(W(A(Z9,1),NV,30,15,[n.n.c,e.C.c,e.k])),s=Wce(Cbe(o),e.t),y=t==n5?OV:DV,f=p.Jc();f.Ob();)u=F(f.Pb(),115),!(!u.c||u.c.d.c.length<=0)&&(_=u.b.Kf(),g=u.e,m=u.c,h=m.i,h.b=(l=m.n,m.e.a+l.b+l.c),h.a=(c=m.n,m.e.b+c.d+c.a),Nw(x,$ft),m.f=x,gD(m,(jD(),OY)),h.c=g.a-(h.b-_.a)/2,S=r.Math.min(a,g.a),ee=r.Math.max(v,g.a+_.a),h.cee&&(h.c=ee-h.b),ry(s.d,new nS(h,hKe(s,h))),y=t==n5?r.Math.max(y,g.b+u.b.Kf().b):r.Math.min(y,g.b));for(y+=t==n5?e.t:-e.t,b=Vqe((s.e=y,s)),b>0&&(F(zC(e.b,t),127).a.b=b),d=p.Jc();d.Ob();)u=F(d.Pb(),115),!(!u.c||u.c.d.c.length<=0)&&(h=u.c.i,h.c-=u.e.a,h.d-=u.e.b)}}function Qlt(e,t){XR();var n,r,i,a,o,s,c=Gj(e,0)<0,l,u,d,f,p,m,h;if(c&&(e=RD(e)),Gj(e,0)==0)switch(t){case 0:return`0`;case 1:return FV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return p=new dm,t<0?p.a+=`0E+`:p.a+=`0E`,p.a+=t==VB?`2147483648`:``+-t,p.a}u=18,d=H(K9,KB,30,u+1,15,1),n=u,h=e;do l=h,h=SF(h,10),d[--n]=Wx(IM(48,RM(l,LM(h,10))))&JB;while(Gj(h,0)!=0);if(i=RM(RM(RM(u,n),t),1),t==0)return c&&(d[--n]=45),MN(d,n,u-n);if(t>0&&Gj(i,-6)>=0){if(Gj(i,0)>=0){for(a=n+Wx(i),s=u-1;s>=a;s--)d[s+1]=d[s];return d[++a]=46,c&&(d[--n]=45),MN(d,n,u-n+1)}for(o=2;Qh(o,IM(RD(i),1));o++)d[--n]=48;return d[--n]=46,d[--n]=48,c&&(d[--n]=45),MN(d,n,u-n)}return m=n+1,r=u,f=new fm,c&&(f.a+=`-`),r-m>=1?(xC(f,d[n]),f.a+=`.`,f.a+=MN(d,n+1,u-n-1)):f.a+=MN(d,n,u-n),f.a+=`E`,Gj(i,0)>0&&(f.a+=`+`),f.a+=``+_S(i),f.a}function $lt(e){Rh(e,new UF(vm(xm(_m(bm(ym(new Fa,jG),`ELK Radial`),`A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.`),new la),jG))),V(e,jG,KW,iP(zPt)),V(e,jG,jH,iP(UPt)),V(e,jG,UH,iP(NPt)),V(e,jG,QH,iP(PPt)),V(e,jG,HH,iP(FPt)),V(e,jG,WH,iP(MPt)),V(e,jG,BH,iP(IPt)),V(e,jG,GH,iP(RPt)),V(e,jG,OG,iP(k4)),V(e,jG,DG,iP(A4)),V(e,jG,EG,iP(BPt)),V(e,jG,kG,iP(N4)),V(e,jG,AG,iP(VPt)),V(e,jG,dgt,iP(HPt)),V(e,jG,ugt,iP(LPt)),V(e,jG,ogt,iP(j4)),V(e,jG,sgt,iP(M4)),V(e,jG,cgt,iP(P4)),V(e,jG,lgt,iP(WPt)),V(e,jG,agt,iP(jPt))}function Oz(e,t,n,i,a){var o,s,c,l,u,d,f,p,m,h,g,_=new j(e.g,e.f),v,y,b,x,S,ee;if(g=V4e(e),g.a=r.Math.max(g.a,t),g.b=r.Math.max(g.b,n),ee=g.a/_.a,d=g.b/_.b,x=g.a-_.a,l=g.b-_.b,i)for(s=aT(e)?F(Y(aT(e),(Hz(),h6)),86):F(Y(e,(Hz(),h6)),86),c=M(Y(e,(Hz(),R6)))===M((LF(),U8)),y=new uy((!e.c&&(e.c=new I(c7,e,9,9)),e.c));y.e!=y.i.gc();)switch(v=F(aP(y),125),b=F(Y(v,H6),64),b==(Dz(),b5)&&(b=Rit(v,s),pP(v,H6,b)),b.g){case 1:c||qO(v,v.i*ee);break;case 2:qO(v,v.i+x),c||JO(v,v.j*d);break;case 3:c||qO(v,v.i*ee),JO(v,v.j+l);break;case 4:c||JO(v,v.j*d)}if(Sv(e,g.a,g.b),a)for(p=new uy((!e.n&&(e.n=new I(o7,e,1,7)),e.n));p.e!=p.i.gc();)f=F(aP(p),157),m=f.i+f.g/2,h=f.j+f.f/2,S=m/_.a,u=h/_.b,S+u>=1&&(S-u>0&&h>=0?(qO(f,f.i+x),JO(f,f.j+l*u)):S-u<0&&m>=0&&(qO(f,f.i+x*S),JO(f,f.j+l)));return pP(e,(Hz(),E6),(EN(),o=F(Rm(k5),10),new Rb(o,F(yb(o,o.length),10),0))),new j(ee,d)}function kz(e){var t,n,r,i,a,o,s,c,l,u,d;if(e==null)throw O(new pm(aB));if(l=e,a=e.length,c=!1,a>0&&(t=(kT(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(kT(1,e.length+1),e.substr(1)),--a,c=t==45)),a==0)throw O(new pm(EV+l+`"`));for(;e.length>0&&(kT(0,e.length),e.charCodeAt(0)==48);)e=(kT(1,e.length+1),e.substr(1)),--a;if(a>(hit(),Qbt)[10])throw O(new pm(EV+l+`"`));for(i=0;i0&&(d=-parseInt((uD(0,r,e.length),e.substr(0,r)),10),e=(kT(r,e.length+1),e.substr(r)),a-=r,n=!1);a>=o;){if(r=parseInt((uD(0,o,e.length),e.substr(0,o)),10),e=(kT(o,e.length+1),e.substr(o)),a-=o,n)n=!1;else{if(Gj(d,s)<0)throw O(new pm(EV+l+`"`));d=LM(d,u)}d=RM(d,r)}if(Gj(d,0)>0||!c&&(d=RD(d),Gj(d,0)<0))throw O(new pm(EV+l+`"`));return d}function eut(e){az();var t,n,r,i,a,o,s,c;if(e==null)return null;if(i=lv(e,JF(37)),i<0)return e;for(c=new _y((uD(0,i,e.length),e.substr(0,i))),t=H(X9,kK,30,4,15,1),s=0,r=0,o=e.length;ii+2&&$A((kT(i+1,e.length),e.charCodeAt(i+1)),SBt,CBt)&&$A((kT(i+2,e.length),e.charCodeAt(i+2)),SBt,CBt)){if(n=lCe((kT(i+1,e.length),e.charCodeAt(i+1)),(kT(i+2,e.length),e.charCodeAt(i+2))),i+=2,r>0?(n&192)==128?t[s++]=n<<24>>24:r=0:n>=128&&((n&224)==192?(t[s++]=n<<24>>24,r=2):(n&240)==224?(t[s++]=n<<24>>24,r=3):(n&248)==240&&(t[s++]=n<<24>>24,r=4)),r>0){if(s==r){switch(s){case 2:xC(c,((t[0]&31)<<6|t[1]&63)&JB);break;case 3:xC(c,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&JB)}s=0,r=0}}else{for(a=0;a=2){if((!e.a&&(e.a=new I(Q5,e,6,6)),e.a).i==0)n=(Im(),a=new ao,a),hD((!e.a&&(e.a=new I(Q5,e,6,6)),e.a),n);else if((!e.a&&(e.a=new I(Q5,e,6,6)),e.a).i>1)for(p=new Ny((!e.a&&(e.a=new I(Q5,e,6,6)),e.a));p.e!=p.i.gc();)DF(p);iat(t,F(U((!e.a&&(e.a=new I(Q5,e,6,6)),e.a),0),170))}if(f)for(i=new uy((!e.a&&(e.a=new I(Q5,e,6,6)),e.a));i.e!=i.i.gc();)for(n=F(aP(i),170),u=new uy((!n.a&&(n.a=new oy(q5,n,5)),n.a));u.e!=u.i.gc();)l=F(aP(u),372),c.a=r.Math.max(c.a,l.a),c.b=r.Math.max(c.b,l.b);for(s=new uy((!e.n&&(e.n=new I(o7,e,1,7)),e.n));s.e!=s.i.gc();)o=F(aP(s),157),d=F(Y(o,b8),8),d&&Cv(o,d.a,d.b),f&&(c.a=r.Math.max(c.a,o.i+o.g),c.b=r.Math.max(c.b,o.j+o.f));return c}function nut(e,t,n,r,i){var a,o,s;if(xze(e,t),o=t[0],a=IC(n.c,0),s=-1,rWe(n)){if(r>0){if(o+r>e.length)return!1;s=HI((uD(0,o+r,e.length),e.substr(0,o+r)),t)}else s=HI(e,t)}switch(a){case 71:return s=hI(e,o,W(A(KJ,1),vB,2,6,[sft,cft]),t),i.e=s,!0;case 77:return Uet(e,t,i,s,o);case 76:return Wet(e,t,i,s,o);case 69:return J4e(e,t,o,i);case 99:return Y4e(e,t,o,i);case 97:return s=hI(e,o,W(A(KJ,1),vB,2,6,[`AM`,`PM`]),t),i.b=s,!0;case 121:return Get(e,t,o,s,n,i);case 100:return s<=0?!1:(i.c=s,!0);case 83:return s<0?!1:qqe(s,o,t[0],i);case 104:s==12&&(s=0);case 75:case 72:return s<0?!1:(i.f=s,i.g=!1,!0);case 107:return s<0?!1:(i.f=s,i.g=!0,!0);case 109:return s<0?!1:(i.j=s,!0);case 115:return s<0?!1:(i.n=s,!0);case 90:if(one[l]&&(_=l),f=new D(e.a.b);f.a=c){Ky(y.b>0),y.a.Xb(y.c=--y.b);break}_.a>l&&(i?(VA(i.b,_.b),i.a=r.Math.max(i.a,_.a),kC(y)):(ry(_.b,d),_.c=r.Math.min(_.c,l),_.a=r.Math.max(_.a,c),i=_))}i||(i=new kf,i.c=l,i.a=c,_b(y,i),ry(i.b,d))}for(s=e.b,u=0,v=new D(n);v.a1;){if(a=t9e(t),f=o.g,h=F(Y(t,a3),104),g=k(P(Y(t,e3))),(!t.a&&(t.a=new I(s7,t,10,11)),t.a).i>1&&k(P(Y(t,(XL(),Y4))))!=DV&&(o.c+(h.b+h.c))/(o.b+(h.d+h.a))1&&k(P(Y(t,(XL(),J4))))!=DV&&(o.c+(h.b+h.c))/(o.b+(h.d+h.a))>g&&pP(a,(XL(),Q4),r.Math.max(k(P(Y(t,X4))),k(P(Y(a,Q4)))-k(P(Y(t,J4))))),m=new Gfe(i,d),l=ldt(m,a,p),u=l.g,u>=f&&u==u){for(s=0;s<(!a.a&&(a.a=new I(s7,a,10,11)),a.a).i;s++)s6e(e,F(U((!a.a&&(a.a=new I(s7,a,10,11)),a.a),s),26),F(U((!t.a&&(t.a=new I(s7,t,10,11)),t.a),s),26));cze(t,m),dke(o,l.c),fke(o,l.b)}--c}pP(t,(XL(),G4),o.b),pP(t,K4,o.c),n.Ug()}function sut(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C;for(t.Tg(`Compound graph postprocessor`,1),n=Gp(nb(q(e,(zz(),S0)))),c=F(q(e,(X(),wEt)),229),d=new df,v=c.ec().Jc();v.Ob();){for(_=F(v.Pb(),17),s=new Lb(c.cc(_)),fw(),Bv(s,new uu(e)),S=jVe((OT(0,s.c.length),F(s.c[0],250))),te=MVe(F(kx(s,s.c.length-1),250)),b=S.i,y=mA(te.i,b)?b.e:jC(b),f=LYe(_,s),hw(_.a),p=null,o=new D(s);o.awH,C=r.Math.abs(p.b-h.b)>wH,(!n&&ne&&C||n&&(ne||C))&&fx(_.a,x)),Gk(_.a,i),p=i.b==0?x:(Ky(i.b!=0),F(i.c.b.c,8)),zHe(m,f,g),MVe(a)==te&&(jC(te.i)!=a.a&&(g=new Nm,D4e(g,jC(te.i),y)),G(_,D$,g)),j2e(m,_,y),d.a.yc(m,d);sT(_,S),lT(_,te)}for(u=d.a.ec().Jc();u.Ob();)l=F(u.Pb(),17),sT(l,null),lT(l,null);t.Ug()}function cut(e,t){var n,r,i=F(q(e,(AR(),c4)),86),a,o,s,c,l,u=i==(hM(),i8)||i==a8?r8:a8,d,f;for(n=F(TE(ZC(new Mx(null,new DT(e.b,16)),new qte),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),16),c=F(TE(QC(n.Mc(),new woe(t)),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[hY]))),16),c.Fc(F(TE(QC(n.Mc(),new Zu(t)),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[hY]))),18)),c.gd(new Toe(u)),f=new Gm(new Qu(i)),r=new kd,s=c.Jc();s.Ob();)o=F(s.Pb(),240),l=F(o.a,40),Gp(nb(o.c))?(f.a.yc(l,(by(),FJ)),new Kl(f.a.Xc(l,!1)).a.gc()>0&&LC(r,l,F(new Kl(f.a.Xc(l,!1)).a.Tc(),40)),new Kl(f.a.$c(l,!0)).a.gc()>1&&LC(r,Wqe(f,l),l)):(new Kl(f.a.Xc(l,!1)).a.gc()>0&&(a=F(new Kl(f.a.Xc(l,!1)).a.Tc(),40),M(a)===M(V_(Yx(r.f,l)))&&F(q(l,(Ez(),U2)),16).Ec(a)),new Kl(f.a.$c(l,!0)).a.gc()>1&&(d=Wqe(f,l),M(V_(Yx(r.f,d)))===M(l)&&F(q(d,(Ez(),U2)),16).Ec(l)),f.a.Ac(l))}function lut(e){var t,n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(e.gc()==1)return F(e.Xb(0),235);if(e.gc()<=0)return new YE;for(a=e.Jc();a.Ob();){for(n=F(a.Pb(),235),h=0,d=$z,f=$z,l=VB,u=VB,m=new D(n.e);m.ac&&(b=0,x+=s+v,s=0),drt(g,n,b,x),t=r.Math.max(t,b+_.a),s=r.Math.max(s,_.b),b+=_.a+v;return g}function uut(e){Nit();var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(e==null||(a=$D(e),m=fKe(a),m%4!=0))return null;if(h=m/4|0,h==0)return H(X9,kK,30,0,15,1);for(d=null,t=0,n=0,r=0,i=0,o=0,s=0,c=0,l=0,p=0,f=0,u=0,d=H(X9,kK,30,h*3,15,1);p>4)<<24>>24,d[f++]=((n&15)<<4|r>>2&15)<<24>>24,d[f++]=(r<<6|i)<<24>>24}return!oh(o=a[u++])||!oh(s=a[u++])?null:(t=j9[o],n=j9[s],c=a[u++],l=a[u++],j9[c]==-1||j9[l]==-1?c==61&&l==61?n&15?null:(g=H(X9,kK,30,p*3+1,15,1),OR(d,0,g,0,p*3),g[f]=(t<<2|n>>4)<<24>>24,g):c!=61&&l==61?(r=j9[c],r&3?null:(g=H(X9,kK,30,p*3+2,15,1),OR(d,0,g,0,p*3),g[f++]=(t<<2|n>>4)<<24>>24,g[f]=((n&15)<<4|r>>2&15)<<24>>24,g)):null:(r=j9[c],i=j9[l],d[f++]=(t<<2|n>>4)<<24>>24,d[f++]=((n&15)<<4|r>>2&15)<<24>>24,d[f++]=(r<<6|i)<<24>>24,d))}function dut(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for(t.Tg(Hpt,1),m=F(q(e,(zz(),g1)),222),i=new D(e.b);i.a=2){for(h=!0,f=new D(a.j),n=F(B(f),12),p=null;f.a0){if(i=f.gc(),u=Gw(r.Math.floor((i+1)/2))-1,a=Gw(r.Math.ceil((i+1)/2))-1,t.o==E2)for(d=a;d>=u;d--)t.a[x.p]==x&&(g=F(f.Xb(d),49),h=F(g.a,9),!uh(n,g.b)&&m>e.b.e[h.p]&&(t.a[h.p]=x,t.g[x.p]=t.g[h.p],t.a[x.p]=t.g[x.p],t.f[t.g[x.p].p]=(by(),!!(Gp(t.f[t.g[x.p].p])&x.k==(pL(),EX))),m=e.b.e[h.p]));else for(d=u;d<=a;d++)t.a[x.p]==x&&(v=F(f.Xb(d),49),_=F(v.a,9),!uh(n,v.b)&&m0&&(a=F(kx(_.c.a,ee-1),9),s=e.i[a.p],ne=r.Math.ceil(Kv(e.n,a,_)),o=S.a.e-_.d.d-(s.a.e+a.o.b+a.d.a)-ne),u=DV,ee<_.c.a.c.length-1&&(l=F(kx(_.c.a,ee+1),9),d=e.i[l.p],ne=r.Math.ceil(Kv(e.n,l,_)),u=d.a.e-l.d.d-(S.a.e+_.o.b+_.d.a)-ne),n&&(Pv(),ok(nG),r.Math.abs(o-u)<=nG||o==u||isNaN(o)&&isNaN(u))?!0:(i=$S(b.a),c=-$S(b.b),f=-$S(te.a),y=$S(te.b),g=b.a.e.e-b.a.a-(b.b.e.e-b.b.a)>0&&te.a.e.e-te.a.a-(te.b.e.e-te.b.a)<0,h=b.a.e.e-b.a.a-(b.b.e.e-b.b.a)<0&&te.a.e.e-te.a.a-(te.b.e.e-te.b.a)>0,m=b.a.e.e+b.b.ate.b.e.e+te.a.a,x=0,!g&&!h&&(p?o+f>0?x=f:u-i>0&&(x=i):m&&(o+c>0?x=c:u-y>0&&(x=y))),S.a.e+=x,S.b&&(S.d.e+=x),!1))}function mut(e,t,n){var i=new rw(t.Jf().a,t.Jf().b,t.Kf().a,t.Kf().b),a=new hv,o,s,c,l,u,d,f,p;if(e.c)for(s=new D(t.Pf());s.a0&&cT(m,(OT(n,t.c.length),F(t.c[n],25))),a=0,p=!0,v=cN(NT(zM(m))),c=v.Jc();c.Ob();){for(s=F(c.Pb(),17),p=!1,d=s,l=0;l(OT(l,t.c.length),F(t.c[l],25)).a.c.length?cT(i,(OT(l,t.c.length),F(t.c[l],25))):cF(i,r+a,(OT(l,t.c.length),F(t.c[l],25))),d=Cet(d,i);n>0&&(a+=1)}if(p){for(l=0;l(OT(l,t.c.length),F(t.c[l],25)).a.c.length?cT(i,(OT(l,t.c.length),F(t.c[l],25))):cF(i,r+a,(OT(l,t.c.length),F(t.c[l],25)));n>0&&(a+=1)}for(o=!1,g=new uS(py(VM(m).a.Jc(),new f));rL(g);){for(h=F(zE(g),17),d=h,u=n+1;u(OT(l,t.c.length),F(t.c[l],25)).a.c.length?cT(_,(OT(l,t.c.length),F(t.c[l],25))):cF(_,r+1,(OT(l,t.c.length),F(t.c[l],25))));o&&(a+=1),o=!0}return a>0?a-1:0}function Az(e,t){Wz();var n,r,i,a,o,s,c,l,u,d,f,p,m;if(lh(L9)==0){for(d=H(aHt,vB,121,HVt.length,0,1),o=0;ol&&(r.a+=Phe(H(K9,KB,30,-l,15,1))),r.a+=`Is`,lv(c,JF(32))>=0)for(i=0;i=r.o.b/2}else v=!d;v?(_=F(q(r,(X(),j$)),16),_?f?a=_:(i=F(q(r,FQ),16),i?a=_.gc()<=i.gc()?_:i:(a=new Od,G(r,FQ,a))):(a=new Od,G(r,j$,a))):(i=F(q(r,(X(),FQ)),16),i?d?a=i:(_=F(q(r,j$),16),_?a=i.gc()<=_.gc()?i:_:(a=new Od,G(r,j$,a))):(a=new Od,G(r,FQ,a))),a.Ec(e),G(e,(X(),RQ),n),t.d==n?(lT(t,null),n.e.c.length+n.g.c.length==0&&uT(n,null),tWe(n)):(sT(t,null),n.e.c.length+n.g.c.length==0&&uT(n,null)),hw(t.a)}function xut(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C,re,ie,ae,oe,se;for(n.Tg(`MinWidth layering`,1),m=t.b,te=t.a,se=F(q(t,(zz(),dAt)),15).a,c=F(q(t,fAt),15).a,e.b=k(P(q(t,o0))),e.d=DV,x=new D(te);x.am&&(o&&(tv(ee,p),tv(ne,K(u.b-1))),oe=n.b,se+=p+t,p=0,d=r.Math.max(d,n.b+n.c+ae)),qO(c,oe),JO(c,se),d=r.Math.max(d,oe+ae+n.c),p=r.Math.max(p,f),oe+=ae+t;if(d=r.Math.max(d,i),ie=se+p+n.a,ie0?(u=0,_&&(u+=c),u+=(C-1)*s,b&&(u+=c),ne&&b&&(u=r.Math.max(u,N9e(b,s,y,te))),u=e.a&&(i=Eat(e,b),d=r.Math.max(d,i.b),S=r.Math.max(S,i.d),ry(c,new M_(b,i)));for(C=new Od,u=0;u0),v.a.Xb(v.c=--v.b),re=new mC(e.b),_b(v,re),Ky(v.b0){for(f=u<100?null:new Fm(u),l=new HVe(t),m=l.g,_=H(q9,cV,30,u,15,1),r=0,b=new TO(u),i=0;i=0;)if(p==null?M(p)===M(m[c]):aM(p,m[c])){_.length<=r&&(g=_,_=H(q9,cV,30,2*_.length,15,1),OR(g,0,_,0,r)),_[r++]=i,hD(b,m[c]);break v}if(p=p,M(p)===M(s))break}}if(l=b,m=b.g,u=r,r>_.length&&(g=_,_=H(q9,cV,30,r,15,1),OR(g,0,_,0,r)),r>0){for(y=!0,a=0;a=0;)aF(e,_[o]);if(r!=u){for(i=u;--i>=r;)aF(l,i);g=_,_=H(q9,cV,30,r,15,1),OR(g,0,_,0,r)}t=l}}}else for(t=LZe(e,t),i=e.i;--i>=0;)t.Gc(e.g[i])&&(aF(e,i),y=!0);if(y){if(_!=null){for(n=t.gc(),d=n==1?fT(e,4,t.Jc().Pb(),null,_[0],h):fT(e,6,t,_,_[0],h),f=n<100?null:new Fm(n),i=t.Jc();i.Ob();)p=i.Pb(),f=qye(e,F(p,75),f);f?(f.lj(d),f.mj()):dA(e.e,d)}else{for(f=Bye(t.gc()),i=t.Jc();i.Ob();)p=i.Pb(),f=qye(e,F(p,75),f);f&&f.mj()}return!0}return!1}function Dut(e,t){var n=new rXe(t),r,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b;for(n.a||Art(t),l=Ltt(t),c=new Bw,_=new Oet,g=new D(t.a);g.a0||n.o==E2&&a=n}function Aut(e){for(var t,n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b=e.a,x=0,S=b.length,ee,te,ne,C,re;x0?(f=F(kx(p.c.a,s-1),9),ne=Kv(e.b,p,f),_=p.n.b-p.d.d-(f.n.b+f.o.b+f.d.a+ne)):_=p.n.b-p.d.d,u=r.Math.min(_,u),s1&&(s=r.Math.min(s,r.Math.abs(F(mP(c.a,1),8).b-d.b)))));else for(g=new D(t.j);g.aa&&(o=p.a-a,s=$z,i.c.length=0,a=p.a),p.a>=a&&(zd(i.c,c),c.a.b>1&&(s=r.Math.min(s,r.Math.abs(F(mP(c.a,c.a.b-2),8).b-p.b)))));if(i.c.length!=0&&o>t.o.a/2&&s>t.o.b/2){for(m=new uI,uT(m,t),PI(m,(Dz(),n5)),m.n.a=t.o.a/2,v=new uI,uT(v,t),PI(v,y5),v.n.a=t.o.a/2,v.n.b=t.o.b,l=new D(i);l.a=u.b?sT(c,v):sT(c,m)):(u=F(KSe(c.a),8),_=c.a.b==0?AT(c.c):F(Hy(c.a),8),_.b>=u.b?lT(c,v):lT(c,m)),f=F(q(c,(zz(),T1)),79),f&&lN(f,u,!0);t.n.a=a-t.o.a/2}}function Nut(e,t,n){for(var i,a,o,s,c=nP(e.b,0),l,u,d,f,p;c.b!=c.d.c;)if(s=F(sE(c),40),!kb(s.c,pG))for(u=t5e(s,e),t==(hM(),i8)||t==a8?Bv(u,new vne):Bv(u,new yne),l=u.c.length,i=0;i=0?sN(s):bM(sN(s)),e.of($1,p)),l=new Nm,f=!1,e.nf(J1)?(E_e(l,F(e.mf(J1),8)),f=!0):Qhe(l,o.a/2,o.b/2),p.g){case 4:G(u,E1,(nN(),P$)),G(u,VQ,(XA(),nQ)),u.o.b=o.b,h<0&&(u.o.a=-h),PI(d,(Dz(),t5)),f||(l.a=o.a),l.a-=o.a;break;case 2:G(u,E1,(nN(),I$)),G(u,VQ,(XA(),eQ)),u.o.b=o.b,h<0&&(u.o.a=-h),PI(d,(Dz(),x5)),f||(l.a=0);break;case 1:G(u,$Q,(uO(),NQ)),u.o.a=o.a,h<0&&(u.o.b=-h),PI(d,(Dz(),y5)),f||(l.b=o.b),l.b-=o.b;break;case 3:G(u,$Q,(uO(),jQ)),u.o.a=o.a,h<0&&(u.o.b=-h),PI(d,(Dz(),n5)),f||(l.b=0)}if(E_e(d.n,l),G(u,J1,l),t==H8||t==W8||t==U8){if(m=0,t==H8&&e.nf(Z1))switch(p.g){case 1:case 2:m=F(e.mf(Z1),15).a;break;case 3:case 4:m=-F(e.mf(Z1),15).a}else switch(p.g){case 4:case 2:m=a.b,t==W8&&(m/=i.b);break;case 1:case 3:m=a.a,t==W8&&(m/=i.a)}G(u,h$,m)}return G(u,qQ,p),u}function Put(){_le();function e(e){var t=this;this.dispatch=function(t){var n=t.data;switch(n.cmd){case`algorithms`:var r=Pqe((fw(),new Ml(new kl(C7.b))));e.postMessage({id:n.id,data:r});break;case`categories`:var i=Pqe((fw(),new Ml(new kl(C7.c))));e.postMessage({id:n.id,data:i});break;case`options`:var a=Pqe((fw(),new Ml(new kl(C7.d))));e.postMessage({id:n.id,data:a});break;case`register`:est(n.algorithms),e.postMessage({id:n.id});break;case`layout`:Uot(n.graph,n.layoutOptions||{},n.options||{}),e.postMessage({id:n.id,data:n.graph})}},this.saveDispatch=function(n){try{t.dispatch(n)}catch(t){e.postMessage({id:n.data.id,error:t})}}}function r(t){var n=this;this.dispatcher=new e({postMessage:function(e){n.onmessage({data:e})}}),this.postMessage=function(e){setTimeout(function(){n.dispatcher.saveDispatch({data:e})},0)}}if(typeof document===qV&&typeof self!==qV){var i=new e(self);self.onmessage=i.saveDispatch}else typeof t!==qV&&t.exports&&(Object.defineProperty(n,"__esModule",{value:!0}),t.exports={default:r,Worker:r})}function Mz(e,t,n,i,a,o,s){var c,l,u,d,f,p,m,h,g=0,_,v,y,b,x,S,ee,te,ne,C,re=0,ie,ae,oe,se;for(u=new D(e.b);u.ag&&(o&&(tv(ee,m),tv(ne,K(d.b-1)),ry(e.d,h),c.c.length=0),oe=n.b,se+=m+t,m=0,f=r.Math.max(f,n.b+n.c+ae)),zd(c.c,l),WYe(l,oe,se),f=r.Math.max(f,oe+ae+n.c),m=r.Math.max(m,p),oe+=ae+t,h=l;if(VA(e.a,c),ry(e.d,F(kx(c,c.c.length-1),167)),f=r.Math.max(f,i),ie=se+m+n.a,iei.d.d+i.d.a?u.f.d=!0:(u.f.d=!0,u.f.a=!0))),r.b!=r.d.c&&(t=n);u&&(a=F(pC(e.f,o.d.i),60),t.ba.d.d+a.d.a?u.f.d=!0:(u.f.d=!0,u.f.a=!0))}for(s=new uS(py(zM(m).a.Jc(),new f));rL(s);)o=F(zE(s),17),o.a.b!=0&&(t=F(Hy(o.a),8),o.d.j==(Dz(),n5)&&(_=new BR(t,new j(t.a,i.d.d),i,o),_.f.a=!0,_.a=o.d,zd(g.c,_)),o.d.j==y5&&(_=new BR(t,new j(t.a,i.d.d+i.d.a),i,o),_.f.d=!0,_.a=o.d,zd(g.c,_)))}return g}function But(e,t,n){var r,i,a,o,s,c=new Od,l,u,d=t.length,f;for(o=wUe(n),l=0;l=m&&(v>m&&(p.c.length=0,m=v),zd(p.c,o));p.c.length!=0&&(f=F(kx(p,CP(t,p.c.length)),132),re.a.Ac(f),f.s=h++,o7e(f,ne,S),p.c.length=0)}for(b=e.c.length+1,s=new D(e);s.aC.s&&(kC(n),BD(C.i,r),r.c>0&&(r.a=C,ry(C.t,r),r.b=ee,ry(ee.i,r)))}function Uut(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h=new pD(t.b),g,_,v,y,b=new pD(t.b),x,S,ee,te,ne,C,re;for(f=new pD(t.b),te=new pD(t.b),g=new pD(t.b),ee=nP(t,0);ee.b!=ee.d.c;)for(x=F(sE(ee),12),s=new D(x.g);s.a0,_=x.g.c.length>0,l&&_?zd(f.c,x):l?zd(h.c,x):_&&zd(b.c,x);for(m=new D(h);m.ay.mh()-u.b&&(p=y.mh()-u.b),m>y.nh()-u.d&&(m=y.nh()-u.d),d0){for(x=nP(e.f,0);x.b!=x.d.c;)b=F(sE(x),9),b.p+=m-e.e;C4e(e),hw(e.f),ctt(e,i,h)}else{for(fx(e.f,h),h.p=i,e.e=r.Math.max(e.e,i),o=new uS(py(zM(h).a.Jc(),new f));rL(o);)a=F(zE(o),17),!a.c.i.c&&a.c.i.k==(pL(),TX)&&(fx(e.f,a.c.i),a.c.i.p=i-1);e.c=i}}else C4e(e),hw(e.f),i=0,rL(new uS(py(zM(h).a.Jc(),new f)))?(m=0,m=$Ye(m,h),i=m+2,ctt(e,i,h)):(fx(e.f,h),h.p=0,e.e=r.Math.max(e.e,0),e.b=F(kx(e.d.b,0),25),e.c=0);for(e.f.b==0||C4e(e),e.d.a.c.length=0,y=new Od,u=new D(e.d.b);u.a=48&&t<=57){for(r=t-48;i=48&&t<=57;)if(r=r*10+t-48,r<0)throw O(new tm(Jz((Iv(),Hvt))))}else throw O(new tm(Jz((Iv(),Rvt))));if(n=r,t==44){if(i>=e.j)throw O(new tm(Jz((Iv(),Bvt))));if((t=IC(e.i,i++))>=48&&t<=57){for(n=t-48;i=48&&t<=57;)if(n=n*10+t-48,n<0)throw O(new tm(Jz((Iv(),Hvt))));if(r>n)throw O(new tm(Jz((Iv(),Vvt))))}else n=-1}if(t!=125)throw O(new tm(Jz((Iv(),zvt))));e._l(i)?(a=(Wz(),Wz(),++W9,new vE(9,a)),e.d=i+1):(a=(Wz(),Wz(),++W9,new vE(3,a)),e.d=i),a.Mm(r),a.Lm(n),Rz(e)}}return a}function Zut(e){var t,n,i,a=1,o,s,c,l,u,d,f,p,m=new Od,h,g,_,v,y,b,x,S;for(i=0;i=F(kx(e.b,i),25).a.c.length/4)continue}if(F(kx(e.b,i),25).a.c.length>=t){for(x=new Od,ry(x,F(kx(e.b,i),25)),s=0;s1)for(h=new Ny((!e.a&&(e.a=new I(Q5,e,6,6)),e.a));h.e!=h.i.gc();)DF(h);for(s=F(U((!e.a&&(e.a=new I(Q5,e,6,6)),e.a),0),170),_=oe,oe>S+x?_=S+x:oeee+g?v=ee+g:seS-x&&_ee-g&&voe+ae?ne=oe+ae:Sse+te?C=se+te:eeoe-ae&&nese-te&&Cn&&(p=n-1),m=de+_L(t,24)*HV*f-f/2,m<0?m=1:m>i&&(m=i-1),a=(Im(),l=new io,l),HO(a,p),UO(a,m),hD((!s.a&&(s.a=new oy(q5,s,5)),s.a),a)}function Lz(e,t){XR();var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te=e.e,ne,C,re,ie,ae;if(m=e.d,i=e.a,te==0)switch(t){case 0:return`0`;case 1:return FV;case 2:return`0.00`;case 3:return`0.000`;case 4:return`0.0000`;case 5:return`0.00000`;case 6:return`0.000000`;default:return S=new dm,t<0?S.a+=`0E+`:S.a+=`0E`,S.a+=-t,S.a}if(y=m*10+1+7,b=H(K9,KB,30,y+1,15,1),n=y,m==1){if(s=i[0],s<0){ae=FT(s,PV);do h=ae,ae=SF(ae,10),b[--n]=48+Wx(RM(h,LM(ae,10)))&JB;while(Gj(ae,0)!=0)}else{ae=s;do h=ae,ae=ae/10|0,b[--n]=48+(h-ae*10)&JB;while(ae!=0)}}else{C=H(q9,cV,30,m,15,1),ie=m,OR(i,0,C,0,ie);I:for(;;){for(ee=0,l=ie-1;l>=0;l--)re=IM(dS(ee,32),FT(C[l],PV)),_=q1e(re),C[l]=Wx(_),ee=Wx(fS(_,32));v=Wx(ee),g=n;do b[--n]=48+v%10&JB;while((v=v/10|0)!=0&&n!=0);for(r=9-g+n,c=0;c0;c++)b[--n]=48;for(d=ie-1;C[d]==0;d--)if(d==0)break I;ie=d+1}for(;b[n]==48;)++n}if(p=te<0,o=y-n-t-1,t==0)return p&&(b[--n]=45),MN(b,n,y-n);if(t>0&&o>=-6){if(o>=0){for(u=n+o,f=y-1;f>=u;f--)b[f+1]=b[f];return b[++u]=46,p&&(b[--n]=45),MN(b,n,y-n+1)}for(d=2;d<-o+1;d++)b[--n]=48;return b[--n]=46,b[--n]=48,p&&(b[--n]=45),MN(b,n,y-n)}return ne=n+1,a=y,x=new fm,p&&(x.a+=`-`),a-ne>=1?(xC(x,b[n]),x.a+=`.`,x.a+=MN(b,n+1,y-n-1)):x.a+=MN(b,n,y-n),x.a+=`E`,o>0&&(x.a+=`+`),x.a+=``+o,x.a}function rdt(e,t){var n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee;switch(e.c=t,e.g=new kd,n=(Vh(),new Bp(e.c)),i=new nu(n),aN(i),b=rb(Y(e.c,(eI(),wIt))),l=F(Y(e.c,D3),330),S=F(Y(e.c,O3),427),s=F(Y(e.c,yIt),477),x=F(Y(e.c,E3),428),e.j=k(P(Y(e.c,TIt))),c=e.a,l.g){case 0:c=e.a;break;case 1:c=e.b;break;case 2:c=e.i;break;case 3:c=e.e;break;case 4:c=e.f;break;default:throw O(new Hp(zG+(l.f==null?``+l.g:l.f)))}if(e.d=new Ske(c,S,s),G(e.d,(NA(),zY),nb(Y(e.c,xIt))),e.d.c=Gp(nb(Y(e.c,bIt))),yw(e.c).i==0)return e.d;for(f=new uy(yw(e.c));f.e!=f.i.gc();){for(d=F(aP(f),26),m=d.g/2,p=d.f/2,ee=new j(d.i+m,d.j+p);jS(e.g,ee);)Zy(ee,(r.Math.random()-.5)*wH,(r.Math.random()-.5)*wH);g=F(Y(d,(Hz(),w6)),140),_=new Qke(ee,new rw(ee.a-m-e.j/2-g.b,ee.b-p-e.j/2-g.d,d.g+e.j+(g.b+g.c),d.f+e.j+(g.d+g.a))),ry(e.d.i,_),LC(e.g,ee,new M_(_,d))}switch(x.g){case 0:if(b==null)e.d.d=F(kx(e.d.i,0),68);else for(y=new D(e.d.i);y.a0?ie+1:1);for(o=new D(S.g);o.a0?ie+1:1)}e.d[l]==0?fx(e.f,h):e.a[l]==0&&fx(e.g,h),++l}for(m=-1,p=1,d=new Od,e.e=F(q(t,(X(),_$)),234);ce>0;){for(;e.f.b!=0;)oe=F(ox(e.f),9),e.c[oe.p]=m--,frt(e,oe),--ce;for(;e.g.b!=0;)se=F(ox(e.g),9),e.c[se.p]=p++,frt(e,se),--ce;if(ce>0){for(f=VB,v=new D(y);v.a=f&&(b>f&&(d.c.length=0,f=b),zd(d.c,h)));u=e.qg(d),e.c[u.p]=p++,frt(e,u),--ce}}for(ae=y.c.length+1,l=0;le.c[w]&&(FR(r,!0),G(t,BQ,(by(),!0)));e.a=null,e.d=null,e.c=null,hw(e.g),hw(e.f),n.Ug()}function odt(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=F(U((!e.a&&(e.a=new I(Q5,e,6,6)),e.a),0),170),ee;for(d=new Uf,x=new kd,ee=dit(S),kI(x.f,S,ee),p=new kd,i=new ph,h=OS(ik(W(A(_J,1),iB,20,0,[(!t.d&&(t.d=new Db(Z5,t,8,5)),t.d),(!t.e&&(t.e=new Db(Z5,t,7,4)),t.e)])));rL(h);){if(m=F(zE(h),85),(!e.a&&(e.a=new I(Q5,e,6,6)),e.a).i!=1)throw O(new Hp(k_t+(!e.a&&(e.a=new I(Q5,e,6,6)),e.a).i));m!=e&&(_=F(U((!m.a&&(m.a=new I(Q5,m,6,6)),m.a),0),170),DE(i,_,i.c.b,i.c),g=F(V_(Yx(x.f,_)),13),g||(g=dit(_),kI(x.f,_,g)),f=n?Tb(new pv(F(kx(ee,ee.c.length-1),8)),F(kx(g,g.c.length-1),8)):Tb(new pv((OT(0,ee.c.length),F(ee.c[0],8))),(OT(0,g.c.length),F(g.c[0],8))),kI(p.f,_,f))}if(i.b!=0)for(v=F(kx(ee,n?ee.c.length-1:0),8),u=1;u1&&DE(d,v,d.c.b,d.c),CO(a)));v=y}return d}function sdt(e){var t,n=F(q(e,(X(),YQ)),22),r,i,a;switch(t=gv(FCt),i=F(q(e,(zz(),x1)),347),i==(Ej(),x8)&&uA(t,ICt),Gp(nb(q(e,b1)))?Sx(t,($F(),nX),(Uz(),eZ)):Sx(t,($F(),iX),(Uz(),eZ)),q(e,(tD(),q3))!=null&&uA(t,LCt),(Gp(nb(q(e,sAt)))||Gp(nb(q(e,rAt))))&&tS(t,($F(),oX),(Uz(),Dwt)),F(q(e,d1),86).g){case 2:case 3:case 4:tS(Sx(t,($F(),nX),(Uz(),kwt)),oX,Owt)}switch(n.Gc((WL(),mQ))&&tS(Sx(Sx(t,($F(),nX),(Uz(),Ewt)),aX,wwt),oX,Twt),M(q(e,O1))!==M((oR(),J0))&&Sx(t,($F(),iX),(Uz(),Gwt)),n.Gc(xQ)&&(Sx(t,($F(),nX),(Uz(),Ywt)),Sx(t,rX,qwt),Sx(t,iX,Jwt)),M(q(e,G$))!==M((aI(),fQ))&&M(q(e,g1))!==M((yM(),h8))&&tS(t,($F(),oX),(Uz(),Rwt)),Gp(nb(q(e,aAt)))&&Sx(t,($F(),iX),(Uz(),Lwt)),Gp(nb(q(e,c1)))&&Sx(t,($F(),iX),(Uz(),Xwt)),M7e(e)&&(r=M(q(e,x1))===M(x8)?F(q(e,a1),302):F(q(e,o1),302),a=r==(kA(),TQ)?(Uz(),Kwt):(Uz(),$wt),Sx(t,($F(),aX),a)),F(q(e,mAt),423).g==1&&Sx(t,($F(),aX),(Uz(),ywt)),F(q(e,qAt),382).g){case 1:Sx(t,($F(),aX),(Uz(),Zwt));break;case 2:tS(Sx(Sx(t,($F(),iX),(Uz(),bwt)),aX,xwt),oX,Swt)}return M(q(e,n1))!==M((NN(),X0))&&Sx(t,($F(),iX),(Uz(),Qwt)),FE(new Mx(null,new DT(e.a,16)),new ut)&&Yy(e,B1)&&tS(t,($F(),aX),(Uz(),Wwt)),t}function cdt(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C;for(n.Tg(Zht,1),C=F(TE(ZC(new Mx(null,new DT(t,16)),new mne),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),16),u=F(TE(ZC(new Mx(null,new DT(t,16)),new Doe(t)),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[hY]))),16),m=F(TE(ZC(new Mx(null,new DT(t,16)),new Eoe(t)),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[hY]))),16),h=H(L2,gG,40,t.gc(),0,1),o=0;o=0&&ne=0&&!h[p]||(p=ne-f,p=0&&!h[p])){h[p]=i,u.ed(s),--s;break}for(m.gd(new hne),c=h.length-1;c>=0;c--)!h[c]&&!m.dc()&&(h[c]=F(m.Xb(0),40),m.ed(0));for(l=0;lf&&pF((OT(f,t.c.length),F(t.c[f],186)),u),u=null;t.c.length>f&&(OT(f,t.c.length),F(t.c[f],186)).a.c.length==0;)BD(t,(OT(f,t.c.length),t.c[f]));if(!u){--o;continue}if(!Gp(nb(F(kx(u.b,0),26).mf((JL(),n3))))&&qrt(t,m,a,u,g,n,f,r)){h=!0;continue}if(g){if(p=m.b,d=u.f,!Gp(nb(F(kx(u.b,0),26).mf(n3)))&&zst(t,m,a,u,n,f,r,i)){if(h=!0,p=e.j)e.a=-1,e.c=1;else if(t=IC(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(r=10,e.d>=e.j)throw O(new tm(Jz((Iv(),rq))));e.a=IC(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||IC(e.i,e.d)!=63)break;if(++e.d>=e.j)throw O(new tm(Jz((Iv(),iq))));switch(t=IC(e.i,e.d++),t){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(e.d>=e.j)throw O(new tm(Jz((Iv(),iq))));if(t=IC(e.i,e.d++),t==61)r=16;else if(t==33)r=17;else throw O(new tm(Jz((Iv(),hvt))));break;case 35:for(;e.d=e.j)throw O(new tm(Jz((Iv(),rq))));e.a=IC(e.i,e.d++);break;default:r=0}e.c=r}}function pdt(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g;if(n.Tg(`Process compaction`,1),Gp(nb(q(t,(AR(),TNt))))){for(i=F(q(t,c4),86),p=k(P(q(t,f4))),oot(e,t,i),cut(t,p/2/2),m=t.b,Wk(m,new Yu(i)),l=nP(m,0);l.b!=l.d.c;)if(c=F(sE(l),40),!Gp(nb(q(c,(Ez(),a4))))){if(r=Vtt(c,i),h=fat(c,t),d=0,f=0,r)switch(g=r.e,i.g){case 2:d=g.a-p-c.f.a,h.e.a-p-c.f.ad&&(d=h.e.a+h.f.a+p),f=d+c.f.a;break;case 4:d=g.b-p-c.f.b,h.e.b-p-c.f.bd&&(d=h.e.b+h.f.b+p),f=d+c.f.b}else if(h)switch(i.g){case 2:d=h.e.a-p-c.f.a,f=d+c.f.a;break;case 1:d=h.e.a+h.f.a+p,f=d+c.f.a;break;case 4:d=h.e.b-p-c.f.b,f=d+c.f.b;break;case 3:d=h.e.b+h.f.b+p,f=d+c.f.b}M(q(t,l4))===M((mj(),z2))?(a=d,o=f,s=lj(ZC(new Mx(null,new DT(e.a,16)),new Nfe(a,o))),s.a==null?(s=i==(hM(),i8)||i==s8?lj(ZC(wze(new Mx(null,new DT(e.a,16))),new Coe(a))):lj(ZC(wze(new Mx(null,new DT(e.a,16))),new Xu(a))),s.a!=null&&(i==i8||i==a8?c.e.a=k(P((Ky(s.a!=null),F(s.a,49)).a)):c.e.b=k(P((Ky(s.a!=null),F(s.a,49)).a)))):i==(hM(),i8)||i==a8?c.e.a=d:c.e.b=d,s.a!=null&&(u=VD(e.a,(Ky(s.a!=null),s.a),0),u>0&&u!=F(q(c,p4),15).a&&(G(c,cNt,(by(),!0)),G(c,p4,K(u))))):i==(hM(),i8)||i==a8?c.e.a=d:c.e.b=d}n.Ug()}}function mdt(e,t,n){var r,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x,S;if(n.Tg(`Coffman-Graham Layering`,1),t.a.c.length==0)n.Ug();else{for(S=F(q(t,(zz(),lAt)),15).a,c=0,o=0,p=new D(t.a);p.a=S||!vJe(v,r))&&(r=sDe(t,u)),cT(v,r),a=new uS(py(zM(v).a.Jc(),new f));rL(a);)i=F(zE(a),17),!e.a[i.p]&&(g=i.c.i,--e.e[g.p],e.e[g.p]==0&&ix(ZF(m,g),IV));for(l=u.c.length-1;l>=0;--l)ry(t.b,(OT(l,u.c.length),F(u.c[l],25)));t.a.c.length=0,n.Ug()}}function hdt(e){var t,n,r,i,a,o,s,c,l;for(e.b=1,Rz(e),t=null,e.c==0&&e.a==94?(Rz(e),t=(Wz(),Wz(),++W9,new RT(4)),VL(t,0,aJ),s=(++W9,new RT(4))):s=(Wz(),Wz(),++W9,new RT(4)),i=!0;(l=e.c)!=1;){if(l==0&&e.a==93&&!i){t&&(_z(t,s),s=t);break}if(n=e.a,r=!1,l==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:$R(s,vR(n)),r=!0;break;case 105:case 73:case 99:case 67:n=($R(s,vR(n)),-1),n<0&&(r=!0);break;case 112:case 80:if(c=g6e(e,n),!c)throw O(new tm(Jz((Iv(),oq))));$R(s,c),r=!0;break;default:n=gtt(e)}else if(l==24&&!i){if(t&&(_z(t,s),s=t),a=hdt(e),_z(s,a),e.c!=0||e.a!=93)throw O(new tm(Jz((Iv(),Ovt))));break}if(Rz(e),!r){if(l==0){if(n==91)throw O(new tm(Jz((Iv(),kvt))));if(n==93)throw O(new tm(Jz((Iv(),Avt))));if(n==45&&!i&&e.a!=93)throw O(new tm(Jz((Iv(),cq))))}if(e.c!=0||e.a!=45||n==45&&i)VL(s,n,n);else{if(Rz(e),(l=e.c)==1)throw O(new tm(Jz((Iv(),sq))));if(l==0&&e.a==93)VL(s,n,n),VL(s,45,45);else if(l==0&&e.a==93||l==24)throw O(new tm(Jz((Iv(),cq))));else{if(o=e.a,l==0){if(o==91)throw O(new tm(Jz((Iv(),kvt))));if(o==93)throw O(new tm(Jz((Iv(),Avt))));if(o==45)throw O(new tm(Jz((Iv(),cq))))}else l==10&&(o=gtt(e));if(Rz(e),n>o)throw O(new tm(Jz((Iv(),Nvt))));VL(s,n,o)}}}i=!1}if(e.c==1)throw O(new tm(Jz((Iv(),sq))));return sL(s),sz(s),e.b=0,Rz(e),s}function gdt(e,t){var n,r,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x=!1;do for(x=!1,a=t?new Tl(e.a.b).a.gc()-2:1;t?a>=0:aF(q(_,u$),15).a)&&(b=!1);if(b){for(c=t?a+1:a-1,s=ZMe(e.a,K(c)),o=!1,y=!0,r=!1,u=nP(s,0);u.b!=u.d.c;)l=F(sE(u),9),Yy(l,u$)?l.p!=d.p&&(o|=t?F(q(l,u$),15).aF(q(d,u$),15).a,y=!1):!o&&y&&l.k==(pL(),TX)&&(r=!0,p=t?F(zE(new uS(py(zM(l).a.Jc(),new f))),17).c.i:F(zE(new uS(py(VM(l).a.Jc(),new f))),17).d.i,p==d&&(n=t?F(zE(new uS(py(VM(l).a.Jc(),new f))),17).d.i:F(zE(new uS(py(zM(l).a.Jc(),new f))),17).c.i,(t?F(Jy(e.a,n),15).a-F(Jy(e.a,p),15).a:F(Jy(e.a,p),15).a-F(Jy(e.a,n),15).a)<=2&&(y=!1)));if(r&&y&&(n=t?F(zE(new uS(py(VM(d).a.Jc(),new f))),17).d.i:F(zE(new uS(py(zM(d).a.Jc(),new f))),17).c.i,(t?F(Jy(e.a,n),15).a-F(Jy(e.a,d),15).a:F(Jy(e.a,d),15).a-F(Jy(e.a,n),15).a)<=2&&n.k==(pL(),OX)&&(y=!1)),o||y){for(g=A7e(e,d,t);g.a.gc()!=0;)h=F(g.a.ec().Jc().Pb(),9),g.a.Ac(h),Gk(g,A7e(e,h,t));--m,x=!0}}}while(x)}function _dt(e){dL(e.c,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#decimal`])),dL(e.d,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#integer`])),dL(e.e,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#boolean`])),dL(e.f,Oq,W(A(KJ,1),vB,2,6,[zq,`EBoolean`,JK,`EBoolean:Object`])),dL(e.i,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#byte`])),dL(e.g,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#hexBinary`])),dL(e.j,Oq,W(A(KJ,1),vB,2,6,[zq,`EByte`,JK,`EByte:Object`])),dL(e.n,Oq,W(A(KJ,1),vB,2,6,[zq,`EChar`,JK,`EChar:Object`])),dL(e.t,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#double`])),dL(e.u,Oq,W(A(KJ,1),vB,2,6,[zq,`EDouble`,JK,`EDouble:Object`])),dL(e.F,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#float`])),dL(e.G,Oq,W(A(KJ,1),vB,2,6,[zq,`EFloat`,JK,`EFloat:Object`])),dL(e.I,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#int`])),dL(e.J,Oq,W(A(KJ,1),vB,2,6,[zq,`EInt`,JK,`EInt:Object`])),dL(e.N,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#long`])),dL(e.O,Oq,W(A(KJ,1),vB,2,6,[zq,`ELong`,JK,`ELong:Object`])),dL(e.Z,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#short`])),dL(e.$,Oq,W(A(KJ,1),vB,2,6,[zq,`EShort`,JK,`EShort:Object`])),dL(e._,Oq,W(A(KJ,1),vB,2,6,[zq,`http://www.w3.org/2001/XMLSchema#string`]))}function vdt(e,t,n,r,i,a,o){var s,c,l,u,d,f=F(r.a,15).a,p=F(r.b,15).a,m;return d=e.b,m=e.c,s=0,u=0,t==(hM(),i8)||t==a8?(u=ng(cKe($C(QC(new Mx(null,new DT(n.b,16)),new ta),new cne))),d.e.b+d.f.b/2>u?(l=++p,s=k(P(Cy(hS(QC(new Mx(null,new DT(n.b,16)),new Rfe(i,l)),new lne))))):(c=++f,s=k(P(Cy(gS(QC(new Mx(null,new DT(n.b,16)),new zfe(i,c)),new une)))))):(u=ng(cKe($C(QC(new Mx(null,new DT(n.b,16)),new _ne),new Ji))),d.e.a+d.f.a/2>u?(l=++p,s=k(P(Cy(hS(QC(new Mx(null,new DT(n.b,16)),new Lfe(i,l)),new dne))))):(c=++f,s=k(P(Cy(gS(QC(new Mx(null,new DT(n.b,16)),new Ife(i,c)),new Yi)))))),t==i8?(tv(e.a,new j(k(P(q(d,(Ez(),$2))))-i,s)),tv(e.a,new j(m.e.a+m.f.a+i+a,s)),tv(e.a,new j(m.e.a+m.f.a+i+a,m.e.b+m.f.b/2)),tv(e.a,new j(m.e.a+m.f.a,m.e.b+m.f.b/2))):t==a8?(tv(e.a,new j(k(P(q(d,(Ez(),Q2))))+i,d.e.b+d.f.b/2)),tv(e.a,new j(d.e.a+d.f.a+i,s)),tv(e.a,new j(m.e.a-i-a,s)),tv(e.a,new j(m.e.a-i-a,m.e.b+m.f.b/2)),tv(e.a,new j(m.e.a,m.e.b+m.f.b/2))):t==s8?(tv(e.a,new j(s,k(P(q(d,(Ez(),$2))))-i)),tv(e.a,new j(s,m.e.b+m.f.b+i+a)),tv(e.a,new j(m.e.a+m.f.a/2,m.e.b+m.f.b+i+a)),tv(e.a,new j(m.e.a+m.f.a/2,m.e.b+m.f.b+i))):(e.a.b==0||(F(Hy(e.a),8).b=k(P(q(d,(Ez(),Q2))))+i*F(o.b,15).a),tv(e.a,new j(s,k(P(q(d,(Ez(),Q2))))+i*F(o.b,15).a)),tv(e.a,new j(s,m.e.b-i*F(o.a,15).a-a))),new M_(K(f),K(p))}function zz(){zz=C,i0=(Hz(),gRt),PAt=_Rt,a0=vRt,o0=yRt,c0=bRt,l0=xRt,f0=SRt,m0=CRt,h0=wRt,p0=Y6,g0=X6,v0=TRt,b0=ORt,d0=J6,r0=(Ndt(),ikt),s0=akt,u0=okt,_0=skt,AAt=new Mv(W6,K(0)),t0=tkt,jAt=nkt,n0=rkt,qAt=jkt,BAt=ukt,VAt=pkt,C0=xkt,HAt=gkt,UAt=vkt,T0=Ikt,w0=Nkt,GAt=Dkt,WAt=Tkt,KAt=kkt,mAt=kOt,j1=wOt,A1=SOt,M1=EOt,R1=WOt,z1=GOt,B1=YOt,v1=KDt,nAt=YDt,LAt=$6,zAt=t8,IAt=Q6,FAt=Z6,RAt=(gM(),z5),new Mv(e8,RAt),bAt=new kv(12),yAt=new Mv(M6,bAt),$kt=(yM(),m8),g1=new Mv(RLt,$kt),Y1=new Mv(L6,0),MAt=new Mv(G6,K(1)),H$=new Mv(u6,OH),K1=A6,X1=R6,$1=H6,Xkt=m6,B$=kLt,x1=v6,NAt=new Mv(q6,(by(),!0)),C1=y6,w1=b6,H1=E6,G1=k6,U1=D6,Qkt=(hM(),o8),d1=new Mv(h6,Qkt),F1=T6,P1=ZLt,Q1=V6,DAt=B6,OAt=pRt,SAt=(tP(),B8),new Mv(cRt,SAt),wAt=P6,TAt=F6,EAt=I6,CAt=N6,S0=lkt,k1=bOt,O1=vOt,x0=ckt,E1=uOt,u1=MDt,l1=ADt,i1=pDt,Gkt=mDt,o1=yDt,a1=hDt,c1=ODt,hAt=jOt,gAt=MOt,cAt=rOt,V1=ZOt,I1=IOt,b1=QDt,vAt=HOt,tAt=HDt,_1=WDt,r1=p6,_At=NOt,G$=HEt,Bkt=BEt,W$=zEt,aAt=tOt,iAt=eOt,oAt=nOt,W1=O6,T1=C6,y1=BLt,m1=_6,p1=g6,Kkt=SDt,Z1=z6,U$=PLt,S1=WLt,J1=uRt,xAt=iRt,q1=oRt,dAt=pOt,fAt=hOt,e0=U6,V$=REt,pAt=_Ot,h1=RDt,f1=IDt,N1=w6,lAt=sOt,L1=zOt,y0=ERt,Zkt=PDt,kAt=$Ot,eAt=BDt,qkt=wDt,Jkt=TDt,uAt=lOt,Ykt=EDt,sAt=S6,D1=fOt,s1=DDt,n1=dDt,$$=sDt,q$=KEt,J$=qEt,e1=lDt,K$=WEt,t1=uDt,Q$=oDt,Z$=aDt,Wkt=iDt,Y$=JEt,X$=nDt,Ukt=eDt,Vkt=XEt,Hkt=QEt,rAt=$Dt}function ydt(e){var t,n,r,i,a,o=!0,s,c,l,u,d=null,f,p;if(r=null,i=null,t=!1,p=EBt,l=null,a=null,s=0,c=JN(e,s,wBt,TBt),c=0&&kb(e.substr(s,2),`//`)?(s+=2,c=JN(e,s,D7,O7),r=(uD(s,c,e.length),e.substr(s,c-s)),s=c):d!=null&&(s==e.length||(kT(s,e.length),e.charCodeAt(s)!=47))&&(o=!1,c=Ege(e,JF(35),s),c==-1&&(c=e.length),r=(uD(s,c,e.length),e.substr(s,c-s)),s=c);if(!n&&s0&&IC(u,u.length-1)==58&&(i=u,s=c)),so?(nR(e,t,n),1):(nR(e,n,t),-1)}for(v=e.f,y=0,b=v.length;y0?nR(e,t,n):nR(e,n,t),r;if(!Yy(t,(X(),u$))||!Yy(n,u$))return a=AF(e,t),s=AF(e,n),a>s?(nR(e,t,n),1):(nR(e,n,t),-1)}if(!f&&!m&&(r=Sdt(e,t,n),r!=0))return r>0?nR(e,t,n):nR(e,n,t),r}return Yy(t,(X(),u$))&&Yy(n,u$)?(a=PL(t,n,e.c,F(q(e.c,l$),15).a),s=PL(n,t,e.c,F(q(e.c,l$),15).a),a>s?(nR(e,t,n),1):(nR(e,n,t),-1)):(nR(e,n,t),-1)}function bdt(){bdt=C,Iz(),bX=new Bw,GI(bX,(Dz(),c5),s5),GI(bX,v5,s5),GI(bX,l5,s5),GI(bX,h5,s5),GI(bX,m5,s5),GI(bX,f5,s5),GI(bX,h5,c5),GI(bX,s5,r5),GI(bX,c5,r5),GI(bX,v5,r5),GI(bX,l5,r5),GI(bX,p5,r5),GI(bX,h5,r5),GI(bX,m5,r5),GI(bX,f5,r5),GI(bX,o5,r5),GI(bX,s5,g5),GI(bX,c5,g5),GI(bX,r5,g5),GI(bX,v5,g5),GI(bX,l5,g5),GI(bX,p5,g5),GI(bX,h5,g5),GI(bX,o5,g5),GI(bX,_5,g5),GI(bX,m5,g5),GI(bX,u5,g5),GI(bX,f5,g5),GI(bX,c5,v5),GI(bX,l5,v5),GI(bX,h5,v5),GI(bX,f5,v5),GI(bX,c5,l5),GI(bX,v5,l5),GI(bX,h5,l5),GI(bX,l5,l5),GI(bX,m5,l5),GI(bX,s5,i5),GI(bX,c5,i5),GI(bX,r5,i5),GI(bX,g5,i5),GI(bX,v5,i5),GI(bX,l5,i5),GI(bX,p5,i5),GI(bX,h5,i5),GI(bX,_5,i5),GI(bX,o5,i5),GI(bX,f5,i5),GI(bX,m5,i5),GI(bX,d5,i5),GI(bX,s5,_5),GI(bX,c5,_5),GI(bX,r5,_5),GI(bX,v5,_5),GI(bX,l5,_5),GI(bX,p5,_5),GI(bX,h5,_5),GI(bX,o5,_5),GI(bX,f5,_5),GI(bX,u5,_5),GI(bX,d5,_5),GI(bX,c5,o5),GI(bX,v5,o5),GI(bX,l5,o5),GI(bX,h5,o5),GI(bX,_5,o5),GI(bX,f5,o5),GI(bX,m5,o5),GI(bX,s5,a5),GI(bX,c5,a5),GI(bX,r5,a5),GI(bX,v5,a5),GI(bX,l5,a5),GI(bX,p5,a5),GI(bX,h5,a5),GI(bX,o5,a5),GI(bX,f5,a5),GI(bX,c5,m5),GI(bX,r5,m5),GI(bX,g5,m5),GI(bX,l5,m5),GI(bX,s5,u5),GI(bX,c5,u5),GI(bX,g5,u5),GI(bX,v5,u5),GI(bX,l5,u5),GI(bX,p5,u5),GI(bX,h5,u5),GI(bX,h5,d5),GI(bX,l5,d5),GI(bX,o5,s5),GI(bX,o5,v5),GI(bX,o5,r5),GI(bX,p5,s5),GI(bX,p5,c5),GI(bX,p5,g5)}function xdt(e,t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S;switch(n.Tg(`Brandes & Koepf node placement`,1),e.a=t,e.c=Yit(t),r=F(q(t,(zz(),I1)),282),p=Gp(nb(q(t,L1))),e.d=r==(TF(),dQ)&&!p||r==uQ,Ast(e,t),x=null,S=null,_=null,v=null,g=(_k(4,FB),new pD(4)),F(q(t,I1),282).g){case 3:_=new fR(t,e.c.d,(nT(),T2),(Hw(),C2)),zd(g.c,_);break;case 1:v=new fR(t,e.c.d,(nT(),E2),(Hw(),C2)),zd(g.c,v);break;case 4:x=new fR(t,e.c.d,(nT(),T2),(Hw(),w2)),zd(g.c,x);break;case 2:S=new fR(t,e.c.d,(nT(),E2),(Hw(),w2)),zd(g.c,S);break;default:_=new fR(t,e.c.d,(nT(),T2),(Hw(),C2)),v=new fR(t,e.c.d,E2,C2),x=new fR(t,e.c.d,T2,w2),S=new fR(t,e.c.d,E2,w2),zd(g.c,x),zd(g.c,S),zd(g.c,_),zd(g.c,v)}for(i=new wfe(t,e.c),s=new D(g);s.aaL(a))&&(d=a);for(!d&&(d=(OT(0,g.c.length),F(g.c[0],185))),h=new D(t.b);h.a0?(nR(e,n,t),1):(nR(e,t,n),-1);if(u&&y)return nR(e,n,t),1;if(d&&v)return nR(e,t,n),-1;if(d&&y)return 0}else for(ne=new D(l.j);ne.af&&(ie=0,ae+=d+te,d=0),prt(S,s,ie,ae),t=r.Math.max(t,ie+ee.a),d=r.Math.max(d,ee.b),ie+=ee.a+te;for(x=new kd,n=new kd,C=new D(e);C.a=-1900),n>=4?Q_(e,W(A(KJ,1),vB,2,6,[sft,cft])[s]):Q_(e,W(A(KJ,1),vB,2,6,[`BC`,`AD`])[s]);break;case 121:DYe(e,n,r);break;case 77:urt(e,n,r);break;case 107:c=i.q.getHours(),c==0?QD(e,24,n):QD(e,c,n);break;case 83:j7e(e,n,i);break;case 69:u=r.q.getDay(),n==5?Q_(e,W(A(KJ,1),vB,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[u]):n==4?Q_(e,W(A(KJ,1),vB,2,6,[lV,uV,dV,fV,pV,mV,hV])[u]):Q_(e,W(A(KJ,1),vB,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[u]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?Q_(e,W(A(KJ,1),vB,2,6,[`AM`,`PM`])[1]):Q_(e,W(A(KJ,1),vB,2,6,[`AM`,`PM`])[0]);break;case 104:d=i.q.getHours()%12,d==0?QD(e,12,n):QD(e,d,n);break;case 75:f=i.q.getHours()%12,QD(e,f,n);break;case 72:p=i.q.getHours(),QD(e,p,n);break;case 99:m=r.q.getDay(),n==5?Q_(e,W(A(KJ,1),vB,2,6,[`S`,`M`,`T`,`W`,`T`,`F`,`S`])[m]):n==4?Q_(e,W(A(KJ,1),vB,2,6,[lV,uV,dV,fV,pV,mV,hV])[m]):n==3?Q_(e,W(A(KJ,1),vB,2,6,[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`])[m]):QD(e,m,1);break;case 76:h=r.q.getMonth(),n==5?Q_(e,W(A(KJ,1),vB,2,6,[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`])[h]):n==4?Q_(e,W(A(KJ,1),vB,2,6,[YB,XB,ZB,QB,$B,eV,tV,nV,rV,iV,aV,oV])[h]):n==3?Q_(e,W(A(KJ,1),vB,2,6,[`Jan`,`Feb`,`Mar`,`Apr`,$B,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`])[h]):QD(e,h+1,n);break;case 81:g=r.q.getMonth()/3|0,n<4?Q_(e,W(A(KJ,1),vB,2,6,[`Q1`,`Q2`,`Q3`,`Q4`])[g]):Q_(e,W(A(KJ,1),vB,2,6,[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`])[g]);break;case 100:_=r.q.getDate(),QD(e,_,n);break;case 109:l=i.q.getMinutes(),QD(e,l,n);break;case 115:o=i.q.getSeconds(),QD(e,o,n);break;case 122:n<4?Q_(e,a.c[0]):Q_(e,a.c[1]);break;case 118:Q_(e,a.b);break;case 90:n<3?Q_(e,z3e(a)):n==3?Q_(e,X3e(a)):Q_(e,Z3e(a.a));break;default:return!1}return!0}function Ddt(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C,re,ie,ae;if(Cnt(t),c=F(U((!t.b&&(t.b=new Db(X5,t,4,7)),t.b),0),84),u=F(U((!t.c&&(t.c=new Db(X5,t,5,8)),t.c),0),84),s=VF(c),l=VF(u),o=(!t.a&&(t.a=new I(Q5,t,6,6)),t.a).i==0?null:F(U((!t.a&&(t.a=new I(Q5,t,6,6)),t.a),0),170),ee=F(pC(e.a,s),9),re=F(pC(e.a,l),9),te=null,ie=null,N(c,193)&&(S=F(pC(e.a,c),246),N(S,12)?te=F(S,12):N(S,9)&&(ee=F(S,9),te=F(kx(ee.j,0),12))),N(u,193)&&(C=F(pC(e.a,u),246),N(C,12)?ie=F(C,12):N(C,9)&&(re=F(C,9),ie=F(kx(re.j,0),12))),!ee||!re)throw O(new $p(`The source or the target of edge `+t+` could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN.`));for(h=new Dw,wA(h,t),G(h,(X(),d$),t),G(h,(zz(),T1),null),p=F(q(r,YQ),22),ee==re&&p.Ec((WL(),SQ)),te||=(x=(uk(),n2),ne=null,o&&vv(F(q(ee,X1),102))&&(ne=new j(o.j,o.k),RNe(ne,$w(t)),kPe(ne,n),EO(l,s)&&(x=t2,wb(ne,ee.n))),sot(ee,ne,x,r)),ie||=(x=(uk(),t2),ae=null,o&&vv(F(q(re,X1),102))&&(ae=new j(o.b,o.c),RNe(ae,$w(t)),kPe(ae,n)),sot(re,ae,x,jC(re))),sT(h,te),lT(h,ie),(te.e.c.length>1||te.g.c.length>1||ie.e.c.length>1||ie.g.c.length>1)&&p.Ec((WL(),_Q)),f=new uy((!t.n&&(t.n=new I(o7,t,1,7)),t.n));f.e!=f.i.gc();)if(d=F(aP(f),157),!Gp(nb(Y(d,K1)))&&d.a)switch(g=Xj(d),ry(h.b,g),F(q(g,m1),279).g){case 1:case 2:p.Ec((WL(),hQ));break;case 0:p.Ec((WL(),pQ)),G(g,m1,(NO(),d8))}if(a=F(q(r,l1),301),_=F(q(r,V1),303),i=a==(rN(),VZ)||_==(dP(),B0),o&&(!o.a&&(o.a=new oy(q5,o,5)),o.a).i!=0&&i){for(v=G2e(o),m=new Uf,b=nP(v,0);b.b!=b.d.c;)y=F(sE(b),8),fx(m,new pv(y));G(h,OEt,m)}return h}function Odt(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne=0,C=0,re,ie,ae,oe;for(ee=new kd,x=F(Cy(hS(QC(new Mx(null,new DT(e.b,16)),new Xi),new sne)),15).a+1,te=H(q9,cV,30,x,15,1),g=H(q9,cV,30,x,15,1),h=0;h1)for(s=ie+1;sl.b.e.b*(1-_)+l.c.e.b*_));m++);if(S.gc()>0&&(ae=l.a.b==0?Jv(l.b.e):F(Hy(l.a),8),y=wb(Jv(F(S.Xb(S.gc()-1),40).e),F(S.Xb(S.gc()-1),40).f),f=wb(Jv(F(S.Xb(0),40).e),F(S.Xb(0),40).f),m>=S.gc()-1&&ae.b>y.b&&l.c.e.b>y.b||m<=0&&ae.bl.b.e.a*(1-_)+l.c.e.a*_));m++);if(S.gc()>0&&(ae=l.a.b==0?Jv(l.b.e):F(Hy(l.a),8),y=wb(Jv(F(S.Xb(S.gc()-1),40).e),F(S.Xb(S.gc()-1),40).f),f=wb(Jv(F(S.Xb(0),40).e),F(S.Xb(0),40).f),m>=S.gc()-1&&ae.a>y.a&&l.c.e.a>y.a||m<=0&&ae.a=k(P(q(e,(Ez(),dNt))))&&++C):(p.f&&p.d.e.a<=k(P(q(e,(Ez(),K2))))&&++ne,p.g&&p.c.e.a+p.c.f.a>=k(P(q(e,(Ez(),uNt))))&&++C)}else b==0?t6e(l):b<0&&(++te[ie],++g[oe],re=vdt(l,t,e,new M_(K(ne),K(C)),n,r,new M_(K(g[oe]),K(te[ie]))),ne=F(re.a,15).a,C=F(re.b,15).a)}function kdt(e){e.gb||(e.gb=!0,e.b=_A(e,0),Bk(e.b,18),Vk(e.b,19),e.a=_A(e,1),Bk(e.a,1),Vk(e.a,2),Vk(e.a,3),Vk(e.a,4),Vk(e.a,5),e.o=_A(e,2),Bk(e.o,8),Bk(e.o,9),Vk(e.o,10),Vk(e.o,11),Vk(e.o,12),Vk(e.o,13),Vk(e.o,14),Vk(e.o,15),Vk(e.o,16),Vk(e.o,17),Vk(e.o,18),Vk(e.o,19),Vk(e.o,20),Vk(e.o,21),Vk(e.o,22),Vk(e.o,23),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),xO(e.o),e.p=_A(e,3),Bk(e.p,2),Bk(e.p,3),Bk(e.p,4),Bk(e.p,5),Vk(e.p,6),Vk(e.p,7),xO(e.p),xO(e.p),e.q=_A(e,4),Bk(e.q,8),e.v=_A(e,5),Vk(e.v,9),xO(e.v),xO(e.v),xO(e.v),e.w=_A(e,6),Bk(e.w,2),Bk(e.w,3),Bk(e.w,4),Vk(e.w,5),e.B=_A(e,7),Vk(e.B,1),xO(e.B),xO(e.B),xO(e.B),e.Q=_A(e,8),Vk(e.Q,0),xO(e.Q),e.R=_A(e,9),Bk(e.R,1),e.S=_A(e,10),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),xO(e.S),e.T=_A(e,11),Vk(e.T,10),Vk(e.T,11),Vk(e.T,12),Vk(e.T,13),Vk(e.T,14),xO(e.T),xO(e.T),e.U=_A(e,12),Bk(e.U,2),Bk(e.U,3),Vk(e.U,4),Vk(e.U,5),Vk(e.U,6),Vk(e.U,7),xO(e.U),e.V=_A(e,13),Vk(e.V,10),e.W=_A(e,14),Bk(e.W,18),Bk(e.W,19),Bk(e.W,20),Vk(e.W,21),Vk(e.W,22),Vk(e.W,23),e.bb=_A(e,15),Bk(e.bb,10),Bk(e.bb,11),Bk(e.bb,12),Bk(e.bb,13),Bk(e.bb,14),Bk(e.bb,15),Bk(e.bb,16),Vk(e.bb,17),xO(e.bb),xO(e.bb),e.eb=_A(e,16),Bk(e.eb,2),Bk(e.eb,3),Bk(e.eb,4),Bk(e.eb,5),Bk(e.eb,6),Bk(e.eb,7),Vk(e.eb,8),Vk(e.eb,9),e.ab=_A(e,17),Bk(e.ab,0),Bk(e.ab,1),e.H=_A(e,18),Vk(e.H,0),Vk(e.H,1),Vk(e.H,2),Vk(e.H,3),Vk(e.H,4),Vk(e.H,5),xO(e.H),e.db=_A(e,19),Vk(e.db,2),e.c=vA(e,20),e.d=vA(e,21),e.e=vA(e,22),e.f=vA(e,23),e.i=vA(e,24),e.g=vA(e,25),e.j=vA(e,26),e.k=vA(e,27),e.n=vA(e,28),e.r=vA(e,29),e.s=vA(e,30),e.t=vA(e,31),e.u=vA(e,32),e.fb=vA(e,33),e.A=vA(e,34),e.C=vA(e,35),e.D=vA(e,36),e.F=vA(e,37),e.G=vA(e,38),e.I=vA(e,39),e.J=vA(e,40),e.L=vA(e,41),e.M=vA(e,42),e.N=vA(e,43),e.O=vA(e,44),e.P=vA(e,45),e.X=vA(e,46),e.Y=vA(e,47),e.Z=vA(e,48),e.$=vA(e,49),e._=vA(e,50),e.cb=vA(e,51),e.K=vA(e,52))}function Adt(e,t,n,i){for(var a,o,s,c,l,u,d,f=nP(e.b,0),p,m,h;f.b!=f.d.c;)if(d=F(sE(f),40),!kb(d.c,pG))for(o=F(TE(new Mx(null,new DT(C6e(d,e),16)),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),16),t==(hM(),i8)||t==a8?o.gd(new Zi):o.gd(new Qi),h=o.gc(),a=0;a0&&(c=F(Hy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Hy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(c-p)/40)>50&&(m>l?tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a+i/5.3,d.e.b+d.f.b*s-i/2)):tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a+i/5.3,d.e.b+d.f.b*s+i/2)))),tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a,d.e.b+d.f.b*s))):t==a8?(u=k(P(q(d,(Ez(),$2)))),d.e.a-i>u?tv(F(o.Xb(a),65).a,new j(u-n,d.e.b+d.f.b*s)):F(o.Xb(a),65).a.b>0&&(c=F(Hy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Hy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(l-m)/(r.Math.abs(c-p)/40)>50&&(m>l?tv(F(o.Xb(a),65).a,new j(d.e.a-i/5.3,d.e.b+d.f.b*s-i/2)):tv(F(o.Xb(a),65).a,new j(d.e.a-i/5.3,d.e.b+d.f.b*s+i/2)))),tv(F(o.Xb(a),65).a,new j(d.e.a,d.e.b+d.f.b*s))):t==s8?(u=k(P(q(d,(Ez(),Q2)))),d.e.b+d.f.b+i0&&(c=F(Hy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Hy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(c-p)/(r.Math.abs(l-m)/40)>50&&(p>c?tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s-i/2,d.e.b+i/5.3+d.f.b)):tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s+i/2,d.e.b+i/5.3+d.f.b)))),tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,d.e.b+d.f.b))):(u=k(P(q(d,(Ez(),$2)))),JUe(F(o.Xb(a),65),e)?tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,F(Hy(F(o.Xb(a),65).a),8).b)):d.e.b-i>u?tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,u-n)):F(o.Xb(a),65).a.b>0&&(c=F(Hy(F(o.Xb(a),65).a),8).a,p=d.e.a+d.f.a/2,l=F(Hy(F(o.Xb(a),65).a),8).b,m=d.e.b+d.f.b/2,i>0&&r.Math.abs(c-p)/(r.Math.abs(l-m)/40)>50&&(p>c?tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s-i/2,d.e.b-i/5.3)):tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s+i/2,d.e.b-i/5.3)))),tv(F(o.Xb(a),65).a,new j(d.e.a+d.f.a*s,d.e.b)))}function jdt(e,t,n){var r,i,a,o=t,s,c,l,u,d,f=n,p,m,h,g,_,v,y,b,x,S;if(jS(e.a,o)){if(uh(F(pC(e.a,o),48),f))return 1}else LC(e.a,o,new df);if(jS(e.a,f)){if(uh(F(pC(e.a,f),48),o))return-1}else LC(e.a,f,new df);if(jS(e.e,o)){if(uh(F(pC(e.e,o),48),f))return-1}else LC(e.e,o,new df);if(jS(e.e,f)){if(uh(F(pC(e.a,f),48),o))return 1}else LC(e.e,f,new df);if(o.j!=f.j)return x=Ome(o.j,f.j),x>0?yR(e,o,f,1):yR(e,f,o,1),x;if(S=1,o.e.c.length!=0&&f.e.c.length!=0){if((o.j==(Dz(),x5)&&f.j==x5||o.j==n5&&f.j==n5||o.j==y5&&f.j==y5)&&(S=-S),u=F(kx(o.e,0),17).c,g=F(kx(f.e,0),17).c,c=u.i,m=g.i,c==m)for(y=new D(c.j);y.a0?(yR(e,o,f,S),S):(yR(e,f,o,S),-S);if(r=wGe(F(TE(zS(e.d),vD(new Ce,new Se,new Ee,W(A(gY,1),Z,130,0,[(kj(),hY)]))),20),c,m),r!=0)return r>0?(yR(e,o,f,S),S):(yR(e,f,o,S),-S);if(e.c&&(x=pXe(e,o,f),x!=0))return x>0?(yR(e,o,f,S),S):(yR(e,f,o,S),-S)}return o.g.c.length!=0&&f.g.c.length!=0?((o.j==(Dz(),x5)&&f.j==x5||o.j==y5&&f.j==y5)&&(S=-S),d=F(q(o,(X(),s$)),9),_=F(q(f,s$),9),e.f==(NN(),Q0)&&d&&_&&Yy(d,u$)&&Yy(_,u$)?(s=PL(d,_,e.b,F(q(e.b,l$),15).a),p=PL(_,d,e.b,F(q(e.b,l$),15).a),s>p?(yR(e,o,f,S),S):(yR(e,f,o,S),-S)):e.c&&(x=pXe(e,o,f),x!=0)?x>0?(yR(e,o,f,S),S):(yR(e,f,o,S),-S):(l=0,h=0,Yy(F(kx(o.g,0),17),u$)&&(l=PL(F(kx(o.g,0),246),F(kx(f.g,0),246),e.b,o.g.c.length+o.e.c.length)),Yy(F(kx(f.g,0),17),u$)&&(h=PL(F(kx(f.g,0),246),F(kx(o.g,0),246),e.b,f.g.c.length+f.e.c.length)),d&&d==_||e.g&&(e.g._b(d)&&(l=F(e.g.xc(d),15).a),e.g._b(_)&&(h=F(e.g.xc(_),15).a)),l>h?(yR(e,o,f,S),S):(yR(e,f,o,S),-S))):o.e.c.length!=0&&f.g.c.length!=0?(yR(e,o,f,S),1):o.g.c.length!=0&&f.e.c.length!=0?(yR(e,f,o,S),-1):Yy(o,(X(),u$))&&Yy(f,u$)?(a=o.i.j.c.length,s=PL(o,f,e.b,a),p=PL(f,o,e.b,a),(o.j==(Dz(),x5)&&f.j==x5||o.j==y5&&f.j==y5)&&(S=-S),s>p?(yR(e,o,f,S),S):(yR(e,f,o,S),-S)):(yR(e,f,o,S),-S)}function X(){X=C;var e,t;d$=new fd(ppt),CEt=new fd(`coordinateOrigin`),g$=new fd(`processors`),SEt=new bb(`compoundNode`,(by(),!1)),QQ=new bb(`insideConnections`,!1),OEt=new fd(`originalBendpoints`),kEt=new fd(`originalDummyNodePosition`),AEt=new fd(`originalLabelEdge`),v$=new fd(`representedLabels`),HQ=new fd(`endLabels`),UQ=new fd(`endLabel.origin`),n$=new bb(`labelSide`,(sF(),D8)),c$=new bb(`maxEdgeThickness`,0),y$=new bb(`reversed`,!1),_$=new fd(mpt),a$=new bb(`longEdgeSource`,null),o$=new bb(`longEdgeTarget`,null),i$=new bb(`longEdgeHasLabelDummies`,!1),r$=new bb(`longEdgeBeforeLabelDummy`,!1),VQ=new bb(`edgeConstraint`,(XA(),tQ)),e$=new fd(`inLayerLayoutUnit`),$Q=new bb(`inLayerConstraint`,(uO(),MQ)),t$=new bb(`inLayerSuccessorConstraint`,new Od),EEt=new bb(`inLayerSuccessorConstraintBetweenNonDummies`,!1),m$=new fd(`portDummy`),zQ=new bb(`crossingHint`,K(0)),YQ=new bb(`graphProperties`,(t=F(Rm(CQ),10),new Rb(t,F(yb(t,t.length),10),0))),qQ=new bb(`externalPortSide`,(Dz(),b5)),TEt=new bb(`externalPortSize`,new Nm),GQ=new fd(`externalPortReplacedDummies`),KQ=new fd(`externalPortReplacedDummy`),WQ=new bb(`externalPortConnections`,(e=F(Rm(S5),10),new Rb(e,F(yb(e,e.length),10),0))),h$=new bb(rpt,0),xEt=new fd(`barycenterAssociates`),j$=new fd(`TopSideComments`),FQ=new fd(`BottomSideComments`),RQ=new fd(`CommentConnectionPort`),ZQ=new bb(`inputCollect`,!1),f$=new bb(`outputCollect`,!1),BQ=new bb(`cyclic`,!1),wEt=new fd(`crossHierarchyMap`),D$=new fd(`targetOffset`),new bb(`splineLabelSize`,new Nm),S$=new fd(`spacings`),p$=new bb(`partitionConstraint`,!1),IQ=new fd(`breakingPoint.info`),NEt=new fd(`splines.survivingEdge`),T$=new fd(`splines.route.start`),C$=new fd(`splines.edgeChain`),MEt=new fd(`originalPortConstraints`),x$=new fd(`selfLoopHolder`),w$=new fd(`splines.nsPortY`),u$=new fd(`modelOrder`),l$=new fd(`modelOrder.maximum`),LQ=new fd(`modelOrderGroups.cb.number`),s$=new fd(`longEdgeTargetNode`),JQ=new bb(qpt,!1),b$=new bb(qpt,!1),XQ=new fd(`layerConstraints.hiddenNodes`),jEt=new fd(`layerConstraints.opposidePort`),E$=new fd(`targetNode.modelOrder`),k$=new bb(`tarjan.lowlink`,K($z)),O$=new bb(`tarjan.id`,K(-1)),A$=new bb(`tarjan.onstack`,!1),DEt=new bb(`partOfCycle`,!1),M$=new fd(`medianHeuristic.weight`)}function Hz(){Hz=C;var e,t;l6=new fd($gt),K6=new fd(e_t),ALt=(bP(),Y3),kLt=new rv(sht,ALt),new Dd,u6=new rv(NH,null),jLt=new fd(t_t),FLt=(MF(),Gx(s6,W(A(c6,1),Z,299,0,[r6]))),p6=new rv(UW,FLt),m6=new rv(VW,(by(),!1)),ILt=(hM(),o8),h6=new rv(HW,ILt),zLt=(yM(),_8),RLt=new rv(PW,zLt),HLt=new rv(Zgt,!1),ULt=(Ej(),S8),v6=new rv(NW,ULt),rRt=new kv(12),M6=new rv(IH,rRt),x6=new rv(LH,!1),S6=new rv(qW,!1),j6=new rv(BH,!1),dRt=(LF(),q8),R6=new rv(RH,dRt),U6=new fd(KW),W6=new fd(AH),G6=new fd(PH),q6=new fd(FH),YLt=new Uf,C6=new rv(vht,YLt),PLt=new rv(Sht,!1),WLt=new rv(Cht,!1),new fd(n_t),new rv(r_t,0),XLt=new Ff,w6=new rv(Tht,XLt),A6=new rv(aht,!1),new Dd,hRt=new rv(i_t,1),f6=new fd(a_t),d6=new fd(o_t),$6=new rv(KH,!1),new rv(s_t,!0),K(0),new rv(c_t,K(100)),new rv(l_t,!1),K(0),new rv(u_t,K(4e3)),K(0),new rv(d_t,K(400)),new rv(f_t,!1),new rv(p_t,!1),new rv(m_t,!0),new rv(h_t,!1),NLt=(iN(),U5),MLt=new rv(Qgt,NLt),JLt=(BO(),C5),qLt=new rv(g_t,JLt),KLt=(Yj(),u8),GLt=new rv(__t,KLt),gRt=new rv(qmt,10),_Rt=new rv(Jmt,10),vRt=new rv(Ymt,20),yRt=new rv(Xmt,10),bRt=new rv(MH,2),xRt=new rv(BW,10),SRt=new rv(Zmt,0),Y6=new rv(eht,5),CRt=new rv(Qmt,1),wRt=new rv($mt,1),X6=new rv(jH,20),TRt=new rv(tht,10),ORt=new rv(nht,10),J6=new fd(rht),DRt=new wme,ERt=new rv(Eht,DRt),oRt=new fd(GW),aRt=!1,iRt=new rv(WW,aRt),QLt=new kv(5),ZLt=new rv(uht,QLt),$Lt=(iL(),t=F(Rm(L8),10),new Rb(t,F(yb(t,t.length),10),0)),T6=new rv(WH,$Lt),lRt=(tP(),z8),cRt=new rv(pht,lRt),P6=new fd(mht),F6=new fd(hht),I6=new fd(ght),N6=new fd(_ht),eRt=(e=F(Rm(k5),10),new Rb(e,F(yb(e,e.length),10),0)),E6=new rv(UH,eRt),nRt=WM((hR(),M5)),k6=new rv(HH,nRt),tRt=new j(0,0),O6=new rv(QH,tRt),D6=new rv(VH,!1),LLt=(NO(),d8),_6=new rv(bht,LLt),g6=new rv(zH,!1),new fd(v_t),K(1),new rv(y_t,null),uRt=new fd(wht),z6=new fd(xht),mRt=(Dz(),b5),H6=new rv(oht,mRt),L6=new fd(iht),fRt=(II(),WM(Q8)),V6=new rv(GH,fRt),B6=new rv(dht,!1),pRt=new rv(fht,!0),K(1),NRt=new rv(aK,K(3)),K(1),FRt=new rv(b_t,K(4)),new Dd,t8=new rv(qH,1),n8=new rv(oK,null),Q6=new rv(JH,150),Z6=new rv(YH,1.414),e8=new rv(XH,null),kRt=new rv(x_t,1),y6=new rv(cht,!1),b6=new rv(lht,!1),BLt=new rv(yht,1),VLt=(XF(),y8),new rv(S_t,VLt),sRt=!0,PRt=(OE(),V5),jRt=(gM(),z5),MRt=z5,ARt=z5}function Uz(){Uz=C,kwt=new vg(`DIRECTION_PREPROCESSOR`,0),Ewt=new vg(`COMMENT_PREPROCESSOR`,1),IX=new vg(`EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER`,2),BX=new vg(`INTERACTIVE_EXTERNAL_PORT_POSITIONER`,3),Ywt=new vg(`PARTITION_PREPROCESSOR`,4),UX=new vg(`LABEL_DUMMY_INSERTER`,5),iZ=new vg(`SELF_LOOP_PREPROCESSOR`,6),JX=new vg(`LAYER_CONSTRAINT_PREPROCESSOR`,7),qwt=new vg(`PARTITION_MIDPROCESSOR`,8),Lwt=new vg(`HIGH_DEGREE_NODE_LAYER_PROCESSOR`,9),Gwt=new vg(`NODE_PROMOTION`,10),qX=new vg(`LAYER_CONSTRAINT_POSTPROCESSOR`,11),Jwt=new vg(`PARTITION_POSTPROCESSOR`,12),Pwt=new vg(`HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR`,13),Xwt=new vg(`SEMI_INTERACTIVE_CROSSMIN_PROCESSOR`,14),bwt=new vg(`BREAKING_POINT_INSERTER`,15),XX=new vg(`LONG_EDGE_SPLITTER`,16),eZ=new vg(`PORT_SIDE_PROCESSOR`,17),VX=new vg(`INVERTED_PORT_PROCESSOR`,18),$X=new vg(`PORT_LIST_SORTER`,19),Qwt=new vg(`SORT_BY_INPUT_ORDER_OF_MODEL`,20),QX=new vg(`NORTH_SOUTH_PORT_PREPROCESSOR`,21),xwt=new vg(`BREAKING_POINT_PROCESSOR`,22),Kwt=new vg(Rpt,23),$wt=new vg(zpt,24),nZ=new vg(`SELF_LOOP_PORT_RESTORER`,25),ywt=new vg(`ALTERNATING_LAYER_UNZIPPER`,26),Zwt=new vg(`SINGLE_EDGE_GRAPH_WRAPPER`,27),HX=new vg(`IN_LAYER_CONSTRAINT_PROCESSOR`,28),jwt=new vg(`END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR`,29),Hwt=new vg(`LABEL_AND_NODE_SIZE_PROCESSOR`,30),Vwt=new vg(`INNERMOST_NODE_MARGIN_CALCULATOR`,31),aZ=new vg(`SELF_LOOP_ROUTER`,32),wwt=new vg(`COMMENT_NODE_MARGIN_CALCULATOR`,33),RX=new vg(`END_LABEL_PREPROCESSOR`,34),GX=new vg(`LABEL_DUMMY_SWITCHER`,35),Cwt=new vg(`CENTER_LABEL_MANAGEMENT_PROCESSOR`,36),KX=new vg(`LABEL_SIDE_SELECTOR`,37),zwt=new vg(`HYPEREDGE_DUMMY_MERGER`,38),Fwt=new vg(`HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR`,39),Wwt=new vg(`NODE_PLACEMENT_REPEATER`,40),Uwt=new vg(`LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR`,41),zX=new vg(`HIERARCHICAL_PORT_POSITION_PROCESSOR`,42),Dwt=new vg(`CONSTRAINTS_POSTPROCESSOR`,43),Twt=new vg(`COMMENT_POSTPROCESSOR`,44),Bwt=new vg(`HYPERNODE_PROCESSOR`,45),Iwt=new vg(`HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER`,46),YX=new vg(`LONG_EDGE_JOINER`,47),rZ=new vg(`SELF_LOOP_POSTPROCESSOR`,48),Swt=new vg(`BREAKING_POINT_REMOVER`,49),ZX=new vg(`NORTH_SOUTH_PORT_POSTPROCESSOR`,50),Rwt=new vg(`HORIZONTAL_COMPACTOR`,51),WX=new vg(`LABEL_DUMMY_REMOVER`,52),Mwt=new vg(`FINAL_SPLINE_BENDPOINTS_CALCULATOR`,53),Awt=new vg(`END_LABEL_SORTER`,54),tZ=new vg(`REVERSED_EDGE_RESTORER`,55),LX=new vg(`END_LABEL_POSTPROCESSOR`,56),Nwt=new vg(`HIERARCHICAL_NODE_RESIZER`,57),Owt=new vg(`DIRECTION_POSTPROCESSOR`,58)}function Mdt(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C,re,ie,ae,oe,se,w,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De=0,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie;for(oe=t,ce=0,de=oe.length;ce0&&(e.a[ve.p]=De++)}for(Me=0,se=n,le=0,fe=se.length;le0;){for(ve=(Ky(Se.b>0),F(Se.a.Xb(Se.c=--Se.b),12)),xe=0,c=new D(ve.e);c.a0&&(ve.j==(Dz(),n5)?(e.a[ve.p]=Me,++Me):(e.a[ve.p]=Me+pe+he,++he))}Me+=he}for(be=new kd,h=new mv,ae=t,w=0,ue=ae.length;wu.b&&(u.b=Ce)):ve.i.c==Ee&&(Ceu.c&&(u.c=Ce));for(kD(g,0,g.length,null),je=H(q9,cV,30,g.length,15,1),i=H(q9,cV,30,Me+1,15,1),v=0;v0;)te%2>0&&(a+=Fe[te+1]),te=(te-1)/2|0,++Fe[te];for(C=H(sMt,iB,370,g.length*2,0,1),x=0;x0&&Rw(w.f),Y(v,n8)!=null&&(!v.a&&(v.a=new I(s7,v,10,11)),v.a)&&(!v.a&&(v.a=new I(s7,v,10,11)),v.a).i>0?(c=F(Y(v,n8),522),xe=c.Sg(v),Sv(v,r.Math.max(v.g,xe.a+pe.b+pe.c),r.Math.max(v.f,xe.b+pe.d+pe.a))):(!v.a&&(v.a=new I(s7,v,10,11)),v.a).i!=0&&(xe=new j(k(P(Y(v,Q6))),k(P(Y(v,Q6)))/k(P(Y(v,Z6)))),Sv(v,r.Math.max(v.g,xe.a+pe.b+pe.c),r.Math.max(v.f,xe.b+pe.d+pe.a)));if(fe=F(Y(t,M6),104),m=t.g-(fe.b+fe.c),p=t.f-(fe.d+fe.a),we.ah(`Available Child Area: (`+m+`|`+p+`)`),pP(t,u6,m/p),yYe(t,a,i.dh(ue)),F(Y(t,e8),281)==B5&&(Nz(t),Sv(t,fe.b+k(P(Y(t,f6)))+fe.c,fe.d+k(P(Y(t,d6)))+fe.a)),we.ah(`Executed layout algorithm: `+rb(Y(t,l6))+` on node `+t.k),F(Y(t,e8),281)==z5){if(m<0||p<0)throw O(new Qp(`The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. `+t.k));for(lD(t,f6)||lD(t,d6)||Nz(t),g=k(P(Y(t,f6))),h=k(P(Y(t,d6))),we.ah(`Desired Child Area: (`+g+`|`+h+`)`),he=m/g,ge=p/h,me=r.Math.min(he,r.Math.min(ge,k(P(Y(t,kRt))))),pP(t,t8,me),we.ah(t.k+` -- Local Scale Factor (X|Y): (`+he+`|`+ge+`)`),x=F(Y(t,p6),22),o=0,s=0,me'?`:kb(hvt,e)?`'(?<' or '(? toIndex: `,Nft=`, toIndex: `,Pft=`Index: `,Fft=`, Size: `,XV=`org.eclipse.elk.alg.common`,ZV={51:1},Ift=`org.eclipse.elk.alg.common.compaction`,Lft=`Scanline/EventHandler`,QV=`org.eclipse.elk.alg.common.compaction.oned`,Rft=`CNode belongs to another CGroup.`,zft=`ISpacingsHandler/1`,$V=`The `,eH=` instance has been finished already.`,Bft=`The direction `,Vft=` is not supported by the CGraph instance.`,Hft=`OneDimensionalCompactor`,Uft=`OneDimensionalCompactor/lambda$0$Type`,Wft=`Quadruplet`,Gft=`ScanlineConstraintCalculator`,Kft=`ScanlineConstraintCalculator/ConstraintsScanlineHandler`,qft=`ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type`,Jft=`ScanlineConstraintCalculator/Timestamp`,Yft=`ScanlineConstraintCalculator/lambda$0$Type`,tH={178:1,46:1},nH=`org.eclipse.elk.alg.common.networksimplex`,rH={171:1,3:1,4:1},Xft=`org.eclipse.elk.alg.common.nodespacing`,iH=`org.eclipse.elk.alg.common.nodespacing.cellsystem`,aH=`CENTER`,Zft={216:1,337:1},Qft={3:1,4:1,5:1,593:1},oH=`LEFT`,sH=`RIGHT`,$ft=`Vertical alignment cannot be null`,ept=`BOTTOM`,cH=`org.eclipse.elk.alg.common.nodespacing.internal`,lH=`UNDEFINED`,uH=.01,dH=`org.eclipse.elk.alg.common.nodespacing.internal.algorithm`,tpt=`LabelPlacer/lambda$0$Type`,npt=`LabelPlacer/lambda$1$Type`,rpt=`portRatioOrPosition`,fH=`org.eclipse.elk.alg.common.overlaps`,pH=`DOWN`,mH=`org.eclipse.elk.alg.common.spore`,hH={3:1,4:1,5:1,198:1},ipt={3:1,6:1,4:1,5:1,90:1,110:1},gH=`org.eclipse.elk.alg.force`,apt=`ComponentsProcessor`,opt=`ComponentsProcessor/1`,spt=`ElkGraphImporter/lambda$0$Type`,_H={214:1},vH=`org.eclipse.elk.core`,yH=`org.eclipse.elk.graph.properties`,cpt=`IPropertyHolder`,bH=`org.eclipse.elk.alg.force.graph`,lpt=`Component Layout`,upt=`org.eclipse.elk.alg.force.model`,xH=`org.eclipse.elk.core.data`,SH=`org.eclipse.elk.force.model`,dpt=`org.eclipse.elk.force.iterations`,fpt=`org.eclipse.elk.force.repulsivePower`,CH=`org.eclipse.elk.force.temperature`,wH=.001,TH=`org.eclipse.elk.force.repulsion`,EH={148:1},DH=`org.eclipse.elk.alg.force.options`,OH=1.600000023841858,kH=`org.eclipse.elk.force`,AH=`org.eclipse.elk.priority`,jH=`org.eclipse.elk.spacing.nodeNode`,MH=`org.eclipse.elk.spacing.edgeLabel`,NH=`org.eclipse.elk.aspectRatio`,PH=`org.eclipse.elk.randomSeed`,FH=`org.eclipse.elk.separateConnectedComponents`,IH=`org.eclipse.elk.padding`,LH=`org.eclipse.elk.interactive`,RH=`org.eclipse.elk.portConstraints`,zH=`org.eclipse.elk.edgeLabels.inline`,BH=`org.eclipse.elk.omitNodeMicroLayout`,VH=`org.eclipse.elk.nodeSize.fixedGraphSize`,HH=`org.eclipse.elk.nodeSize.options`,UH=`org.eclipse.elk.nodeSize.constraints`,WH=`org.eclipse.elk.nodeLabels.placement`,GH=`org.eclipse.elk.portLabels.placement`,KH=`org.eclipse.elk.topdownLayout`,qH=`org.eclipse.elk.topdown.scaleFactor`,JH=`org.eclipse.elk.topdown.hierarchicalNodeWidth`,YH=`org.eclipse.elk.topdown.hierarchicalNodeAspectRatio`,XH=`org.eclipse.elk.topdown.nodeType`,ppt=`origin`,mpt=`random`,hpt=`boundingBox.upLeft`,gpt=`boundingBox.lowRight`,_pt=`org.eclipse.elk.stress.fixed`,vpt=`org.eclipse.elk.stress.desiredEdgeLength`,ypt=`org.eclipse.elk.stress.dimension`,bpt=`org.eclipse.elk.stress.epsilon`,xpt=`org.eclipse.elk.stress.iterationLimit`,ZH=`org.eclipse.elk.stress`,Spt=`ELK Stress`,QH=`org.eclipse.elk.nodeSize.minimum`,$H=`org.eclipse.elk.alg.force.stress`,Cpt=`Layered layout`,eU=`org.eclipse.elk.alg.layered`,tU=`org.eclipse.elk.alg.layered.compaction.components`,nU=`org.eclipse.elk.alg.layered.compaction.oned`,rU=`org.eclipse.elk.alg.layered.compaction.oned.algs`,iU=`org.eclipse.elk.alg.layered.compaction.recthull`,aU=`org.eclipse.elk.alg.layered.components`,oU=`NONE`,sU=`MODEL_ORDER`,cU={3:1,6:1,4:1,10:1,5:1,126:1},wpt={3:1,6:1,4:1,5:1,135:1,90:1,110:1},lU=`org.eclipse.elk.alg.layered.compound`,uU={43:1},dU=`org.eclipse.elk.alg.layered.graph`,fU=` -> `,Tpt=`Not supported by LGraph`,Ept=`Port side is undefined`,pU={3:1,6:1,4:1,5:1,324:1,135:1,90:1,110:1},mU={3:1,6:1,4:1,5:1,135:1,199:1,209:1,90:1,110:1},Dpt={3:1,6:1,4:1,5:1,135:1,2007:1,209:1,90:1,110:1},Opt=`([{"' \r +`,kpt=`)]}"' \r +`,Apt=`The given string contains parts that cannot be parsed as numbers.`,hU=`org.eclipse.elk.core.math`,jpt={3:1,4:1,140:1,213:1,414:1},Mpt={3:1,4:1,104:1,213:1,414:1},gU=`org.eclipse.elk.alg.layered.graph.transform`,Npt=`ElkGraphImporter`,Ppt=`ElkGraphImporter/lambda$1$Type`,Fpt=`ElkGraphImporter/lambda$2$Type`,Ipt=`ElkGraphImporter/lambda$4$Type`,_U=`org.eclipse.elk.alg.layered.intermediate`,Lpt=`Node margin calculation`,Rpt=`ONE_SIDED_GREEDY_SWITCH`,zpt=`TWO_SIDED_GREEDY_SWITCH`,vU=`No implementation is available for the layout processor `,yU=`IntermediateProcessorStrategy`,bU=`Node '`,Bpt=`FIRST_SEPARATE`,Vpt=`LAST_SEPARATE`,Hpt=`Odd port side processing`,xU=`org.eclipse.elk.alg.layered.intermediate.compaction`,SU=`org.eclipse.elk.alg.layered.intermediate.greedyswitch`,CU=`org.eclipse.elk.alg.layered.p3order.counting`,wU={220:1},TU=`org.eclipse.elk.alg.layered.intermediate.loops`,EU=`org.eclipse.elk.alg.layered.intermediate.loops.ordering`,DU=`org.eclipse.elk.alg.layered.intermediate.loops.routing`,OU=`org.eclipse.elk.alg.layered.intermediate.preserveorder`,kU=`org.eclipse.elk.alg.layered.intermediate.wrapping`,AU=`org.eclipse.elk.alg.layered.options`,jU=`INTERACTIVE`,Upt=`GREEDY`,Wpt=`DEPTH_FIRST`,Gpt=`EDGE_LENGTH`,Kpt=`SELF_LOOPS`,qpt=`firstTryWithInitialOrder`,Jpt=`org.eclipse.elk.layered.directionCongruency`,Ypt=`org.eclipse.elk.layered.feedbackEdges`,MU=`org.eclipse.elk.layered.interactiveReferencePoint`,Xpt=`org.eclipse.elk.layered.mergeEdges`,Zpt=`org.eclipse.elk.layered.mergeHierarchyEdges`,Qpt=`org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides`,$pt=`org.eclipse.elk.layered.portSortingStrategy`,emt=`org.eclipse.elk.layered.thoroughness`,tmt=`org.eclipse.elk.layered.unnecessaryBendpoints`,nmt=`org.eclipse.elk.layered.generatePositionAndLayerIds`,NU=`org.eclipse.elk.layered.cycleBreaking.strategy`,PU=`org.eclipse.elk.layered.layering.strategy`,rmt=`org.eclipse.elk.layered.layering.layerConstraint`,imt=`org.eclipse.elk.layered.layering.layerChoiceConstraint`,amt=`org.eclipse.elk.layered.layering.layerId`,FU=`org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth`,IU=`org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor`,LU=`org.eclipse.elk.layered.layering.nodePromotion.strategy`,RU=`org.eclipse.elk.layered.layering.nodePromotion.maxIterations`,zU=`org.eclipse.elk.layered.layering.coffmanGraham.layerBound`,BU=`org.eclipse.elk.layered.crossingMinimization.strategy`,omt=`org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder`,VU=`org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness`,HU=`org.eclipse.elk.layered.crossingMinimization.semiInteractive`,smt=`org.eclipse.elk.layered.crossingMinimization.inLayerPredOf`,cmt=`org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf`,lmt=`org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint`,umt=`org.eclipse.elk.layered.crossingMinimization.positionId`,dmt=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold`,UU=`org.eclipse.elk.layered.crossingMinimization.greedySwitch.type`,WU=`org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type`,GU=`org.eclipse.elk.layered.nodePlacement.strategy`,KU=`org.eclipse.elk.layered.nodePlacement.favorStraightEdges`,qU=`org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening`,JU=`org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment`,YU=`org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening`,XU=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility`,ZU=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default`,QU=`org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.recomputeNodePlacement`,fmt=`org.eclipse.elk.layered.edgeRouting.selfLoopDistribution`,pmt=`org.eclipse.elk.layered.edgeRouting.selfLoopOrdering`,$U=`org.eclipse.elk.layered.edgeRouting.splines.mode`,eW=`org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor`,tW=`org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth`,mmt=`org.eclipse.elk.layered.spacing.baseValue`,hmt=`org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers`,gmt=`org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers`,_mt=`org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers`,vmt=`org.eclipse.elk.layered.priority.direction`,ymt=`org.eclipse.elk.layered.priority.shortness`,bmt=`org.eclipse.elk.layered.priority.straightness`,nW=`org.eclipse.elk.layered.compaction.connectedComponents`,xmt=`org.eclipse.elk.layered.compaction.postCompaction.strategy`,Smt=`org.eclipse.elk.layered.compaction.postCompaction.constraints`,rW=`org.eclipse.elk.layered.highDegreeNodes.treatment`,iW=`org.eclipse.elk.layered.highDegreeNodes.threshold`,aW=`org.eclipse.elk.layered.highDegreeNodes.treeHeight`,oW=`org.eclipse.elk.layered.wrapping.strategy`,sW=`org.eclipse.elk.layered.wrapping.additionalEdgeSpacing`,cW=`org.eclipse.elk.layered.wrapping.correctionFactor`,lW=`org.eclipse.elk.layered.wrapping.cutting.strategy`,uW=`org.eclipse.elk.layered.wrapping.cutting.cuts`,dW=`org.eclipse.elk.layered.wrapping.cutting.msd.freedom`,fW=`org.eclipse.elk.layered.wrapping.validify.strategy`,pW=`org.eclipse.elk.layered.wrapping.validify.forbiddenIndices`,mW=`org.eclipse.elk.layered.wrapping.multiEdge.improveCuts`,hW=`org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty`,gW=`org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges`,_W=`org.eclipse.elk.layered.layerUnzipping.strategy`,vW=`org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength`,yW=`org.eclipse.elk.layered.layerUnzipping.layerSplit`,bW=`org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges`,Cmt=`org.eclipse.elk.layered.edgeLabels.sideSelection`,wmt=`org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy`,xW=`org.eclipse.elk.layered.considerModelOrder.strategy`,Tmt=`org.eclipse.elk.layered.considerModelOrder.portModelOrder`,SW=`org.eclipse.elk.layered.considerModelOrder.noModelOrder`,CW=`org.eclipse.elk.layered.considerModelOrder.components`,Emt=`org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy`,wW=`org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence`,TW=`org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence`,EW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId`,DW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId`,OW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId`,Dmt=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy`,kW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId`,AW=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId`,Omt=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy`,kmt=`org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders`,jW=`layering`,Amt=`layering.minWidth`,jmt=`layering.nodePromotion`,MW=`crossingMinimization`,NW=`org.eclipse.elk.hierarchyHandling`,Mmt=`crossingMinimization.greedySwitch`,Nmt=`nodePlacement`,Pmt=`nodePlacement.bk`,Fmt=`nodePlacement.networkSimplex.nodeFlexibility`,Imt=`edgeRouting`,PW=`org.eclipse.elk.edgeRouting`,FW=`spacing`,Lmt=`priority`,Rmt=`compaction`,zmt=`compaction.postCompaction`,Bmt=`Specifies whether and how post-process compaction is applied.`,Vmt=`highDegreeNodes`,Hmt=`wrapping`,Umt=`wrapping.cutting`,Wmt=`wrapping.validify`,Gmt=`wrapping.multiEdge`,IW=`layerUnzipping`,LW=`edgeLabels`,RW=`considerModelOrder`,zW=`considerModelOrder.groupModelOrder`,Kmt=`Group ID of the Node Type`,qmt=`org.eclipse.elk.spacing.commentComment`,Jmt=`org.eclipse.elk.spacing.commentNode`,Ymt=`org.eclipse.elk.spacing.componentComponent`,Xmt=`org.eclipse.elk.spacing.edgeEdge`,BW=`org.eclipse.elk.spacing.edgeNode`,Zmt=`org.eclipse.elk.spacing.labelLabel`,Qmt=`org.eclipse.elk.spacing.labelPortHorizontal`,$mt=`org.eclipse.elk.spacing.labelPortVertical`,eht=`org.eclipse.elk.spacing.labelNode`,tht=`org.eclipse.elk.spacing.nodeSelfLoop`,nht=`org.eclipse.elk.spacing.portPort`,rht=`org.eclipse.elk.spacing.individual`,iht=`org.eclipse.elk.port.borderOffset`,aht=`org.eclipse.elk.noLayout`,oht=`org.eclipse.elk.port.side`,VW=`org.eclipse.elk.debugMode`,sht=`org.eclipse.elk.alignment`,cht=`org.eclipse.elk.insideSelfLoops.activate`,lht=`org.eclipse.elk.insideSelfLoops.yo`,HW=`org.eclipse.elk.direction`,uht=`org.eclipse.elk.nodeLabels.padding`,dht=`org.eclipse.elk.portLabels.nextToPortIfPossible`,fht=`org.eclipse.elk.portLabels.treatAsGroup`,pht=`org.eclipse.elk.portAlignment.default`,mht=`org.eclipse.elk.portAlignment.north`,hht=`org.eclipse.elk.portAlignment.south`,ght=`org.eclipse.elk.portAlignment.west`,_ht=`org.eclipse.elk.portAlignment.east`,UW=`org.eclipse.elk.contentAlignment`,vht=`org.eclipse.elk.junctionPoints`,yht=`org.eclipse.elk.edge.thickness`,bht=`org.eclipse.elk.edgeLabels.placement`,xht=`org.eclipse.elk.port.index`,Sht=`org.eclipse.elk.commentBox`,Cht=`org.eclipse.elk.hypernode`,wht=`org.eclipse.elk.port.anchor`,WW=`org.eclipse.elk.partitioning.activate`,GW=`org.eclipse.elk.partitioning.partition`,KW=`org.eclipse.elk.position`,Tht=`org.eclipse.elk.margins`,Eht=`org.eclipse.elk.spacing.portsSurrounding`,qW=`org.eclipse.elk.interactiveLayout`,JW=`org.eclipse.elk.core.util`,Dht={3:1,4:1,5:1,591:1},Oht=`NETWORK_SIMPLEX`,kht=`SIMPLE`,YW={95:1,43:1},XW=`org.eclipse.elk.alg.layered.p1cycles`,Aht=`Depth-first cycle removal`,jht=`Model order cycle breaking`,ZW=`org.eclipse.elk.alg.layered.p2layers`,Mht={406:1,220:1},Nht={831:1,3:1,4:1},QW=`org.eclipse.elk.alg.layered.p3order`,$W=17976931348623157e292,eG=5e-324,tG=`org.eclipse.elk.alg.layered.p4nodes`,Pht={3:1,4:1,5:1,839:1},nG=1e-5,rG=`org.eclipse.elk.alg.layered.p4nodes.bk`,iG=`org.eclipse.elk.alg.layered.p5edges`,aG=`org.eclipse.elk.alg.layered.p5edges.orthogonal`,oG=`org.eclipse.elk.alg.layered.p5edges.orthogonal.direction`,sG=1e-6,cG=`org.eclipse.elk.alg.layered.p5edges.splines`,lG=.09999999999999998,uG=1e-8,Fht=4.71238898038469,Iht=1.5707963267948966,Lht=3.141592653589793,dG=`org.eclipse.elk.alg.mrtree`,fG=.10000000149011612,pG=`SUPER_ROOT`,mG=`org.eclipse.elk.alg.mrtree.graph`,Rht=-17976931348623157e292,hG=`org.eclipse.elk.alg.mrtree.intermediate`,zht=`Processor compute fanout`,gG={3:1,6:1,4:1,5:1,523:1,90:1,110:1},Bht=`Set neighbors in level`,_G=`org.eclipse.elk.alg.mrtree.options`,Vht=`DESCENDANTS`,Hht=`org.eclipse.elk.mrtree.compaction`,Uht=`org.eclipse.elk.mrtree.edgeEndTextureLength`,Wht=`org.eclipse.elk.mrtree.treeLevel`,Ght=`org.eclipse.elk.mrtree.positionConstraint`,Kht=`org.eclipse.elk.mrtree.weighting`,qht=`org.eclipse.elk.mrtree.edgeRoutingMode`,Jht=`org.eclipse.elk.mrtree.searchOrder`,Yht=`Position Constraint`,vG=`org.eclipse.elk.mrtree`,Xht=`org.eclipse.elk.tree`,Zht=`Processor arrange level`,yG=`org.eclipse.elk.alg.mrtree.p2order`,bG=`org.eclipse.elk.alg.mrtree.p4route`,Qht=`org.eclipse.elk.alg.radial`,xG=6.283185307179586,$ht=`Before`,SG=`After`,egt=`org.eclipse.elk.alg.radial.intermediate`,tgt=`COMPACTION`,CG=`org.eclipse.elk.alg.radial.intermediate.compaction`,ngt={3:1,4:1,5:1,90:1},rgt=`org.eclipse.elk.alg.radial.intermediate.optimization`,wG=`No implementation is available for the layout option `,TG=`org.eclipse.elk.alg.radial.options`,igt=`CompactionStrategy`,agt=`org.eclipse.elk.radial.centerOnRoot`,ogt=`org.eclipse.elk.radial.orderId`,sgt=`org.eclipse.elk.radial.radius`,EG=`org.eclipse.elk.radial.rotate`,DG=`org.eclipse.elk.radial.compactor`,OG=`org.eclipse.elk.radial.compactionStepSize`,cgt=`org.eclipse.elk.radial.sorter`,lgt=`org.eclipse.elk.radial.wedgeCriteria`,ugt=`org.eclipse.elk.radial.optimizationCriteria`,kG=`org.eclipse.elk.radial.rotation.targetAngle`,AG=`org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace`,dgt=`org.eclipse.elk.radial.rotation.outgoingEdgeAngles`,fgt=`Compaction`,pgt=`rotation`,jG=`org.eclipse.elk.radial`,mgt=`org.eclipse.elk.alg.radial.p1position.wedge`,hgt=`org.eclipse.elk.alg.radial.sorting`,ggt=5.497787143782138,_gt=3.9269908169872414,vgt=2.356194490192345,ygt=`org.eclipse.elk.alg.rectpacking`,MG=`org.eclipse.elk.alg.rectpacking.intermediate`,NG=`org.eclipse.elk.alg.rectpacking.options`,bgt=`org.eclipse.elk.rectpacking.trybox`,xgt=`org.eclipse.elk.rectpacking.currentPosition`,Sgt=`org.eclipse.elk.rectpacking.desiredPosition`,Cgt=`org.eclipse.elk.rectpacking.inNewRow`,wgt=`org.eclipse.elk.rectpacking.orderBySize`,Tgt=`org.eclipse.elk.rectpacking.widthApproximation.strategy`,Egt=`org.eclipse.elk.rectpacking.widthApproximation.targetWidth`,Dgt=`org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal`,Ogt=`org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift`,kgt=`org.eclipse.elk.rectpacking.packing.strategy`,Agt=`org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation`,jgt=`org.eclipse.elk.rectpacking.packing.compaction.iterations`,Mgt=`org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy`,PG=`widthApproximation`,Ngt=`Compaction Strategy`,Pgt=`packing.compaction`,FG=`org.eclipse.elk.rectpacking`,IG=`org.eclipse.elk.alg.rectpacking.p1widthapproximation`,LG=`org.eclipse.elk.alg.rectpacking.p2packing`,Fgt=`No Compaction`,Igt=`org.eclipse.elk.alg.rectpacking.p3whitespaceelimination`,RG=`org.eclipse.elk.alg.rectpacking.util`,zG=`No implementation available for `,BG=`org.eclipse.elk.alg.spore`,VG=`org.eclipse.elk.alg.spore.options`,HG=`org.eclipse.elk.sporeCompaction`,UG=`org.eclipse.elk.underlyingLayoutAlgorithm`,Lgt=`org.eclipse.elk.processingOrder.treeConstruction`,Rgt=`org.eclipse.elk.processingOrder.spanningTreeCostFunction`,WG=`org.eclipse.elk.processingOrder.preferredRoot`,GG=`org.eclipse.elk.processingOrder.rootSelection`,KG=`org.eclipse.elk.structure.structureExtractionStrategy`,zgt=`org.eclipse.elk.compaction.compactionStrategy`,Bgt=`org.eclipse.elk.compaction.orthogonal`,Vgt=`org.eclipse.elk.overlapRemoval.maxIterations`,Hgt=`org.eclipse.elk.overlapRemoval.runScanline`,qG=`processingOrder`,Ugt=`overlapRemoval`,JG=`org.eclipse.elk.sporeOverlap`,Wgt=`org.eclipse.elk.alg.spore.p1structure`,YG=`org.eclipse.elk.alg.spore.p2processingorder`,XG=`org.eclipse.elk.alg.spore.p3execution`,Ggt=`Topdown Layout`,Kgt=`Invalid index: `,ZG=`org.eclipse.elk.core.alg`,QG={342:1},$G={296:1},qgt=`Make sure its type is registered with the `,Jgt=` utility class.`,eK=`true`,tK=`false`,Ygt=`Couldn't clone property '`,nK=.05,rK=`org.eclipse.elk.core.options`,Xgt=1.2999999523162842,iK=`org.eclipse.elk.box`,Zgt=`org.eclipse.elk.expandNodes`,Qgt=`org.eclipse.elk.box.packingMode`,$gt=`org.eclipse.elk.algorithm`,e_t=`org.eclipse.elk.resolvedAlgorithm`,t_t=`org.eclipse.elk.bendPoints`,n_t=`org.eclipse.elk.labelManager`,r_t=`org.eclipse.elk.softwrappingFuzziness`,i_t=`org.eclipse.elk.scaleFactor`,a_t=`org.eclipse.elk.childAreaWidth`,o_t=`org.eclipse.elk.childAreaHeight`,s_t=`org.eclipse.elk.animate`,c_t=`org.eclipse.elk.animTimeFactor`,l_t=`org.eclipse.elk.layoutAncestors`,u_t=`org.eclipse.elk.maxAnimTime`,d_t=`org.eclipse.elk.minAnimTime`,f_t=`org.eclipse.elk.progressBar`,p_t=`org.eclipse.elk.validateGraph`,m_t=`org.eclipse.elk.validateOptions`,h_t=`org.eclipse.elk.zoomToFit`,g_t=`org.eclipse.elk.json.shapeCoords`,__t=`org.eclipse.elk.json.edgeCoords`,v_t=`org.eclipse.elk.font.name`,y_t=`org.eclipse.elk.font.size`,aK=`org.eclipse.elk.topdown.sizeCategories`,b_t=`org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight`,oK=`org.eclipse.elk.topdown.sizeApproximator`,x_t=`org.eclipse.elk.topdown.scaleCap`,S_t=`org.eclipse.elk.edge.type`,C_t=`partitioning`,w_t=`nodeLabels`,sK=`portAlignment`,cK=`nodeSize`,lK=`port`,T_t=`portLabels`,uK=`topdown`,E_t=`insideSelfLoops`,D_t=`INHERIT`,dK=`org.eclipse.elk.fixed`,fK=`org.eclipse.elk.random`,pK={3:1,35:1,24:1,522:1,288:1},O_t=`port must have a parent node to calculate the port side`,k_t=`The edge needs to have exactly one edge section. Found: `,mK=`org.eclipse.elk.core.util.adapters`,hK=`org.eclipse.emf.ecore`,gK=`org.eclipse.elk.graph`,A_t=`EMapPropertyHolder`,j_t=`ElkBendPoint`,M_t=`ElkGraphElement`,N_t=`ElkConnectableShape`,P_t=`ElkEdge`,F_t=`ElkEdgeSection`,I_t=`EModelElement`,L_t=`ENamedElement`,R_t=`ElkLabel`,z_t=`ElkNode`,B_t=`ElkPort`,V_t={94:1,93:1},_K=`org.eclipse.emf.common.notify.impl`,vK=`The feature '`,yK=`' is not a valid changeable feature`,H_t=`Expecting null`,bK=`' is not a valid feature`,U_t=`The feature ID`,W_t=` is not a valid feature ID`,xK=32768,G_t={109:1,94:1,93:1,57:1,52:1,100:1},SK=`org.eclipse.emf.ecore.impl`,CK=2048,wK=`org.eclipse.elk.graph.impl`,TK=`Recursive containment not allowed for `,EK=`The datatype '`,DK=`' is not a valid classifier`,OK=`The value '`,kK={195:1,3:1,4:1},AK=`The class '`,jK=`http://www.eclipse.org/elk/ElkGraph`,K_t=`property`,MK=`value`,NK=`source`,q_t=`properties`,J_t=`identifier`,PK=`height`,FK=`width`,IK=`parent`,LK=`text`,RK=`children`,Y_t=`hierarchical`,X_t=`sources`,zK=`targets`,BK=`sections`,VK=`bendPoints`,Z_t=`outgoingShape`,Q_t=`incomingShape`,$_t=`outgoingSections`,evt=`incomingSections`,HK=`org.eclipse.emf.common.util`,tvt=`Severe implementation error in the Json to ElkGraph importer.`,UK=`id`,WK=`org.eclipse.elk.graph.json`,GK=`Unhandled parameter types: `,nvt=`startPoint`,rvt=`An edge must have at least one source and one target (edge id: '`,KK=`').`,ivt=`Referenced edge section does not exist: `,avt=` (edge id: '`,ovt=`target`,svt=`sourcePoint`,cvt=`targetPoint`,qK=`group`,JK=`name`,lvt=`connectableShape cannot be null`,uvt=`edge cannot be null`,dvt=`Passed edge is not 'simple'.`,YK=`org.eclipse.elk.graph.util`,XK=`The 'no duplicates' constraint is violated`,ZK=`targetIndex=`,QK=`, size=`,$K=`sourceIndex=`,eq={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},tq={3:1,4:1,20:1,31:1,56:1,18:1,50:1,16:1,59:1,71:1,67:1,61:1,586:1},nq=`logging`,fvt=`measureExecutionTime`,pvt=`parser.parse.1`,mvt=`parser.parse.2`,rq=`parser.next.1`,iq=`parser.next.2`,hvt=`parser.next.3`,gvt=`parser.next.4`,aq=`parser.factor.1`,_vt=`parser.factor.2`,vvt=`parser.factor.3`,yvt=`parser.factor.4`,bvt=`parser.factor.5`,xvt=`parser.factor.6`,Svt=`parser.atom.1`,Cvt=`parser.atom.2`,wvt=`parser.atom.3`,Tvt=`parser.atom.4`,oq=`parser.atom.5`,Evt=`parser.cc.1`,sq=`parser.cc.2`,Dvt=`parser.cc.3`,Ovt=`parser.cc.5`,kvt=`parser.cc.6`,Avt=`parser.cc.7`,cq=`parser.cc.8`,jvt=`parser.ope.1`,Mvt=`parser.ope.2`,Nvt=`parser.ope.3`,lq=`parser.descape.1`,Pvt=`parser.descape.2`,Fvt=`parser.descape.3`,Ivt=`parser.descape.4`,Lvt=`parser.descape.5`,uq=`parser.process.1`,Rvt=`parser.quantifier.1`,zvt=`parser.quantifier.2`,Bvt=`parser.quantifier.3`,Vvt=`parser.quantifier.4`,Hvt=`parser.quantifier.5`,Uvt=`org.eclipse.emf.common.notify`,Wvt={415:1,676:1},Gvt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1},dq={373:1,151:1},fq=`index=`,pq={3:1,4:1,5:1,129:1},Kvt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,61:1},qvt={3:1,6:1,4:1,5:1,198:1},Jvt={3:1,4:1,5:1,175:1,374:1},Yvt=`;/?:@&=+$,`,Xvt=`invalid authority: `,Zvt=`EAnnotation`,Qvt=`ETypedElement`,$vt=`EStructuralFeature`,eyt=`EAttribute`,tyt=`EClassifier`,nyt=`EEnumLiteral`,ryt=`EGenericType`,iyt=`EOperation`,ayt=`EParameter`,oyt=`EReference`,mq=1024,syt=`ETypeParameter`,hq=`org.eclipse.emf.ecore.util`,gq={78:1},cyt={3:1,20:1,18:1,16:1,61:1,587:1,78:1,72:1,98:1},lyt=`org.eclipse.emf.ecore.util.FeatureMap$Entry`,_q=8192,vq=`byte`,yq=`char`,bq=`double`,xq=`float`,Sq=`int`,Cq=`long`,wq=`short`,uyt=`java.lang.Object`,Tq={3:1,4:1,5:1,255:1},dyt={3:1,4:1,5:1,678:1},fyt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},Eq={3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,72:1,98:1},Dq=`mixed`,Oq=`http:///org/eclipse/emf/ecore/util/ExtendedMetaData`,kq=`kind`,pyt={3:1,4:1,5:1,679:1},myt={3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},Aq={20:1,31:1,56:1,18:1,16:1,61:1,72:1},jq={50:1,128:1,287:1},Mq={75:1,344:1},Nq=`The value of type '`,Pq=`' must be of type '`,Fq=1307,Iq=`http://www.eclipse.org/emf/2002/Ecore`,Lq=-32768,Rq=`constraints`,zq=`baseType`,hyt=`getEStructuralFeature`,gyt=`getFeatureID`,Bq=`feature`,_yt=`getOperationID`,vyt=`operation`,yyt=`defaultValue`,byt=`eTypeParameters`,xyt=`isInstance`,Syt=`getEEnumLiteral`,Cyt=`eContainingClass`,Vq={58:1},wyt={3:1,4:1,5:1,122:1},Tyt=`org.eclipse.emf.ecore.resource`,Eyt={94:1,93:1,589:1,1999:1},Dyt=`org.eclipse.emf.ecore.resource.impl`,Oyt=`unspecified`,Hq=`simple`,Uq=`attribute`,kyt=`attributeWildcard`,Wq=`element`,Ayt=`elementWildcard`,Gq=`collapse`,jyt=`itemType`,Kq=`namespace`,qq=`##targetNamespace`,Jq=`whiteSpace`,Myt=`wildcards`,Yq=`http://www.eclipse.org/emf/2003/XMLType`,Nyt=`##any`,Xq=`uninitialized`,Zq=`The multiplicity constraint is violated`,Qq=`org.eclipse.emf.ecore.xml.type`,Pyt=`ProcessingInstruction`,Fyt=`SimpleAnyType`,Iyt=`XMLTypeDocumentRoot`,$q=`org.eclipse.emf.ecore.xml.type.impl`,eJ=`INF`,Lyt=`processing`,Ryt=`ENTITIES_._base`,zyt=`minLength`,Byt=`ENTITY`,tJ=`NCName`,Vyt=`IDREFS_._base`,Hyt=`integer`,Uyt=`token`,Wyt=`pattern`,Gyt=`[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*`,Kyt=`\\i\\c*`,qyt=`[\\i-[:]][\\c-[:]]*`,Jyt=`nonPositiveInteger`,nJ=`maxInclusive`,Yyt=`NMTOKEN`,Xyt=`NMTOKENS_._base`,Zyt=`nonNegativeInteger`,rJ=`minInclusive`,Qyt=`normalizedString`,$yt=`unsignedByte`,ebt=`unsignedInt`,tbt=`18446744073709551615`,nbt=`unsignedShort`,rbt=`processingInstruction`,iJ=`org.eclipse.emf.ecore.xml.type.internal`,aJ=1114111,ibt=`Internal Error: shorthands: \\u`,oJ=`xml:isDigit`,abt=`xml:isWord`,sJ=`xml:isSpace`,cJ=`xml:isNameChar`,lJ=`xml:isInitialNameChar`,obt=`09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩`,sbt=`AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣`,cbt=`Private Use`,uJ=`ASSIGNED`,dJ=`\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾＀￯`,lbt=`UNASSIGNED`,fJ={3:1,121:1},ubt=`org.eclipse.emf.ecore.xml.type.util`,pJ={3:1,4:1,5:1,376:1},dbt=`org.eclipse.xtext.xbase.lib`,fbt=`Cannot add elements to a Range`,pbt=`Cannot set elements in a Range`,mbt=`Cannot remove elements from a Range`,hbt=`user.agent`,Q,mJ,gbt,_bt=-1;r.goog=r.goog||{},r.goog.global=r.goog.global||r,mJ={},J(1,null,{},a),Q.Fb=function(e){return sme(this,e)},Q.Gb=function(){return this.Pm},Q.Hb=function(){return Ty(this)},Q.Ib=function(){var e;return Um(Cj(this))+`@`+(e=Lk(this)>>>0,e.toString(16))},Q.equals=function(e){return this.Fb(e)},Q.hashCode=function(){return this.Hb()},Q.toString=function(){return this.Ib()};var vbt,ybt,bbt;J(298,1,{298:1,2089:1},OUe),Q.te=function(e){var t=new OUe;return t.i=4,t.c=e>1?Yke(this,e-1):this,t},Q.ue=function(){return tb(this),this.b},Q.ve=function(){return Um(this)},Q.we=function(){return tb(this),this.k},Q.xe=function(){return!!(this.i&4)},Q.ye=function(){return!!(this.i&1)},Q.Ib=function(){return Tze(this)},Q.i=0;var xbt=1,hJ=R(eB,`Object`,1),Sbt=R(eB,`Class`,298);J(2061,1,tB),R(nB,`Optional`,2061),J(1161,2061,tB,o),Q.Fb=function(e){return e===this},Q.Hb=function(){return 2040732332},Q.Ib=function(){return`Optional.absent()`},Q.Jb=function(e){return aC(e),dp(),gJ};var gJ;R(nB,`Absent`,1161),J(628,1,{},am),R(nB,`Joiner`,628);var Cbt=Ox(nB,`Predicate`);J(578,1,{178:1,578:1,3:1,46:1},xie),Q.Mb=function(e){return BUe(this,e)},Q.Lb=function(e){return BUe(this,e)},Q.Fb=function(e){var t;return N(e,578)?(t=F(e,578),G8e(this.a,t.a)):!1},Q.Hb=function(){return HUe(this.a)+306654252},Q.Ib=function(){return g4e(this.a)},R(nB,`Predicates/AndPredicate`,578),J(411,2061,{411:1,3:1},Cc),Q.Fb=function(e){var t;return N(e,411)?(t=F(e,411),aM(this.a,t.a)):!1},Q.Hb=function(){return 1502476572+Lk(this.a)},Q.Ib=function(){return Gdt+this.a+`)`},Q.Jb=function(e){return new Cc(xw(e.Kb(this.a),`the Function passed to Optional.transform() must not return null.`))},R(nB,`Present`,411),J(204,1,oB),Q.Nb=function(e){PS(this,e)},Q.Qb=function(){gce()},R(sB,`UnmodifiableIterator`,204),J(2041,204,cB),Q.Qb=function(){gce()},Q.Rb=function(e){throw O(new Zd)},Q.Wb=function(e){throw O(new Zd)},R(sB,`UnmodifiableListIterator`,2041),J(392,2041,cB),Q.Ob=function(){return this.b0},Q.Pb=function(){if(this.b>=this.c)throw O(new Qd);return this.Xb(this.b++)},Q.Tb=function(){return this.b},Q.Ub=function(){if(this.b<=0)throw O(new Qd);return this.Xb(--this.b)},Q.Vb=function(){return this.b-1},Q.b=0,Q.c=0,R(sB,`AbstractIndexedListIterator`,392),J(702,204,oB),Q.Ob=function(){return jk(this)},Q.Pb=function(){return HLe(this)},Q.e=1,R(sB,`AbstractIterator`,702),J(2049,1,{229:1}),Q.Zb=function(){return this.f||=this.ac()},Q.Fb=function(e){return _j(this,e)},Q.Hb=function(){return Lk(this.Zb())},Q.dc=function(){return this.gc()==0},Q.ec=function(){return iS(this)},Q.Ib=function(){return XM(this.Zb())},R(sB,`AbstractMultimap`,2049),J(730,2049,lB),Q.$b=function(){gk(this)},Q._b=function(e){return ble(this,e)},Q.ac=function(){return new $m(this,this.c)},Q.ic=function(e){return this.hc()},Q.bc=function(){return new dy(this,this.c)},Q.jc=function(){return this.mc(this.hc())},Q.kc=function(){return new hp(this)},Q.lc=function(){return qF(this.c.vc().Lc(),new l,64,this.d)},Q.cc=function(e){return VE(this,e)},Q.fc=function(e){return Uj(this,e)},Q.gc=function(){return this.d},Q.mc=function(e){return fw(),new Ml(e)},Q.nc=function(){return new mp(this)},Q.oc=function(){return qF(this.c.Bc().Lc(),new s,64,this.d)},Q.pc=function(e,t){return new iD(this,e,t,null)},Q.d=0,R(sB,`AbstractMapBasedMultimap`,730),J(1664,730,lB),Q.hc=function(){return new pD(this.a)},Q.jc=function(){return fw(),fw(),nY},Q.cc=function(e){return F(VE(this,e),16)},Q.fc=function(e){return F(Uj(this,e),16)},Q.Zb=function(){return dw(this)},Q.Fb=function(e){return _j(this,e)},Q.qc=function(e){return F(VE(this,e),16)},Q.rc=function(e){return F(Uj(this,e),16)},Q.mc=function(e){return Sw(F(e,16))},Q.pc=function(e,t){return EMe(this,e,F(t,16),null)},R(sB,`AbstractListMultimap`,1664),J(736,1,uB),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return this.c.Ob()||this.e.Ob()},Q.Pb=function(){var e;return this.e.Ob()||(e=F(this.c.Pb(),45),this.b=e.jd(),this.a=F(e.kd(),18),this.e=this.a.Jc()),this.sc(this.b,this.e.Pb())},Q.Qb=function(){this.e.Qb(),F(SC(this.a),18).dc()&&this.c.Qb(),--this.d.d},R(sB,`AbstractMapBasedMultimap/Itr`,736),J(1099,736,uB,mp),Q.sc=function(e,t){return t},R(sB,`AbstractMapBasedMultimap/1`,1099),J(1100,1,{},s),Q.Kb=function(e){return F(e,18).Lc()},R(sB,`AbstractMapBasedMultimap/1methodref$spliterator$Type`,1100),J(1101,736,uB,hp),Q.sc=function(e,t){return new eh(e,t)},R(sB,`AbstractMapBasedMultimap/2`,1101);var wbt=Ox(dB,`Map`);J(2030,1,fB),Q.wc=function(e){oA(this,e)},Q.$b=function(){this.vc().$b()},Q.tc=function(e){return VP(this,e)},Q._b=function(e){return!!C1e(this,e,!1)},Q.uc=function(e){for(var t,n=this.vc().Jc(),r;n.Ob();)if(t=F(n.Pb(),45),r=t.kd(),M(e)===M(r)||e!=null&&aM(e,r))return!0;return!1},Q.Fb=function(e){var t,n,r;if(e===this)return!0;if(!N(e,92)||(r=F(e,92),this.gc()!=r.gc()))return!1;for(n=r.vc().Jc();n.Ob();)if(t=F(n.Pb(),45),!this.tc(t))return!1;return!0},Q.xc=function(e){return V_(C1e(this,e,!1))},Q.Hb=function(){return lUe(this.vc())},Q.dc=function(){return this.gc()==0},Q.ec=function(){return new Tl(this)},Q.yc=function(e,t){throw O(new Zp(`Put not supported on this map`))},Q.zc=function(e){tA(this,e)},Q.Ac=function(e){return V_(C1e(this,e,!0))},Q.gc=function(){return this.vc().gc()},Q.Ib=function(){return I1e(this)},Q.Bc=function(){return new kl(this)},R(dB,`AbstractMap`,2030),J(2050,2030,fB),Q.bc=function(){return new Qm(this)},Q.vc=function(){return Rwe(this)},Q.ec=function(){return this.g||=this.bc()},Q.Bc=function(){return this.i||=new wue(this)},R(sB,`Maps/ViewCachingAbstractMap`,2050),J(395,2050,fB,$m),Q.xc=function(e){return tze(this,e)},Q.Ac=function(e){return DWe(this,e)},Q.$b=function(){this.d==this.e.c?this.e.$b():Ax(new rwe(this))},Q._b=function(e){return AGe(this.d,e)},Q.Dc=function(){return new wc(this)},Q.Cc=function(){return this.Dc()},Q.Fb=function(e){return this===e||aM(this.d,e)},Q.Hb=function(){return Lk(this.d)},Q.ec=function(){return this.e.ec()},Q.gc=function(){return this.d.gc()},Q.Ib=function(){return XM(this.d)},R(sB,`AbstractMapBasedMultimap/AsMap`,395);var _J=Ox(eB,`Iterable`);J(31,1,pB),Q.Ic=function(e){jE(this,e)},Q.Lc=function(){return new DT(this,0)},Q.Mc=function(){return new Mx(null,this.Lc())},Q.Ec=function(e){throw O(new Zp(`Add not supported on this collection`))},Q.Fc=function(e){return Gk(this,e)},Q.$b=function(){bDe(this)},Q.Gc=function(e){return lN(this,e,!1)},Q.Hc=function(e){return HA(this,e)},Q.dc=function(){return this.gc()==0},Q.Kc=function(e){return lN(this,e,!0)},Q.Nc=function(){return Bwe(this)},Q.Oc=function(e){return BP(this,e)},Q.Ib=function(){return rI(this)},R(dB,`AbstractCollection`,31);var vJ=Ox(dB,`Set`);J(mB,31,hB),Q.Lc=function(){return new DT(this,1)},Q.Fb=function(e){return WJe(this,e)},Q.Hb=function(){return lUe(this)},R(dB,`AbstractSet`,mB),J(2033,mB,hB),R(sB,`Sets/ImprovedAbstractSet`,2033),J(2034,2033,hB),Q.$b=function(){this.Pc().$b()},Q.Gc=function(e){return tJe(this,e)},Q.dc=function(){return this.Pc().dc()},Q.Kc=function(e){var t;return this.Gc(e)&&N(e,45)?(t=F(e,45),this.Pc().ec().Kc(t.jd())):!1},Q.gc=function(){return this.Pc().gc()},R(sB,`Maps/EntrySet`,2034),J(1097,2034,hB,wc),Q.Gc=function(e){return jGe(this.a.d.vc(),e)},Q.Jc=function(){return new rwe(this.a)},Q.Pc=function(){return this.a},Q.Kc=function(e){var t;return jGe(this.a.d.vc(),e)?(t=F(SC(F(e,45)),45),iFe(this.a.e,t.jd()),!0):!1},Q.Lc=function(){return $b(this.a.d.vc().Lc(),new Tc(this.a))},R(sB,`AbstractMapBasedMultimap/AsMap/AsMapEntries`,1097),J(1098,1,{},Tc),Q.Kb=function(e){return OPe(this.a,F(e,45))},R(sB,`AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type`,1098),J(734,1,uB,rwe),Q.Nb=function(e){PS(this,e)},Q.Pb=function(){var e=F(this.b.Pb(),45);return this.a=F(e.kd(),18),OPe(this.c,e)},Q.Ob=function(){return this.b.Ob()},Q.Qb=function(){zb(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},R(sB,`AbstractMapBasedMultimap/AsMap/AsMapIterator`,734),J(531,2033,hB,Qm),Q.$b=function(){this.b.$b()},Q.Gc=function(e){return this.b._b(e)},Q.Ic=function(e){aC(e),this.b.wc(new Bc(e))},Q.dc=function(){return this.b.dc()},Q.Jc=function(){return new Sp(this.b.vc().Jc())},Q.Kc=function(e){return this.b._b(e)?(this.b.Ac(e),!0):!1},Q.gc=function(){return this.b.gc()},R(sB,`Maps/KeySet`,531),J(332,531,hB,dy),Q.$b=function(){var e;Ax((e=this.b.vc().Jc(),new aue(this,e)))},Q.Hc=function(e){return this.b.ec().Hc(e)},Q.Fb=function(e){return this===e||aM(this.b.ec(),e)},Q.Hb=function(){return Lk(this.b.ec())},Q.Jc=function(){var e=this.b.vc().Jc();return new aue(this,e)},Q.Kc=function(e){var t,n=0;return t=F(this.b.Ac(e),18),t&&(n=t.gc(),t.$b(),this.a.d-=n),n>0},Q.Lc=function(){return this.b.ec().Lc()},R(sB,`AbstractMapBasedMultimap/KeySet`,332),J(735,1,uB,aue),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return this.c.Ob()},Q.Pb=function(){return this.a=F(this.c.Pb(),45),this.a.jd()},Q.Qb=function(){var e;zb(!!this.a),e=F(this.a.kd(),18),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},R(sB,`AbstractMapBasedMultimap/KeySet/1`,735),J(489,395,{92:1,134:1},ab),Q.bc=function(){return this.Qc()},Q.ec=function(){return this.Sc()},Q.Qc=function(){return new th(this.c,this.Uc())},Q.Rc=function(){return this.Uc().Rc()},Q.Sc=function(){return this.b||=this.Qc()},Q.Tc=function(){return this.Uc().Tc()},Q.Uc=function(){return F(this.d,134)},R(sB,`AbstractMapBasedMultimap/SortedAsMap`,489),J(437,489,Kdt,ob),Q.bc=function(){return new nh(this.a,F(F(this.d,134),138))},Q.Qc=function(){return new nh(this.a,F(F(this.d,134),138))},Q.ec=function(){var e=this.b;return F(e||(this.b=new nh(this.a,F(F(this.d,134),138))),277)},Q.Sc=function(){var e=this.b;return F(e||(this.b=new nh(this.a,F(F(this.d,134),138))),277)},Q.Uc=function(){return F(F(this.d,134),138)},Q.Vc=function(e){return F(F(this.d,134),138).Vc(e)},Q.Wc=function(e){return F(F(this.d,134),138).Wc(e)},Q.Xc=function(e,t){return new ob(this.a,F(F(this.d,134),138).Xc(e,t))},Q.Yc=function(e){return F(F(this.d,134),138).Yc(e)},Q.Zc=function(e){return F(F(this.d,134),138).Zc(e)},Q.$c=function(e,t){return new ob(this.a,F(F(this.d,134),138).$c(e,t))},R(sB,`AbstractMapBasedMultimap/NavigableAsMap`,437),J(488,332,qdt,th),Q.Lc=function(){return this.b.ec().Lc()},R(sB,`AbstractMapBasedMultimap/SortedKeySet`,488),J(394,488,Jdt,nh),R(sB,`AbstractMapBasedMultimap/NavigableKeySet`,394),J(540,31,pB,iD),Q.Ec=function(e){var t,n;return $M(this),n=this.d.dc(),t=this.d.Ec(e),t&&(++this.f.d,n&&mb(this)),t},Q.Fc=function(e){var t,n,r;return!e.dc()&&(r=($M(this),this.d.gc()),t=this.d.Fc(e),t&&(n=this.d.gc(),this.f.d+=n-r,r==0&&mb(this)),t)},Q.$b=function(){var e=($M(this),this.d.gc());e!=0&&(this.d.$b(),this.f.d-=e,Qx(this))},Q.Gc=function(e){return $M(this),this.d.Gc(e)},Q.Hc=function(e){return $M(this),this.d.Hc(e)},Q.Fb=function(e){return e===this||($M(this),aM(this.d,e))},Q.Hb=function(){return $M(this),Lk(this.d)},Q.Jc=function(){return $M(this),new MSe(this)},Q.Kc=function(e){var t;return $M(this),t=this.d.Kc(e),t&&(--this.f.d,Qx(this)),t},Q.gc=function(){return jpe(this)},Q.Lc=function(){return $M(this),this.d.Lc()},Q.Ib=function(){return $M(this),XM(this.d)},R(sB,`AbstractMapBasedMultimap/WrappedCollection`,540);var yJ=Ox(dB,`List`);J(732,540,{20:1,31:1,18:1,16:1},Wwe),Q.gd=function(e){Wk(this,e)},Q.Lc=function(){return $M(this),this.d.Lc()},Q._c=function(e,t){var n;$M(this),n=this.d.dc(),F(this.d,16)._c(e,t),++this.a.d,n&&mb(this)},Q.ad=function(e,t){var n,r,i;return!t.dc()&&(i=($M(this),this.d.gc()),n=F(this.d,16).ad(e,t),n&&(r=this.d.gc(),this.a.d+=r-i,i==0&&mb(this)),n)},Q.Xb=function(e){return $M(this),F(this.d,16).Xb(e)},Q.bd=function(e){return $M(this),F(this.d,16).bd(e)},Q.cd=function(){return $M(this),new rhe(this)},Q.dd=function(e){return $M(this),new BDe(this,e)},Q.ed=function(e){var t;return $M(this),t=F(this.d,16).ed(e),--this.a.d,Qx(this),t},Q.fd=function(e,t){return $M(this),F(this.d,16).fd(e,t)},Q.hd=function(e,t){return $M(this),EMe(this.a,this.e,F(this.d,16).hd(e,t),this.b?this.b:this)},R(sB,`AbstractMapBasedMultimap/WrappedList`,732),J(1096,732,{20:1,31:1,18:1,16:1,59:1},Qge),R(sB,`AbstractMapBasedMultimap/RandomAccessWrappedList`,1096),J(620,1,uB,MSe),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return mw(this),this.b.Ob()},Q.Pb=function(){return mw(this),this.b.Pb()},Q.Qb=function(){hge(this)},R(sB,`AbstractMapBasedMultimap/WrappedCollection/WrappedIterator`,620),J(733,620,gB,rhe,BDe),Q.Qb=function(){hge(this)},Q.Rb=function(e){var t=jpe(this.a)==0;(mw(this),F(this.b,128)).Rb(e),++this.a.a.d,t&&mb(this.a)},Q.Sb=function(){return(mw(this),F(this.b,128)).Sb()},Q.Tb=function(){return(mw(this),F(this.b,128)).Tb()},Q.Ub=function(){return(mw(this),F(this.b,128)).Ub()},Q.Vb=function(){return(mw(this),F(this.b,128)).Vb()},Q.Wb=function(e){(mw(this),F(this.b,128)).Wb(e)},R(sB,`AbstractMapBasedMultimap/WrappedList/WrappedListIterator`,733),J(731,540,qdt,rve),Q.Lc=function(){return $M(this),this.d.Lc()},R(sB,`AbstractMapBasedMultimap/WrappedSortedSet`,731),J(1095,731,Jdt,jme),R(sB,`AbstractMapBasedMultimap/WrappedNavigableSet`,1095),J(1094,540,hB,ive),Q.Lc=function(){return $M(this),this.d.Lc()},R(sB,`AbstractMapBasedMultimap/WrappedSet`,1094),J(1103,1,{},l),Q.Kb=function(e){return IFe(F(e,45))},R(sB,`AbstractMapBasedMultimap/lambda$1$Type`,1103),J(1102,1,{},Sie),Q.Kb=function(e){return new eh(this.a,e)},R(sB,`AbstractMapBasedMultimap/lambda$2$Type`,1102);var bJ=Ox(dB,`Map/Entry`);J(358,1,_B),Q.Fb=function(e){var t;return N(e,45)?(t=F(e,45),EC(this.jd(),t.jd())&&EC(this.kd(),t.kd())):!1},Q.Hb=function(){var e=this.jd(),t=this.kd();return(e==null?0:Lk(e))^(t==null?0:Lk(t))},Q.ld=function(e){throw O(new Zd)},Q.Ib=function(){return this.jd()+`=`+this.kd()},R(sB,Ydt,358),J(2051,31,pB),Q.$b=function(){this.md().$b()},Q.Gc=function(e){var t;return N(e,45)?(t=F(e,45),tMe(this.md(),t.jd(),t.kd())):!1},Q.Kc=function(e){var t;return N(e,45)?(t=F(e,45),nMe(this.md(),t.jd(),t.kd())):!1},Q.gc=function(){return this.md().d},R(sB,`Multimaps/Entries`,2051),J(737,2051,pB,Ec),Q.Jc=function(){return this.a.kc()},Q.md=function(){return this.a},Q.Lc=function(){return this.a.lc()},R(sB,`AbstractMultimap/Entries`,737),J(738,737,hB,gp),Q.Lc=function(){return this.a.lc()},Q.Fb=function(e){return q2e(this,e)},Q.Hb=function(){return lVe(this)},R(sB,`AbstractMultimap/EntrySet`,738),J(739,31,pB,Dc),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return bWe(this.a,e)},Q.Jc=function(){return this.a.nc()},Q.gc=function(){return this.a.d},Q.Lc=function(){return this.a.oc()},R(sB,`AbstractMultimap/Values`,739),J(2052,31,{834:1,20:1,31:1,18:1}),Q.Ic=function(e){aC(e),KC(this).Ic(new Uc(e))},Q.Lc=function(){var e=KC(this).Lc();return qF(e,new _,64|e.wd()&1296,this.a.d)},Q.Ec=function(e){return _ce(),!0},Q.Fc=function(e){return aC(this),aC(e),N(e,541)?bMe(F(e,834)):!e.dc()&&aO(this,e.Jc())},Q.Gc=function(e){var t=F(Wj(dw(this.a),e),18);return(t?t.gc():0)>0},Q.Fb=function(e){return g5e(this,e)},Q.Hb=function(){return Lk(KC(this))},Q.dc=function(){return KC(this).dc()},Q.Kc=function(e){return i6e(this,e,1)>0},Q.Ib=function(){return XM(KC(this))},R(sB,`AbstractMultiset`,2052),J(2054,2033,hB),Q.$b=function(){gk(this.a.a)},Q.Gc=function(e){var t,n;return N(e,490)?(n=F(e,416),F(n.a.kd(),18).gc()<=0?!1:(t=fAe(this.a,n.a.jd()),t==F(n.a.kd(),18).gc())):!1},Q.Kc=function(e){var t,n,r,i;return N(e,490)&&(n=F(e,416),t=n.a.jd(),r=F(n.a.kd(),18).gc(),r!=0)?(i=this.a,a6e(i,t,r)):!1},R(sB,`Multisets/EntrySet`,2054),J(1109,2054,hB,Cie),Q.Jc=function(){return new nce(Rwe(dw(this.a.a)).Jc())},Q.gc=function(){return dw(this.a.a).gc()},R(sB,`AbstractMultiset/EntrySet`,1109),J(619,730,lB),Q.hc=function(){return this.nd()},Q.jc=function(){return this.od()},Q.cc=function(e){return this.pd(e)},Q.fc=function(e){return this.qd(e)},Q.Zb=function(){return this.f||=this.ac()},Q.od=function(){return fw(),fw(),iY},Q.Fb=function(e){return _j(this,e)},Q.pd=function(e){return F(VE(this,e),22)},Q.qd=function(e){return F(Uj(this,e),22)},Q.mc=function(e){return fw(),new mm(F(e,22))},Q.pc=function(e,t){return new ive(this,e,F(t,22))},R(sB,`AbstractSetMultimap`,619),J(1692,619,lB),Q.hc=function(){return new Gm(this.b)},Q.nd=function(){return new Gm(this.b)},Q.jc=function(){return rEe(new Gm(this.b))},Q.od=function(){return rEe(new Gm(this.b))},Q.cc=function(e){return F(F(VE(this,e),22),83)},Q.pd=function(e){return F(F(VE(this,e),22),83)},Q.fc=function(e){return F(F(Uj(this,e),22),83)},Q.qd=function(e){return F(F(Uj(this,e),22),83)},Q.mc=function(e){return N(e,277)?rEe(F(e,277)):(fw(),new Nge(F(e,83)))},Q.Zb=function(){return this.f||=N(this.c,138)?new ob(this,F(this.c,138)):N(this.c,134)?new ab(this,F(this.c,134)):new $m(this,this.c)},Q.pc=function(e,t){return N(t,277)?new jme(this,e,F(t,277)):new rve(this,e,F(t,83))},R(sB,`AbstractSortedSetMultimap`,1692),J(1693,1692,lB),Q.Zb=function(){var e=this.f;return F(F(e||(this.f=N(this.c,138)?new ob(this,F(this.c,138)):N(this.c,134)?new ab(this,F(this.c,134)):new $m(this,this.c)),134),138)},Q.ec=function(){var e=this.i;return F(F(e||(this.i=N(this.c,138)?new nh(this,F(this.c,138)):N(this.c,134)?new th(this,F(this.c,134)):new dy(this,this.c)),83),277)},Q.bc=function(){return N(this.c,138)?new nh(this,F(this.c,138)):N(this.c,134)?new th(this,F(this.c,134)):new dy(this,this.c)},R(sB,`AbstractSortedKeySortedSetMultimap`,1693),J(2074,1,{2011:1}),Q.Fb=function(e){return T$e(this,e)},Q.Hb=function(){var e;return lUe((e=this.g,e||(this.g=new Oc(this))))},Q.Ib=function(){var e;return I1e((e=this.f,e||(this.f=new gge(this))))},R(sB,`AbstractTable`,2074),J(669,mB,hB,Oc),Q.$b=function(){vce()},Q.Gc=function(e){var t,n;return N(e,468)?(t=F(e,687),n=F(Wj(nEe(this.a),H_(t.c.e,t.b)),92),!!n&&jGe(n.vc(),new eh(H_(t.c.c,t.a),nD(t.c,t.b,t.a)))):!1},Q.Jc=function(){return vOe(this.a)},Q.Kc=function(e){var t,n;return N(e,468)?(t=F(e,687),n=F(Wj(nEe(this.a),H_(t.c.e,t.b)),92),!!n&&MGe(n.vc(),new eh(H_(t.c.c,t.a),nD(t.c,t.b,t.a)))):!1},Q.gc=function(){return zCe(this.a)},Q.Lc=function(){return uMe(this.a)},R(sB,`AbstractTable/CellSet`,669),J(1990,31,pB,kc),Q.$b=function(){vce()},Q.Gc=function(e){return K1e(this.a,e)},Q.Jc=function(){return yOe(this.a)},Q.gc=function(){return zCe(this.a)},Q.Lc=function(){return Yje(this.a)},R(sB,`AbstractTable/Values`,1990),J(1665,1664,lB),R(sB,`ArrayListMultimapGwtSerializationDependencies`,1665),J(507,1665,lB,im,mje),Q.hc=function(){return new pD(this.a)},Q.a=0,R(sB,`ArrayListMultimap`,507),J(668,2074,{668:1,2011:1,3:1},r6e),R(sB,`ArrayTable`,668),J(1986,392,cB,_ge),Q.Xb=function(e){return new kUe(this.a,e)},R(sB,`ArrayTable/1`,1986),J(1987,1,{},wie),Q.rd=function(e){return new kUe(this.a,e)},R(sB,`ArrayTable/1methodref$getCell$Type`,1987),J(2075,1,{687:1}),Q.Fb=function(e){var t;return e===this?!0:N(e,468)?(t=F(e,687),EC(H_(this.c.e,this.b),H_(t.c.e,t.b))&&EC(H_(this.c.c,this.a),H_(t.c.c,t.a))&&EC(nD(this.c,this.b,this.a),nD(t.c,t.b,t.a))):!1},Q.Hb=function(){return Lj(W(A(hJ,1),iB,1,5,[H_(this.c.e,this.b),H_(this.c.c,this.a),nD(this.c,this.b,this.a)]))},Q.Ib=function(){return`(`+H_(this.c.e,this.b)+`,`+H_(this.c.c,this.a)+`)=`+nD(this.c,this.b,this.a)},R(sB,`Tables/AbstractCell`,2075),J(468,2075,{468:1,687:1},kUe),Q.a=0,Q.b=0,Q.d=0,R(sB,`ArrayTable/2`,468),J(1989,1,{},Tie),Q.rd=function(e){return mLe(this.a,e)},R(sB,`ArrayTable/2methodref$getValue$Type`,1989),J(1988,392,cB,vge),Q.Xb=function(e){return mLe(this.a,e)},R(sB,`ArrayTable/3`,1988),J(2042,2030,fB),Q.$b=function(){Ax(this.kc())},Q.vc=function(){return new Pie(this)},Q.lc=function(){return new SDe(this.kc(),this.gc())},R(sB,`Maps/IteratorBasedAbstractMap`,2042),J(827,2042,fB),Q.$b=function(){throw O(new Zd)},Q._b=function(e){return xle(this.c,e)},Q.kc=function(){return new yge(this,this.c.b.c.gc())},Q.lc=function(){return Tx(this.c.b.c.gc(),16,new Ac(this))},Q.xc=function(e){var t=F(Mb(this.c,e),15);return t?this.td(t.a):null},Q.dc=function(){return this.c.b.c.dc()},Q.ec=function(){return sS(this.c)},Q.yc=function(e,t){var n=F(Mb(this.c,e),15);if(!n)throw O(new Hp(this.sd()+` `+e+` not in `+sS(this.c)));return this.ud(n.a,t)},Q.Ac=function(e){throw O(new Zd)},Q.gc=function(){return this.c.b.c.gc()},R(sB,`ArrayTable/ArrayMap`,827),J(1985,1,{},Ac),Q.rd=function(e){return iEe(this.a,e)},R(sB,`ArrayTable/ArrayMap/0methodref$getEntry$Type`,1985),J(1983,358,_B,sue),Q.jd=function(){return t_e(this.a,this.b)},Q.kd=function(){return this.a.td(this.b)},Q.ld=function(e){return this.a.ud(this.b,e)},Q.b=0,R(sB,`ArrayTable/ArrayMap/1`,1983),J(1984,392,cB,yge),Q.Xb=function(e){return iEe(this.a,e)},R(sB,`ArrayTable/ArrayMap/2`,1984),J(1982,827,fB,_Te),Q.sd=function(){return`Column`},Q.td=function(e){return nD(this.b,this.a,e)},Q.ud=function(e,t){return ZHe(this.b,this.a,e,t)},Q.a=0,R(sB,`ArrayTable/Row`,1982),J(828,827,fB,gge),Q.td=function(e){return new _Te(this.a,e)},Q.yc=function(e,t){return F(t,92),yce()},Q.ud=function(e,t){return F(t,92),bce()},Q.sd=function(){return`Row`},R(sB,`ArrayTable/RowMap`,828),J(1127,1,bB,cue),Q.yd=function(e){return!!(this.a.wd()&-262&e)},Q.wd=function(){return this.a.wd()&-262},Q.xd=function(){return this.a.xd()},Q.Nb=function(e){this.a.Nb(new uue(e,this.b))},Q.zd=function(e){return this.a.zd(new lue(e,this.b))},R(sB,`CollectSpliterators/1`,1127),J(1128,1,xB,lue),Q.Ad=function(e){this.a.Ad(this.b.Kb(e))},R(sB,`CollectSpliterators/1/lambda$0$Type`,1128),J(1129,1,xB,uue),Q.Ad=function(e){this.a.Ad(this.b.Kb(e))},R(sB,`CollectSpliterators/1/lambda$1$Type`,1129),J(1124,1,bB,zye),Q.yd=function(e){return!!((16464|this.b)&e)},Q.wd=function(){return 16464|this.b},Q.xd=function(){return this.a.xd()},Q.Nb=function(e){this.a.Oe(new fue(e,this.c))},Q.zd=function(e){return this.a.Pe(new due(e,this.c))},Q.b=0,R(sB,`CollectSpliterators/1WithCharacteristics`,1124),J(1125,1,SB,due),Q.Bd=function(e){this.a.Ad(this.b.rd(e))},R(sB,`CollectSpliterators/1WithCharacteristics/lambda$0$Type`,1125),J(1126,1,SB,fue),Q.Bd=function(e){this.a.Ad(this.b.rd(e))},R(sB,`CollectSpliterators/1WithCharacteristics/lambda$1$Type`,1126),J(1120,1,bB),Q.yd=function(e){return(this.a&e)!=0},Q.wd=function(){return this.a},Q.xd=function(){return this.e&&(this.b=ohe(this.b,this.e.xd())),ohe(this.b,0)},Q.Nb=function(e){this.e&&=(this.e.Nb(e),null),this.c.Nb(new pue(this,e)),this.b=0},Q.zd=function(e){for(;;){if(this.e&&this.e.zd(e))return q_(this.b,CB)&&(this.b=RM(this.b,1)),!0;if(this.e=null,!this.c.zd(new Fc(this)))return!1}},Q.a=0,Q.b=0,R(sB,`CollectSpliterators/FlatMapSpliterator`,1120),J(1122,1,xB,Fc),Q.Ad=function(e){xye(this.a,e)},R(sB,`CollectSpliterators/FlatMapSpliterator/lambda$0$Type`,1122),J(1123,1,xB,pue),Q.Ad=function(e){yDe(this.a,this.b,e)},R(sB,`CollectSpliterators/FlatMapSpliterator/lambda$1$Type`,1123),J(1121,1120,bB,$Me),R(sB,`CollectSpliterators/FlatMapSpliteratorOfObject`,1121),J(254,1,wB),Q.Dd=function(e){return this.Cd(F(e,254))},Q.Cd=function(e){var t;return e==(up(),SJ)?1:e==(fp(),xJ)?-1:(t=(wx(),nA(this.a,e.a)),t==0?(by(),N(this,514)==N(e,514)?0:N(this,514)?1:-1):t)},Q.Gd=function(){return this.a},Q.Fb=function(e){return oZe(this,e)},R(sB,`Cut`,254),J(1796,254,wB,pp),Q.Cd=function(e){return e==this?0:1},Q.Ed=function(e){throw O(new Wd)},Q.Fd=function(e){e.a+=`+∞)`},Q.Gd=function(){throw O(new Up(Zdt))},Q.Hb=function(){return gh(),VJe(this)},Q.Hd=function(e){return!1},Q.Ib=function(){return`+∞`};var xJ;R(sB,`Cut/AboveAll`,1796),J(514,254,{254:1,514:1,3:1,35:1},Age),Q.Ed=function(e){Z_((e.a+=`(`,e),this.a)},Q.Fd=function(e){xC(Z_(e,this.a),93)},Q.Hb=function(){return~Lk(this.a)},Q.Hd=function(e){return wx(),nA(this.a,e)<0},Q.Ib=function(){return`/`+this.a+`\\`},R(sB,`Cut/AboveValue`,514),J(1795,254,wB,Zse),Q.Cd=function(e){return e==this?0:-1},Q.Ed=function(e){e.a+=`(-∞`},Q.Fd=function(e){throw O(new Wd)},Q.Gd=function(){throw O(new Up(Zdt))},Q.Hb=function(){return gh(),VJe(this)},Q.Hd=function(e){return!0},Q.Ib=function(){return`-∞`};var SJ;R(sB,`Cut/BelowAll`,1795),J(1797,254,wB,jge),Q.Ed=function(e){Z_((e.a+=`[`,e),this.a)},Q.Fd=function(e){xC(Z_(e,this.a),41)},Q.Hb=function(){return Lk(this.a)},Q.Hd=function(e){return wx(),nA(this.a,e)<=0},Q.Ib=function(){return`\\`+this.a+`/`},R(sB,`Cut/BelowValue`,1797),J(536,1,TB),Q.Ic=function(e){jE(this,e)},Q.Ib=function(){return CKe(F(xw(this,`use Optional.orNull() instead of Optional.or(null)`),20).Jc())},R(sB,`FluentIterable`,536),J(433,536,TB,sv),Q.Jc=function(){return new uS(py(this.a.Jc(),new f))},R(sB,`FluentIterable/2`,433),J(37,1,{},f),Q.Kb=function(e){return F(e,20).Jc()},Q.Fb=function(e){return this===e},R(sB,`FluentIterable/2/0methodref$iterator$Type`,37),J(1041,536,TB,eme),Q.Jc=function(){return OS(this)},R(sB,`FluentIterable/3`,1041),J(714,392,cB,bge),Q.Xb=function(e){return this.a[e].Jc()},R(sB,`FluentIterable/3/1`,714),J(2035,1,{}),Q.Ib=function(){return XM(this.Id().b)},R(sB,`ForwardingObject`,2035),J(2036,2035,Qdt),Q.Id=function(){return this.Jd()},Q.Ic=function(e){jE(this,e)},Q.Lc=function(){return new DT(this,0)},Q.Mc=function(){return new Mx(null,this.Lc())},Q.Ec=function(e){return this.Jd(),Dle()},Q.Fc=function(e){return this.Jd(),Ole()},Q.$b=function(){this.Jd(),kle()},Q.Gc=function(e){return this.Jd().Gc(e)},Q.Hc=function(e){return this.Jd().Hc(e)},Q.dc=function(){return this.Jd().b.dc()},Q.Jc=function(){return this.Jd().Jc()},Q.Kc=function(e){return this.Jd(),Ale()},Q.gc=function(){return this.Jd().b.gc()},Q.Nc=function(){return this.Jd().Nc()},Q.Oc=function(e){return this.Jd().Oc(e)},R(sB,`ForwardingCollection`,2036),J(2043,31,$dt),Q.Jc=function(){return this.Md()},Q.Ec=function(e){throw O(new Zd)},Q.Fc=function(e){throw O(new Zd)},Q.Kd=function(){return this.c||=this.Ld()},Q.$b=function(){throw O(new Zd)},Q.Gc=function(e){return e!=null&&lN(this,e,!1)},Q.Ld=function(){switch(this.gc()){case 0:return Ex(),EJ;case 1:return new hb(aC(this.Md().Pb()));default:return new ASe(this,this.Nc())}},Q.Kc=function(e){throw O(new Zd)},R(sB,`ImmutableCollection`,2043),J(1261,2043,$dt,Aie),Q.Jc=function(){return TD(new Nl(this.a.b.Jc()))},Q.Gc=function(e){return e!=null&&ch(this.a,e)},Q.Hc=function(e){return Mue(this.a,e)},Q.dc=function(){return this.a.b.dc()},Q.Md=function(){return TD(new Nl(this.a.b.Jc()))},Q.gc=function(){return this.a.b.gc()},Q.Nc=function(){return this.a.b.Nc()},Q.Oc=function(e){return Nue(this.a,e)},Q.Ib=function(){return XM(this.a.b)},R(sB,`ForwardingImmutableCollection`,1261),J(312,2043,EB),Q.Jc=function(){return this.Md()},Q.cd=function(){return this.Nd(0)},Q.dd=function(e){return this.Nd(e)},Q.gd=function(e){Wk(this,e)},Q.Lc=function(){return new DT(this,16)},Q.hd=function(e,t){return this.Od(e,t)},Q._c=function(e,t){throw O(new Zd)},Q.ad=function(e,t){throw O(new Zd)},Q.Kd=function(){return this},Q.Fb=function(e){return n5e(this,e)},Q.Hb=function(){return yHe(this)},Q.bd=function(e){return e==null?-1:tZe(this,e)},Q.Md=function(){return this.Nd(0)},Q.Nd=function(e){return Iy(this,e)},Q.ed=function(e){throw O(new Zd)},Q.fd=function(e,t){throw O(new Zd)},Q.Od=function(e,t){var n;return FM((n=new xue(this),new ET(n,e,t)))},R(sB,`ImmutableList`,312),J(2070,312,EB),Q.Jc=function(){return TD(this.Pd().Jc())},Q.hd=function(e,t){return FM(this.Pd().hd(e,t))},Q.Gc=function(e){return e!=null&&this.Pd().Gc(e)},Q.Hc=function(e){return this.Pd().Hc(e)},Q.Fb=function(e){return aM(this.Pd(),e)},Q.Xb=function(e){return H_(this,e)},Q.Hb=function(){return Lk(this.Pd())},Q.bd=function(e){return this.Pd().bd(e)},Q.dc=function(){return this.Pd().dc()},Q.Md=function(){return TD(this.Pd().Jc())},Q.gc=function(){return this.Pd().gc()},Q.Od=function(e,t){return FM(this.Pd().hd(e,t))},Q.Nc=function(){return this.Pd().Oc(H(hJ,iB,1,this.Pd().gc(),5,1))},Q.Oc=function(e){return this.Pd().Oc(e)},Q.Ib=function(){return XM(this.Pd())},R(sB,`ForwardingImmutableList`,2070),J(717,1,OB),Q.vc=function(){return oS(this)},Q.wc=function(e){oA(this,e)},Q.ec=function(){return sS(this)},Q.Bc=function(){return this.Td()},Q.$b=function(){throw O(new Zd)},Q._b=function(e){return this.xc(e)!=null},Q.uc=function(e){return this.Td().Gc(e)},Q.Rd=function(){return new Die(this)},Q.Sd=function(){return new Oie(this)},Q.Fb=function(e){return wWe(this,e)},Q.Hb=function(){return oS(this).Hb()},Q.dc=function(){return this.gc()==0},Q.yc=function(e,t){return xce()},Q.Ac=function(e){throw O(new Zd)},Q.Ib=function(){return y2e(this)},Q.Td=function(){return this.e?this.e:this.e=this.Sd()},Q.c=null,Q.d=null,Q.e=null,R(sB,`ImmutableMap`,717),J(718,717,OB),Q._b=function(e){return xle(this,e)},Q.uc=function(e){return Pue(this.b,e)},Q.Qd=function(){return JWe(new Pc(this))},Q.Rd=function(){return JWe(oDe(this.b))},Q.Sd=function(){return new Aie(aDe(this.b))},Q.Fb=function(e){return Iue(this.b,e)},Q.xc=function(e){return Mb(this,e)},Q.Hb=function(){return Lk(this.b.c)},Q.dc=function(){return this.b.c.dc()},Q.gc=function(){return this.b.c.gc()},Q.Ib=function(){return XM(this.b.c)},R(sB,`ForwardingImmutableMap`,718),J(2037,2036,kB),Q.Id=function(){return this.Ud()},Q.Jd=function(){return this.Ud()},Q.Lc=function(){return new DT(this,1)},Q.Fb=function(e){return e===this||this.Ud().Fb(e)},Q.Hb=function(){return this.Ud().Hb()},R(sB,`ForwardingSet`,2037),J(1056,2037,kB,Pc),Q.Id=function(){return BC(this.a.b)},Q.Jd=function(){return BC(this.a.b)},Q.Gc=function(e){if(N(e,45)&&F(e,45).jd()==null)return!1;try{return Fue(BC(this.a.b),e)}catch(e){if(e=UA(e),N(e,211))return!1;throw O(e)}},Q.Ud=function(){return BC(this.a.b)},Q.Oc=function(e){var t=IOe(BC(this.a.b),e),n;return BC(this.a.b).b.gc()=0?`+`:``)+(n/60|0),t=fv(r.Math.abs(n)%60),(V0e(),_xt)[this.q.getDay()]+` `+vxt[this.q.getMonth()]+` `+fv(this.q.getDate())+` `+fv(this.q.getHours())+`:`+fv(this.q.getMinutes())+`:`+fv(this.q.getSeconds())+` GMT`+e+t+` `+this.q.getFullYear()};var MJ=R(dB,`Date`,205);J(1980,205,fft,XQe),Q.a=!1,Q.b=0,Q.c=0,Q.d=0,Q.e=0,Q.f=0,Q.g=!1,Q.i=0,Q.j=0,Q.k=0,Q.n=0,Q.o=0,Q.p=0,R(`com.google.gwt.i18n.shared.impl`,`DateRecord`,1980),J(2029,1,{}),Q.ne=function(){return null},Q.oe=function(){return null},Q.pe=function(){return null},Q.qe=function(){return null},Q.re=function(){return null},R(_V,`JSONValue`,2029),J(139,2029,{139:1},Yc,Wc),Q.Fb=function(e){return N(e,139)?vje(this.a,F(e,139).a):!1},Q.me=function(){return Cse},Q.Hb=function(){return bOe(this.a)},Q.ne=function(){return this},Q.Ib=function(){var e,t,n=new _y(`[`);for(t=0,e=this.a.length;t0&&(n.a+=`,`),Z_(n,pO(this,t));return n.a+=`]`,n.a},R(_V,`JSONArray`,139),J(479,2029,{479:1},Gc),Q.me=function(){return Md},Q.oe=function(){return this},Q.Ib=function(){return by(),``+this.a},Q.a=!1;var Lbt,Rbt;R(_V,`JSONBoolean`,479),J(982,63,HB,Tp),R(_V,`JSONException`,982),J(1018,2029,{},ee),Q.me=function(){return wse},Q.Ib=function(){return aB};var zbt;R(_V,`JSONNull`,1018),J(265,2029,{265:1},Kc),Q.Fb=function(e){return N(e,265)?this.a==F(e,265).a:!1},Q.me=function(){return bse},Q.Hb=function(){return uv(this.a)},Q.pe=function(){return this},Q.Ib=function(){return this.a+``},Q.a=0,R(_V,`JSONNumber`,265),J(149,2029,{149:1},Ep,qc),Q.Fb=function(e){return N(e,149)?vje(this.a,F(e,149).a):!1},Q.me=function(){return xse},Q.Hb=function(){return bOe(this.a)},Q.qe=function(){return this},Q.Ib=function(){var e,t,n,r,i,a,o=new _y(`{`);for(e=!0,a=Ek(this,H(KJ,vB,2,0,6,1)),n=a,r=0,i=n.length;r=0?`:`+this.c:``)+`)`},Q.c=0;var txt=R(eB,`StackTraceElement`,325);bbt={3:1,472:1,35:1,2:1};var KJ=R(eB,ift,2);J(111,418,{472:1},lm,um,gy),R(eB,`StringBuffer`,111),J(106,418,{472:1},dm,fm,_y),R(eB,`StringBuilder`,106),J(691,99,TV,Tce),R(eB,`StringIndexOutOfBoundsException`,691),J(2110,1,{});var nxt;J(47,63,{3:1,101:1,63:1,80:1,47:1},Zd,Zp),R(eB,`UnsupportedOperationException`,47),J(247,242,{3:1,35:1,242:1,247:1},NM,Tle),Q.Dd=function(e){return Pit(this,F(e,247))},Q.se=function(){return sI(Fot(this))},Q.Fb=function(e){var t;return this===e?!0:N(e,247)?(t=F(e,247),this.e==t.e&&Pit(this,t)==0):!1},Q.Hb=function(){var e;return this.b==0?this.a<54?(e=gA(this.f),this.b=Wx(FT(e,-1)),this.b=33*this.b+Wx(FT(fS(e,32),-1)),this.b=17*this.b+Gw(this.e),this.b):(this.b=17*dGe(this.c)+Gw(this.e),this.b):this.b},Q.Ib=function(){return Fot(this)},Q.a=0,Q.b=0,Q.d=0,Q.e=0,Q.f=0;var rxt,qJ,ixt,axt,oxt,sxt,cxt,lxt,JJ=R(`java.math`,`BigDecimal`,247);J(91,242,{3:1,35:1,242:1,91:1},_E,pje,FS,eYe,Ov),Q.Dd=function(e){return jJe(this,F(e,91))},Q.se=function(){return sI(Lz(this,0))},Q.Fb=function(e){return Sqe(this,e)},Q.Hb=function(){return dGe(this)},Q.Ib=function(){return Lz(this,0)},Q.b=-2,Q.c=0,Q.d=0,Q.e=0;var uxt,YJ,dxt,XJ,ZJ,QJ,$J=R(`java.math`,`BigInteger`,91),fxt,pxt,eY,tY;J(484,2030,fB),Q.$b=function(){BS(this)},Q._b=function(e){return jS(this,e)},Q.uc=function(e){return TWe(this,e,this.i)||TWe(this,e,this.f)},Q.vc=function(){return new Dl(this)},Q.xc=function(e){return pC(this,e)},Q.yc=function(e,t){return LC(this,e,t)},Q.Ac=function(e){return GE(this,e)},Q.gc=function(){return lh(this)},Q.g=0,R(dB,`AbstractHashMap`,484),J(307,mB,hB,Dl),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return pMe(this,e)},Q.Jc=function(){return new cA(this.a)},Q.Kc=function(e){var t;return pMe(this,e)?(t=F(e,45).jd(),this.a.Ac(t),!0):!1},Q.gc=function(){return this.a.gc()},R(dB,`AbstractHashMap/EntrySet`,307),J(308,1,uB,cA),Q.Nb=function(e){PS(this,e)},Q.Pb=function(){return Tk(this)},Q.Ob=function(){return this.b},Q.Qb=function(){nRe(this)},Q.b=!1,Q.d=0,R(dB,`AbstractHashMap/EntrySetIterator`,308),J(417,1,uB,Pl),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return $h(this)},Q.Pb=function(){return UDe(this)},Q.Qb=function(){kC(this)},Q.b=0,Q.c=-1,R(dB,`AbstractList/IteratorImpl`,417),J(97,417,gB,qT),Q.Qb=function(){kC(this)},Q.Rb=function(e){_b(this,e)},Q.Sb=function(){return this.b>0},Q.Tb=function(){return this.b},Q.Ub=function(){return Ky(this.b>0),this.a.Xb(this.c=--this.b)},Q.Vb=function(){return this.b-1},Q.Wb=function(e){Gy(this.c!=-1),this.a.fd(this.c,e)},R(dB,`AbstractList/ListIteratorImpl`,97),J(258,56,IB,ET),Q._c=function(e,t){pT(e,this.b),this.c._c(this.a+e,t),++this.b},Q.Xb=function(e){return OT(e,this.b),this.c.Xb(this.a+e)},Q.ed=function(e){var t;return OT(e,this.b),t=this.c.ed(this.a+e),--this.b,t},Q.fd=function(e,t){return OT(e,this.b),this.c.fd(this.a+e,t)},Q.gc=function(){return this.b},Q.a=0,Q.b=0,R(dB,`AbstractList/SubList`,258),J(232,mB,hB,Tl),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return this.a._b(e)},Q.Jc=function(){return new wl(this.a.vc().Jc())},Q.Kc=function(e){return this.a._b(e)?(this.a.Ac(e),!0):!1},Q.gc=function(){return this.a.gc()},R(dB,`AbstractMap/1`,232),J(530,1,uB,wl),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return this.a.Ob()},Q.Pb=function(){return F(this.a.Pb(),45).jd()},Q.Qb=function(){this.a.Qb()},R(dB,`AbstractMap/1/1`,530),J(230,31,pB,kl),Q.$b=function(){this.a.$b()},Q.Gc=function(e){return this.a.uc(e)},Q.Jc=function(){return new Al(this.a.vc().Jc())},Q.gc=function(){return this.a.gc()},R(dB,`AbstractMap/2`,230),J(305,1,uB,Al),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return this.a.Ob()},Q.Pb=function(){return F(this.a.Pb(),45).kd()},Q.Qb=function(){this.a.Qb()},R(dB,`AbstractMap/2/1`,305),J(480,1,{480:1,45:1}),Q.Fb=function(e){var t;return N(e,45)?(t=F(e,45),RC(this.d,t.jd())&&RC(this.e,t.kd())):!1},Q.jd=function(){return this.d},Q.kd=function(){return this.e},Q.Hb=function(){return jv(this.d)^jv(this.e)},Q.ld=function(e){return Rve(this,e)},Q.Ib=function(){return this.d+`=`+this.e},R(dB,`AbstractMap/AbstractEntry`,480),J(390,480,{480:1,390:1,45:1},rg),R(dB,`AbstractMap/SimpleEntry`,390),J(2047,1,vft),Q.Fb=function(e){var t;return N(e,45)?(t=F(e,45),RC(this.jd(),t.jd())&&RC(this.kd(),t.kd())):!1},Q.Hb=function(){return jv(this.jd())^jv(this.kd())},Q.Ib=function(){return this.jd()+`=`+this.kd()},R(dB,Ydt,2047),J(2055,2030,Kdt),Q.Vc=function(e){return Jm(this.Ce(e))},Q.tc=function(e){return jPe(this,e)},Q._b=function(e){return zve(this,e)},Q.vc=function(){return new jl(this)},Q.Rc=function(){return TTe(this.Ee())},Q.Wc=function(e){return Jm(this.Fe(e))},Q.xc=function(e){var t=e;return V_(this.De(t))},Q.Yc=function(e){return Jm(this.Ge(e))},Q.ec=function(){return new pae(this)},Q.Tc=function(){return TTe(this.He())},Q.Zc=function(e){return Jm(this.Ie(e))},R(dB,`AbstractNavigableMap`,2055),J(621,mB,hB,jl),Q.Gc=function(e){return N(e,45)&&jPe(this.b,F(e,45))},Q.Jc=function(){return this.b.Be()},Q.Kc=function(e){var t;return N(e,45)?(t=F(e,45),this.b.Je(t)):!1},Q.gc=function(){return this.b.gc()},R(dB,`AbstractNavigableMap/EntrySet`,621),J(1116,mB,Jdt,pae),Q.Lc=function(){return new dg(this)},Q.$b=function(){this.a.$b()},Q.Gc=function(e){return zve(this.a,e)},Q.Jc=function(){return new fae(this.a.vc().b.Be())},Q.Kc=function(e){return zve(this.a,e)?(this.a.Ac(e),!0):!1},Q.gc=function(){return this.a.gc()},R(dB,`AbstractNavigableMap/NavigableKeySet`,1116),J(1117,1,uB,fae),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return $h(this.a.a)},Q.Pb=function(){return s_e(this.a).jd()},Q.Qb=function(){rbe(this.a)},R(dB,`AbstractNavigableMap/NavigableKeySet/1`,1117),J(2068,31,pB),Q.Ec=function(e){return ix(ZF(this,e),IV),!0},Q.Fc=function(e){return MC(e),rx(e!=this,`Can't add a queue to itself`),Gk(this,e)},Q.$b=function(){for(;sO(this)!=null;);},R(dB,`AbstractQueue`,2068),J(315,31,{4:1,20:1,31:1,18:1},Zv,OMe),Q.Ec=function(e){return NMe(this,e),!0},Q.$b=function(){DPe(this)},Q.Gc=function(e){return BHe(new YC(this),e)},Q.dc=function(){return qp(this)},Q.Jc=function(){return new YC(this)},Q.Kc=function(e){return Ake(new YC(this),e)},Q.gc=function(){return this.c-this.b&this.a.length-1},Q.Lc=function(){return new DT(this,272)},Q.Oc=function(e){var t=this.c-this.b&this.a.length-1;return e.lengtht&&fC(e,t,null),e},Q.b=0,Q.c=0,R(dB,`ArrayDeque`,315),J(448,1,uB,YC),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return this.a!=this.b},Q.Pb=function(){return Zj(this)},Q.Qb=function(){oBe(this)},Q.a=0,Q.b=0,Q.c=-1,R(dB,`ArrayDeque/IteratorImpl`,448),J(13,56,yft,Od,pD,Lb),Q._c=function(e,t){Kx(this,e,t)},Q.Ec=function(e){return ry(this,e)},Q.ad=function(e,t){return RWe(this,e,t)},Q.Fc=function(e){return VA(this,e)},Q.$b=function(){rf(this.c,0)},Q.Gc=function(e){return VD(this,e,0)!=-1},Q.Ic=function(e){kO(this,e)},Q.Xb=function(e){return kx(this,e)},Q.bd=function(e){return VD(this,e,0)},Q.dc=function(){return this.c.length==0},Q.Jc=function(){return new D(this)},Q.ed=function(e){return KE(this,e)},Q.Kc=function(e){return BD(this,e)},Q.ae=function(e,t){xAe(this,e,t)},Q.fd=function(e,t){return AE(this,e,t)},Q.gc=function(){return this.c.length},Q.gd=function(e){Bv(this,e)},Q.Nc=function(){return hx(this.c)},Q.Oc=function(e){return qN(this,e)};var mxt=R(dB,`ArrayList`,13);J(7,1,uB,D),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return Vv(this)},Q.Pb=function(){return B(this)},Q.Qb=function(){HS(this)},Q.a=0,Q.b=-1,R(dB,`ArrayList/1`,7),J(2077,r.Function,{},ie),Q.Ke=function(e,t){return mM(e,t)},J(123,56,bft,Yp),Q.Gc=function(e){return cBe(this,e)!=-1},Q.Ic=function(e){var t,n,r,i;for(MC(e),n=this.a,r=0,i=n.length;r0)throw O(new Hp(Oft+e+` greater than `+this.e));return this.f.Re()?hke(this.c,this.b,this.a,e,t):yAe(this.c,e,t)},Q.yc=function(e,t){if(!rF(this.c,this.f,e,this.b,this.a,this.e,this.d))throw O(new Hp(e+` outside the range `+this.b+` to `+this.e));return MUe(this.c,e,t)},Q.Ac=function(e){var t=e;return rF(this.c,this.f,t,this.b,this.a,this.e,this.d)?bke(this.c,t):null},Q.Je=function(e){return wC(this,e.jd())&&kIe(this.c,e)},Q.gc=function(){var e,t=this.f.Re()?this.a?ON(this.c,this.b,!0):ON(this.c,this.b,!1):hLe(this.c),n;if(!(t&&wC(this,t.d)&&t))return 0;for(e=0,n=new Kk(this.c,this.f,this.b,this.a,this.e,this.d);$h(n.a);n.b=F(UDe(n.a),45))++e;return e},Q.$c=function(e,t){if(this.f.Re()&&this.c.a.Le(e,this.b)<0)throw O(new Hp(Oft+e+kft+this.b));return this.f.Se()?hke(this.c,e,t,this.e,this.d):bAe(this.c,e,t)},Q.a=!1,Q.d=!1,R(dB,`TreeMap/SubMap`,623),J(310,24,WV,ag),Q.Re=function(){return!1},Q.Se=function(){return!1};var cY,lY,uY,dY,fY=rk(dB,`TreeMap/SubMapType`,310,wJ,BMe,sbe);J(1113,310,WV,Mme),Q.Se=function(){return!0},rk(dB,`TreeMap/SubMapType/1`,1113,fY,null,null),J(1114,310,WV,hhe),Q.Re=function(){return!0},Q.Se=function(){return!0},rk(dB,`TreeMap/SubMapType/2`,1114,fY,null,null),J(1115,310,WV,Nme),Q.Re=function(){return!0},rk(dB,`TreeMap/SubMapType/3`,1115,fY,null,null);var Nxt;J(141,mB,{3:1,20:1,31:1,18:1,277:1,22:1,83:1,141:1},_f,Pge,Gm,Kl),Q.Lc=function(){return new dg(this)},Q.Ec=function(e){return RS(this,e)},Q.$b=function(){this.a.$b()},Q.Gc=function(e){return this.a._b(e)},Q.Jc=function(){return this.a.ec().Jc()},Q.Kc=function(e){return ey(this,e)},Q.gc=function(){return this.a.gc()};var Pxt=R(dB,`TreeSet`,141);J(1053,1,{},ql),Q.Te=function(e,t){return cve(this.a,e,t)},R(GV,`BinaryOperator/lambda$0$Type`,1053),J(1054,1,{},hae),Q.Te=function(e,t){return lve(this.a,e,t)},R(GV,`BinaryOperator/lambda$1$Type`,1054),J(936,1,{},Te),Q.Kb=function(e){return e},R(GV,`Function/lambda$0$Type`,936),J(388,1,RB,Jl),Q.Mb=function(e){return!this.a.Mb(e)},R(GV,`Predicate/lambda$2$Type`,388),J(567,1,{567:1});var Fxt=R(KV,`Handler`,567);J(2072,1,tB),Q.ve=function(){return`DUMMY`},Q.Ib=function(){return this.ve()};var Ixt;R(KV,`Level`,2072),J(1675,2072,tB,ye),Q.ve=function(){return`INFO`},R(KV,`Level/LevelInfo`,1675),J(1827,1,{},Ise);var pY;R(KV,`LogManager`,1827),J(1869,1,tB,$ye),Q.b=null,R(KV,`LogRecord`,1869),J(512,1,{512:1},LPe),Q.e=!1;var Lxt=!1,Rxt=!1,mY=!1,zxt=!1,Bxt=!1;R(KV,`Logger`,512),J(820,567,{567:1},be),R(KV,`SimpleConsoleLogHandler`,820),J(130,24,{3:1,35:1,24:1,130:1},og);var Vxt,hY,Hxt,gY=rk(JV,`Collector/Characteristics`,130,wJ,EAe,cbe),Uxt;J(746,1,{},STe),R(JV,`CollectorImpl`,746),J(1051,1,{},ve),Q.Te=function(e,t){return JGe(F(e,212),F(t,212))},R(JV,`Collectors/10methodref$merge$Type`,1051),J(1052,1,{},xe),Q.Kb=function(e){return Zje(F(e,212))},R(JV,`Collectors/11methodref$toString$Type`,1052),J(152,1,{},Se),Q.Wd=function(e,t){F(e,18).Ec(t)},R(JV,`Collectors/20methodref$add$Type`,152),J(154,1,{},Ce),Q.Ve=function(){return new Od},R(JV,`Collectors/21methodref$ctor$Type`,154),J(1050,1,{},we),Q.Wd=function(e,t){qE(F(e,212),F(t,472))},R(JV,`Collectors/9methodref$add$Type`,1050),J(1049,1,{},$Se),Q.Ve=function(){return new EA(this.a,this.b,this.c)},R(JV,`Collectors/lambda$15$Type`,1049),J(153,1,{},Ee),Q.Te=function(e,t){return Wue(F(e,18),F(t,18))},R(JV,`Collectors/lambda$45$Type`,153),J(539,1,{}),Q.Ye=function(){OC(this)},Q.d=!1,R(JV,`TerminatableStream`,539),J(769,539,jft,ave),Q.Ye=function(){OC(this)},R(JV,`DoubleStreamImpl`,769),J(1298,724,bB,zSe),Q.Pe=function(e){return UXe(this,F(e,189))},Q.a=null,R(JV,`DoubleStreamImpl/2`,1298),J(1299,1,LV,gae),Q.Ne=function(e){Rme(this.a,e)},R(JV,`DoubleStreamImpl/2/lambda$0$Type`,1299),J(1296,1,LV,_ae),Q.Ne=function(e){Lme(this.a,e)},R(JV,`DoubleStreamImpl/lambda$0$Type`,1296),J(1297,1,LV,vae),Q.Ne=function(e){oJe(this.a,e)},R(JV,`DoubleStreamImpl/lambda$2$Type`,1297),J(1352,723,bB,PPe),Q.Pe=function(e){return gMe(this,F(e,202))},Q.a=0,Q.b=0,Q.c=0,R(JV,`IntStream/5`,1352),J(794,539,jft,ove),Q.Ye=function(){OC(this)},Q.Ze=function(){return DC(this),this.a},R(JV,`IntStreamImpl`,794),J(795,539,jft,Vue),Q.Ye=function(){OC(this)},Q.Ze=function(){return DC(this),uge(),jxt},R(JV,`IntStreamImpl/Empty`,795),J(1654,1,SB,Yl),Q.Bd=function(e){fHe(this.a,e)},R(JV,`IntStreamImpl/lambda$4$Type`,1654);var Wxt=Ox(JV,`Stream`);J(28,539,{521:1,677:1,833:1},Mx),Q.Ye=function(){OC(this)};var _Y;R(JV,`StreamImpl`,28),J(1073,486,bB,Iye),Q.zd=function(e){for(;oLe(this);)if(this.a.zd(e))return!0;else OC(this.b),this.b=null,this.a=null;return!1},R(JV,`StreamImpl/1`,1073),J(1074,1,xB,yae),Q.Ad=function(e){HSe(this.a,F(e,833))},R(JV,`StreamImpl/1/lambda$0$Type`,1074),J(1075,1,RB,bae),Q.Mb=function(e){return LS(this.a,e)},R(JV,`StreamImpl/1methodref$add$Type`,1075),J(1076,486,bB,eOe),Q.zd=function(e){var t;return this.a||=(t=new Od,this.b.a.Nb(new Xl(t)),fw(),Bv(t,this.c),new DT(t,16)),qRe(this.a,e)},Q.a=null,R(JV,`StreamImpl/5`,1076),J(1077,1,xB,Xl),Q.Ad=function(e){ry(this.a,e)},R(JV,`StreamImpl/5/2methodref$add$Type`,1077),J(725,486,bB,vLe),Q.zd=function(e){for(this.b=!1;!this.b&&this.c.zd(new Mde(this,e)););return this.b},Q.b=!1,R(JV,`StreamImpl/FilterSpliterator`,725),J(1067,1,xB,Mde),Q.Ad=function(e){tTe(this.a,this.b,e)},R(JV,`StreamImpl/FilterSpliterator/lambda$0$Type`,1067),J(1062,724,bB,kFe),Q.Pe=function(e){return Eye(this,F(e,189))},R(JV,`StreamImpl/MapToDoubleSpliterator`,1062),J(1066,1,xB,Nde),Q.Ad=function(e){Kde(this.a,this.b,e)},R(JV,`StreamImpl/MapToDoubleSpliterator/lambda$0$Type`,1066),J(1061,723,bB,AFe),Q.Pe=function(e){return Dye(this,F(e,202))},R(JV,`StreamImpl/MapToIntSpliterator`,1061),J(1065,1,xB,Pde),Q.Ad=function(e){qde(this.a,this.b,e)},R(JV,`StreamImpl/MapToIntSpliterator/lambda$0$Type`,1065),J(722,486,bB,jFe),Q.zd=function(e){return Oye(this,e)},R(JV,`StreamImpl/MapToObjSpliterator`,722),J(1064,1,xB,Fde),Q.Ad=function(e){Jde(this.a,this.b,e)},R(JV,`StreamImpl/MapToObjSpliterator/lambda$0$Type`,1064),J(1063,486,bB,hBe),Q.zd=function(e){for(;Zh(this.b,0);){if(!this.a.zd(new De))return!1;this.b=RM(this.b,1)}return this.a.zd(e)},Q.b=0,R(JV,`StreamImpl/SkipSpliterator`,1063),J(1068,1,xB,De),Q.Ad=function(e){},R(JV,`StreamImpl/SkipSpliterator/lambda$0$Type`,1068),J(618,1,xB,Oe),Q.Ad=function(e){zie(this,e)},R(JV,`StreamImpl/ValueConsumer`,618),J(1069,1,xB,ke),Q.Ad=function(e){bh()},R(JV,`StreamImpl/lambda$0$Type`,1069),J(1070,1,xB,Ae),Q.Ad=function(e){bh()},R(JV,`StreamImpl/lambda$1$Type`,1070),J(1071,1,{},xae),Q.Te=function(e,t){return nbe(this.a,e,t)},R(JV,`StreamImpl/lambda$4$Type`,1071),J(1072,1,xB,Ide),Q.Ad=function(e){Uve(this.b,this.a,e)},R(JV,`StreamImpl/lambda$5$Type`,1072),J(1078,1,xB,Zl),Q.Ad=function(e){SHe(this.a,F(e,375))},R(JV,`TerminatableStream/lambda$0$Type`,1078),J(2107,1,{}),J(1979,1,{},je),R(`javaemul.internal`,`ConsoleLogger`,1979);var Gxt=0;J(2099,1,{}),J(1803,1,xB,Me),Q.Ad=function(e){F(e,322)},R(XV,`BowyerWatsonTriangulation/lambda$0$Type`,1803),J(1804,1,xB,Ql),Q.Ad=function(e){Gk(this.a,F(e,322).e)},R(XV,`BowyerWatsonTriangulation/lambda$1$Type`,1804),J(1805,1,xB,Ne),Q.Ad=function(e){F(e,177)},R(XV,`BowyerWatsonTriangulation/lambda$2$Type`,1805),J(1800,1,ZV,Sae),Q.Le=function(e,t){return jNe(this.a,F(e,177),F(t,177))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(XV,`NaiveMinST/lambda$0$Type`,1800),J(440,1,{},$l),R(XV,`NodeMicroLayout`,440),J(177,1,{177:1},ig),Q.Fb=function(e){var t;return N(e,177)?(t=F(e,177),RC(this.a,t.a)&&RC(this.b,t.b)||RC(this.a,t.b)&&RC(this.b,t.a)):!1},Q.Hb=function(){return jv(this.a)+jv(this.b)};var Kxt=R(XV,`TEdge`,177);J(322,1,{322:1},dat),Q.Fb=function(e){var t;return N(e,322)?(t=F(e,322),HD(this,t.a)&&HD(this,t.b)&&HD(this,t.c)):!1},Q.Hb=function(){return jv(this.a)+jv(this.b)+jv(this.c)},R(XV,`TTriangle`,322),J(225,1,{225:1},Wv),R(XV,`Tree`,225),J(1184,1,{},$ke),R(Ift,`Scanline`,1184);var qxt=Ox(Ift,Lft);J(1731,1,{},HRe),R(QV,`CGraph`,1731),J(321,1,{321:1},Ike),Q.b=0,Q.c=0,Q.d=0,Q.g=0,Q.i=0,Q.k=OV,R(QV,`CGroup`,321),J(815,1,{},vf),R(QV,`CGroup/CGroupBuilder`,815),J(60,1,{60:1},qve),Q.Ib=function(){var e;return this.j?rb(this.j.Kb(this)):(tb(vY),vY.o+`@`+(e=Ty(this)>>>0,e.toString(16)))},Q.f=0,Q.i=OV;var vY=R(QV,`CNode`,60);J(814,1,{},yf),R(QV,`CNode/CNodeBuilder`,814);var Jxt;J(1552,1,{},Pe),Q.df=function(e,t){return 0},Q.ef=function(e,t){return 0},R(QV,zft,1552),J(1833,1,{},Fe),Q.af=function(e){var t,n,i,a,o,s,c,l,u=DV,d,f,p,m,h,g;for(i=new D(e.a.b);i.ar.d.c||r.d.c==a.d.c&&r.d.b0?e+this.n.d+this.n.a:0},Q.gf=function(){var e,t,n,i,a=0;if(this.e)this.b?a=this.b.a:this.a[1][1]&&(a=this.a[1][1].gf());else if(this.g)a=gqe(this,hF(this,null,!0));else for(t=(MO(),W(A(CY,1),Z,237,0,[bY,xY,SY])),n=0,i=t.length;n0?a+this.n.b+this.n.c:0},Q.hf=function(){var e,t,n,r,i;if(this.g)for(e=hF(this,null,!1),n=(MO(),W(A(CY,1),Z,237,0,[bY,xY,SY])),r=0,i=n.length;r0&&(i[0]+=this.d,n-=i[0]),i[2]>0&&(i[2]+=this.d,n-=i[2]),this.c.a=r.Math.max(0,n),this.c.d=t.d+e.d+(this.c.a-n)/2,i[1]=r.Math.max(i[1],n),_Fe(this,xY,t.d+e.d+i[0]-(i[1]-n)/2,i)},Q.b=null,Q.d=0,Q.e=!1,Q.f=!1,Q.g=!1;var wY=0,TY=0;R(iH,`GridContainerCell`,1500),J(461,24,{3:1,35:1,24:1,461:1},cg);var EY,DY,OY,nSt=rk(iH,`HorizontalLabelAlignment`,461,wJ,OAe,obe),rSt;J(319,216,{216:1,319:1},wke,WRe,cke),Q.ff=function(){return vCe(this)},Q.gf=function(){return yCe(this)},Q.a=0,Q.c=!1;var iSt=R(iH,`LabelCell`,319);J(253,337,{216:1,337:1,253:1},GN),Q.ff=function(){return RI(this)},Q.gf=function(){return zI(this)},Q.hf=function(){jR(this)},Q.jf=function(){NR(this)},Q.b=0,Q.c=0,Q.d=!1,R(iH,`StripContainerCell`,253),J(1658,1,RB,Le),Q.Mb=function(e){return pce(F(e,216))},R(iH,`StripContainerCell/lambda$0$Type`,1658),J(1659,1,{},Re),Q.We=function(e){return F(e,216).gf()},R(iH,`StripContainerCell/lambda$1$Type`,1659),J(1660,1,RB,Ie),Q.Mb=function(e){return mce(F(e,216))},R(iH,`StripContainerCell/lambda$2$Type`,1660),J(1661,1,{},ze),Q.We=function(e){return F(e,216).ff()},R(iH,`StripContainerCell/lambda$3$Type`,1661),J(462,24,{3:1,35:1,24:1,462:1},lg);var kY,AY,jY,aSt=rk(iH,`VerticalLabelAlignment`,462,wJ,kAe,abe),oSt;J(788,1,{},Alt),Q.c=0,Q.d=0,Q.k=0,Q.s=0,Q.t=0,Q.v=!1,Q.w=0,Q.D=!1,Q.F=!1,R(cH,`NodeContext`,788),J(1498,1,ZV,eee),Q.Le=function(e,t){return dme(F(e,64),F(t,64))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(cH,`NodeContext/0methodref$comparePortSides$Type`,1498),J(1499,1,ZV,Ke),Q.Le=function(e,t){return _0e(F(e,115),F(t,115))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(cH,`NodeContext/1methodref$comparePortContexts$Type`,1499),J(168,24,{3:1,35:1,24:1,168:1},Xk);var sSt,cSt,lSt,uSt,dSt,fSt,pSt,mSt,hSt,gSt,_St,vSt,ySt,bSt,xSt,SSt,CSt,wSt,TSt,ESt,DSt,MY,OSt=rk(cH,`NodeLabelLocation`,168,wJ,ZN,ibe),kSt;J(115,1,{115:1},G6e),Q.a=!1,R(cH,`PortContext`,115),J(1503,1,xB,qe),Q.Ad=function(e){Vle(F(e,319))},R(dH,tpt,1503),J(1504,1,RB,Je),Q.Mb=function(e){return!!F(e,115).c},R(dH,npt,1504),J(1505,1,xB,Ye),Q.Ad=function(e){Vle(F(e,115).c)},R(dH,`LabelPlacer/lambda$2$Type`,1505);var ASt;J(1502,1,xB,Xe),Q.Ad=function(e){pb(),Ose(F(e,115))},R(dH,`NodeLabelAndSizeUtilities/lambda$0$Type`,1502),J(789,1,xB,vbe),Q.Ad=function(e){ade(this.b,this.c,this.a,F(e,187))},Q.a=!1,Q.c=!1,R(dH,`NodeLabelCellCreator/lambda$0$Type`,789),J(1501,1,xB,ru),Q.Ad=function(e){of(this.a,F(e,187))},R(dH,`PortContextCreator/lambda$0$Type`,1501);var NY;J(1875,1,{},Ze),R(fH,`GreedyRectangleStripOverlapRemover`,1875),J(1876,1,ZV,Qe),Q.Le=function(e,t){return zge(F(e,226),F(t,226))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(fH,`GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type`,1876),J(1829,1,{},Tf),Q.a=5,Q.e=0,R(fH,`RectangleStripOverlapRemover`,1829),J(1830,1,ZV,$e),Q.Le=function(e,t){return Bge(F(e,226),F(t,226))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(fH,`RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type`,1830),J(1832,1,ZV,et),Q.Le=function(e,t){return LTe(F(e,226),F(t,226))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(fH,`RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type`,1832),J(409,24,{3:1,35:1,24:1,409:1},ug);var PY,FY,IY,LY,jSt=rk(fH,`RectangleStripOverlapRemover/OverlapRemovalDirection`,409,wJ,zMe,ube),MSt;J(226,1,{226:1},nS),R(fH,`RectangleStripOverlapRemover/RectangleNode`,226),J(1831,1,xB,iu),Q.Ad=function(e){iZe(this.a,F(e,226))},R(fH,`RectangleStripOverlapRemover/lambda$1$Type`,1831);var NSt=!1,RY,PSt;J(1801,1,xB,tt),Q.Ad=function(e){Got(F(e,225))},R(mH,`DepthFirstCompaction/0methodref$compactTree$Type`,1801),J(811,1,xB,au),Q.Ad=function(e){AEe(this.a,F(e,225))},R(mH,`DepthFirstCompaction/lambda$1$Type`,811),J(1802,1,xB,ybe),Q.Ad=function(e){ZJe(this.a,this.b,this.c,F(e,225))},R(mH,`DepthFirstCompaction/lambda$2$Type`,1802);var zY,FSt;J(68,1,{68:1},Qke),R(mH,`Node`,68),J(1180,1,{},fhe),R(mH,`ScanlineOverlapCheck`,1180),J(1181,1,{683:1},EOe),Q._e=function(e){dve(this,F(e,442))},R(mH,`ScanlineOverlapCheck/OverlapsScanlineHandler`,1181),J(1182,1,ZV,nt),Q.Le=function(e,t){return SKe(F(e,68),F(t,68))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(mH,`ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type`,1182),J(442,1,{442:1},zde),Q.a=!1,R(mH,`ScanlineOverlapCheck/Timestamp`,442),J(1183,1,ZV,tee),Q.Le=function(e,t){return QQe(F(e,442),F(t,442))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(mH,`ScanlineOverlapCheck/lambda$0$Type`,1183),J(546,1,{},rt),R(`org.eclipse.elk.alg.common.utils`,`SVGImage`,546),J(748,1,{},it),R(gH,apt,748),J(1165,1,ZV,T),Q.Le=function(e,t){return l6e(F(e,235),F(t,235))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(gH,opt,1165),J(1166,1,xB,Lde),Q.Ad=function(e){CAe(this.b,this.a,F(e,251))},R(gH,spt,1166),J(214,1,_H),R(vH,`AbstractLayoutProvider`,214),J(726,214,_H,bf),Q.kf=function(e,t){l7e(this,e,t)},R(gH,`ForceLayoutProvider`,726);var ISt=Ox(yH,cpt);J(150,1,{3:1,105:1,150:1},at),Q.of=function(e,t){return tj(this,e,t)},Q.lf=function(){return QCe(this)},Q.mf=function(e){return q(this,e)},Q.nf=function(e){return Yy(this,e)},R(yH,`MapPropertyHolder`,150),J(314,150,{3:1,314:1,105:1,150:1}),R(bH,`FParticle`,314),J(251,314,{3:1,251:1,314:1,105:1,150:1},ZTe),Q.Ib=function(){var e;return this.a?(e=VD(this.a.a,this,0),e>=0?`b`+e+`[`+GNe(this.a)+`]`:`b[`+GNe(this.a)+`]`):`b_`+Ty(this)},R(bH,`FBendpoint`,251),J(291,150,{3:1,291:1,105:1,150:1},Jve),Q.Ib=function(){return GNe(this)},R(bH,`FEdge`,291),J(235,150,{3:1,235:1,105:1,150:1},YE);var LSt=R(bH,`FGraph`,235);J(445,314,{3:1,445:1,314:1,105:1,150:1},LNe),Q.Ib=function(){return this.b==null||this.b.length==0?`l[`+GNe(this.a)+`]`:`l_`+this.b},R(bH,`FLabel`,445),J(155,314,{3:1,155:1,314:1,105:1,150:1},mhe),Q.Ib=function(){return _je(this)},Q.a=0,R(bH,`FNode`,155),J(2065,1,{}),Q.qf=function(e){bit(this,e)},Q.rf=function(){gZe(this)},Q.d=0,R(upt,`AbstractForceModel`,2065),J(632,2065,{632:1},wHe),Q.pf=function(e,t){var n,i,a,o,s;return ust(this.f,e,t),a=Tb(Jv(t.d),e.d),s=r.Math.sqrt(a.a*a.a+a.b*a.b),i=r.Math.max(0,s-CC(e.e)/2-CC(t.e)/2),n=w6e(this.e,e,t),o=n>0?-wTe(i,this.c)*n:T_e(i,this.b)*F(q(e,(CR(),WY)),15).a,ny(a,o/s),a},Q.qf=function(e){bit(this,e),this.a=F(q(e,(CR(),UY)),15).a,this.c=k(P(q(e,KY))),this.b=k(P(q(e,GY)))},Q.sf=function(e){return e0&&(o-=jp(i,this.a)*n),ny(a,o*this.b/s),a},Q.qf=function(e){var t,n,i,a,o,s,c;for(bit(this,e),this.b=k(P(q(e,(CR(),qY)))),this.c=this.b/F(q(e,UY),15).a,i=e.e.c.length,o=0,a=0,c=new D(e.e);c.a0},Q.a=0,Q.b=0,Q.c=0,R(upt,`FruchtermanReingoldModel`,633);var BY=Ox(xH,`ILayoutMetaDataProvider`);J(845,1,EH,Xs),Q.tf=function(e){JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,SH),``),`Force Model`),`Determines the model for force calculation.`),BSt),(yI(),H3)),KSt),WM((eP(),L3))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,dpt),``),`Iterations`),`The number of iterations on the force model.`),K(300)),W3),HJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,fpt),``),`Repulsive Power`),`Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model`),K(0)),W3),HJ),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,CH),``),`FR Temperature`),`The temperature is used as a scaling factor for particle displacements.`),wH),V3),BJ),WM(L3)))),JT(e,CH,SH,GSt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,TH),``),`Eades Repulsion`),`Factor for repulsive forces in Eades' model.`),5),V3),BJ),WM(L3)))),JT(e,TH,SH,HSt),gut((new qre,e))};var RSt,zSt,BSt,VSt,HSt,USt,WSt,GSt;R(DH,`ForceMetaDataProvider`,845),J(424,24,{3:1,35:1,24:1,424:1},Bde);var VY,HY,KSt=rk(DH,`ForceModelStrategy`,424,wJ,tke,dbe),qSt;J(985,1,EH,qre),Q.tf=function(e){gut(e)};var JSt,YSt,XSt,UY,ZSt,QSt,$St,eCt,tCt,nCt,rCt,iCt,aCt,oCt,WY,sCt,GY,cCt,lCt,uCt,KY,qY,dCt,fCt,pCt,mCt,hCt;R(DH,`ForceOptions`,985),J(986,1,{},ot),Q.uf=function(){return new bf},Q.vf=function(e){},R(DH,`ForceOptions/ForceFactory`,986);var JY,YY,XY,ZY;J(846,1,EH,Jre),Q.tf=function(e){JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,_pt),``),`Fixed Position`),`Prevent that the node is moved by the layout algorithm.`),(by(),!1)),(yI(),B3)),LJ),WM((eP(),I3))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,vpt),``),`Desired Edge Length`),`Either specified for parent nodes or for individual edges, where the latter takes higher precedence.`),100),V3),BJ),Gx(L3,W(A(z3,1),Z,160,0,[P3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,ypt),``),`Layout Dimension`),`Dimensions that are permitted to be altered during layout.`),vCt),H3),NCt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,bpt),``),`Stress Epsilon`),`Termination criterion for the iterative process.`),wH),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,xpt),``),`Iteration Limit`),`Maximum number of performed iterations. Takes higher precedence than 'epsilon'.`),K($z)),W3),HJ),WM(L3)))),wct((new Yre,e))};var gCt,_Ct,vCt,yCt,bCt,xCt;R(DH,`StressMetaDataProvider`,846),J(989,1,EH,Yre),Q.tf=function(e){wct(e)};var QY,SCt,CCt,wCt,TCt,ECt,DCt,OCt,kCt,ACt,jCt,MCt;R(DH,`StressOptions`,989),J(990,1,{},st),Q.uf=function(){return new Yve},Q.vf=function(e){},R(DH,`StressOptions/StressFactory`,990),J(1081,214,_H,Yve),Q.kf=function(e,t){var n,r,i,a,o;for(t.Tg(Spt,1),Gp(nb(Y(e,(uF(),TCt))))?Gp(nb(Y(e,jCt)))||Uw((n=new $l((Vh(),new Bp(e))),n)):l7e(new bf,e,t.dh(1)),i=yUe(e),r=$it(this.a,i),o=r.Jc();o.Ob();)a=F(o.Pb(),235),!(a.e.c.length<=1)&&(Dot(this.b,a),d5e(this.b),kO(a.d,new ct));i=lut(r),Wut(i),t.Ug()},R($H,`StressLayoutProvider`,1081),J(1082,1,xB,ct),Q.Ad=function(e){Lat(F(e,445))},R($H,`StressLayoutProvider/lambda$0$Type`,1082),J(987,1,{},tf),Q.c=0,Q.e=0,Q.g=0,R($H,`StressMajorization`,987),J(384,24,{3:1,35:1,24:1,384:1},fg);var $Y,eX,tX,NCt=rk($H,`StressMajorization/Dimension`,384,wJ,TAe,fbe),PCt;J(988,1,ZV,ou),Q.Le=function(e,t){return Aye(this.a,F(e,155),F(t,155))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R($H,`StressMajorization/lambda$0$Type`,988),J(1162,1,{},gje),R(eU,`ElkLayered`,1162),J(1163,1,xB,Cae),Q.Ad=function(e){O3e(this.a,F(e,36))},R(eU,`ElkLayered/lambda$0$Type`,1163),J(1164,1,xB,su),Q.Ad=function(e){kye(this.a,F(e,36))},R(eU,`ElkLayered/lambda$1$Type`,1164),J(1247,1,{},dhe);var FCt,ICt,LCt;R(eU,`GraphConfigurator`,1247),J(757,1,xB,cu),Q.Ad=function(e){g2e(this.a,F(e,9))},R(eU,`GraphConfigurator/lambda$0$Type`,757),J(758,1,{},lt),Q.Kb=function(e){return yF(),new Mx(null,new DT(F(e,25).a,16))},R(eU,`GraphConfigurator/lambda$1$Type`,758),J(759,1,xB,lu),Q.Ad=function(e){g2e(this.a,F(e,9))},R(eU,`GraphConfigurator/lambda$2$Type`,759),J(1248,1,RB,ut),Q.Mb=function(e){return yF(),!!nJe(F(e,9))},R(eU,`GraphConfigurator/lambda$3$Type`,1248),J(1080,214,_H,xf),Q.kf=function(e,t){var n=Yat(new Df,e);M(Y(e,(zz(),x1)))===M((Ej(),x8))?IKe(this.a,n,t):a5e(this.a,n,t),t.Zg()||Llt(new Xre,n)},R(eU,`LayeredLayoutProvider`,1080),J(363,24,{3:1,35:1,24:1,363:1},pg);var nX,rX,iX,aX,oX,RCt=rk(eU,`LayeredPhases`,363,wJ,RPe,pbe),zCt;J(1686,1,{},pBe),Q.i=0;var BCt;R(tU,`ComponentsToCGraphTransformer`,1686);var VCt;J(1687,1,{},dt),Q.wf=function(e,t){return r.Math.min(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},Q.xf=function(e,t){return r.Math.min(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},R(tU,`ComponentsToCGraphTransformer/1`,1687),J(82,1,{82:1}),Q.i=0,Q.k=!0,Q.o=OV;var sX=R(nU,`CNode`,82);J(460,82,{460:1,82:1},Xge,$Je),Q.Ib=function(){return``},R(tU,`ComponentsToCGraphTransformer/CRectNode`,460),J(1655,1,{},ft);var cX,lX;R(tU,`OneDimensionalComponentsCompaction`,1655),J(1656,1,{},pt),Q.Kb=function(e){return Zke(F(e,49))},Q.Fb=function(e){return this===e},R(tU,`OneDimensionalComponentsCompaction/lambda$0$Type`,1656),J(1657,1,{},mt),Q.Kb=function(e){return YKe(F(e,49))},Q.Fb=function(e){return this===e},R(tU,`OneDimensionalComponentsCompaction/lambda$1$Type`,1657),J(1689,1,{},uEe),R(nU,`CGraph`,1689),J(194,1,{194:1},WN),Q.b=0,Q.c=0,Q.e=0,Q.g=!0,Q.i=OV,R(nU,`CGroup`,194),J(1688,1,{},ht),Q.wf=function(e,t){return r.Math.max(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},Q.xf=function(e,t){return r.Math.max(e.a==null?e.c.i:k(e.a),t.a==null?t.c.i:k(t.a))},R(nU,zft,1688),J(1690,1,{},j6e),Q.d=!1;var HCt,uX=R(nU,Hft,1690);J(1691,1,{},gt),Q.Kb=function(e){return Que(),by(),F(F(e,49).a,82).d.e!=0},Q.Fb=function(e){return this===e},R(nU,Uft,1691),J(818,1,{},ICe),Q.a=!1,Q.b=!1,Q.c=!1,Q.d=!1,R(nU,Wft,818),J(1871,1,{},Nwe),R(rU,Gft,1871);var dX=Ox(iU,Lft);J(1872,1,{377:1},TOe),Q._e=function(e){xet(this,F(e,465))},R(rU,Kft,1872),J(1873,1,ZV,_t),Q.Le=function(e,t){return wDe(F(e,82),F(t,82))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(rU,qft,1873),J(465,1,{465:1},Vde),Q.a=!1,R(rU,Jft,465),J(1874,1,ZV,vt),Q.Le=function(e,t){return $Qe(F(e,465),F(t,465))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(rU,Yft,1874),J(146,1,{146:1},mg,eCe),Q.Fb=function(e){var t;return e==null||UCt!=Cj(e)?!1:(t=F(e,146),RC(this.c,t.c)&&RC(this.d,t.d))},Q.Hb=function(){return Lj(W(A(hJ,1),iB,1,5,[this.c,this.d]))},Q.Ib=function(){return`(`+this.c+rB+this.d+(this.a?`cx`:``)+this.b+`)`},Q.a=!0,Q.c=0,Q.d=0;var UCt=R(iU,`Point`,146);J(408,24,{3:1,35:1,24:1,408:1},hg);var fX,pX,mX,hX,WCt=rk(iU,`Point/Quadrant`,408,wJ,RMe,mbe),GCt;J(1677,1,{},Lse),Q.b=null,Q.c=null,Q.d=null,Q.e=null,Q.f=null;var KCt,qCt,JCt,YCt,XCt;R(iU,`RectilinearConvexHull`,1677),J(569,1,{377:1},uP),Q._e=function(e){sLe(this,F(e,146))},Q.b=0;var ZCt;R(iU,`RectilinearConvexHull/MaximalElementsEventHandler`,569),J(1679,1,ZV,yt),Q.Le=function(e,t){return TDe(P(e),P(t))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(iU,`RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type`,1679),J(1678,1,{377:1},VRe),Q._e=function(e){h9e(this,F(e,146))},Q.a=0,Q.b=null,Q.c=null,Q.d=null,Q.e=null,R(iU,`RectilinearConvexHull/RectangleEventHandler`,1678),J(1680,1,ZV,bt),Q.Le=function(e,t){return yje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(iU,`RectilinearConvexHull/lambda$0$Type`,1680),J(1681,1,ZV,nee),Q.Le=function(e,t){return bje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(iU,`RectilinearConvexHull/lambda$1$Type`,1681),J(1682,1,ZV,ree),Q.Le=function(e,t){return Sje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(iU,`RectilinearConvexHull/lambda$2$Type`,1682),J(1683,1,ZV,iee),Q.Le=function(e,t){return xje(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(iU,`RectilinearConvexHull/lambda$3$Type`,1683),J(1684,1,ZV,xt),Q.Le=function(e,t){return H0e(F(e,146),F(t,146))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(iU,`RectilinearConvexHull/lambda$4$Type`,1684),J(1685,1,{},eAe),R(iU,`Scanline`,1685),J(2069,1,{}),R(aU,`AbstractGraphPlacer`,2069),J(336,1,{336:1},m_e),Q.Df=function(e){return this.Ef(e)?(GI(this.b,F(q(e,(X(),WQ)),22),e),!0):!1},Q.Ef=function(e){for(var t=F(q(e,(X(),WQ)),22),n,r=F(VE(gX,t),22).Jc();r.Ob();)if(n=F(r.Pb(),22),!F(VE(this.b,n),16).dc())return!1;return!0};var gX;R(aU,`ComponentGroup`,336),J(766,2069,{},Cf),Q.Ff=function(e){for(var t,n=new D(this.a);n.an&&(d=0,f+=c+i,c=0),l=o.c,tR(o,d+l.a,f+l.b),cv(l),a=r.Math.max(a,d+u.a),c=r.Math.max(c,u.b),d+=u.a+i;t.f.a=a,t.f.b=f+c},Q.Hf=function(e,t){var n,r,i,a,o;if(M(q(t,(zz(),K$)))===M((HN(),yX))){for(r=e.Jc();r.Ob();){for(n=F(r.Pb(),36),o=0,a=new D(n.a);a.an&&!F(q(o,(X(),WQ)),22).Gc((Dz(),n5))||l&&F(q(l,(X(),WQ)),22).Gc((Dz(),t5))||F(q(o,(X(),WQ)),22).Gc((Dz(),x5)))&&(p=f,m+=c+i,c=0),u=o.c,F(q(o,(X(),WQ)),22).Gc((Dz(),n5))&&(p=a+i),tR(o,p+u.a,m+u.b),a=r.Math.max(a,p+d.a),F(q(o,WQ),22).Gc(y5)&&(f=r.Math.max(f,p+d.a+i)),cv(u),c=r.Math.max(c,d.b),p+=d.a+i,l=o;t.f.a=a,t.f.b=m+c},Q.Hf=function(e,t){},R(aU,`ModelOrderRowGraphPlacer`,1279),J(1277,1,ZV,see),Q.Le=function(e,t){return xHe(F(e,36),F(t,36))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(aU,`SimpleRowGraphPlacer/1`,1277);var twt;J(1246,1,tH,wt),Q.Lb=function(e){var t=F(q(F(e,250).b,(zz(),T1)),79);return!!t&&t.b!=0},Q.Fb=function(e){return this===e},Q.Mb=function(e){var t=F(q(F(e,250).b,(zz(),T1)),79);return!!t&&t.b!=0},R(lU,`CompoundGraphPostprocessor/1`,1246),J(1245,1,uU,Of),Q.If=function(e,t){dXe(this,F(e,36),t)},R(lU,`CompoundGraphPreprocessor`,1245),J(444,1,{444:1},PKe),Q.c=!1,R(lU,`CompoundGraphPreprocessor/ExternalPort`,444),J(250,1,{250:1},Wb),Q.Ib=function(){return Wy(this.c)+`:`+d6e(this.b)},R(lU,`CrossHierarchyEdge`,250),J(764,1,ZV,uu),Q.Le=function(e,t){return oQe(this,F(e,250),F(t,250))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(lU,`CrossHierarchyEdgeComparator`,764),J(246,150,{3:1,246:1,105:1,150:1}),Q.p=0,R(dU,`LGraphElement`,246),J(17,246,{3:1,17:1,246:1,105:1,150:1},Dw),Q.Ib=function(){return d6e(this)};var xX=R(dU,`LEdge`,17);J(36,246,{3:1,20:1,36:1,246:1,105:1,150:1},mBe),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return new D(this.b)},Q.Ib=function(){return this.b.c.length==0?`G-unlayered`+rI(this.a):this.a.c.length==0?`G-layered`+rI(this.b):`G[layerless`+rI(this.a)+`, layers`+rI(this.b)+`]`};var nwt=R(dU,`LGraph`,36),rwt;J(655,1,{}),Q.Jf=function(){return this.e.n},Q.mf=function(e){return q(this.e,e)},Q.Kf=function(){return this.e.o},Q.Lf=function(){return this.e.p},Q.nf=function(e){return Yy(this.e,e)},Q.Mf=function(e){this.e.n.a=e.a,this.e.n.b=e.b},Q.Nf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},Q.Of=function(e){this.e.p=e},R(dU,`LGraphAdapters/AbstractLShapeAdapter`,655),J(464,1,{838:1},du),Q.Pf=function(){var e,t;if(!this.b)for(this.b=Ly(this.a.b.c.length),t=new D(this.a.b);t.a0&&YWe((kT(t-1,e.length),e.charCodeAt(t-1)),kpt);)--t;if(a> `,e),eF(n)),Q_(Z_((e.a+=`[`,e),n.i),`]`)),e.a},Q.c=!0,Q.d=!1;var swt,cwt,lwt,uwt,dwt,fwt,pwt=R(dU,`LPort`,12);J(399,1,TB,fu),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return new pu(new D(this.a.e))},R(dU,`LPort/1`,399),J(1275,1,uB,pu),Q.Nb=function(e){PS(this,e)},Q.Pb=function(){return F(B(this.a),17).c},Q.Ob=function(){return Vv(this.a)},Q.Qb=function(){HS(this.a)},R(dU,`LPort/1/1`,1275),J(365,1,TB,mu),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return new hu(new D(this.a.g))},R(dU,`LPort/2`,365),J(763,1,uB,hu),Q.Nb=function(e){PS(this,e)},Q.Pb=function(){return F(B(this.a),17).d},Q.Ob=function(){return Vv(this.a)},Q.Qb=function(){HS(this.a)},R(dU,`LPort/2/1`,763),J(1268,1,TB,Ude),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return new JE(this)},R(dU,`LPort/CombineIter`,1268),J(207,1,uB,JE),Q.Nb=function(e){PS(this,e)},Q.Qb=function(){Ele()},Q.Ob=function(){return Ey(this)},Q.Pb=function(){return Vv(this.a)?B(this.a):B(this.b)},R(dU,`LPort/CombineIter/1`,207),J(1270,1,tH,Ot),Q.Lb=function(e){return Qwe(e)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return Qk(),F(e,12).e.c.length!=0},R(dU,`LPort/lambda$0$Type`,1270),J(1269,1,tH,cee),Q.Lb=function(e){return $we(e)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return Qk(),F(e,12).g.c.length!=0},R(dU,`LPort/lambda$1$Type`,1269),J(1271,1,tH,kt),Q.Lb=function(e){return Qk(),F(e,12).j==(Dz(),n5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return Qk(),F(e,12).j==(Dz(),n5)},R(dU,`LPort/lambda$2$Type`,1271),J(1272,1,tH,At),Q.Lb=function(e){return Qk(),F(e,12).j==(Dz(),t5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return Qk(),F(e,12).j==(Dz(),t5)},R(dU,`LPort/lambda$3$Type`,1272),J(1273,1,tH,jt),Q.Lb=function(e){return Qk(),F(e,12).j==(Dz(),y5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return Qk(),F(e,12).j==(Dz(),y5)},R(dU,`LPort/lambda$4$Type`,1273),J(1274,1,tH,Mt),Q.Lb=function(e){return Qk(),F(e,12).j==(Dz(),x5)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return Qk(),F(e,12).j==(Dz(),x5)},R(dU,`LPort/lambda$5$Type`,1274),J(25,246,{3:1,20:1,246:1,25:1,105:1,150:1},mC),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return new D(this.a)},Q.Ib=function(){return`L_`+VD(this.b.b,this,0)+rI(this.a)},R(dU,`Layer`,25),J(1662,1,{},PIe),Q.b=0,R(dU,`Tarjan`,1662),J(1283,1,{},Df),R(gU,Npt,1283),J(1287,1,{},Nt),Q.Kb=function(e){return VF(F(e,84))},R(gU,`ElkGraphImporter/0methodref$connectableShapeToNode$Type`,1287),J(1290,1,{},Pt),Q.Kb=function(e){return VF(F(e,84))},R(gU,`ElkGraphImporter/1methodref$connectableShapeToNode$Type`,1290),J(1284,1,xB,gu),Q.Ad=function(e){J6e(this.a,F(e,125))},R(gU,spt,1284),J(1285,1,xB,_u),Q.Ad=function(e){J6e(this.a,F(e,125))},R(gU,Ppt,1285),J(1286,1,{},lee),Q.Kb=function(e){return new Mx(null,new DT(lDe(F(e,85)),16))},R(gU,Fpt,1286),J(1288,1,RB,vu),Q.Mb=function(e){return Fme(this.a,F(e,26))},R(gU,Ipt,1288),J(1289,1,{},Ft),Q.Kb=function(e){return new Mx(null,new DT(cDe(F(e,85)),16))},R(gU,`ElkGraphImporter/lambda$5$Type`,1289),J(1291,1,RB,wae),Q.Mb=function(e){return Ime(this.a,F(e,26))},R(gU,`ElkGraphImporter/lambda$7$Type`,1291),J(1292,1,RB,uee),Q.Mb=function(e){return XDe(F(e,85))},R(gU,`ElkGraphImporter/lambda$8$Type`,1292),J(1263,1,{},Xre);var mwt;R(gU,`ElkGraphLayoutTransferrer`,1263),J(1264,1,RB,Tae),Q.Mb=function(e){return Nye(this.a,F(e,17))},R(gU,`ElkGraphLayoutTransferrer/lambda$0$Type`,1264),J(1265,1,xB,yu),Q.Ad=function(e){kh(),ry(this.a,F(e,17))},R(gU,`ElkGraphLayoutTransferrer/lambda$1$Type`,1265),J(1266,1,RB,bu),Q.Mb=function(e){return pve(this.a,F(e,17))},R(gU,`ElkGraphLayoutTransferrer/lambda$2$Type`,1266),J(1267,1,xB,Eae),Q.Ad=function(e){kh(),ry(this.a,F(e,17))},R(gU,`ElkGraphLayoutTransferrer/lambda$3$Type`,1267),J(807,1,{},Xve),R(_U,`BiLinkedHashMultiMap`,807),J(1512,1,uU,dee),Q.If=function(e,t){iVe(F(e,36),t)},R(_U,`CommentNodeMarginCalculator`,1512),J(1513,1,{},It),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`CommentNodeMarginCalculator/lambda$0$Type`,1513),J(1514,1,xB,Lt),Q.Ad=function(e){Gat(F(e,9))},R(_U,`CommentNodeMarginCalculator/lambda$1$Type`,1514),J(1515,1,uU,Rt),Q.If=function(e,t){Net(F(e,36),t)},R(_U,`CommentPostprocessor`,1515),J(1516,1,uU,fee),Q.If=function(e,t){Slt(F(e,36),t)},R(_U,`CommentPreprocessor`,1516),J(1517,1,uU,zt),Q.If=function(e,t){w9e(F(e,36),t)},R(_U,`ConstraintsPostprocessor`,1517),J(1518,1,uU,pee),Q.If=function(e,t){pHe(F(e,36),t)},R(_U,`EdgeAndLayerConstraintEdgeReverser`,1518),J(1519,1,uU,Bt),Q.If=function(e,t){Hqe(F(e,36),t)},R(_U,`EndLabelPostprocessor`,1519),J(1520,1,{},Vt),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`EndLabelPostprocessor/lambda$0$Type`,1520),J(1521,1,RB,Ht),Q.Mb=function(e){return EPe(F(e,9))},R(_U,`EndLabelPostprocessor/lambda$1$Type`,1521),J(1522,1,xB,mee),Q.Ad=function(e){e$e(F(e,9))},R(_U,`EndLabelPostprocessor/lambda$2$Type`,1522),J(1523,1,uU,Ut),Q.If=function(e,t){L4e(F(e,36),t)},R(_U,`EndLabelPreprocessor`,1523),J(1524,1,{},Wt),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`EndLabelPreprocessor/lambda$0$Type`,1524),J(1525,1,xB,bbe),Q.Ad=function(e){ode(this.a,this.b,this.c,F(e,9))},Q.a=0,Q.b=0,Q.c=!1,R(_U,`EndLabelPreprocessor/lambda$1$Type`,1525),J(1526,1,RB,Gt),Q.Mb=function(e){return M(q(F(e,70),(zz(),m1)))===M((NO(),p8))},R(_U,`EndLabelPreprocessor/lambda$2$Type`,1526),J(1527,1,xB,Dae),Q.Ad=function(e){fx(this.a,F(e,70))},R(_U,`EndLabelPreprocessor/lambda$3$Type`,1527),J(1528,1,RB,Kt),Q.Mb=function(e){return M(q(F(e,70),(zz(),m1)))===M((NO(),f8))},R(_U,`EndLabelPreprocessor/lambda$4$Type`,1528),J(1529,1,xB,Oae),Q.Ad=function(e){fx(this.a,F(e,70))},R(_U,`EndLabelPreprocessor/lambda$5$Type`,1529),J(1577,1,uU,Qre),Q.If=function(e,t){gKe(F(e,36),t)};var hwt;R(_U,`EndLabelSorter`,1577),J(1578,1,ZV,hee),Q.Le=function(e,t){return oYe(F(e,455),F(t,455))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`EndLabelSorter/1`,1578),J(455,1,{455:1},lOe),R(_U,`EndLabelSorter/LabelGroup`,455),J(1579,1,{},qt),Q.Kb=function(e){return jh(),new Mx(null,new DT(F(e,25).a,16))},R(_U,`EndLabelSorter/lambda$0$Type`,1579),J(1580,1,RB,Jt),Q.Mb=function(e){return jh(),F(e,9).k==(pL(),OX)},R(_U,`EndLabelSorter/lambda$1$Type`,1580),J(1581,1,xB,Yt),Q.Ad=function(e){_2e(F(e,9))},R(_U,`EndLabelSorter/lambda$2$Type`,1581),J(1582,1,RB,Xt),Q.Mb=function(e){return jh(),M(q(F(e,70),(zz(),m1)))===M((NO(),f8))},R(_U,`EndLabelSorter/lambda$3$Type`,1582),J(1583,1,RB,Zt),Q.Mb=function(e){return jh(),M(q(F(e,70),(zz(),m1)))===M((NO(),p8))},R(_U,`EndLabelSorter/lambda$4$Type`,1583),J(1530,1,uU,Qt),Q.If=function(e,t){vot(this,F(e,36))},Q.b=0,Q.c=0,R(_U,`FinalSplineBendpointsCalculator`,1530),J(1531,1,{},$t),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`FinalSplineBendpointsCalculator/lambda$0$Type`,1531),J(1532,1,{},en),Q.Kb=function(e){return new Mx(null,new oC(new uS(py(VM(F(e,9)).a.Jc(),new f))))},R(_U,`FinalSplineBendpointsCalculator/lambda$1$Type`,1532),J(1533,1,RB,tn),Q.Mb=function(e){return!IE(F(e,17))},R(_U,`FinalSplineBendpointsCalculator/lambda$2$Type`,1533),J(1534,1,RB,gee),Q.Mb=function(e){return Yy(F(e,17),(X(),T$))},R(_U,`FinalSplineBendpointsCalculator/lambda$3$Type`,1534),J(1535,1,xB,kae),Q.Ad=function(e){crt(this.a,F(e,132))},R(_U,`FinalSplineBendpointsCalculator/lambda$4$Type`,1535),J(1536,1,xB,_ee),Q.Ad=function(e){DI(F(e,17).a)},R(_U,`FinalSplineBendpointsCalculator/lambda$5$Type`,1536),J(791,1,uU,xu),Q.If=function(e,t){wst(this,F(e,36),t)},R(_U,`GraphTransformer`,791),J(503,24,{3:1,35:1,24:1,503:1},Wde);var MX,NX,gwt=rk(_U,`GraphTransformer/Mode`,503,wJ,nke,Dbe),_wt;J(1537,1,uU,nn),Q.If=function(e,t){v7e(F(e,36),t)},R(_U,`HierarchicalNodeResizingProcessor`,1537),J(1538,1,uU,rn),Q.If=function(e,t){sBe(F(e,36),t)},R(_U,`HierarchicalPortConstraintProcessor`,1538),J(1539,1,ZV,an),Q.Le=function(e,t){return BYe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`HierarchicalPortConstraintProcessor/NodeComparator`,1539),J(1540,1,uU,on),Q.If=function(e,t){Vit(F(e,36),t)},R(_U,`HierarchicalPortDummySizeProcessor`,1540),J(1541,1,uU,sn),Q.If=function(e,t){Ttt(this,F(e,36),t)},Q.a=0,R(_U,`HierarchicalPortOrthogonalEdgeRouter`,1541),J(1542,1,ZV,cn),Q.Le=function(e,t){return Vge(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`HierarchicalPortOrthogonalEdgeRouter/1`,1542),J(1543,1,ZV,ln),Q.Le=function(e,t){return KLe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`HierarchicalPortOrthogonalEdgeRouter/2`,1543),J(1544,1,uU,un),Q.If=function(e,t){L0e(F(e,36),t)},R(_U,`HierarchicalPortPositionProcessor`,1544),J(1545,1,uU,$s),Q.If=function(e,t){Tut(this,F(e,36))},Q.a=0,Q.c=0;var PX,FX;R(_U,`HighDegreeNodeLayeringProcessor`,1545),J(566,1,{566:1},dn),Q.b=-1,Q.d=-1,R(_U,`HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation`,566),J(1546,1,{},vee),Q.Kb=function(e){return Kb(),zM(F(e,9))},Q.Fb=function(e){return this===e},R(_U,`HighDegreeNodeLayeringProcessor/lambda$0$Type`,1546),J(1547,1,{},fn),Q.Kb=function(e){return Kb(),VM(F(e,9))},Q.Fb=function(e){return this===e},R(_U,`HighDegreeNodeLayeringProcessor/lambda$1$Type`,1547),J(1553,1,uU,yee),Q.If=function(e,t){wit(this,F(e,36),t)},R(_U,`HyperedgeDummyMerger`,1553),J(792,1,{},xbe),Q.a=!1,Q.b=!1,Q.c=!1,R(_U,`HyperedgeDummyMerger/MergeState`,792),J(1554,1,{},pn),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`HyperedgeDummyMerger/lambda$0$Type`,1554),J(1555,1,{},mn),Q.Kb=function(e){return new Mx(null,new DT(F(e,9).j,16))},R(_U,`HyperedgeDummyMerger/lambda$1$Type`,1555),J(1556,1,xB,hn),Q.Ad=function(e){F(e,12).p=-1},R(_U,`HyperedgeDummyMerger/lambda$2$Type`,1556),J(1557,1,uU,gn),Q.If=function(e,t){xit(F(e,36),t)},R(_U,`HypernodesProcessor`,1557),J(1558,1,uU,_n),Q.If=function(e,t){Bit(F(e,36),t)},R(_U,`InLayerConstraintProcessor`,1558),J(1559,1,uU,vn),Q.If=function(e,t){kVe(F(e,36),t)},R(_U,`InnermostNodeMarginCalculator`,1559),J(1560,1,uU,yn),Q.If=function(e,t){vlt(this,F(e,36))},Q.a=OV,Q.b=OV,Q.c=DV,Q.d=DV;var vwt=R(_U,`InteractiveExternalPortPositioner`,1560);J(1561,1,{},bn),Q.Kb=function(e){return F(e,17).d.i},Q.Fb=function(e){return this===e},R(_U,`InteractiveExternalPortPositioner/lambda$0$Type`,1561),J(1562,1,{},Su),Q.Kb=function(e){return Hge(this.a,P(e))},Q.Fb=function(e){return this===e},R(_U,`InteractiveExternalPortPositioner/lambda$1$Type`,1562),J(1563,1,{},xn),Q.Kb=function(e){return F(e,17).c.i},Q.Fb=function(e){return this===e},R(_U,`InteractiveExternalPortPositioner/lambda$2$Type`,1563),J(1564,1,{},Aae),Q.Kb=function(e){return Uge(this.a,P(e))},Q.Fb=function(e){return this===e},R(_U,`InteractiveExternalPortPositioner/lambda$3$Type`,1564),J(1565,1,{},jae),Q.Kb=function(e){return yye(this.a,P(e))},Q.Fb=function(e){return this===e},R(_U,`InteractiveExternalPortPositioner/lambda$4$Type`,1565),J(1566,1,{},Mae),Q.Kb=function(e){return bye(this.a,P(e))},Q.Fb=function(e){return this===e},R(_U,`InteractiveExternalPortPositioner/lambda$5$Type`,1566),J(77,24,{3:1,35:1,24:1,77:1,196:1},vg),Q.bg=function(){switch(this.g){case 15:return new Jr;case 22:return new Yr;case 49:return new Qr;case 29:case 36:return new jn;case 33:return new dee;case 44:return new Rt;case 1:return new fee;case 43:return new zt;case 58:return new xu((Nk(),NX));case 0:return new xu((Nk(),MX));case 2:return new pee;case 56:return new Bt;case 34:return new Ut;case 53:return new Qt;case 57:return new nn;case 13:return new rn;case 39:return new on;case 46:return new sn;case 42:return new un;case 9:return new $s;case 51:return new Zge;case 38:return new yee;case 45:return new gn;case 28:return new _n;case 31:return new vn;case 3:return new yn;case 18:return new Sn;case 30:return new Cn;case 5:return new Zs;case 52:return new En;case 35:return new Zre;case 37:return new Mn;case 54:return new Qre;case 11:return new Nn;case 7:return new Qs;case 41:return new Pn;case 47:return new Fn;case 16:return new In;case 40:return new xee;case 10:return new bpe;case 50:return new Cee;case 21:return new wee;case 23:return new Rp((qj(),g2));case 8:return new Hn;case 12:return new Wn;case 4:return new See;case 19:return new ec;case 17:return new $n;case 55:return new Eee;case 6:return new sr;case 25:return new jf;case 26:return new Kr;case 48:return new Oee;case 32:return new tye;case 14:return new zee;case 27:return new ai;case 20:return new ur;case 24:return new Rp((qj(),_2));default:throw O(new Hp(vU+(this.f==null?``+this.g:this.f)))}};var ywt,bwt,xwt,Swt,Cwt,wwt,Twt,Ewt,Dwt,Owt,kwt,IX,LX,RX,Awt,jwt,Mwt,Nwt,Pwt,Fwt,Iwt,zX,Lwt,Rwt,zwt,Bwt,Vwt,BX,VX,HX,Hwt,UX,WX,GX,KX,qX,JX,Uwt,YX,XX,Wwt,Gwt,ZX,QX,Kwt,qwt,Jwt,Ywt,$X,eZ,tZ,nZ,rZ,iZ,aZ,Xwt,Zwt,Qwt,$wt,eTt=rk(_U,yU,77,wJ,M9e,Obe),tTt;J(1567,1,uU,Sn),Q.If=function(e,t){hlt(F(e,36),t)},R(_U,`InvertedPortProcessor`,1567),J(1568,1,uU,Cn),Q.If=function(e,t){Xnt(F(e,36),t)},R(_U,`LabelAndNodeSizeProcessor`,1568),J(1569,1,RB,bee),Q.Mb=function(e){return F(e,9).k==(pL(),OX)},R(_U,`LabelAndNodeSizeProcessor/lambda$0$Type`,1569),J(1570,1,RB,wn),Q.Mb=function(e){return F(e,9).k==(pL(),wX)},R(_U,`LabelAndNodeSizeProcessor/lambda$1$Type`,1570),J(1571,1,xB,Sbe),Q.Ad=function(e){sde(this.b,this.a,this.c,F(e,9))},Q.a=!1,Q.c=!1,R(_U,`LabelAndNodeSizeProcessor/lambda$2$Type`,1571),J(1572,1,uU,Zs),Q.If=function(e,t){Lct(F(e,36),t)};var nTt;R(_U,`LabelDummyInserter`,1572),J(1573,1,tH,Tn),Q.Lb=function(e){return M(q(F(e,70),(zz(),m1)))===M((NO(),d8))},Q.Fb=function(e){return this===e},Q.Mb=function(e){return M(q(F(e,70),(zz(),m1)))===M((NO(),d8))},R(_U,`LabelDummyInserter/1`,1573),J(1574,1,uU,En),Q.If=function(e,t){hct(F(e,36),t)},R(_U,`LabelDummyRemover`,1574),J(1575,1,RB,Dn),Q.Mb=function(e){return Gp(nb(q(F(e,70),(zz(),p1))))},R(_U,`LabelDummyRemover/lambda$0$Type`,1575),J(1333,1,uU,Zre),Q.If=function(e,t){ict(this,F(e,36),t)},Q.a=null;var oZ;R(_U,`LabelDummySwitcher`,1333),J(294,1,{294:1},Ent),Q.c=0,Q.d=null,Q.f=0,R(_U,`LabelDummySwitcher/LabelDummyInfo`,294),J(1334,1,{},On),Q.Kb=function(e){return Ik(),new Mx(null,new DT(F(e,25).a,16))},R(_U,`LabelDummySwitcher/lambda$0$Type`,1334),J(1335,1,RB,kn),Q.Mb=function(e){return Ik(),F(e,9).k==(pL(),TX)},R(_U,`LabelDummySwitcher/lambda$1$Type`,1335),J(1336,1,{},Cu),Q.Kb=function(e){return mve(this.a,F(e,9))},R(_U,`LabelDummySwitcher/lambda$2$Type`,1336),J(1337,1,xB,Nae),Q.Ad=function(e){mEe(this.a,F(e,294))},R(_U,`LabelDummySwitcher/lambda$3$Type`,1337),J(1338,1,ZV,An),Q.Le=function(e,t){return eTe(F(e,294),F(t,294))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`LabelDummySwitcher/lambda$4$Type`,1338),J(790,1,uU,jn),Q.If=function(e,t){KFe(F(e,36),t)},R(_U,`LabelManagementProcessor`,790),J(1576,1,uU,Mn),Q.If=function(e,t){fet(F(e,36),t)},R(_U,`LabelSideSelector`,1576),J(1584,1,uU,Nn),Q.If=function(e,t){gat(F(e,36),t)},R(_U,`LayerConstraintPostprocessor`,1584),J(1585,1,uU,Qs),Q.If=function(e,t){F8e(F(e,36),t)};var rTt;R(_U,`LayerConstraintPreprocessor`,1585),J(367,24,{3:1,35:1,24:1,367:1},yg);var sZ,cZ,lZ,uZ,iTt=rk(_U,`LayerConstraintPreprocessor/HiddenNodeConnections`,367,wJ,VMe,kbe),aTt;J(1586,1,uU,Pn),Q.If=function(e,t){lst(F(e,36),t)},R(_U,`LayerSizeAndGraphHeightCalculator`,1586),J(1587,1,uU,Fn),Q.If=function(e,t){y7e(F(e,36),t)},R(_U,`LongEdgeJoiner`,1587),J(1588,1,uU,In),Q.If=function(e,t){Not(F(e,36),t)},R(_U,`LongEdgeSplitter`,1588),J(1589,1,uU,xee),Q.If=function(e,t){Unt(F(e,36),t)},R(_U,`NodePlacementRepeater`,1589),J(1590,1,RB,Ln),Q.Mb=function(e){return F(e,9).k==(pL(),OX)},R(_U,`NodePlacementRepeater/lambda$0$Type`,1590),J(1591,1,uU,bpe),Q.If=function(e,t){elt(this,F(e,36),t)},Q.e=0,Q.f=0,Q.j=0,Q.k=0,Q.n=0,Q.o=0;var oTt,sTt;R(_U,`NodePromotion`,1591),J(1592,1,ZV,Rn),Q.Le=function(e,t){return lWe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`NodePromotion/1`,1592),J(1593,1,ZV,zn),Q.Le=function(e,t){return uWe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`NodePromotion/2`,1593),J(1594,1,{},Bn),Q.Kb=function(e){return F(e,49),qb(),by(),!0},Q.Fb=function(e){return this===e},R(_U,`NodePromotion/lambda$0$Type`,1594),J(1595,1,{},Pae),Q.Kb=function(e){return zke(this.a,F(e,49))},Q.Fb=function(e){return this===e},Q.a=0,R(_U,`NodePromotion/lambda$1$Type`,1595),J(1596,1,{},wu),Q.Kb=function(e){return Rke(this.a,F(e,49))},Q.Fb=function(e){return this===e},Q.a=0,R(_U,`NodePromotion/lambda$2$Type`,1596),J(1597,1,uU,Cee),Q.If=function(e,t){dut(F(e,36),t)},R(_U,`NorthSouthPortPostprocessor`,1597),J(1598,1,uU,wee),Q.If=function(e,t){Sut(F(e,36),t)},R(_U,`NorthSouthPortPreprocessor`,1598),J(1599,1,ZV,Vn),Q.Le=function(e,t){return EHe(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`NorthSouthPortPreprocessor/lambda$0$Type`,1599),J(1600,1,uU,Hn),Q.If=function(e,t){Jrt(F(e,36),t)},R(_U,`PartitionMidprocessor`,1600),J(1601,1,RB,Un),Q.Mb=function(e){return Yy(F(e,9),(zz(),q1))},R(_U,`PartitionMidprocessor/lambda$0$Type`,1601),J(1602,1,xB,Fae),Q.Ad=function(e){YDe(this.a,F(e,9))},R(_U,`PartitionMidprocessor/lambda$1$Type`,1602),J(1603,1,uU,Wn),Q.If=function(e,t){J7e(F(e,36),t)},R(_U,`PartitionPostprocessor`,1603),J(1604,1,uU,See),Q.If=function(e,t){wnt(F(e,36),t)},R(_U,`PartitionPreprocessor`,1604),J(1605,1,RB,Gn),Q.Mb=function(e){return Yy(F(e,9),(zz(),q1))},R(_U,`PartitionPreprocessor/lambda$0$Type`,1605),J(1606,1,RB,Tee),Q.Mb=function(e){return Yy(F(e,9),(zz(),q1))},R(_U,`PartitionPreprocessor/lambda$1$Type`,1606),J(1607,1,{},Kn),Q.Kb=function(e){return new Mx(null,new oC(new uS(py(VM(F(e,9)).a.Jc(),new f))))},R(_U,`PartitionPreprocessor/lambda$2$Type`,1607),J(1608,1,RB,Eu),Q.Mb=function(e){return Fle(this.a,F(e,17))},R(_U,`PartitionPreprocessor/lambda$3$Type`,1608),J(1609,1,xB,qn),Q.Ad=function(e){eUe(F(e,17))},R(_U,`PartitionPreprocessor/lambda$4$Type`,1609),J(1610,1,RB,Iae),Q.Mb=function(e){return hEe(this.a,F(e,9))},Q.a=0,R(_U,`PartitionPreprocessor/lambda$5$Type`,1610),J(1611,1,uU,ec),Q.If=function(e,t){Srt(F(e,36),t)};var cTt,lTt,uTt,dTt,fTt,pTt;R(_U,`PortListSorter`,1611),J(1614,1,ZV,Jn),Q.Le=function(e,t){return VNe(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`PortListSorter/lambda$0$Type`,1614),J(1616,1,ZV,Yn),Q.Le=function(e,t){return fit(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`PortListSorter/lambda$1$Type`,1616),J(1612,1,{},Xn),Q.Kb=function(e){return pj(),F(e,12).e},R(_U,`PortListSorter/lambda$2$Type`,1612),J(1613,1,{},Zn),Q.Kb=function(e){return pj(),F(e,12).g},R(_U,`PortListSorter/lambda$3$Type`,1613),J(1615,1,ZV,Qn),Q.Le=function(e,t){return HZe(F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`PortListSorter/lambda$4$Type`,1615),J(1617,1,uU,$n),Q.If=function(e,t){q8e(F(e,36),t)},R(_U,`PortSideProcessor`,1617),J(1618,1,uU,Eee),Q.If=function(e,t){tnt(F(e,36),t)},R(_U,`ReversedEdgeRestorer`,1618),J(1623,1,uU,jf),Q.If=function(e,t){lZe(this,F(e,36),t)},R(_U,`SelfLoopPortRestorer`,1623),J(1624,1,{},Dee),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`SelfLoopPortRestorer/lambda$0$Type`,1624),J(1625,1,RB,er),Q.Mb=function(e){return F(e,9).k==(pL(),OX)},R(_U,`SelfLoopPortRestorer/lambda$1$Type`,1625),J(1626,1,RB,tr),Q.Mb=function(e){return Yy(F(e,9),(X(),x$))},R(_U,`SelfLoopPortRestorer/lambda$2$Type`,1626),J(1627,1,{},nr),Q.Kb=function(e){return F(q(F(e,9),(X(),x$)),338)},R(_U,`SelfLoopPortRestorer/lambda$3$Type`,1627),J(1628,1,xB,Lae),Q.Ad=function(e){R2e(this.a,F(e,338))},R(_U,`SelfLoopPortRestorer/lambda$4$Type`,1628),J(793,1,xB,rr),Q.Ad=function(e){r4e(F(e,107))},R(_U,`SelfLoopPortRestorer/lambda$5$Type`,793),J(1630,1,uU,Oee),Q.If=function(e,t){UYe(F(e,36),t)},R(_U,`SelfLoopPostProcessor`,1630),J(1631,1,{},kee),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`SelfLoopPostProcessor/lambda$0$Type`,1631),J(1632,1,RB,Aee),Q.Mb=function(e){return F(e,9).k==(pL(),OX)},R(_U,`SelfLoopPostProcessor/lambda$1$Type`,1632),J(1633,1,RB,ir),Q.Mb=function(e){return Yy(F(e,9),(X(),x$))},R(_U,`SelfLoopPostProcessor/lambda$2$Type`,1633),J(1634,1,xB,jee),Q.Ad=function(e){k$e(F(e,9))},R(_U,`SelfLoopPostProcessor/lambda$3$Type`,1634),J(1635,1,{},ar),Q.Kb=function(e){return new Mx(null,new DT(F(e,107).f,1))},R(_U,`SelfLoopPostProcessor/lambda$4$Type`,1635),J(1636,1,xB,Rae),Q.Ad=function(e){XMe(this.a,F(e,341))},R(_U,`SelfLoopPostProcessor/lambda$5$Type`,1636),J(1637,1,RB,or),Q.Mb=function(e){return!!F(e,107).i},R(_U,`SelfLoopPostProcessor/lambda$6$Type`,1637),J(1638,1,xB,zae),Q.Ad=function(e){Ap(this.a,F(e,107))},R(_U,`SelfLoopPostProcessor/lambda$7$Type`,1638),J(1619,1,uU,sr),Q.If=function(e,t){Y5e(F(e,36),t)},R(_U,`SelfLoopPreProcessor`,1619),J(1620,1,{},Mee),Q.Kb=function(e){return new Mx(null,new DT(F(e,107).f,1))},R(_U,`SelfLoopPreProcessor/lambda$0$Type`,1620),J(1621,1,{},Nee),Q.Kb=function(e){return F(e,341).a},R(_U,`SelfLoopPreProcessor/lambda$1$Type`,1621),J(1622,1,xB,Pee),Q.Ad=function(e){che(F(e,17))},R(_U,`SelfLoopPreProcessor/lambda$2$Type`,1622),J(1639,1,uU,tye),Q.If=function(e,t){l2e(this,F(e,36),t)},R(_U,`SelfLoopRouter`,1639),J(1640,1,{},Fee),Q.Kb=function(e){return new Mx(null,new DT(F(e,25).a,16))},R(_U,`SelfLoopRouter/lambda$0$Type`,1640),J(1641,1,RB,Iee),Q.Mb=function(e){return F(e,9).k==(pL(),OX)},R(_U,`SelfLoopRouter/lambda$1$Type`,1641),J(1642,1,RB,Lee),Q.Mb=function(e){return Yy(F(e,9),(X(),x$))},R(_U,`SelfLoopRouter/lambda$2$Type`,1642),J(1643,1,{},Ree),Q.Kb=function(e){return F(q(F(e,9),(X(),x$)),338)},R(_U,`SelfLoopRouter/lambda$3$Type`,1643),J(1644,1,xB,Zde),Q.Ad=function(e){EDe(this.a,this.b,F(e,338))},R(_U,`SelfLoopRouter/lambda$4$Type`,1644),J(1645,1,uU,zee),Q.If=function(e,t){G9e(F(e,36),t)},R(_U,`SemiInteractiveCrossMinProcessor`,1645),J(1646,1,RB,Bee),Q.Mb=function(e){return F(e,9).k==(pL(),OX)},R(_U,`SemiInteractiveCrossMinProcessor/lambda$0$Type`,1646),J(1647,1,RB,Vee),Q.Mb=function(e){return QCe(F(e,9))._b((zz(),e0))},R(_U,`SemiInteractiveCrossMinProcessor/lambda$1$Type`,1647),J(1648,1,ZV,cr),Q.Le=function(e,t){return XBe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(_U,`SemiInteractiveCrossMinProcessor/lambda$2$Type`,1648),J(1649,1,{},lr),Q.Te=function(e,t){return JDe(F(e,9),F(t,9))},R(_U,`SemiInteractiveCrossMinProcessor/lambda$3$Type`,1649),J(1651,1,uU,ur),Q.If=function(e,t){Mst(F(e,36),t)},R(_U,`SortByInputModelProcessor`,1651),J(1652,1,RB,dr),Q.Mb=function(e){return F(e,12).g.c.length!=0},R(_U,`SortByInputModelProcessor/lambda$0$Type`,1652),J(1653,1,xB,Bae),Q.Ad=function(e){p4e(this.a,F(e,12))},R(_U,`SortByInputModelProcessor/lambda$1$Type`,1653),J(1732,805,{},ZBe),Q.bf=function(e){var t,n,r,i;switch(this.c=e,this.a.g){case 2:t=new Od,xh(ZC(new Mx(null,new DT(this.c.a.b,16)),new xr),new nfe(this,t)),AI(this,new pr),kO(t,new mr),t.c.length=0,xh(ZC(new Mx(null,new DT(this.c.a.b,16)),new hr),new Ou(t)),AI(this,new gr),kO(t,new Hee),t.c.length=0,n=ahe(eA($C(new Mx(null,new DT(this.c.a.b,16)),new Vae(this))),new _r),xh(new Mx(null,new DT(this.c.a.a,16)),new $de(n,t)),AI(this,new Wee),kO(t,new vr),t.c.length=0;break;case 3:r=new Od,AI(this,new fr),i=ahe(eA($C(new Mx(null,new DT(this.c.a.b,16)),new Du(this))),new Uee),xh(ZC(new Mx(null,new DT(this.c.a.b,16)),new yr),new tfe(i,r)),AI(this,new br),kO(r,new Gee),r.c.length=0;break;default:throw O(new $d)}},Q.b=0,R(xU,`EdgeAwareScanlineConstraintCalculation`,1732),J(1733,1,tH,fr),Q.Lb=function(e){return N(F(e,60).g,156)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return N(F(e,60).g,156)},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$0$Type`,1733),J(1734,1,{},Du),Q.We=function(e){return g3e(this.a,F(e,60))},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$1$Type`,1734),J(1742,1,zB,Qde),Q.be=function(){gF(this.a,this.b,-1)},Q.b=0,R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$10$Type`,1742),J(1744,1,tH,pr),Q.Lb=function(e){return N(F(e,60).g,156)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return N(F(e,60).g,156)},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$11$Type`,1744),J(1745,1,xB,mr),Q.Ad=function(e){F(e,375).be()},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$12$Type`,1745),J(1746,1,RB,hr),Q.Mb=function(e){return N(F(e,60).g,9)},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$13$Type`,1746),J(1748,1,xB,Ou),Q.Ad=function(e){XKe(this.a,F(e,60))},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$14$Type`,1748),J(1747,1,zB,afe),Q.be=function(){gF(this.b,this.a,-1)},Q.a=0,R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$15$Type`,1747),J(1749,1,tH,gr),Q.Lb=function(e){return N(F(e,60).g,9)},Q.Fb=function(e){return this===e},Q.Mb=function(e){return N(F(e,60).g,9)},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$16$Type`,1749),J(1750,1,xB,Hee),Q.Ad=function(e){F(e,375).be()},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$17$Type`,1750),J(1751,1,{},Vae),Q.We=function(e){return _3e(this.a,F(e,60))},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$18$Type`,1751),J(1752,1,{},_r),Q.Ue=function(){return 0},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$19$Type`,1752),J(1735,1,{},Uee),Q.Ue=function(){return 0},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$2$Type`,1735),J(1754,1,xB,$de),Q.Ad=function(e){wwe(this.a,this.b,F(e,321))},Q.a=0,R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$20$Type`,1754),J(1753,1,zB,efe),Q.be=function(){o5e(this.a,this.b,-1)},Q.b=0,R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$21$Type`,1753),J(1755,1,tH,Wee),Q.Lb=function(e){return F(e,60),!0},Q.Fb=function(e){return this===e},Q.Mb=function(e){return F(e,60),!0},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$22$Type`,1755),J(1756,1,xB,vr),Q.Ad=function(e){F(e,375).be()},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$23$Type`,1756),J(1736,1,RB,yr),Q.Mb=function(e){return N(F(e,60).g,9)},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$3$Type`,1736),J(1738,1,xB,tfe),Q.Ad=function(e){Twe(this.a,this.b,F(e,60))},Q.a=0,R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$4$Type`,1738),J(1737,1,zB,ofe),Q.be=function(){gF(this.b,this.a,-1)},Q.a=0,R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$5$Type`,1737),J(1739,1,tH,br),Q.Lb=function(e){return F(e,60),!0},Q.Fb=function(e){return this===e},Q.Mb=function(e){return F(e,60),!0},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$6$Type`,1739),J(1740,1,xB,Gee),Q.Ad=function(e){F(e,375).be()},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$7$Type`,1740),J(1741,1,RB,xr),Q.Mb=function(e){return N(F(e,60).g,156)},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$8$Type`,1741),J(1743,1,xB,nfe),Q.Ad=function(e){aze(this.a,this.b,F(e,60))},R(xU,`EdgeAwareScanlineConstraintCalculation/lambda$9$Type`,1743),J(1548,1,uU,Zge),Q.If=function(e,t){Rot(this,F(e,36),t)};var mTt;R(xU,`HorizontalGraphCompactor`,1548),J(1549,1,{},ku),Q.df=function(e,t){var n,r,i;return ZLe(e,t)||(n=jT(e),r=jT(t),n&&n.k==(pL(),wX)||r&&r.k==(pL(),wX))?0:(i=F(q(this.a.a,(X(),S$)),317),Kge(i,n?n.k:(pL(),EX),r?r.k:(pL(),EX)))},Q.ef=function(e,t){var n,r,i;return ZLe(e,t)?1:(n=jT(e),r=jT(t),i=F(q(this.a.a,(X(),S$)),317),qge(i,n?n.k:(pL(),EX),r?r.k:(pL(),EX)))},R(xU,`HorizontalGraphCompactor/1`,1549),J(1550,1,{},Sr),Q.cf=function(e,t){return Nh(),e.a.i==0},R(xU,`HorizontalGraphCompactor/lambda$0$Type`,1550),J(1551,1,{},Au),Q.cf=function(e,t){return ZDe(this.a,e,t)},R(xU,`HorizontalGraphCompactor/lambda$1$Type`,1551),J(1699,1,{},QLe);var hTt,gTt;R(xU,`LGraphToCGraphTransformer`,1699),J(1707,1,RB,Cr),Q.Mb=function(e){return e!=null},R(xU,`LGraphToCGraphTransformer/0methodref$nonNull$Type`,1707),J(1700,1,{},wr),Q.Kb=function(e){return Jb(),XM(q(F(F(e,60).g,9),(X(),d$)))},R(xU,`LGraphToCGraphTransformer/lambda$0$Type`,1700),J(1701,1,{},Tr),Q.Kb=function(e){return Jb(),LGe(F(F(e,60).g,156))},R(xU,`LGraphToCGraphTransformer/lambda$1$Type`,1701),J(1710,1,RB,Er),Q.Mb=function(e){return Jb(),N(F(e,60).g,9)},R(xU,`LGraphToCGraphTransformer/lambda$10$Type`,1710),J(1711,1,xB,Dr),Q.Ad=function(e){MDe(F(e,60))},R(xU,`LGraphToCGraphTransformer/lambda$11$Type`,1711),J(1712,1,RB,Or),Q.Mb=function(e){return Jb(),N(F(e,60).g,156)},R(xU,`LGraphToCGraphTransformer/lambda$12$Type`,1712),J(1716,1,xB,kr),Q.Ad=function(e){RGe(F(e,60))},R(xU,`LGraphToCGraphTransformer/lambda$13$Type`,1716),J(1713,1,xB,Hae),Q.Ad=function(e){_me(this.a,F(e,8))},Q.a=0,R(xU,`LGraphToCGraphTransformer/lambda$14$Type`,1713),J(1714,1,xB,Uae),Q.Ad=function(e){yme(this.a,F(e,119))},Q.a=0,R(xU,`LGraphToCGraphTransformer/lambda$15$Type`,1714),J(1715,1,xB,Wae),Q.Ad=function(e){vme(this.a,F(e,8))},Q.a=0,R(xU,`LGraphToCGraphTransformer/lambda$16$Type`,1715),J(1717,1,{},Ar),Q.Kb=function(e){return Jb(),new Mx(null,new oC(new uS(py(VM(F(e,9)).a.Jc(),new f))))},R(xU,`LGraphToCGraphTransformer/lambda$17$Type`,1717),J(1718,1,RB,jr),Q.Mb=function(e){return Jb(),IE(F(e,17))},R(xU,`LGraphToCGraphTransformer/lambda$18$Type`,1718),J(1719,1,xB,ju),Q.Ad=function(e){_Re(this.a,F(e,17))},R(xU,`LGraphToCGraphTransformer/lambda$19$Type`,1719),J(1703,1,xB,Gae),Q.Ad=function(e){Tje(this.a,F(e,156))},R(xU,`LGraphToCGraphTransformer/lambda$2$Type`,1703),J(1720,1,{},Kee),Q.Kb=function(e){return Jb(),new Mx(null,new DT(F(e,25).a,16))},R(xU,`LGraphToCGraphTransformer/lambda$20$Type`,1720),J(1721,1,{},Mr),Q.Kb=function(e){return Jb(),new Mx(null,new oC(new uS(py(VM(F(e,9)).a.Jc(),new f))))},R(xU,`LGraphToCGraphTransformer/lambda$21$Type`,1721),J(1722,1,{},qee),Q.Kb=function(e){return Jb(),F(q(F(e,17),(X(),T$)),16)},R(xU,`LGraphToCGraphTransformer/lambda$22$Type`,1722),J(1723,1,RB,Nr),Q.Mb=function(e){return Jge(F(e,16))},R(xU,`LGraphToCGraphTransformer/lambda$23$Type`,1723),J(1724,1,xB,Kae),Q.Ad=function(e){v3e(this.a,F(e,16))},R(xU,`LGraphToCGraphTransformer/lambda$24$Type`,1724),J(1725,1,{},Pr),Q.Kb=function(e){return Jb(),new Mx(null,new oC(new uS(py(VM(F(e,9)).a.Jc(),new f))))},R(xU,`LGraphToCGraphTransformer/lambda$25$Type`,1725),J(1726,1,RB,Fr),Q.Mb=function(e){return Jb(),IE(F(e,17))},R(xU,`LGraphToCGraphTransformer/lambda$26$Type`,1726),J(1728,1,xB,Mu),Q.Ad=function(e){gBe(this.a,F(e,17))},R(xU,`LGraphToCGraphTransformer/lambda$27$Type`,1728),J(1727,1,xB,qae),Q.Ad=function(e){Xce(this.a,F(e,70))},Q.a=0,R(xU,`LGraphToCGraphTransformer/lambda$28$Type`,1727),J(1702,1,xB,rfe),Q.Ad=function(e){ONe(this.a,this.b,F(e,156))},R(xU,`LGraphToCGraphTransformer/lambda$3$Type`,1702),J(1704,1,{},Jee),Q.Kb=function(e){return Jb(),new Mx(null,new DT(F(e,25).a,16))},R(xU,`LGraphToCGraphTransformer/lambda$4$Type`,1704),J(1705,1,{},Yee),Q.Kb=function(e){return Jb(),new Mx(null,new oC(new uS(py(VM(F(e,9)).a.Jc(),new f))))},R(xU,`LGraphToCGraphTransformer/lambda$5$Type`,1705),J(1706,1,{},Xee),Q.Kb=function(e){return Jb(),F(q(F(e,17),(X(),T$)),16)},R(xU,`LGraphToCGraphTransformer/lambda$6$Type`,1706),J(1708,1,xB,Nu),Q.Ad=function(e){M3e(this.a,F(e,16))},R(xU,`LGraphToCGraphTransformer/lambda$8$Type`,1708),J(1709,1,xB,ife),Q.Ad=function(e){lhe(this.a,this.b,F(e,156))},R(xU,`LGraphToCGraphTransformer/lambda$9$Type`,1709),J(1698,1,{},Ir),Q.af=function(e){var t,n,r,i,a;for(this.a=e,this.d=new pf,this.c=H($xt,iB,124,this.a.a.a.c.length,0,1),this.b=0,n=new D(this.a.a.a);n.a=g&&(ry(o,K(d)),y=r.Math.max(y,b[d-1]-f),c+=h,_+=b[d-1]-_,f=b[d-1],h=l[d]),h=r.Math.max(h,l[d]),++d;c+=h}m=r.Math.min(1/y,1/t.b/c),m>i&&(i=m,n=o)}return n},Q.ng=function(){return!1},R(kU,`MSDCutIndexHeuristic`,804),J(1650,1,uU,ai),Q.If=function(e,t){bat(F(e,36),t)},R(kU,`SingleEdgeGraphWrapper`,1650),J(231,24,{3:1,35:1,24:1,231:1},Cg);var NZ,PZ,FZ,IZ,LZ,RZ,zZ=rk(AU,`CenterEdgeLabelPlacementStrategy`,231,wJ,zIe,Nbe),kTt;J(422,24,{3:1,35:1,24:1,422:1},lfe);var ATt,BZ,jTt=rk(AU,`ConstraintCalculationStrategy`,422,wJ,zOe,Mbe),MTt;J(301,24,{3:1,35:1,24:1,301:1,188:1,196:1},wg),Q.bg=function(){return F5e(this)},Q.og=function(){return F5e(this)};var VZ,HZ,NTt,PTt,FTt=rk(AU,`CrossingMinimizationStrategy`,301,wJ,GMe,Pbe),ITt;J(350,24,{3:1,35:1,24:1,350:1},Tg);var LTt,UZ,WZ,RTt=rk(AU,`CuttingStrategy`,350,wJ,WAe,Fbe),zTt;J(267,24,{3:1,35:1,24:1,267:1,188:1,196:1},Eg),Q.bg=function(){return Btt(this)},Q.og=function(){return Btt(this)};var GZ,BTt,KZ,qZ,JZ,YZ,XZ,ZZ,QZ,VTt=rk(AU,`CycleBreakingStrategy`,267,wJ,vBe,Ibe),HTt;J(419,24,{3:1,35:1,24:1,419:1},dfe);var $Z,UTt,WTt=rk(AU,`DirectionCongruency`,419,wJ,BOe,Lbe),GTt;J(449,24,{3:1,35:1,24:1,449:1},Dg);var eQ,tQ,nQ,KTt=rk(AU,`EdgeConstraint`,449,wJ,GAe,Rbe),qTt;J(284,24,{3:1,35:1,24:1,284:1},Og);var rQ,iQ,aQ,oQ,sQ,cQ,JTt=rk(AU,`EdgeLabelSideSelection`,284,wJ,BIe,Vbe),YTt;J(476,24,{3:1,35:1,24:1,476:1},ffe);var lQ,XTt,ZTt=rk(AU,`EdgeStraighteningStrategy`,476,wJ,VOe,Hbe),QTt;J(282,24,{3:1,35:1,24:1,282:1},kg);var uQ,$Tt,eEt,dQ,tEt,nEt,rEt=rk(AU,`FixedAlignment`,282,wJ,VIe,Bbe),iEt;J(283,24,{3:1,35:1,24:1,283:1},Ag);var aEt,oEt,sEt,cEt,fQ,lEt,uEt=rk(AU,`GraphCompactionStrategy`,283,wJ,HIe,Ube),dEt;J(261,24,{3:1,35:1,24:1,261:1},jg);var pQ,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ,SQ,CQ=rk(AU,`GraphProperties`,261,wJ,DVe,Wbe),fEt;J(302,24,{3:1,35:1,24:1,302:1},pfe);var wQ,TQ,EQ,DQ=rk(AU,`GreedySwitchType`,302,wJ,jAe,Gbe),pEt;J(329,24,{3:1,35:1,24:1,329:1},Mg);var OQ,mEt,kQ,AQ=rk(AU,`GroupOrderStrategy`,329,wJ,MAe,Kbe),hEt;J(316,24,{3:1,35:1,24:1,316:1},Ng);var jQ,MQ,NQ,gEt=rk(AU,`InLayerConstraint`,316,wJ,NAe,qbe),_Et;J(420,24,{3:1,35:1,24:1,420:1},mfe);var PQ,vEt,yEt=rk(AU,`InteractiveReferencePoint`,420,wJ,HOe,Jbe),bEt,xEt,FQ,IQ,LQ,RQ,SEt,CEt,zQ,wEt,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,TEt,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,EEt,DEt,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,OEt,kEt,AEt,jEt,MEt,f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,NEt,E$,D$,O$,k$,A$,j$,M$;J(165,24,{3:1,35:1,24:1,165:1},Pg);var N$,P$,F$,I$,L$,PEt=rk(AU,`LayerConstraint`,165,wJ,WPe,Xbe),FEt;J(423,24,{3:1,35:1,24:1,423:1},hfe);var R$,z$,IEt=rk(AU,`LayerUnzippingStrategy`,423,wJ,UOe,Zbe),LEt;J(844,1,EH,tie),Q.tf=function(e){JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Jpt),``),`Direction Congruency`),`Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other.`),FDt),(yI(),H3)),WTt),WM((eP(),L3))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Ypt),``),`Feedback Edges`),`Whether feedback edges should be highlighted by routing around the nodes.`),(by(),!1)),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,MU),``),`Interactive Reference Point`),`Determines which point of a node is considered by interactive layout phases.`),iOt),H3),yEt),WM(L3)))),JT(e,MU,NU,oOt),JT(e,MU,BU,aOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Xpt),``),`Merge Edges`),`Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Zpt),``),`Merge Hierarchy-Crossing Edges`),`If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port.`),!0),B3),LJ),WM(L3)))),JM(e,new vI(ole(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Qpt),``),`Allow Non-Flow Ports To Switch Sides`),`Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed.`),!1),B3),LJ),WM(R3)),W(A(KJ,1),vB,2,6,[`org.eclipse.elk.layered.northOrSouthPort`])))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,$pt),``),`Port Sorting Strategy`),`Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes.`),ekt),H3),_jt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,emt),``),`Thoroughness`),`How much effort should be spent to produce a nice layout.`),K(7)),W3),HJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,tmt),``),`Add Unnecessary Bendpoints`),`Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,nmt),``),`Generate Position and Layer IDs`),`If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,NU),`cycleBreaking`),`Cycle Breaking Strategy`),`Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right).`),NDt),H3),VTt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,PU),jW),`Node Layering Strategy`),`Strategy for node layering.`),xOt),H3),ejt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,rmt),jW),`Layer Constraint`),`Determines a constraint on the placement of the node regarding the layering.`),dOt),H3),PEt),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,imt),jW),`Layer Choice Constraint`),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),W3),HJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,amt),jW),`Layer ID`),`Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),K(-1)),W3),HJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,FU),Amt),`Upper Bound On Width [MinWidth Layerer]`),`Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected.`),K(4)),W3),HJ),WM(L3)))),JT(e,FU,PU,mOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,IU),Amt),`Upper Layer Estimation Scaling Factor [MinWidth Layerer]`),`Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected.`),K(2)),W3),HJ),WM(L3)))),JT(e,IU,PU,gOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,LU),jmt),`Node Promotion Strategy`),`Reduces number of dummy nodes after layering phase (if possible).`),yOt),H3),fjt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,RU),jmt),`Max Node Promotion Iterations`),`Limits the number of iterations for node promotion.`),K(0)),W3),HJ),WM(L3)))),JT(e,RU,LU,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,zU),`layering.coffmanGraham`),`Layer Bound`),`The maximum number of nodes allowed per layer.`),K($z)),W3),HJ),WM(L3)))),JT(e,zU,PU,cOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,BU),MW),`Crossing Minimization Strategy`),`Strategy for crossing minimization.`),jDt),H3),FTt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,omt),MW),`Force Node Model Order`),`The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,VU),MW),`Hierarchical Sweepiness`),`How likely it is to use cross-hierarchy (1) vs bottom-up (-1).`),.1),V3),BJ),WM(L3)))),JT(e,VU,NW,CDt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,HU),MW),`Semi-Interactive Crossing Minimization`),`Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints.`),!1),B3),LJ),WM(L3)))),JT(e,HU,BU,kDt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,smt),MW),`In Layer Predecessor of`),`Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer`),null),K3),KJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,cmt),MW),`In Layer Successor of`),`Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer`),null),K3),KJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,lmt),MW),`Position Choice Constraint`),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),W3),HJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,umt),MW),`Position ID`),`Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set.`),K(-1)),W3),HJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,dmt),Mmt),`Greedy Switch Activation Threshold`),`By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation.`),K(40)),W3),HJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,UU),Mmt),`Greedy Switch Crossing Minimization`),`Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used.`),bDt),H3),DQ),WM(L3)))),JT(e,UU,BU,xDt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,WU),`crossingMinimization.greedySwitchHierarchical`),`Greedy Switch Crossing Minimization (hierarchical)`),`Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges.`),gDt),H3),DQ),WM(L3)))),JT(e,WU,BU,_Dt),JT(e,WU,NW,vDt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,GU),Nmt),`Node Placement Strategy`),`Strategy for node placement.`),QOt),H3),U0),WM(L3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,KU),Nmt),`Favor Straight Edges Over Balancing`),`Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false.`),B3),LJ),WM(L3)))),JT(e,KU,GU,BOt),JT(e,KU,GU,VOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,qU),Pmt),`BK Edge Straightening`),`Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments.`),POt),H3),ZTt),WM(L3)))),JT(e,qU,GU,FOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,JU),Pmt),`BK Fixed Alignment`),`Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four.`),LOt),H3),rEt),WM(L3)))),JT(e,JU,GU,ROt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,YU),`nodePlacement.linearSegments`),`Linear Segments Deflection Dampening`),`Dampens the movement of nodes to keep the diagram from getting too large.`),.3),V3),BJ),WM(L3)))),JT(e,YU,GU,UOt),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,XU),`nodePlacement.networkSimplex`),`Node Flexibility`),`Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent.`),H3),R0),WM(I3)))),JT(e,XU,GU,JOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,ZU),Fmt),`Node Flexibility Default`),`Default value of the 'nodeFlexibility' option for the children of a hierarchical node.`),KOt),H3),R0),WM(L3)))),JT(e,ZU,GU,qOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,QU),Fmt),`Node Flexibility Recompute Node Placement`),`Run a second node placement algorithm after the initial network simplex with node flexibility. In the second run, node flexibility is disabled and a different node placer can be used. The node sizes determined by the node flexibility option are used as fixed node sizes in the second run. If set to null (default) no second run is performed.`),null),H3),U0),WM(L3)))),JT(e,QU,GU,XOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,fmt),Imt),`Self-Loop Distribution`),`Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE.`),UDt),H3),Cjt),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,pmt),Imt),`Self-Loop Ordering`),`Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE.`),GDt),H3),Tjt),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,$U),`edgeRouting.splines`),`Spline Routing Mode`),`Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes.`),qDt),H3),Ojt),WM(L3)))),JT(e,$U,PW,JDt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,eW),`edgeRouting.splines.sloppy`),`Sloppy Spline Layer Spacing Factor`),`Spacing factor for routing area between layers when using sloppy spline routing.`),.2),V3),BJ),WM(L3)))),JT(e,eW,PW,XDt),JT(e,eW,$U,ZDt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,tW),`edgeRouting.polyline`),`Sloped Edge Zone Width`),`Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer.`),2),V3),BJ),WM(L3)))),JT(e,tW,PW,VDt),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,mmt),FW),`Spacing Base Value`),`An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node.`),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,hmt),FW),`Edge Node Between Layers Spacing`),`The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used.`),10),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,gmt),FW),`Edge Edge Between Layer Spacing`),`Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer.`),10),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,_mt),FW),`Node Node Between Layers Spacing`),`The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself.`),20),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,vmt),Lmt),`Direction Priority`),`Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase.`),K(0)),W3),HJ),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,ymt),Lmt),`Shortness Priority`),`Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase.`),K(0)),W3),HJ),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,bmt),Lmt),`Straightness Priority`),`Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement.`),K(0)),W3),HJ),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,nW),Rmt),`Connected Components Compaction`),`Tries to further compact components (disconnected sub-graphs).`),!1),B3),LJ),WM(L3)))),JT(e,nW,FH,!0),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,xmt),zmt),`Post Compaction Strategy`),Bmt),UEt),H3),uEt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Smt),zmt),`Post Compaction Constraint Calculation`),Bmt),VEt),H3),jTt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,rW),Vmt),`High Degree Node Treatment`),`Makes room around high degree nodes to place leafs and trees.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,iW),Vmt),`High Degree Node Threshold`),`Whether a node is considered to have a high degree.`),K(16)),W3),HJ),WM(L3)))),JT(e,iW,rW,!0),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,aW),Vmt),`High Degree Node Maximum Tree Height`),`Maximum height of a subtree connected to a high degree node to be moved to separate layers.`),K(5)),W3),HJ),WM(L3)))),JT(e,aW,rW,!0),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,oW),Hmt),`Graph Wrapping Strategy`),`For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'.`),Mkt),H3),Pjt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,sW),Hmt),`Additional Wrapped Edges Spacing`),`To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing.`),10),V3),BJ),WM(L3)))),JT(e,sW,oW,dkt),JT(e,sW,oW,fkt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,cW),Hmt),`Correction Factor for Wrapping`),`At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option.`),1),V3),BJ),WM(L3)))),JT(e,cW,oW,mkt),JT(e,cW,oW,hkt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,lW),Umt),`Cutting Strategy`),`The strategy by which the layer indexes are determined at which the layering crumbles into chunks.`),Skt),H3),RTt),WM(L3)))),JT(e,lW,oW,Ckt),JT(e,lW,oW,wkt),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,uW),Umt),`Manually Specified Cuts`),`Allows the user to specify her own cuts for a certain graph.`),G3),yJ),WM(L3)))),JT(e,uW,lW,_kt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,dW),`wrapping.cutting.msd`),`MSD Freedom`),`The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts.`),ykt),W3),HJ),WM(L3)))),JT(e,dW,lW,bkt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,fW),Wmt),`Validification Strategy`),`When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed.`),Lkt),H3),Mjt),WM(L3)))),JT(e,fW,oW,Rkt),JT(e,fW,oW,zkt),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,pW),Wmt),`Valid Indices for Wrapping`),null),G3),yJ),WM(L3)))),JT(e,pW,oW,Pkt),JT(e,pW,oW,Fkt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,mW),Gmt),`Improve Cuts`),`For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought.`),!0),B3),LJ),WM(L3)))),JT(e,mW,oW,Okt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,hW),Gmt),`Distance Penalty When Improving Cuts`),null),2),V3),BJ),WM(L3)))),JT(e,hW,oW,Ekt),JT(e,hW,mW,!0),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,gW),Gmt),`Improve Wrapped Edges`),`The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges.`),!0),B3),LJ),WM(L3)))),JT(e,gW,oW,Akt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,_W),IW),`Layer Unzipping Strategy`),`The strategy to use for unzipping a layer into multiple sublayers while maintaining the existing ordering of nodes and edges after crossing minimization. The default value is 'NONE'.`),AOt),H3),IEt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,vW),IW),`Minimize Edge Length Heuristic`),`Use a heuristic to decide whether or not to actually perform the layer split with the goal of minimizing the total edge length. This option only works when layerSplit is set to 2. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to true, then the value is set to true for the entire layer.`),!1),B3),LJ),WM(I3)))),JT(e,vW,yW,TOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,yW),IW),`Unzipping Layer Split`),`Defines the number of sublayers to split a layer into. The property can be set to the nodes in a layer, which then applies the property for the layer. If multiple nodes set the value to different values, then the lowest value is chosen.`),COt),W3),HJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,bW),IW),`Reset Alternation on Long Edges`),`If set to true, nodes will always be placed in the first sublayer after a long edge when using the ALTERNATING strategy. Otherwise long edge dummies are treated the same as regular nodes. The default value is true. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to false, then the value is set to false for the entire layer.`),DOt),B3),LJ),WM(I3)))),JT(e,bW,_W,OOt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Cmt),LW),`Edge Label Side Selection`),`Method to decide on edge label sides.`),zDt),H3),JTt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,wmt),LW),`Edge Center Label Placement Strategy`),`Determines in which layer center labels of long edges should be placed.`),LDt),H3),zZ),Gx(L3,W(A(z3,1),Z,160,0,[F3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,xW),RW),`Consider Model Order`),`Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting.`),fDt),H3),hjt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Tmt),RW),`Consider Port Order`),`If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,SW),RW),`No Model Order`),`Set on a node to not set a model order for this node even though it is a real node.`),!1),B3),LJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,CW),RW),`Consider Model Order for Components`),`If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected.`),GEt),H3),$Ct),WM(L3)))),JT(e,CW,FH,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Emt),RW),`Long Edge Ordering Strategy`),`Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout.`),cDt),H3),rjt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,wW),RW),`Crossing Counter Node Order Influence`),`Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0).`),0),V3),BJ),WM(L3)))),JT(e,wW,xW,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,TW),RW),`Crossing Counter Port Order Influence`),`Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0).`),0),V3),BJ),WM(L3)))),JT(e,TW,xW,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,EW),zW),Kmt),`Used to define partial ordering groups during cycle breaking. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group.`),K(0)),W3),HJ),WM(I3)))),JT(e,EW,SW,!1),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,DW),zW),Kmt),`Used to define partial ordering groups during crossing minimization. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group.`),K(0)),W3),HJ),Gx(I3,W(A(z3,1),Z,160,0,[P3,R3]))))),JT(e,DW,SW,!1),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,OW),zW),Kmt),`Used to define partial ordering groups during component packing. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group.`),K(0)),W3),HJ),Gx(I3,W(A(z3,1),Z,160,0,[P3,R3]))))),JT(e,OW,SW,!1),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Dmt),zW),`Cycle Breaking Group Ordering Strategy`),`Determines how to count ordering violations during cycle breaking. NONE: They do not count. ENFORCED: A group with a higher model order is before a node with a smaller. MODEL_ORDER: The model order counts instead of the model order group id ordering.`),YEt),H3),AQ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,kW),zW),`Cycle Breaking Preferred Source Id`),`The model order group id for which should be preferred as a source if possible.`),W3),HJ),WM(L3)))),JT(e,kW,NU,ZEt),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,AW),zW),`Cycle Breaking Preferred Target Id`),`The model order group id for which should be preferred as a target if possible.`),W3),HJ),WM(L3)))),JT(e,AW,NU,$Et),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Omt),zW),`Crossing Minimization Group Ordering Strategy`),`Determines how to count ordering violations during crossing minimization. NONE: They do not count. ENFORCED: A group with a lower id is before a group with a higher id. MODEL_ORDER: The model order counts instead of the model order group id ordering.`),rDt),H3),AQ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,kmt),zW),`Crossing Minimization Enforced Group Orders`),`Holds all group ids which are enforcing their order during crossing minimization strategies. E.g. if only groups 2 and -1 (default) enforce their ordering. Other groups e.g. the group of timer nodes can be ordered arbitrarily if it helps and the mentioned groups may not change their order.`),tDt),G3),yJ),WM(L3)))),Idt((new ic,e))};var REt,zEt,BEt,VEt,HEt,UEt,WEt,GEt,KEt,qEt,JEt,YEt,XEt,ZEt,QEt,$Et,eDt,tDt,nDt,rDt,iDt,aDt,oDt,sDt,cDt,lDt,uDt,dDt,fDt,pDt,mDt,hDt,gDt,_Dt,vDt,yDt,bDt,xDt,SDt,CDt,wDt,TDt,EDt,DDt,ODt,kDt,ADt,jDt,MDt,NDt,PDt,FDt,IDt,LDt,RDt,zDt,BDt,VDt,HDt,UDt,WDt,GDt,KDt,qDt,JDt,YDt,XDt,ZDt,QDt,$Dt,eOt,tOt,nOt,rOt,iOt,aOt,oOt,sOt,cOt,lOt,uOt,dOt,fOt,pOt,mOt,hOt,gOt,_Ot,vOt,yOt,bOt,xOt,SOt,COt,wOt,TOt,EOt,DOt,OOt,kOt,AOt,jOt,MOt,NOt,POt,FOt,IOt,LOt,ROt,zOt,BOt,VOt,HOt,UOt,WOt,GOt,KOt,qOt,JOt,YOt,XOt,ZOt,QOt,$Ot,ekt,tkt,nkt,rkt,ikt,akt,okt,skt,ckt,lkt,ukt,dkt,fkt,pkt,mkt,hkt,gkt,_kt,vkt,ykt,bkt,xkt,Skt,Ckt,wkt,Tkt,Ekt,Dkt,Okt,kkt,Akt,jkt,Mkt,Nkt,Pkt,Fkt,Ikt,Lkt,Rkt,zkt;R(AU,`LayeredMetaDataProvider`,844),J(983,1,EH,ic),Q.tf=function(e){Idt(e)};var B$,V$,H$,U$,W$,Bkt,G$,K$,q$,J$,Y$,Vkt,Hkt,Ukt,X$,Wkt,Z$,Q$,$$,e1,t1,n1,r1,i1,Gkt,a1,o1,Kkt,qkt,Jkt,Ykt,s1,c1,l1,u1,Xkt,d1,Zkt,Qkt,f1,p1,m1,h1,g1,$kt,eAt,tAt,_1,v1,nAt,y1,b1,rAt,x1,iAt,aAt,oAt,S1,C1,w1,sAt,cAt,T1,lAt,uAt,E1,D1,dAt,fAt,pAt,O1,k1,A1,j1,M1,mAt,N1,hAt,gAt,P1,F1,_At,I1,L1,vAt,R1,z1,B1,V1,H1,U1,W1,G1,K1,yAt,bAt,xAt,q1,SAt,CAt,wAt,TAt,EAt,J1,Y1,X1,Z1,DAt,Q1,OAt,$1,kAt,e0,AAt,t0,jAt,n0,MAt,NAt,r0,i0,PAt,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,FAt,IAt,LAt,RAt,zAt,S0,BAt,VAt,HAt,UAt,C0,WAt,GAt,KAt,qAt,w0,T0;R(AU,`LayeredOptions`,983),J(984,1,{},ui),Q.uf=function(){return new xf},Q.vf=function(e){},R(AU,`LayeredOptions/LayeredFactory`,984),J(1346,1,{}),Q.a=0;var JAt;R(JW,`ElkSpacings/AbstractSpacingsBuilder`,1346),J(779,1346,{},pqe);var E0,YAt;R(AU,`LayeredSpacings/LayeredSpacingsBuilder`,779),J(268,24,{3:1,35:1,24:1,268:1,188:1,196:1},Fg),Q.bg=function(){return Ott(this)},Q.og=function(){return Ott(this)};var D0,O0,k0,XAt,ZAt,QAt,A0,j0,$At,ejt=rk(AU,`LayeringStrategy`,268,wJ,yBe,Qbe),tjt;J(352,24,{3:1,35:1,24:1,352:1},Lg);var M0,njt,N0,rjt=rk(AU,`LongEdgeOrderingStrategy`,352,wJ,AAe,$be),ijt;J(203,24,{3:1,35:1,24:1,203:1},Rg);var P0,F0,I0,L0,R0=rk(AU,`NodeFlexibility`,203,wJ,KMe,exe),ajt;J(303,24,{3:1,35:1,24:1,303:1,188:1,196:1},zg),Q.bg=function(){return J8e(this)},Q.og=function(){return J8e(this)};var z0,B0,V0,H0,ojt,U0=rk(AU,`NodePlacementStrategy`,303,wJ,UPe,txe),sjt;J(243,24,{3:1,35:1,24:1,243:1},Ig);var cjt,W0,G0,K0,ljt,ujt,q0,djt,J0,Y0,fjt=rk(AU,`NodePromotionStrategy`,243,wJ,OVe,nxe),pjt;J(269,24,{3:1,35:1,24:1,269:1},Vg);var mjt,X0,Z0,Q0,hjt=rk(AU,`OrderingStrategy`,269,wJ,qMe,rxe),gjt;J(421,24,{3:1,35:1,24:1,421:1},gfe);var $0,e2,_jt=rk(AU,`PortSortingStrategy`,421,wJ,WOe,ixe),vjt;J(452,24,{3:1,35:1,24:1,452:1},Hg);var t2,n2,r2,yjt=rk(AU,`PortType`,452,wJ,LAe,axe),bjt;J(381,24,{3:1,35:1,24:1,381:1},Bg);var xjt,i2,Sjt,Cjt=rk(AU,`SelfLoopDistributionStrategy`,381,wJ,IAe,oxe),wjt;J(348,24,{3:1,35:1,24:1,348:1},Ug);var a2,o2,s2,Tjt=rk(AU,`SelfLoopOrderingStrategy`,348,wJ,FAe,sxe),Ejt;J(317,1,{317:1},Ust),R(AU,`Spacings`,317),J(349,24,{3:1,35:1,24:1,349:1},Wg);var c2,Djt,l2,Ojt=rk(AU,`SplineRoutingMode`,349,wJ,RAe,cxe),kjt;J(351,24,{3:1,35:1,24:1,351:1},Gg);var u2,Ajt,jjt,Mjt=rk(AU,`ValidifyStrategy`,351,wJ,zAe,lxe),Njt;J(382,24,{3:1,35:1,24:1,382:1},Kg);var d2,f2,p2,Pjt=rk(AU,`WrappingStrategy`,382,wJ,BAe,uxe),Fjt;J(1362,1,YW,nc),Q.pg=function(e){return F(e,36),Ijt},Q.If=function(e,t){Vst(this,F(e,36),t)};var Ijt;R(XW,`BFSNodeOrderCycleBreaker`,1362),J(1360,1,YW,iie),Q.pg=function(e){return F(e,36),Ljt},Q.If=function(e,t){got(this,F(e,36),t)};var Ljt;R(XW,`DFSNodeOrderCycleBreaker`,1360),J(1361,1,xB,fSe),Q.Ad=function(e){qnt(this.a,this.c,this.b,F(e,17))},Q.b=!1,R(XW,`DFSNodeOrderCycleBreaker/lambda$0$Type`,1361),J(1354,1,YW,rc),Q.pg=function(e){return F(e,36),Rjt},Q.If=function(e,t){hot(this,F(e,36),t)};var Rjt;R(XW,`DepthFirstCycleBreaker`,1354),J(780,1,YW,Iwe),Q.pg=function(e){return F(e,36),zjt},Q.If=function(e,t){adt(this,F(e,36),t)},Q.qg=function(e){return F(kx(e,CP(this.e,e.c.length)),9)};var zjt;R(XW,`GreedyCycleBreaker`,780),J(1357,780,YW,Kpe),Q.qg=function(e){var t,n,i,a,o,s,c,l,u=null;for(i=$z,l=r.Math.max(this.b.a.c.length,F(q(this.b,(X(),l$)),15).a),t=l*F(q(this.b,LQ),15).a,a=new hi,n=M(q(this.b,(zz(),Y$)))===M((YA(),OQ)),c=new D(e);c.ao&&(i=o,u=s));return u||F(kx(e,CP(this.e,e.c.length)),9)},R(XW,`GreedyModelOrderCycleBreaker`,1357),J(506,1,{},hi),Q.a=0,Q.b=0,R(XW,`GroupModelOrderCalculator`,506),J(1355,1,YW,tc),Q.pg=function(e){return F(e,36),Bjt},Q.If=function(e,t){Xot(this,F(e,36),t)};var Bjt;R(XW,`InteractiveCycleBreaker`,1355),J(1356,1,YW,nie),Q.pg=function(e){return F(e,36),Vjt},Q.If=function(e,t){$ot(F(e,36),t)};var Vjt;R(XW,`ModelOrderCycleBreaker`,1356),J(781,1,YW),Q.pg=function(e){return F(e,36),Hjt},Q.If=function(e,t){lat(this,F(e,36),t)},Q.rg=function(e,t){for(var n,r,i,a,o=0,s,c,l,u,d;ol&&(c=p,d=l),udE(new uS(py(VM(s).a.Jc(),new f))))for(i=new uS(py(zM(c).a.Jc(),new f));rL(i);)r=F(zE(i),17),F(mP(this.d,o),22).Gc(r.c.i)&&ry(this.c,r);else for(i=new uS(py(VM(s).a.Jc(),new f));rL(i);)r=F(zE(i),17),F(mP(this.d,o),22).Gc(r.d.i)&&ry(this.c,r)}},R(XW,`SCCNodeTypeCycleBreaker`,1359),J(1358,781,YW,Wpe),Q.rg=function(e,t){for(var n,r,i,a,o=0,s,c,l,u,d,p,m;ol&&(c=p,d=l),udE(new uS(py(VM(s).a.Jc(),new f))))for(i=new uS(py(zM(c).a.Jc(),new f));rL(i);)r=F(zE(i),17),F(mP(this.d,o),22).Gc(r.c.i)&&ry(this.c,r);else for(i=new uS(py(VM(s).a.Jc(),new f));rL(i);)r=F(zE(i),17),F(mP(this.d,o),22).Gc(r.d.i)&&ry(this.c,r)}},R(XW,`SCConnectivity`,1358),J(1374,1,YW,rie),Q.pg=function(e){return F(e,36),Ujt},Q.If=function(e,t){Ult(this,F(e,36),t)};var Ujt;R(ZW,`BreadthFirstModelOrderLayerer`,1374),J(1375,1,ZV,gi),Q.Le=function(e,t){return o3e(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(ZW,`BreadthFirstModelOrderLayerer/lambda$0$Type`,1375),J(1365,1,YW,rde),Q.pg=function(e){return F(e,36),Wjt},Q.If=function(e,t){mdt(this,F(e,36),t)};var Wjt;R(ZW,`CoffmanGrahamLayerer`,1365),J(1366,1,ZV,Lu),Q.Le=function(e,t){return z9e(this.a,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(ZW,`CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type`,1366),J(1367,1,ZV,Qae),Q.Le=function(e,t){return Swe(this.a,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(ZW,`CoffmanGrahamLayerer/lambda$1$Type`,1367),J(1376,1,YW,oie),Q.pg=function(e){return F(e,36),Gjt},Q.If=function(e,t){Gut(this,F(e,36),t)},Q.c=0,Q.e=0;var Gjt;R(ZW,`DepthFirstModelOrderLayerer`,1376),J(1377,1,ZV,yte),Q.Le=function(e,t){return s3e(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(ZW,`DepthFirstModelOrderLayerer/lambda$0$Type`,1377),J(1368,1,YW,bte),Q.pg=function(e){return F(e,36),Sx(Sx(Sx(new AC,($F(),nX),(Uz(),BX)),rX,JX),iX,qX)},Q.If=function(e,t){aut(F(e,36),t)},R(ZW,`InteractiveLayerer`,1368),J(564,1,{564:1},kf),Q.a=0,Q.c=0,R(ZW,`InteractiveLayerer/LayerSpan`,564),J(1364,1,YW,oc),Q.pg=function(e){return F(e,36),Kjt},Q.If=function(e,t){k9e(this,F(e,36),t)};var Kjt;R(ZW,`LongestPathLayerer`,1364),J(1373,1,YW,sie),Q.pg=function(e){return F(e,36),qjt},Q.If=function(e,t){aet(this,F(e,36),t)};var qjt;R(ZW,`LongestPathSourceLayerer`,1373),J(1371,1,YW,aie),Q.pg=function(e){return F(e,36),Sx(Sx(Sx(new AC,($F(),nX),(Uz(),IX)),rX,JX),iX,qX)},Q.If=function(e,t){xut(this,F(e,36),t)},Q.a=0,Q.b=0,Q.d=0;var Jjt,Yjt;R(ZW,`MinWidthLayerer`,1371),J(1372,1,ZV,$ae),Q.Le=function(e,t){return dHe(this,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(ZW,`MinWidthLayerer/MinOutgoingEdgesComparator`,1372),J(1363,1,YW,ac),Q.pg=function(e){return F(e,36),Xjt},Q.If=function(e,t){Kst(this,F(e,36),t)};var Xjt;R(ZW,`NetworkSimplexLayerer`,1363),J(1369,1,YW,Zve),Q.pg=function(e){return F(e,36),Sx(Sx(Sx(new AC,($F(),nX),(Uz(),IX)),rX,JX),iX,qX)},Q.If=function(e,t){Xct(this,F(e,36),t)},Q.d=0,Q.f=0,Q.g=0,Q.i=0,Q.s=0,Q.t=0,Q.u=0,R(ZW,`StretchWidthLayerer`,1369),J(1370,1,ZV,Ste),Q.Le=function(e,t){return PFe(F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(ZW,`StretchWidthLayerer/1`,1370),J(406,1,Mht),Q.eg=function(e,t,n,r,i,a){},Q.tg=function(e,t,n){return brt(this,e,t,n)},Q.dg=function(){this.g=H(Q9,Nht,30,this.d,15,1),this.f=H(Q9,Nht,30,this.d,15,1)},Q.fg=function(e,t){this.e[e]=H(q9,cV,30,t[e].length,15,1)},Q.gg=function(e,t,n){var r=n[e][t];r.p=t,this.e[e][t]=t},Q.hg=function(e,t,n,r){F(kx(r[e][t].j,n),12).p=this.d++},Q.b=0,Q.c=0,Q.d=0,R(QW,`AbstractBarycenterPortDistributor`,406),J(1666,1,ZV,eoe),Q.Le=function(e,t){return sYe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(QW,`AbstractBarycenterPortDistributor/lambda$0$Type`,1666),J(817,1,wU,wMe),Q.eg=function(e,t,n,r,i,a){},Q.gg=function(e,t,n){},Q.hg=function(e,t,n,r){},Q.cg=function(){return!1},Q.dg=function(){this.c=this.e.a,this.g=this.f.g},Q.fg=function(e,t){t[e][0].c.p=e},Q.ig=function(){return!1},Q.ug=function(e,t,n,r){n?n$e(this,e):(x$e(this,e,r),kct(this,e,t)),e.c.length>1&&(Gp(nb(q(jC((OT(0,e.c.length),F(e.c[0],9))),(zz(),i1))))?N5e(e,this.d,F(this,660)):(fw(),Bv(e,this.d)),hHe(this.e,e))},Q.jg=function(e,t,n,r){var i,a,o,s,c,l,u;for(t!=uwe(n,e.length)&&(a=e[t-(n?1:-1)],GFe(this.f,a,n?(uk(),n2):(uk(),t2))),i=e[t][0],u=!r||i.k==(pL(),wX),l=HE(e[t]),this.ug(l,u,!1,n),o=0,c=new D(l);c.a`),e0?tT(this.a,e[t-1],e[t]):!n&&t1&&(Gp(nb(q(jC((OT(0,e.c.length),F(e.c[0],9))),(zz(),i1))))?N5e(e,this.d,this):(fw(),Bv(e,this.d)),Gp(nb(q(jC((OT(0,e.c.length),F(e.c[0],9))),i1)))||hHe(this.e,e))},R(QW,`ModelOrderBarycenterHeuristic`,660),J(1846,1,ZV,ooe),Q.Le=function(e,t){return Xat(this.a,F(e,9),F(t,9))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(QW,`ModelOrderBarycenterHeuristic/lambda$0$Type`,1846),J(1384,1,YW,cc),Q.pg=function(e){var t;return F(e,36),t=gv(iMt),Sx(t,($F(),iX),(Uz(),$X)),t},Q.If=function(e,t){COe((F(e,36),t))};var iMt;R(QW,`NoCrossingMinimizer`,1384),J(797,406,Mht,dle),Q.sg=function(e,t,n){var r,i,a,o,s,c,l,u,d=this.g,f,p;switch(n.g){case 1:for(i=0,a=0,u=new D(e.j);u.a1&&(i.j==(Dz(),t5)?this.b[e]=!0:i.j==x5&&e>0&&(this.b[e-1]=!0))},Q.f=0,R(CU,`AllCrossingsCounter`,1841),J(584,1,{},Ak),Q.b=0,Q.d=0,R(CU,`BinaryIndexedTree`,584),J(520,1,{},Ab);var aMt,v2;R(CU,`CrossingsCounter`,520),J(1915,1,ZV,Vu),Q.Le=function(e,t){return swe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(CU,`CrossingsCounter/lambda$0$Type`,1915),J(1916,1,ZV,Hu),Q.Le=function(e,t){return cwe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(CU,`CrossingsCounter/lambda$1$Type`,1916),J(1917,1,ZV,Uu),Q.Le=function(e,t){return lwe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(CU,`CrossingsCounter/lambda$2$Type`,1917),J(1918,1,ZV,Wu),Q.Le=function(e,t){return owe(this.a,F(e,12),F(t,12))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(CU,`CrossingsCounter/lambda$3$Type`,1918),J(1919,1,xB,soe),Q.Ad=function(e){JLe(this.a,F(e,12))},R(CU,`CrossingsCounter/lambda$4$Type`,1919),J(1920,1,RB,coe),Q.Mb=function(e){return Tfe(this.a,F(e,12))},R(CU,`CrossingsCounter/lambda$5$Type`,1920),J(1921,1,xB,loe),Q.Ad=function(e){Fpe(this,e)},R(CU,`CrossingsCounter/lambda$6$Type`,1921),J(1922,1,xB,_fe),Q.Ad=function(e){var t;cx(),cE(this.b,(t=this.a,F(e,12),t))},R(CU,`CrossingsCounter/lambda$7$Type`,1922),J(824,1,tH,bi),Q.Lb=function(e){return cx(),Yy(F(e,12),(X(),m$))},Q.Fb=function(e){return this===e},Q.Mb=function(e){return cx(),Yy(F(e,12),(X(),m$))},R(CU,`CrossingsCounter/lambda$8$Type`,824),J(1914,1,{},uoe),R(CU,`HyperedgeCrossingsCounter`,1914),J(467,1,{35:1,467:1},Qve),Q.Dd=function(e){return UJe(this,F(e,467))},Q.b=0,Q.c=0,Q.e=0,Q.f=0;var oMt=R(CU,`HyperedgeCrossingsCounter/Hyperedge`,467);J(370,1,{35:1,370:1},tw),Q.Dd=function(e){return v5e(this,F(e,370))},Q.b=0,Q.c=0;var sMt=R(CU,`HyperedgeCrossingsCounter/HyperedgeCorner`,370);J(519,24,{3:1,35:1,24:1,519:1},vfe);var y2,b2,cMt=rk(CU,`HyperedgeCrossingsCounter/HyperedgeCorner/Type`,519,wJ,GOe,fxe),lMt;J(1386,1,YW,die),Q.pg=function(e){return F(q(F(e,36),(X(),YQ)),22).Gc((WL(),gQ))?uMt:null},Q.If=function(e,t){i$e(this,F(e,36),t)};var uMt;R(tG,`InteractiveNodePlacer`,1386),J(1387,1,YW,uc),Q.pg=function(e){return F(q(F(e,36),(X(),YQ)),22).Gc((WL(),gQ))?dMt:null},Q.If=function(e,t){KXe(this,F(e,36),t)};var dMt,x2,S2;R(tG,`LinearSegmentsNodePlacer`,1387),J(263,1,{35:1,263:1},Af),Q.Dd=function(e){return Qce(this,F(e,263))},Q.Fb=function(e){var t;return N(e,263)?(t=F(e,263),this.b==t.b):!1},Q.Hb=function(){return this.b},Q.Ib=function(){return`ls`+rI(this.e)},Q.a=0,Q.b=0,Q.c=-1,Q.d=-1,Q.g=0;var fMt=R(tG,`LinearSegmentsNodePlacer/LinearSegment`,263);J(1389,1,YW,Fwe),Q.pg=function(e){return F(q(F(e,36),(X(),YQ)),22).Gc((WL(),gQ))?pMt:null},Q.If=function(e,t){Kut(this,F(e,36),t)},Q.b=0,Q.g=0;var pMt;R(tG,`NetworkSimplexPlacer`,1389),J(1408,1,ZV,di),Q.Le=function(e,t){return Hv(F(e,15).a,F(t,15).a)},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(tG,`NetworkSimplexPlacer/0methodref$compare$Type`,1408),J(1410,1,ZV,fi),Q.Le=function(e,t){return Hv(F(e,15).a,F(t,15).a)},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(tG,`NetworkSimplexPlacer/1methodref$compare$Type`,1410),J(645,1,{645:1},yfe);var mMt=R(tG,`NetworkSimplexPlacer/EdgeRep`,645);J(405,1,{405:1},DDe),Q.b=!1;var hMt=R(tG,`NetworkSimplexPlacer/NodeRep`,405);J(501,13,{3:1,4:1,20:1,31:1,56:1,13:1,18:1,16:1,59:1,501:1},Mf),R(tG,`NetworkSimplexPlacer/Path`,501),J(1390,1,{},pi),Q.Kb=function(e){return F(e,17).d.i.k},R(tG,`NetworkSimplexPlacer/Path/lambda$0$Type`,1390),J(1391,1,RB,mi),Q.Mb=function(e){return F(e,249)==(pL(),EX)},R(tG,`NetworkSimplexPlacer/Path/lambda$1$Type`,1391),J(1392,1,{},_i),Q.Kb=function(e){return F(e,17).d.i},R(tG,`NetworkSimplexPlacer/Path/lambda$2$Type`,1392),J(1393,1,RB,doe),Q.Mb=function(e){return vve(nJe(F(e,9)))},R(tG,`NetworkSimplexPlacer/Path/lambda$3$Type`,1393),J(1394,1,RB,Cte),Q.Mb=function(e){return ACe(F(e,12))},R(tG,`NetworkSimplexPlacer/lambda$0$Type`,1394),J(1395,1,xB,bfe),Q.Ad=function(e){xhe(this.a,this.b,F(e,12))},R(tG,`NetworkSimplexPlacer/lambda$1$Type`,1395),J(1404,1,xB,foe),Q.Ad=function(e){F3e(this.a,F(e,17))},R(tG,`NetworkSimplexPlacer/lambda$10$Type`,1404),J(1405,1,{},wte),Q.Kb=function(e){return hT(),new Mx(null,new DT(F(e,25).a,16))},R(tG,`NetworkSimplexPlacer/lambda$11$Type`,1405),J(1406,1,xB,poe),Q.Ad=function(e){ltt(this.a,F(e,9))},R(tG,`NetworkSimplexPlacer/lambda$12$Type`,1406),J(1407,1,{},vi),Q.Kb=function(e){return hT(),K(F(e,124).e)},R(tG,`NetworkSimplexPlacer/lambda$13$Type`,1407),J(1409,1,{},Tte),Q.Kb=function(e){return hT(),K(F(e,124).e)},R(tG,`NetworkSimplexPlacer/lambda$15$Type`,1409),J(1411,1,RB,yi),Q.Mb=function(e){return hT(),F(e,405).c.k==(pL(),OX)},R(tG,`NetworkSimplexPlacer/lambda$17$Type`,1411),J(1412,1,RB,xi),Q.Mb=function(e){return hT(),F(e,405).c.j.c.length>1},R(tG,`NetworkSimplexPlacer/lambda$18$Type`,1412),J(1413,1,xB,ODe),Q.Ad=function(e){bqe(this.c,this.b,this.d,this.a,F(e,405))},Q.c=0,Q.d=0,R(tG,`NetworkSimplexPlacer/lambda$19$Type`,1413),J(1396,1,{},Dte),Q.Kb=function(e){return hT(),new Mx(null,new DT(F(e,25).a,16))},R(tG,`NetworkSimplexPlacer/lambda$2$Type`,1396),J(1414,1,xB,moe),Q.Ad=function(e){bhe(this.a,F(e,12))},Q.a=0,R(tG,`NetworkSimplexPlacer/lambda$20$Type`,1414),J(1415,1,{},Si),Q.Kb=function(e){return hT(),new Mx(null,new DT(F(e,25).a,16))},R(tG,`NetworkSimplexPlacer/lambda$21$Type`,1415),J(1416,1,xB,hoe),Q.Ad=function(e){Whe(this.a,F(e,9))},R(tG,`NetworkSimplexPlacer/lambda$22$Type`,1416),J(1417,1,RB,Ote),Q.Mb=function(e){return vve(e)},R(tG,`NetworkSimplexPlacer/lambda$23$Type`,1417),J(1418,1,{},Ci),Q.Kb=function(e){return hT(),new Mx(null,new DT(F(e,25).a,16))},R(tG,`NetworkSimplexPlacer/lambda$24$Type`,1418),J(1419,1,RB,goe),Q.Mb=function(e){return nme(this.a,F(e,9))},R(tG,`NetworkSimplexPlacer/lambda$25$Type`,1419),J(1420,1,xB,xfe),Q.Ad=function(e){X2e(this.a,this.b,F(e,9))},R(tG,`NetworkSimplexPlacer/lambda$26$Type`,1420),J(1421,1,RB,kte),Q.Mb=function(e){return hT(),!IE(F(e,17))},R(tG,`NetworkSimplexPlacer/lambda$27$Type`,1421),J(1422,1,RB,Ate),Q.Mb=function(e){return hT(),!IE(F(e,17))},R(tG,`NetworkSimplexPlacer/lambda$28$Type`,1422),J(1423,1,{},Gu),Q.Te=function(e,t){return yhe(this.a,F(e,25),F(t,25))},R(tG,`NetworkSimplexPlacer/lambda$29$Type`,1423),J(1397,1,{},wi),Q.Kb=function(e){return hT(),new Mx(null,new oC(new uS(py(VM(F(e,9)).a.Jc(),new f))))},R(tG,`NetworkSimplexPlacer/lambda$3$Type`,1397),J(1398,1,RB,jte),Q.Mb=function(e){return hT(),lMe(F(e,17))},R(tG,`NetworkSimplexPlacer/lambda$4$Type`,1398),J(1399,1,xB,_oe),Q.Ad=function(e){pat(this.a,F(e,17))},R(tG,`NetworkSimplexPlacer/lambda$5$Type`,1399),J(1400,1,{},Ti),Q.Kb=function(e){return hT(),new Mx(null,new DT(F(e,25).a,16))},R(tG,`NetworkSimplexPlacer/lambda$6$Type`,1400),J(1401,1,RB,Mte),Q.Mb=function(e){return hT(),F(e,9).k==(pL(),OX)},R(tG,`NetworkSimplexPlacer/lambda$7$Type`,1401),J(1402,1,{},Ei),Q.Kb=function(e){return hT(),new Mx(null,new oC(new uS(py(BM(F(e,9)).a.Jc(),new f))))},R(tG,`NetworkSimplexPlacer/lambda$8$Type`,1402),J(1403,1,RB,Nte),Q.Mb=function(e){return hT(),xCe(F(e,17))},R(tG,`NetworkSimplexPlacer/lambda$9$Type`,1403),J(1385,1,YW,dc),Q.pg=function(e){return F(q(F(e,36),(X(),YQ)),22).Gc((WL(),gQ))?gMt:null},Q.If=function(e,t){lot(F(e,36),t)};var gMt;R(tG,`SimpleNodePlacer`,1385),J(185,1,{185:1},fR),Q.Ib=function(){var e=``;return this.c==(Hw(),w2)?e+=sH:this.c==C2&&(e+=oH),this.o==(nT(),T2)?e+=pH:this.o==E2?e+=`UP`:e+=`BALANCED`,e},R(rG,`BKAlignedLayout`,185),J(510,24,{3:1,35:1,24:1,510:1},Sfe);var C2,w2,_Mt=rk(rG,`BKAlignedLayout/HDirection`,510,wJ,KOe,pxe),vMt;J(509,24,{3:1,35:1,24:1,509:1},Cfe);var T2,E2,yMt=rk(rG,`BKAlignedLayout/VDirection`,509,wJ,qOe,mxe),bMt;J(1667,1,{},wfe),R(rG,`BKAligner`,1667),J(1670,1,{},sQe),R(rG,`BKCompactor`,1670),J(653,1,{653:1},Di),Q.a=0,R(rG,`BKCompactor/ClassEdge`,653),J(456,1,{456:1},Rse),Q.a=null,Q.b=0,R(rG,`BKCompactor/ClassNode`,456),J(1388,1,YW,vpe),Q.pg=function(e){return F(q(F(e,36),(X(),YQ)),22).Gc((WL(),gQ))?xMt:null},Q.If=function(e,t){xdt(this,F(e,36),t)},Q.d=!1;var xMt;R(rG,`BKNodePlacer`,1388),J(1668,1,{},Pte),Q.d=0,R(rG,`NeighborhoodInformation`,1668),J(1669,1,ZV,voe),Q.Le=function(e,t){return KRe(this,F(e,49),F(t,49))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(rG,`NeighborhoodInformation/NeighborComparator`,1669),J(810,1,{}),R(rG,`ThresholdStrategy`,810),J(1798,810,{},zf),Q.vg=function(e,t,n){return this.a.o==(nT(),E2)?DV:OV},Q.wg=function(){},R(rG,`ThresholdStrategy/NullThresholdStrategy`,1798),J(577,1,{577:1},jfe),Q.c=!1,Q.d=!1,R(rG,`ThresholdStrategy/Postprocessable`,577),J(1799,810,{},Bf),Q.vg=function(e,t,n){var r,i=t==n,a;return r=this.a.a[n.p]==t,i||r?(a=e,this.a.c,Hw(),i&&(a=fot(this,t,!0)),!isNaN(a)&&!isFinite(a)&&r&&(a=fot(this,n,!1)),a):e},Q.wg=function(){for(var e,t,n,r,i;this.d.b!=0;)i=F(mke(this.d),577),r=_it(this,i),r.a&&(e=r.a,n=Gp(this.a.f[this.a.g[i.b.p].p]),(n||IE(e)||e.c.i.c!=e.d.i.c)&&(t=y5e(this,i),t||gme(this.e,i)));for(;this.e.a.c.length!=0;)y5e(this,F(kWe(this.e),577))},R(rG,`ThresholdStrategy/SimpleThresholdStrategy`,1799),J(636,1,{636:1,188:1,196:1},Oi),Q.bg=function(){return _He(this)},Q.og=function(){return _He(this)};var D2;R(iG,`EdgeRouterFactory`,636),J(1446,1,YW,fie),Q.pg=function(e){return wet(F(e,36))},Q.If=function(e,t){xot(F(e,36),t)};var SMt,CMt,wMt,TMt,EMt,DMt,OMt,kMt;R(iG,`OrthogonalEdgeRouter`,1446),J(1439,1,YW,ype),Q.pg=function(e){return S$e(F(e,36))},Q.If=function(e,t){qlt(this,F(e,36),t)};var AMt,jMt,MMt,NMt,O2,PMt;R(iG,`PolylineEdgeRouter`,1439),J(1440,1,tH,Fte),Q.Lb=function(e){return DHe(F(e,9))},Q.Fb=function(e){return this===e},Q.Mb=function(e){return DHe(F(e,9))},R(iG,`PolylineEdgeRouter/1`,1440),J(1854,1,RB,ki),Q.Mb=function(e){return F(e,133).c==($E(),k2)},R(aG,`HyperEdgeCycleDetector/lambda$0$Type`,1854),J(1855,1,{},Ai),Q.Xe=function(e){return F(e,133).d},R(aG,`HyperEdgeCycleDetector/lambda$1$Type`,1855),J(1856,1,RB,Ite),Q.Mb=function(e){return F(e,133).c==($E(),k2)},R(aG,`HyperEdgeCycleDetector/lambda$2$Type`,1856),J(1857,1,{},ji),Q.Xe=function(e){return F(e,133).d},R(aG,`HyperEdgeCycleDetector/lambda$3$Type`,1857),J(1858,1,{},Lte),Q.Xe=function(e){return F(e,133).d},R(aG,`HyperEdgeCycleDetector/lambda$4$Type`,1858),J(1859,1,{},Mi),Q.Xe=function(e){return F(e,133).d},R(aG,`HyperEdgeCycleDetector/lambda$5$Type`,1859),J(116,1,{35:1,116:1},IA),Q.Dd=function(e){return $ce(this,F(e,116))},Q.Fb=function(e){var t;return N(e,116)?(t=F(e,116),this.g==t.g):!1},Q.Hb=function(){return this.g},Q.Ib=function(){for(var e=new _y(`{`),t,n,r=new D(this.n);r.a`+this.b+` (`+c_e(this.c)+`)`},Q.d=0,R(aG,`HyperEdgeSegmentDependency`,133),J(516,24,{3:1,35:1,24:1,516:1},Dfe);var k2,A2,FMt=rk(aG,`HyperEdgeSegmentDependency/DependencyType`,516,wJ,JOe,hxe),IMt;J(1860,1,{},yoe),R(aG,`HyperEdgeSegmentSplitter`,1860),J(1861,1,{},lle),Q.a=0,Q.b=0,R(aG,`HyperEdgeSegmentSplitter/AreaRating`,1861),J(340,1,{340:1},Yb),Q.a=0,Q.b=0,Q.c=0,R(aG,`HyperEdgeSegmentSplitter/FreeArea`,340),J(1862,1,ZV,Rte),Q.Le=function(e,t){return Wye(F(e,116),F(t,116))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(aG,`HyperEdgeSegmentSplitter/lambda$0$Type`,1862),J(1863,1,xB,kDe),Q.Ad=function(e){kNe(this.a,this.d,this.c,this.b,F(e,116))},Q.b=0,R(aG,`HyperEdgeSegmentSplitter/lambda$1$Type`,1863),J(1864,1,{},Ni),Q.Kb=function(e){return new Mx(null,new DT(F(e,116).e,16))},R(aG,`HyperEdgeSegmentSplitter/lambda$2$Type`,1864),J(1865,1,{},zte),Q.Kb=function(e){return new Mx(null,new DT(F(e,116).j,16))},R(aG,`HyperEdgeSegmentSplitter/lambda$3$Type`,1865),J(1866,1,{},Pi),Q.We=function(e){return k(P(e))},R(aG,`HyperEdgeSegmentSplitter/lambda$4$Type`,1866),J(654,1,{},sC),Q.a=0,Q.b=0,Q.c=0,R(aG,`OrthogonalRoutingGenerator`,654),J(1671,1,{},Fi),Q.Kb=function(e){return new Mx(null,new DT(F(e,116).e,16))},R(aG,`OrthogonalRoutingGenerator/lambda$0$Type`,1671),J(1672,1,{},Bte),Q.Kb=function(e){return new Mx(null,new DT(F(e,116).j,16))},R(aG,`OrthogonalRoutingGenerator/lambda$1$Type`,1672),J(661,1,{}),R(oG,`BaseRoutingDirectionStrategy`,661),J(1852,661,{},Vse),Q.xg=function(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g;if(!e.r||e.q)for(d=t+e.o*n,u=new D(e.n);u.awH&&(o=d,a=e,i=new j(f,o),fx(s.a,i),SR(this,s,a,i,!1),p=e.r,p&&(m=k(P(mP(p.e,0))),i=new j(m,o),fx(s.a,i),SR(this,s,a,i,!1),o=t+p.o*n,a=p,i=new j(m,o),fx(s.a,i),SR(this,s,a,i,!1)),i=new j(g,o),fx(s.a,i),SR(this,s,a,i,!1)))},Q.yg=function(e){return e.i.n.a+e.n.a+e.a.a},Q.zg=function(){return Dz(),y5},Q.Ag=function(){return Dz(),n5},R(oG,`NorthToSouthRoutingStrategy`,1852),J(1853,661,{},Hse),Q.xg=function(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g;if(!e.r||e.q)for(d=t-e.o*n,u=new D(e.n);u.awH&&(o=d,a=e,i=new j(f,o),fx(s.a,i),SR(this,s,a,i,!1),p=e.r,p&&(m=k(P(mP(p.e,0))),i=new j(m,o),fx(s.a,i),SR(this,s,a,i,!1),o=t-p.o*n,a=p,i=new j(m,o),fx(s.a,i),SR(this,s,a,i,!1)),i=new j(g,o),fx(s.a,i),SR(this,s,a,i,!1)))},Q.yg=function(e){return e.i.n.a+e.n.a+e.a.a},Q.zg=function(){return Dz(),n5},Q.Ag=function(){return Dz(),y5},R(oG,`SouthToNorthRoutingStrategy`,1853),J(1851,661,{},Use),Q.xg=function(e,t,n){var i,a,o,s,c,l,u,d,f,p,m,h,g;if(!e.r||e.q)for(d=t+e.o*n,u=new D(e.n);u.awH&&(o=d,a=e,i=new j(o,f),fx(s.a,i),SR(this,s,a,i,!0),p=e.r,p&&(m=k(P(mP(p.e,0))),i=new j(o,m),fx(s.a,i),SR(this,s,a,i,!0),o=t+p.o*n,a=p,i=new j(o,m),fx(s.a,i),SR(this,s,a,i,!0)),i=new j(o,g),fx(s.a,i),SR(this,s,a,i,!0)))},Q.yg=function(e){return e.i.n.b+e.n.b+e.a.b},Q.zg=function(){return Dz(),t5},Q.Ag=function(){return Dz(),x5},R(oG,`WestToEastRoutingStrategy`,1851),J(813,1,{},vat),Q.Ib=function(){return rI(this.a)},Q.b=0,Q.c=!1,Q.d=!1,Q.f=0,R(cG,`NubSpline`,813),J(410,1,{410:1},ret,ske),R(cG,`NubSpline/PolarCP`,410),J(1441,1,YW,kZe),Q.pg=function(e){return B1e(F(e,36))},Q.If=function(e,t){wut(this,F(e,36),t)};var LMt,RMt,zMt,BMt,VMt;R(cG,`SplineEdgeRouter`,1441),J(273,1,{273:1},XE),Q.Ib=function(){return this.a+` ->(`+this.c+`) `+this.b},Q.c=0,R(cG,`SplineEdgeRouter/Dependency`,273),J(454,24,{3:1,35:1,24:1,454:1},Ofe);var j2,M2,HMt=rk(cG,`SplineEdgeRouter/SideToProcess`,454,wJ,YOe,gxe),UMt;J(1442,1,RB,Ii),Q.Mb=function(e){return zL(),!F(e,132).o},R(cG,`SplineEdgeRouter/lambda$0$Type`,1442),J(1443,1,{},Vte),Q.Xe=function(e){return zL(),F(e,132).v+1},R(cG,`SplineEdgeRouter/lambda$1$Type`,1443),J(1444,1,xB,kfe),Q.Ad=function(e){ECe(this.a,this.b,F(e,49))},R(cG,`SplineEdgeRouter/lambda$2$Type`,1444),J(1445,1,xB,Afe),Q.Ad=function(e){DCe(this.a,this.b,F(e,49))},R(cG,`SplineEdgeRouter/lambda$3$Type`,1445),J(132,1,{35:1,132:1},G4e,qot),Q.Dd=function(e){return ele(this,F(e,132))},Q.b=0,Q.e=!1,Q.f=0,Q.g=0,Q.j=!1,Q.k=!1,Q.n=0,Q.o=!1,Q.p=!1,Q.q=!1,Q.s=0,Q.u=0,Q.v=0,Q.F=0,R(cG,`SplineSegment`,132),J(457,1,{457:1},Li),Q.a=0,Q.b=!1,Q.c=!1,Q.d=!1,Q.e=!1,Q.f=0,R(cG,`SplineSegment/EdgeInformation`,457),J(1168,1,{},Hte),R(dG,apt,1168),J(1169,1,ZV,Ute),Q.Le=function(e,t){return u6e(F(e,120),F(t,120))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(dG,opt,1169),J(1167,1,{},Hle),R(dG,`MrTree`,1167),J(398,24,{3:1,35:1,24:1,398:1,188:1,196:1},Yg),Q.bg=function(){return f6e(this)},Q.og=function(){return f6e(this)};var N2,P2,F2,I2,WMt=rk(dG,`TreeLayoutPhases`,398,wJ,cNe,_xe),GMt;J(1083,214,_H,eye),Q.kf=function(e,t){var n,r,i,a,o,s,c,l;for(Gp(nb(Y(e,(AR(),INt))))||Uw((n=new $l((Vh(),new Bp(e))),n)),o=t.dh(fG),o.Tg(`build tGraph`,1),s=(c=new ZE,wA(c,e),G(c,(Ez(),t4),e),l=new kd,jrt(e,c,l),ait(e,c,l),c),o.Ug(),o=t.dh(fG),o.Tg(`Split graph`,1),a=Rrt(this.a,s),o.Ug(),i=new D(a);i.a`+HT(this.c):`e_`+Lk(this)},R(mG,`TEdge`,65),J(120,150,{3:1,120:1,105:1,150:1},ZE),Q.Ib=function(){var e,t,n,r,i=null;for(r=nP(this.b,0);r.b!=r.d.c;)n=F(sE(r),40),i+=(n.c==null||n.c.length==0?`n_`+n.g:`n_`+n.c)+` +`;for(t=nP(this.a,0);t.b!=t.d.c;)e=F(sE(t),65),i+=(e.b&&e.c?HT(e.b)+`->`+HT(e.c):`e_`+Lk(e))+` +`;return i};var KMt=R(mG,`TGraph`,120);J(634,494,{3:1,494:1,634:1,105:1,150:1}),R(mG,`TShape`,634),J(40,634,{3:1,494:1,40:1,634:1,105:1,150:1},dj),Q.Ib=function(){return HT(this)};var L2=R(mG,`TNode`,40);J(236,1,TB,qu),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return new Ju(nP(this.a.d,0))},R(mG,`TNode/2`,236),J(334,1,uB,Ju),Q.Nb=function(e){PS(this,e)},Q.Pb=function(){return F(sE(this.a),65).c},Q.Ob=function(){return qm(this.a)},Q.Qb=function(){CO(this.a)},R(mG,`TNode/2/1`,334),J(1896,1,uU,Ui),Q.If=function(e,t){pdt(this,F(e,120),t)},R(hG,`CompactionProcessor`,1896),J(1897,1,ZV,Yu),Q.Le=function(e,t){return sHe(this.a,F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(hG,`CompactionProcessor/lambda$0$Type`,1897),J(1898,1,RB,Nfe),Q.Mb=function(e){return POe(this.b,this.a,F(e,49))},Q.a=0,Q.b=0,R(hG,`CompactionProcessor/lambda$1$Type`,1898),J(1907,1,ZV,Gte),Q.Le=function(e,t){return HTe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(hG,`CompactionProcessor/lambda$10$Type`,1907),J(1908,1,ZV,Wi),Q.Le=function(e,t){return Wge(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(hG,`CompactionProcessor/lambda$11$Type`,1908),J(1909,1,ZV,Kte),Q.Le=function(e,t){return UTe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(hG,`CompactionProcessor/lambda$12$Type`,1909),J(1899,1,RB,Coe),Q.Mb=function(e){return Khe(this.a,F(e,49))},Q.a=0,R(hG,`CompactionProcessor/lambda$2$Type`,1899),J(sV,1,RB,Xu),Q.Mb=function(e){return qhe(this.a,F(e,49))},Q.a=0,R(hG,`CompactionProcessor/lambda$3$Type`,sV),J(1901,1,RB,qte),Q.Mb=function(e){return F(e,40).c.indexOf(pG)==-1},R(hG,`CompactionProcessor/lambda$4$Type`,1901),J(1902,1,{},woe),Q.Kb=function(e){return sMe(this.a,F(e,40))},Q.a=0,R(hG,`CompactionProcessor/lambda$5$Type`,1902),J(1903,1,{},Zu),Q.Kb=function(e){return qLe(this.a,F(e,40))},Q.a=0,R(hG,`CompactionProcessor/lambda$6$Type`,1903),J(1904,1,ZV,Toe),Q.Le=function(e,t){return fFe(this.a,F(e,240),F(t,240))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(hG,`CompactionProcessor/lambda$7$Type`,1904),J(1905,1,ZV,Qu),Q.Le=function(e,t){return pFe(this.a,F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(hG,`CompactionProcessor/lambda$8$Type`,1905),J(1906,1,ZV,Jte),Q.Le=function(e,t){return Gge(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(hG,`CompactionProcessor/lambda$9$Type`,1906),J(1894,1,uU,Yte),Q.If=function(e,t){Itt(F(e,120),t)},R(hG,`DirectionProcessor`,1894),J(1886,1,uU,$ve),Q.If=function(e,t){tit(this,F(e,120),t)},R(hG,`FanProcessor`,1886),J(1253,1,uU,Xte),Q.If=function(e,t){ftt(F(e,120),t)},R(hG,`GraphBoundsProcessor`,1253),J(1254,1,{},Zte),Q.We=function(e){return F(e,40).e.a},R(hG,`GraphBoundsProcessor/lambda$0$Type`,1254),J(1255,1,{},Qte),Q.We=function(e){return F(e,40).e.b},R(hG,`GraphBoundsProcessor/lambda$1$Type`,1255),J(1256,1,{},$te),Q.We=function(e){return gde(F(e,40))},R(hG,`GraphBoundsProcessor/lambda$2$Type`,1256),J(1257,1,{},ene),Q.We=function(e){return _de(F(e,40))},R(hG,`GraphBoundsProcessor/lambda$3$Type`,1257),J(264,24,{3:1,35:1,24:1,264:1,196:1},Xg),Q.bg=function(){switch(this.g){case 0:return new ap;case 1:return new $ve;case 2:return new Xse;case 3:return new rne;case 4:return new Gi;case 8:return new tne;case 5:return new Yte;case 6:return new ine;case 7:return new Ui;case 9:return new Xte;case 10:return new ane;default:throw O(new Hp(vU+(this.f==null?``+this.g:this.f)))}};var qMt,JMt,YMt,XMt,ZMt,QMt,$Mt,eNt,tNt,nNt,R2,rNt=rk(hG,yU,264,wJ,$Ve,vxe),iNt;J(1893,1,uU,tne),Q.If=function(e,t){Blt(F(e,120),t)},R(hG,`LevelCoordinatesProcessor`,1893),J(1891,1,uU,Gi),Q.If=function(e,t){e9e(this,F(e,120),t)},Q.a=0,R(hG,`LevelHeightProcessor`,1891),J(1892,1,TB,Ki),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return fw(),hh(),aY},R(hG,`LevelHeightProcessor/1`,1892),J(1887,1,uU,Xse),Q.If=function(e,t){Xet(this,F(e,120),t)},R(hG,`LevelProcessor`,1887),J(1888,1,RB,nne),Q.Mb=function(e){return Gp(nb(q(F(e,40),(Ez(),a4))))},R(hG,`LevelProcessor/lambda$0$Type`,1888),J(1889,1,uU,rne),Q.If=function(e,t){B4e(this,F(e,120),t)},Q.a=0,R(hG,`NeighborsProcessor`,1889),J(1890,1,TB,qi),Q.Ic=function(e){jE(this,e)},Q.Jc=function(){return fw(),hh(),aY},R(hG,`NeighborsProcessor/1`,1890),J(1895,1,uU,ine),Q.If=function(e,t){$rt(this,F(e,120),t)},Q.a=0,R(hG,`NodePositionProcessor`,1895),J(1885,1,uU,ap),Q.If=function(e,t){Wot(this,F(e,120),t)},R(hG,`RootProcessor`,1885),J(1910,1,uU,ane),Q.If=function(e,t){mXe(F(e,120),t)},R(hG,`Untreeifyer`,1910),J(385,24,{3:1,35:1,24:1,385:1},Pfe);var z2,B2,aNt,oNt=rk(_G,`EdgeRoutingMode`,385,wJ,VAe,yxe),sNt,V2,H2,U2,cNt,lNt,W2,G2,uNt,K2,dNt,q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4,r4,fNt,pNt,i4,a4,o4,s4;J(847,1,EH,pie),Q.tf=function(e){JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Hht),``),Yht),`Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level`),(by(),!1)),(yI(),B3)),LJ),WM((eP(),L3))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Uht),``),`Edge End Texture Length`),`Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing.`),7),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Wht),``),`Tree Level`),`The index for the tree level the node is in`),K(0)),W3),HJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Ght),``),Yht),`When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint`),K(-1)),W3),HJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Kht),``),`Weighting of Nodes`),`Which weighting to use when computing a node order.`),CNt),H3),YNt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,qht),``),`Edge Routing Mode`),`Chooses an Edge Routing algorithm.`),_Nt),H3),oNt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Jht),``),`Search Order`),`Which search order to use when computing a spanning tree.`),bNt),H3),QNt),WM(L3)))),vut((new mie,e))};var mNt,hNt,gNt,_Nt,vNt,yNt,bNt,xNt,SNt,CNt;R(_G,`MrTreeMetaDataProvider`,847),J(991,1,EH,mie),Q.tf=function(e){vut(e)};var wNt,TNt,ENt,c4,DNt,ONt,l4,kNt,ANt,jNt,MNt,NNt,PNt,FNt,INt,LNt,RNt,zNt,u4,d4,BNt,VNt,HNt,f4,UNt,WNt,GNt,KNt,qNt,p4,JNt;R(_G,`MrTreeOptions`,991),J(992,1,{},one),Q.uf=function(){return new eye},Q.vf=function(e){},R(_G,`MrTreeOptions/MrtreeFactory`,992),J(353,24,{3:1,35:1,24:1,353:1},Zg);var m4,h4,g4,_4,YNt=rk(_G,`OrderWeighting`,353,wJ,iNe,bxe),XNt;J(425,24,{3:1,35:1,24:1,425:1},Ffe);var ZNt,v4,QNt=rk(_G,`TreeifyingOrder`,425,wJ,XOe,xxe),$Nt;J(1447,1,YW,sc),Q.pg=function(e){return F(e,120),ePt},Q.If=function(e,t){bVe(this,F(e,120),t)};var ePt;R(`org.eclipse.elk.alg.mrtree.p1treeify`,`DFSTreeifyer`,1447),J(1448,1,YW,lie),Q.pg=function(e){return F(e,120),tPt},Q.If=function(e,t){itt(this,F(e,120),t)};var tPt;R(yG,`NodeOrderer`,1448),J(1455,1,{},fne),Q.rd=function(e){return TCe(e)},R(yG,`NodeOrderer/0methodref$lambda$6$Type`,1455),J(1449,1,RB,pne),Q.Mb=function(e){return PO(),Gp(nb(q(F(e,40),(Ez(),a4))))},R(yG,`NodeOrderer/lambda$0$Type`,1449),J(1450,1,RB,mne),Q.Mb=function(e){return PO(),F(q(F(e,40),(AR(),u4)),15).a<0},R(yG,`NodeOrderer/lambda$1$Type`,1450),J(1451,1,RB,Doe),Q.Mb=function(e){return OBe(this.a,F(e,40))},R(yG,`NodeOrderer/lambda$2$Type`,1451),J(1452,1,RB,Eoe),Q.Mb=function(e){return cMe(this.a,F(e,40))},R(yG,`NodeOrderer/lambda$3$Type`,1452),J(1453,1,ZV,hne),Q.Le=function(e,t){return JRe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(yG,`NodeOrderer/lambda$4$Type`,1453),J(1454,1,RB,gne),Q.Mb=function(e){return PO(),F(q(F(e,40),(Ez(),G2)),15).a!=0},R(yG,`NodeOrderer/lambda$5$Type`,1454),J(1456,1,YW,pc),Q.pg=function(e){return F(e,120),nPt},Q.If=function(e,t){hrt(this,F(e,120),t)},Q.b=0;var nPt;R(`org.eclipse.elk.alg.mrtree.p3place`,`NodePlacer`,1456),J(1457,1,YW,mc),Q.pg=function(e){return F(e,120),rPt},Q.If=function(e,t){Nnt(F(e,120),t)};var rPt;R(bG,`EdgeRouter`,1457),J(1459,1,ZV,sne),Q.Le=function(e,t){return Hv(F(e,15).a,F(t,15).a)},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/0methodref$compare$Type`,1459),J(1464,1,{},cne),Q.We=function(e){return k(P(e))},R(bG,`EdgeRouter/1methodref$doubleValue$Type`,1464),J(1466,1,ZV,lne),Q.Le=function(e,t){return mM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/2methodref$compare$Type`,1466),J(1468,1,ZV,une),Q.Le=function(e,t){return mM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/3methodref$compare$Type`,1468),J(1470,1,{},Ji),Q.We=function(e){return k(P(e))},R(bG,`EdgeRouter/4methodref$doubleValue$Type`,1470),J(1472,1,ZV,dne),Q.Le=function(e,t){return mM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/5methodref$compare$Type`,1472),J(1474,1,ZV,Yi),Q.Le=function(e,t){return mM(k(P(e)),k(P(t)))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/6methodref$compare$Type`,1474),J(1458,1,{},Xi),Q.Kb=function(e){return FO(),F(q(F(e,40),(AR(),p4)),15)},R(bG,`EdgeRouter/lambda$0$Type`,1458),J(1469,1,{},_ne),Q.Kb=function(e){return v_e(F(e,40))},R(bG,`EdgeRouter/lambda$11$Type`,1469),J(1471,1,{},Lfe),Q.Kb=function(e){return kCe(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(bG,`EdgeRouter/lambda$13$Type`,1471),J(1473,1,{},Ife),Q.Kb=function(e){return y_e(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(bG,`EdgeRouter/lambda$15$Type`,1473),J(1475,1,ZV,vne),Q.Le=function(e,t){return jYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/lambda$17$Type`,1475),J(1476,1,ZV,yne),Q.Le=function(e,t){return MYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/lambda$18$Type`,1476),J(1477,1,ZV,Zi),Q.Le=function(e,t){return PYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/lambda$19$Type`,1477),J(1460,1,RB,Ooe),Q.Mb=function(e){return gke(this.a,F(e,40))},Q.a=0,R(bG,`EdgeRouter/lambda$2$Type`,1460),J(1478,1,ZV,Qi),Q.Le=function(e,t){return NYe(F(e,65),F(t,65))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/lambda$20$Type`,1478),J(1461,1,ZV,$i),Q.Le=function(e,t){return JSe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/lambda$3$Type`,1461),J(1462,1,ZV,ea),Q.Le=function(e,t){return qSe(F(e,40),F(t,40))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`EdgeRouter/lambda$4$Type`,1462),J(1463,1,{},ta),Q.Kb=function(e){return __e(F(e,40))},R(bG,`EdgeRouter/lambda$5$Type`,1463),J(1465,1,{},Rfe),Q.Kb=function(e){return OCe(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(bG,`EdgeRouter/lambda$7$Type`,1465),J(1467,1,{},zfe),Q.Kb=function(e){return b_e(this.b,this.a,F(e,40))},Q.a=0,Q.b=0,R(bG,`EdgeRouter/lambda$9$Type`,1467),J(662,1,{662:1},fZe),Q.e=0,Q.f=!1,Q.g=!1,R(bG,`MultiLevelEdgeNodeNodeGap`,662),J(1867,1,ZV,bne),Q.Le=function(e,t){return _Ae(F(e,240),F(t,240))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`MultiLevelEdgeNodeNodeGap/lambda$0$Type`,1867),J(1868,1,ZV,xne),Q.Le=function(e,t){return vAe(F(e,240),F(t,240))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(bG,`MultiLevelEdgeNodeNodeGap/lambda$1$Type`,1868);var y4;J(487,24,{3:1,35:1,24:1,487:1,188:1,196:1},Bfe),Q.bg=function(){return Eqe(this)},Q.og=function(){return Eqe(this)};var b4,x4,iPt=rk(Qht,`RadialLayoutPhases`,487,wJ,ZOe,Sxe),aPt;J(1084,214,_H,Gle),Q.kf=function(e,t){var n=j9e(this,e),r,i,a,o,s;if(t.Tg(`Radial layout`,n.c.length),Gp(nb(Y(e,(pI(),IPt))))||Uw((r=new $l((Vh(),new Bp(e))),r)),s=W1e(e),pP(e,(fb(),y4),s),!s)throw O(new Hp(`The given graph is not a tree!`));for(i=k(P(Y(e,M4))),i==0&&(i=J3e(e)),pP(e,M4,i),o=new D(j9e(this,e));o.a=3)for(S=F(U(b,0),26),ee=F(U(b,1),26),o=0;o+2=S.f+ee.f+d||ee.f>=x.f+S.f+d){ne=!0;break}++o}else ne=!0;if(ne){for(n=(VC(this.a),US(this.a,(TN(),L4),F(Y(e,GFt),188)),US(this.a,R4,F(Y(e,RFt),188)),US(this.a,z4,F(Y(e,HFt),188)),xme(this.a,(re=new AC,Sx(re,L4,(YF(),H4)),Sx(re,R4,V4),Gp(nb(Y(e,IFt)))&&Sx(re,L4,U4),Gp(nb(Y(e,kFt)))&&Sx(re,L4,B4),re)),fz(this.a,e)),u=1/n.c.length,te=0,h=new D(n);h.a0&&tGe((kT(t-1,e.length),e.charCodeAt(t-1)),kpt);)--t;if(r>=t)throw O(new Hp(`The given string does not contain any numbers.`));if(i=kR((uD(r,t,e.length),e.substr(r,t-r)),`,|;|\r| +`),i.length!=2)throw O(new Hp(`Exactly two numbers are expected, `+i.length+` were found.`));try{this.a=sI(EI(i[0])),this.b=sI(EI(i[1]))}catch(e){throw e=UA(e),N(e,131)?(n=e,O(new Hp(Apt+n))):O(e)}},Q.Ib=function(){return`(`+this.a+`,`+this.b+`)`},Q.a=0,Q.b=0;var J3=R(hU,`KVector`,8);J(79,66,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1,79:1,414:1},Uf,Pm,A_e),Q.Nc=function(){return EWe(this)},Q.ag=function(e){var t,n,r=kR(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),i,a,o;hw(this);try{for(n=0,a=0,i=0,o=0;n0&&(a%2==0?i=sI(r[n]):o=sI(r[n]),a>0&&a%2!=0&&fx(this,new j(i,o)),++a),++n}catch(e){throw e=UA(e),N(e,131)?(t=e,O(new Hp(`The given string does not match the expected format for vectors.`+t))):O(e)}},Q.Ib=function(){for(var e=new _y(`(`),t=nP(this,0),n;t.b!=t.d.c;)n=F(sE(t),8),Q_(e,n.a+`,`+n.b),t.b!=t.d.c&&(e.a+=`; `);return(e.a+=`)`,e).a};var mLt=R(hU,`KVectorChain`,79);J(256,24,{3:1,35:1,24:1,256:1},f_);var Y3,X3,Z3,Q3,$3,e6,hLt=rk(rK,`Alignment`,256,wJ,UIe,Wxe),gLt;J(976,1,EH,_ie),Q.tf=function(e){nit(e)};var _Lt,t6,vLt,yLt,bLt,xLt,SLt,CLt,wLt,TLt,ELt,DLt;R(rK,`BoxLayouterOptions`,976),J(977,1,{},Kne),Q.uf=function(){return new Qa},Q.vf=function(e){},R(rK,`BoxLayouterOptions/BoxFactory`,977),J(299,24,{3:1,35:1,24:1,299:1},p_);var n6,r6,i6,a6,o6,s6,c6=rk(rK,`ContentAlignment`,299,wJ,KIe,Gxe),OLt;J(689,1,EH,vc),Q.tf=function(e){JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,$gt),``),`Layout Algorithm`),`Select a specific layout algorithm.`),(yI(),K3)),KJ),WM((eP(),L3))))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,e_t),``),`Resolved Layout Algorithm`),`Meta data associated with the selected algorithm.`),G3),cLt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,sht),``),`Alignment`),`Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm.`),ALt),H3),hLt),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,NH),``),`Aspect Ratio`),`The desired aspect ratio of the drawing, that is the quotient of width by height.`),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,t_t),``),`Bend Points`),`A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points.`),G3),mLt),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,UW),``),`Content Alignment`),`Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option.`),FLt),U3),c6),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,VW),``),`Debug Mode`),`Whether additional debug information shall be generated.`),(by(),!1)),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,HW),``),`Direction`),`Overall direction of edges: horizontal (right / left) or vertical (down / up).`),ILt),H3),c8),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,PW),``),`Edge Routing`),`What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline.`),zLt),H3),v8),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Zgt),``),`Expand Nodes`),`If active, nodes are expanded to fill the area of their parent.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,NW),``),`Hierarchy Handling`),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),ULt),H3),rzt),Gx(L3,W(A(z3,1),Z,160,0,[I3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,IH),``),`Padding`),`The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately.`),rRt),G3),owt),Gx(L3,W(A(z3,1),Z,160,0,[I3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,LH),``),`Interactive`),`Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,qW),``),`interactive Layout`),`Whether the graph should be changeable interactively and by setting constraints`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,BH),``),`Omit Node Micro Layout`),`Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,RH),``),`Port Constraints`),`Defines constraints of the position of the ports of a node.`),dRt),H3),fzt),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,KW),``),`Position`),`The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position.`),G3),J3),Gx(I3,W(A(z3,1),Z,160,0,[R3,F3]))))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,AH),``),`Priority`),`Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used.`),W3),HJ),Gx(I3,W(A(z3,1),Z,160,0,[P3]))))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,PH),``),`Randomization Seed`),`Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time).`),W3),HJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,FH),``),`Separate Connected Components`),`Whether each connected component should be processed separately.`),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,vht),``),`Junction Points`),`This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order.`),YLt),G3),mLt),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Sht),``),`Comment Box`),`Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related.`),!1),B3),LJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Cht),``),`Hypernode`),`Whether the node should be handled as a hypernode.`),!1),B3),LJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,n_t),``),`Label Manager`),`Label managers can shorten labels upon a layout algorithm's request.`),G3),sHt),Gx(L3,W(A(z3,1),Z,160,0,[F3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,r_t),``),`Softwrapping Fuzziness`),`Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line.`),0),V3),BJ),WM(F3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Tht),``),`Margins`),`Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels.`),XLt),G3),iwt),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,aht),``),`No Layout`),`No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node.`),!1),B3),LJ),Gx(I3,W(A(z3,1),Z,160,0,[P3,R3,F3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,i_t),``),`Scale Factor`),`The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set.`),1),V3),BJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,a_t),``),`Child Area Width`),`The width of the area occupied by the laid out children of a node.`),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,o_t),``),`Child Area Height`),`The height of the area occupied by the laid out children of a node.`),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,KH),``),Ggt),`Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'`),!1),B3),LJ),WM(L3)))),JT(e,KH,XH,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,s_t),``),`Animate`),`Whether the shift from the old layout to the new computed layout shall be animated.`),!0),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,c_t),``),`Animation Time Factor`),`Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'.`),K(100)),W3),HJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,l_t),``),`Layout Ancestors`),`Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,u_t),``),`Maximal Animation Time`),`The maximal time for animations, in milliseconds.`),K(4e3)),W3),HJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,d_t),``),`Minimal Animation Time`),`The minimal time for animations, in milliseconds.`),K(400)),W3),HJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,f_t),``),`Progress Bar`),`Whether a progress bar shall be displayed during layout computations.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,p_t),``),`Validate Graph`),`Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,m_t),``),`Validate Options`),`Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!0),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,h_t),``),`Zoom to Fit`),`Whether the zoom level shall be set to view the whole diagram after layout.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Qgt),`box`),`Box Layout Mode`),`Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better.`),NLt),H3),Lzt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,g_t),`json`),`Shape Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports.`),JLt),H3),Szt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,__t),`json`),`Edge Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels.`),KLt),H3),zRt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,qmt),FW),`Comment Comment Spacing`),`Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing.`),10),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Jmt),FW),`Comment Node Spacing`),`Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing.`),10),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Ymt),FW),`Components Spacing`),`Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated.`),20),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Xmt),FW),`Edge Spacing`),`Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines.`),10),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,MH),FW),`Edge Label Spacing`),`The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option.`),2),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,BW),FW),`Edge Node Spacing`),`Spacing to be preserved between nodes and edges.`),10),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Zmt),FW),`Label Spacing`),`Determines the amount of space to be left between two labels of the same graph element.`),0),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,eht),FW),`Label Node Spacing`),`Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option.`),5),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Qmt),FW),`Horizontal spacing between Label and Port`),`Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,$mt),FW),`Vertical spacing between Label and Port`),`Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,jH),FW),`Node Spacing`),`The minimal distance to be preserved between each two nodes.`),20),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,tht),FW),`Node Self Loop Spacing`),`Spacing to be preserved between a node and its self loops.`),10),V3),BJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,nht),FW),`Port Spacing`),`Spacing between pairs of ports of the same node.`),10),V3),BJ),Gx(L3,W(A(z3,1),Z,160,0,[I3]))))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,rht),FW),`Individual Spacing`),`Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent.`),G3),zzt),Gx(I3,W(A(z3,1),Z,160,0,[P3,R3,F3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,Eht),FW),`Additional Port Space`),`Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border.`),DRt),G3),iwt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,GW),C_t),`Layout Partition`),`Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction).`),W3),HJ),Gx(L3,W(A(z3,1),Z,160,0,[I3]))))),JT(e,GW,WW,sRt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,WW),C_t),`Layout Partitioning`),`Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle.`),aRt),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,uht),w_t),`Node Label Padding`),`Define padding for node labels that are placed inside of a node.`),QLt),G3),owt),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,WH),w_t),`Node Label Placement`),`Hints for where node labels are to be placed; if empty, the node label's position is not modified.`),$Lt),U3),L8),Gx(I3,W(A(z3,1),Z,160,0,[F3]))))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,pht),sK),`Port Alignment`),`Defines the default port distribution for a node. May be overridden for each side individually.`),lRt),H3),V8),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,mht),sK),`Port Alignment (North)`),`Defines how ports on the northern side are placed, overriding the node's general port alignment.`),H3),V8),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,hht),sK),`Port Alignment (South)`),`Defines how ports on the southern side are placed, overriding the node's general port alignment.`),H3),V8),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,ght),sK),`Port Alignment (West)`),`Defines how ports on the western side are placed, overriding the node's general port alignment.`),H3),V8),WM(I3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,_ht),sK),`Port Alignment (East)`),`Defines how ports on the eastern side are placed, overriding the node's general port alignment.`),H3),V8),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,UH),cK),`Node Size Constraints`),`What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed.`),eRt),U3),k5),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,HH),cK),`Node Size Options`),`Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications.`),nRt),U3),Tzt),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,QH),cK),`Node Size Minimum`),`The minimal size to which a node can be reduced.`),tRt),G3),J3),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,VH),cK),`Fixed Graph Size`),`By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so.`),!1),B3),LJ),WM(L3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,bht),LW),`Edge Label Placement`),`Gives a hint on where to put edge labels.`),LLt),H3),VRt),WM(F3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,zH),LW),`Inline Edge Labels`),`If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible.`),!1),B3),LJ),WM(F3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,v_t),`font`),`Font Name`),`Font name used for a label.`),K3),KJ),WM(F3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,y_t),`font`),`Font Size`),`Font size used for a label.`),W3),HJ),WM(F3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,wht),lK),`Port Anchor Offset`),`The offset to the port position where connections shall be attached.`),G3),J3),WM(R3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,xht),lK),`Port Index`),`The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case.`),W3),HJ),WM(R3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,oht),lK),`Port Side`),`The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports.`),mRt),H3),S5),WM(R3)))),JM(e,new vI(jm(Am(Mm(Tm(km(Dm(Om(new Ya,iht),lK),`Port Border Offset`),`The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border.`),V3),BJ),WM(R3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,GH),T_t),`Port Label Placement`),`Decides on a placement method for port labels; if empty, the node label's position is not modified.`),fRt),U3),e5),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,dht),T_t),`Port Labels Next to Port`),`Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE.`),!1),B3),LJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,fht),T_t),`Treat Port Labels as Group`),`If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port.`),!0),B3),LJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,aK),uK),`Number of size categories`),`Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator.`),K(3)),W3),HJ),WM(L3)))),JT(e,aK,oK,PRt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,b_t),uK),`Weight of a node containing children for determining the graph size`),`When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five.`),K(4)),W3),HJ),WM(L3)))),JT(e,b_t,aK,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,qH),uK),`Topdown Scale Factor`),`The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes.`),1),V3),BJ),WM(L3)))),JT(e,qH,XH,jRt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,oK),uK),`Topdown Size Approximator`),`The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size.`),null),G3),azt),WM(I3)))),JT(e,oK,XH,MRt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,JH),uK),`Topdown Hierarchical Node Width`),`The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),150),V3),BJ),Gx(L3,W(A(z3,1),Z,160,0,[I3]))))),JT(e,JH,XH,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,YH),uK),`Topdown Hierarchical Node Aspect Ratio`),`The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),1.414),V3),BJ),Gx(L3,W(A(z3,1),Z,160,0,[I3]))))),JT(e,YH,XH,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,XH),uK),`Topdown Node Type`),`The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes.`),null),H3),Ozt),WM(I3)))),JT(e,XH,VH,null),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,x_t),uK),`Topdown Scale Cap`),`Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes.`),1),V3),BJ),WM(L3)))),JT(e,x_t,XH,ARt),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,cht),E_t),`Activate Inside Self Loops`),`Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports.`),!1),B3),LJ),WM(I3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,lht),E_t),`Inside Self Loop`),`Whether a self loop should be routed inside a node instead of around that node.`),!1),B3),LJ),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,yht),`edge`),`Edge Thickness`),`The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it.`),1),V3),BJ),WM(P3)))),JM(e,new vI(jm(Am(Mm(Em(Tm(km(Dm(Om(new Ya,S_t),`edge`),`Edge Type`),`The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations.`),VLt),H3),YRt),WM(P3)))),zh(e,new vT(Sm(wm(Cm(new Ia,AV),`Layered`),`The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.`))),zh(e,new vT(Sm(wm(Cm(new Ia,`org.eclipse.elk.orthogonal`),`Orthogonal`),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),zh(e,new vT(Sm(wm(Cm(new Ia,kH),`Force`),`Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.`))),zh(e,new vT(Sm(wm(Cm(new Ia,`org.eclipse.elk.circle`),`Circle`),`Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.`))),zh(e,new vT(Sm(wm(Cm(new Ia,Xht),`Tree`),`Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.`))),zh(e,new vT(Sm(wm(Cm(new Ia,`org.eclipse.elk.planar`),`Planar`),`Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.`))),zh(e,new vT(Sm(wm(Cm(new Ia,jG),`Radial`),`Radial layout algorithms usually position the nodes of the graph on concentric circles.`))),Rnt((new vie,e)),nit((new _ie,e)),utt((new yie,e))};var l6,kLt,ALt,u6,jLt,MLt,NLt,d6,f6,PLt,p6,FLt,m6,h6,ILt,g6,_6,LLt,RLt,zLt,BLt,VLt,HLt,v6,ULt,WLt,y6,b6,x6,S6,GLt,KLt,qLt,JLt,C6,YLt,w6,XLt,ZLt,QLt,T6,$Lt,E6,eRt,D6,O6,tRt,k6,nRt,A6,j6,M6,rRt,iRt,aRt,oRt,sRt,cRt,lRt,N6,P6,F6,I6,uRt,L6,R6,dRt,z6,B6,V6,fRt,pRt,H6,mRt,U6,W6,G6,K6,hRt,q6,gRt,_Rt,vRt,yRt,bRt,xRt,J6,SRt,Y6,CRt,wRt,X6,TRt,ERt,DRt,ORt,Z6,Q6,$6,e8,kRt,ARt,t8,jRt,n8,MRt,NRt,PRt,FRt;R(rK,`CoreOptions`,689),J(86,24,{3:1,35:1,24:1,86:1},m_);var r8,i8,a8,o8,s8,c8=rk(rK,`Direction`,86,wJ,CPe,Kxe),IRt;J(278,24,{3:1,35:1,24:1,278:1},h_);var l8,u8,LRt,RRt,zRt=rk(rK,`EdgeCoords`,278,wJ,lNe,qxe),BRt;J(279,24,{3:1,35:1,24:1,279:1},g_);var d8,f8,p8,VRt=rk(rK,`EdgeLabelPlacement`,279,wJ,ZAe,Jxe),HRt;J(222,24,{3:1,35:1,24:1,222:1},__);var m8,h8,g8,_8,v8=rk(rK,`EdgeRouting`,222,wJ,fNe,Yxe),URt;J(328,24,{3:1,35:1,24:1,328:1},v_);var WRt,GRt,KRt,qRt,y8,JRt,YRt=rk(rK,`EdgeType`,328,wJ,qIe,Xxe),XRt;J(974,1,EH,vie),Q.tf=function(e){Rnt(e)};var ZRt,QRt,$Rt,ezt,tzt,nzt,b8;R(rK,`FixedLayouterOptions`,974),J(975,1,{},Xa),Q.uf=function(){return new $a},Q.vf=function(e){},R(rK,`FixedLayouterOptions/FixedFactory`,975),J(347,24,{3:1,35:1,24:1,347:1},y_);var x8,S8,C8,rzt=rk(rK,`HierarchyHandling`,347,wJ,QAe,Zxe),izt,azt=Ox(rK,`ITopdownSizeApproximator`);J(292,24,{3:1,35:1,24:1,292:1},b_);var w8,T8,E8,D8,ozt=rk(rK,`LabelSide`,292,wJ,pNe,Qxe),szt;J(96,24,{3:1,35:1,24:1,96:1},x_);var O8,k8,A8,j8,M8,N8,P8,F8,I8,L8=rk(rK,`NodeLabelPlacement`,96,wJ,Bze,$xe),czt;J(257,24,{3:1,35:1,24:1,257:1},S_);var lzt,R8,z8,uzt,B8,V8=rk(rK,`PortAlignment`,257,wJ,KPe,eSe),dzt;J(102,24,{3:1,35:1,24:1,102:1},C_);var H8,U8,W8,G8,K8,q8,fzt=rk(rK,`PortConstraints`,102,wJ,WIe,tSe),pzt;J(280,24,{3:1,35:1,24:1,280:1},w_);var J8,Y8,X8,Z8,Q8,$8,e5=rk(rK,`PortLabelPlacement`,280,wJ,GIe,nSe),mzt;J(64,24,{3:1,35:1,24:1,64:1},E_);var t5,n5,r5,i5,a5,o5,s5,c5,l5,u5,d5,f5,p5,m5,h5,g5,_5,v5,y5,b5,x5,S5=rk(rK,`PortSide`,64,wJ,wPe,rSe),hzt;J(978,1,EH,yie),Q.tf=function(e){utt(e)};var gzt,_zt,vzt,yzt,bzt;R(rK,`RandomLayouterOptions`,978),J(979,1,{},Za),Q.uf=function(){return new ere},Q.vf=function(e){},R(rK,`RandomLayouterOptions/RandomFactory`,979),J(300,24,{3:1,35:1,24:1,300:1},T_);var C5,w5,xzt,Szt=rk(rK,`ShapeCoords`,300,wJ,$Ae,iSe),Czt;J(380,24,{3:1,35:1,24:1,380:1},D_);var T5,E5,D5,O5,k5=rk(rK,`SizeConstraint`,380,wJ,dNe,aSe),wzt;J(266,24,{3:1,35:1,24:1,266:1},O_);var A5,j5,M5,N5,P5,F5,I5,L5,R5,Tzt=rk(rK,`SizeOptions`,266,wJ,_Be,oSe),Ezt;J(281,24,{3:1,35:1,24:1,281:1},k_);var z5,Dzt,B5,Ozt=rk(rK,`TopdownNodeTypes`,281,wJ,eje,sSe),kzt;J(288,24,pK);var Azt,V5,jzt,Mzt,H5=rk(rK,`TopdownSizeApproximator`,288,wJ,uNe,cSe);J(970,288,pK,FCe),Q.Sg=function(e){return SXe(e)},rk(rK,`TopdownSizeApproximator/1`,970,H5,null,null),J(971,288,pK,Hwe),Q.Sg=function(e){var t=F(Y(e,(Hz(),K6)),144),n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee=(Im(),m=new Vf,m),te,ne,C;for(EL(ee,e),te=new kd,o=new uy((!e.a&&(e.a=new I(s7,e,10,11)),e.a));o.e!=o.i.gc();)i=F(aP(o),26),y=(p=new Vf,p),TL(y,ee),EL(y,i),C=SXe(i),Sv(y,r.Math.max(i.g,C.a),r.Math.max(i.f,C.b)),kI(te.f,i,y);for(a=new uy((!e.a&&(e.a=new I(s7,e,10,11)),e.a));a.e!=a.i.gc();)for(i=F(aP(a),26),d=new uy((!i.e&&(i.e=new Db(Z5,i,7,4)),i.e));d.e!=d.i.gc();)u=F(aP(d),85),x=F(V_(Yx(te.f,i)),26),S=F(pC(te,U((!u.c&&(u.c=new Db(X5,u,5,8)),u.c),0)),26),b=(f=new ro,f),hD((!b.b&&(b.b=new Db(X5,b,4,7)),b.b),x),hD((!b.c&&(b.c=new Db(X5,b,5,8)),b.c),S),SL(b,aT(x)),EL(b,u);g=F(Rw(t.f),214);try{g.kf(ee,new to),ZEe(t.f,g)}catch(e){throw e=UA(e),N(e,101)?(h=e,O(h)):O(e)}return lD(ee,f6)||lD(ee,d6)||Nz(ee),l=k(P(Y(ee,f6))),c=k(P(Y(ee,d6))),s=l/c,n=k(P(Y(ee,Q6)))*r.Math.sqrt((!ee.a&&(ee.a=new I(s7,ee,10,11)),ee.a).i),ne=F(Y(ee,M6),104),v=ne.b+ne.c+1,_=ne.d+ne.a+1,new j(r.Math.max(v,n),r.Math.max(_,n/s))},rk(rK,`TopdownSizeApproximator/2`,971,H5,null,null),J(972,288,pK,uke),Q.Sg=function(e){var t,n=k(P(Y(e,(Hz(),Q6)))),r,i,a,o;return t=n/k(P(Y(e,Z6))),r=Jit(e),a=F(Y(e,M6),104),i=k(P(iP(X6))),aT(e)&&(i=k(P(Y(aT(e),X6)))),o=ny(new j(n,t),r),wb(o,new j(-(a.b+a.c)-i,-(a.d+a.a)-i))},rk(rK,`TopdownSizeApproximator/3`,972,H5,null,null),J(973,288,pK,hTe),Q.Sg=function(e){for(var t,n,i,a,o,s=new uy((!e.a&&(e.a=new I(s7,e,10,11)),e.a)),c,l,u,d;s.e!=s.i.gc();)o=F(aP(s),26),Y(o,(Hz(),n8))!=null&&(!o.a&&(o.a=new I(s7,o,10,11)),o.a)&&(!o.a&&(o.a=new I(s7,o,10,11)),o.a).i>0?(n=F(Y(o,n8),522),d=n.Sg(o),u=F(Y(o,M6),104),Sv(o,r.Math.max(o.g,d.a+u.b+u.c),r.Math.max(o.f,d.b+u.d+u.a))):(!o.a&&(o.a=new I(s7,o,10,11)),o.a).i!=0&&Sv(o,k(P(Y(o,Q6))),k(P(Y(o,Q6)))/k(P(Y(o,Z6))));t=F(Y(e,(Hz(),K6)),144),l=F(Rw(t.f),214);try{l.kf(e,new to),ZEe(t.f,l)}catch(e){throw e=UA(e),N(e,101)?(c=e,O(c)):O(e)}return pP(e,l6,dK),WNe(e),Nz(e),a=k(P(Y(e,f6))),i=k(P(Y(e,d6))),new j(a,i)},rk(rK,`TopdownSizeApproximator/4`,973,H5,null,null);var Nzt;J(345,1,{853:1},ip),Q.Tg=function(e,t){return o0e(this,e,t)},Q.Ug=function(){W2e(this)},Q.Vg=function(){return this.q},Q.Wg=function(){return this.f?Sw(this.f):null},Q.Xg=function(){return Sw(this.a)},Q.Yg=function(){return this.p},Q.Zg=function(){return!1},Q.$g=function(){return this.n},Q._g=function(){return this.p!=null&&!this.b},Q.ah=function(e){var t;this.n&&(t=e,ry(this.f,t))},Q.bh=function(e,t){var n,r;this.n&&e&&wje(this,(n=new QTe,r=gR(n,e),Yct(n),r),(Aj(),W5))},Q.dh=function(e){var t;return this.b?null:(t=eze(this,this.g),fx(this.a,t),t.i=this,this.d=e,t)},Q.eh=function(e){e>0&&!this.b&&kBe(this,e)},Q.b=!1,Q.c=0,Q.d=-1,Q.e=null,Q.f=null,Q.g=-1,Q.j=!1,Q.k=!1,Q.n=!1,Q.o=0,Q.q=0,Q.r=0,R(JW,`BasicProgressMonitor`,345),J(706,214,_H,Qa),Q.kf=function(e,t){Wit(e,t)},R(JW,`BoxLayoutProvider`,706),J(966,1,ZV,Poe),Q.Le=function(e,t){return n9e(this,F(e,26),F(t,26))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},Q.a=!1,R(JW,`BoxLayoutProvider/1`,966),J(167,1,{167:1},jO,k_e),Q.Ib=function(){return this.c?gnt(this.c):rI(this.b)},R(JW,`BoxLayoutProvider/Group`,167),J(327,24,{3:1,35:1,24:1,327:1},j_);var Pzt,Fzt,Izt,U5,Lzt=rk(JW,`BoxLayoutProvider/PackingMode`,327,wJ,mNe,lSe),Rzt;J(967,1,ZV,Xne),Q.Le=function(e,t){return oOe(F(e,167),F(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(JW,`BoxLayoutProvider/lambda$0$Type`,967),J(968,1,ZV,Zne),Q.Le=function(e,t){return VDe(F(e,167),F(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(JW,`BoxLayoutProvider/lambda$1$Type`,968),J(969,1,ZV,Qne),Q.Le=function(e,t){return HDe(F(e,167),F(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(JW,`BoxLayoutProvider/lambda$2$Type`,969),J(1339,1,{830:1},no),Q.Lg=function(e,t){return Mh(),!N(t,174)||Ble((ZA(),F(e,174)),t)},R(JW,`ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type`,1339),J(1340,1,xB,Foe),Q.Ad=function(e){VWe(this.a,F(e,147))},R(JW,`ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type`,1340),J(1341,1,xB,$ne),Q.Ad=function(e){F(e,105),Mh()},R(JW,`ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type`,1341),J(1345,1,xB,Ioe),Q.Ad=function(e){rVe(this.a,F(e,105))},R(JW,`ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type`,1345),J(1343,1,RB,Zfe),Q.Mb=function(e){return YUe(this.a,this.b,F(e,147))},R(JW,`ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type`,1343),J(1342,1,RB,Qfe),Q.Mb=function(e){return x_e(this.a,this.b,F(e,830))},R(JW,`ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type`,1342),J(1344,1,xB,$fe),Q.Ad=function(e){aTe(this.a,this.b,F(e,147))},R(JW,`ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type`,1344),J(931,1,{},Jne),Q.Kb=function(e){return Tme(e)},Q.Fb=function(e){return this===e},R(JW,`ElkUtil/lambda$0$Type`,931),J(932,1,xB,epe),Q.Ad=function(e){D6e(this.a,this.b,F(e,85))},Q.a=0,Q.b=0,R(JW,`ElkUtil/lambda$1$Type`,932),J(933,1,xB,tpe),Q.Ad=function(e){ace(this.a,this.b,F(e,170))},Q.a=0,Q.b=0,R(JW,`ElkUtil/lambda$2$Type`,933),J(934,1,xB,npe),Q.Ad=function(e){Kme(this.a,this.b,F(e,157))},Q.a=0,Q.b=0,R(JW,`ElkUtil/lambda$3$Type`,934),J(935,1,xB,Loe),Q.Ad=function(e){jCe(this.a,F(e,372))},R(JW,`ElkUtil/lambda$4$Type`,935),J(331,1,{35:1,331:1},Dd),Q.Dd=function(e){return Jhe(this,F(e,242))},Q.Fb=function(e){var t;return N(e,331)?(t=F(e,331),this.a==t.a):!1},Q.Hb=function(){return Gw(this.a)},Q.Ib=function(){return this.a+` (exclusive)`},Q.a=0,R(JW,`ExclusiveBounds/ExclusiveLowerBound`,331),J(1089,214,_H,$a),Q.kf=function(e,t){var n,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C;for(t.Tg(`Fixed Layout`,1),o=F(Y(e,(Hz(),RLt)),222),p=0,m=0,b=new uy((!e.a&&(e.a=new I(s7,e,10,11)),e.a));b.e!=b.i.gc();){for(v=F(aP(b),26),C=F(Y(v,(Tj(),b8)),8),C&&(Cv(v,C.a,C.b),F(Y(v,QRt),182).Gc((EN(),T5))&&(h=F(Y(v,ezt),8),h.a>0&&h.b>0&&Oz(v,h.a,h.b,!0,!0))),p=r.Math.max(p,v.i+v.g),m=r.Math.max(m,v.j+v.f),u=new uy((!v.n&&(v.n=new I(o7,v,1,7)),v.n));u.e!=u.i.gc();)c=F(aP(u),157),C=F(Y(c,b8),8),C&&Cv(c,C.a,C.b),p=r.Math.max(p,v.i+c.i+c.g),m=r.Math.max(m,v.j+c.j+c.f);for(ee=new uy((!v.c&&(v.c=new I(c7,v,9,9)),v.c));ee.e!=ee.i.gc();)for(S=F(aP(ee),125),C=F(Y(S,b8),8),C&&Cv(S,C.a,C.b),te=v.i+S.i,ne=v.j+S.j,p=r.Math.max(p,te+S.g),m=r.Math.max(m,ne+S.f),l=new uy((!S.n&&(S.n=new I(o7,S,1,7)),S.n));l.e!=l.i.gc();)c=F(aP(l),157),C=F(Y(c,b8),8),C&&Cv(c,C.a,C.b),p=r.Math.max(p,te+c.i+c.g),m=r.Math.max(m,ne+c.j+c.f);for(a=new uS(py(gL(v).a.Jc(),new f));rL(a);)n=F(zE(a),85),d=tut(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b);for(i=new uS(py(hL(v).a.Jc(),new f));rL(i);)n=F(zE(i),85),aT(nI(n))!=e&&(d=tut(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b))}if(o==(yM(),m8))for(y=new uy((!e.a&&(e.a=new I(s7,e,10,11)),e.a));y.e!=y.i.gc();)for(v=F(aP(y),26),i=new uS(py(gL(v).a.Jc(),new f));rL(i);)n=F(zE(i),85),s=git(n),s.b==0?pP(n,C6,null):pP(n,C6,s);Gp(nb(Y(e,(Tj(),$Rt))))||(x=F(Y(e,tzt),104),_=p+x.b+x.c,g=m+x.d+x.a,Oz(e,_,g,!0,!0)),t.Ug()},R(JW,`FixedLayoutProvider`,1089),J(379,150,{3:1,414:1,379:1,105:1,150:1},eo,uRe),Q.ag=function(e){var t,n,r,i,a,o,s,c,l;if(e)try{for(c=kR(e,`;,;`),a=c,o=0,s=a.length;o>16&JB|t^r<<16},Q.Jc=function(){return new Roe(this)},Q.Ib=function(){return this.a==null&&this.b==null?`pair(null,null)`:this.a==null?`pair(null,`+XM(this.b)+`)`:this.b==null?`pair(`+XM(this.a)+`,null)`:`pair(`+XM(this.a)+`,`+XM(this.b)+`)`},R(JW,`Pair`,49),J(980,1,uB,Roe),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},Q.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw O(new Qd)},Q.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),O(new Yd)},Q.b=!1,Q.c=!1,R(JW,`Pair/1`,980),J(1079,214,_H,ere),Q.kf=function(e,t){var n,r,i,a,o;t.Tg(`Random Layout`,1),(!e.a&&(e.a=new I(s7,e,10,11)),e.a).i==0||(a=F(Y(e,(cJe(),yzt)),15),i=a&&a.a!=0?new wE(a.a):new KM,n=Kp(P(Y(e,gzt))),o=Kp(P(Y(e,bzt))),r=F(Y(e,_zt),104),Clt(e,i,n,o,r)),t.Ug()},R(JW,`RandomLayoutProvider`,1079),J(240,1,{240:1},Xb),Q.Fb=function(e){return RC(this.a,F(e,240).a)&&RC(this.b,F(e,240).b)&&RC(this.c,F(e,240).c)},Q.Hb=function(){return Lj(W(A(hJ,1),iB,1,5,[this.a,this.b,this.c]))},Q.Ib=function(){return`(`+this.a+rB+this.b+rB+this.c+`)`},R(JW,`Triple`,240);var Gzt;J(551,1,{}),Q.Jf=function(){return new j(this.f.i,this.f.j)},Q.mf=function(e){return MOe(e,(Hz(),L6))?Y(this.f,Kzt):Y(this.f,e)},Q.Kf=function(){return new j(this.f.g,this.f.f)},Q.Lf=function(){return this.g},Q.nf=function(e){return lD(this.f,e)},Q.Mf=function(e){qO(this.f,e.a),JO(this.f,e.b)},Q.Nf=function(e){KO(this.f,e.a),VO(this.f,e.b)},Q.Of=function(e){this.g=e},Q.g=0;var Kzt;R(mK,`ElkGraphAdapters/AbstractElkGraphElementAdapter`,551),J(553,1,{838:1},ad),Q.Pf=function(){var e,t;if(!this.b)for(this.b=XT(HC(this.a).i),t=new uy(HC(this.a));t.e!=t.i.gc();)e=F(aP(t),157),ry(this.b,new zp(e));return this.b},Q.b=null,R(mK,`ElkGraphAdapters/ElkEdgeAdapter`,553),J(260,551,{},Bp),Q.Qf=function(){return TZe(this)},Q.a=null,R(mK,`ElkGraphAdapters/ElkGraphAdapter`,260),J(631,551,{187:1},zp),R(mK,`ElkGraphAdapters/ElkLabelAdapter`,631),J(552,551,{685:1},Ay),Q.Pf=function(){return CZe(this)},Q.Tf=function(){var e=F(Y(this.f,(Hz(),w6)),140);return!e&&(e=new Ff),e},Q.Vf=function(){return wZe(this)},Q.Xf=function(e){var t=new Ub(e);pP(this.f,(Hz(),w6),t)},Q.Yf=function(e){pP(this.f,(Hz(),M6),new _be(e))},Q.Rf=function(){return this.d},Q.Sf=function(){var e,t;if(!this.a)for(this.a=new Od,t=new uS(py(hL(F(this.f,26)).a.Jc(),new f));rL(t);)e=F(zE(t),85),ry(this.a,new ad(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=new Od,t=new uS(py(gL(F(this.f,26)).a.Jc(),new f));rL(t);)e=F(zE(t),85),ry(this.c,new ad(e));return this.c},Q.Wf=function(){return yw(F(this.f,26)).i!=0||Gp(nb(F(this.f,26).mf((Hz(),y6))))},Q.Zf=function(){aRe(this,(Vh(),Gzt))},Q.a=null,Q.b=null,Q.c=null,Q.d=null,Q.e=null,R(mK,`ElkGraphAdapters/ElkNodeAdapter`,552),J(1251,551,{837:1},pd),Q.Pf=function(){return IZe(this)},Q.Sf=function(){var e,t;if(!this.a)for(this.a=Ly(F(this.f,125).gh().i),t=new uy(F(this.f,125).gh());t.e!=t.i.gc();)e=F(aP(t),85),ry(this.a,new ad(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=Ly(F(this.f,125).hh().i),t=new uy(F(this.f,125).hh());t.e!=t.i.gc();)e=F(aP(t),85),ry(this.c,new ad(e));return this.c},Q.$f=function(){return F(F(this.f,125).mf((Hz(),H6)),64)},Q._f=function(){var e,t,n,r=eT(F(this.f,125)),i,a,o,s;for(n=new uy(F(this.f,125).hh());n.e!=n.i.gc();)for(e=F(aP(n),85),s=new uy((!e.c&&(e.c=new Db(X5,e,5,8)),e.c));s.e!=s.i.gc();)if(o=F(aP(s),84),EO(VF(o),r)||VF(o)==r&&Gp(nb(Y(e,(Hz(),b6)))))return!0;for(t=new uy(F(this.f,125).gh());t.e!=t.i.gc();)for(e=F(aP(t),85),a=new uy((!e.b&&(e.b=new Db(X5,e,4,7)),e.b));a.e!=a.i.gc();)if(i=F(aP(a),84),EO(VF(i),r))return!0;return!1},Q.a=null,Q.b=null,Q.c=null,R(mK,`ElkGraphAdapters/ElkPortAdapter`,1251),J(1252,1,ZV,tre),Q.Le=function(e,t){return hnt(F(e,125),F(t,125))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(mK,`ElkGraphAdapters/PortComparator`,1252);var G5=Ox(hK,`EObject`),K5=Ox(gK,A_t),q5=Ox(gK,j_t),J5=Ox(gK,M_t),Y5=Ox(gK,`ElkShape`),X5=Ox(gK,N_t),Z5=Ox(gK,P_t),Q5=Ox(gK,F_t),$5=Ox(hK,I_t),e7=Ox(hK,`EFactory`),qzt,t7=Ox(hK,L_t),n7=Ox(hK,`EPackage`),r7,Jzt,Yzt,Xzt,i7,Zzt,Qzt,$zt,eBt,a7,tBt,nBt,o7=Ox(gK,R_t),s7=Ox(gK,z_t),c7=Ox(gK,B_t);J(93,1,V_t),Q.qh=function(){return this.rh(),null},Q.rh=function(){return null},Q.sh=function(){return this.rh(),!1},Q.th=function(){return!1},Q.uh=function(e){dA(this,e)},R(_K,`BasicNotifierImpl`,93),J(100,93,G_t),Q.Vh=function(){return _v(this)},Q.vh=function(e,t){return e},Q.wh=function(){throw O(new Zd)},Q.xh=function(e){var t=kP(F(yO(this.Ah(),this.Ch()),19));return this.Mh().Qh(this,t.n,t.f,e)},Q.yh=function(e,t){throw O(new Zd)},Q.zh=function(e,t,n){return bR(this,e,t,n)},Q.Ah=function(){var e;return this.wh()&&(e=this.wh().Lk(),e)?e:this.fi()},Q.Bh=function(){return tL(this)},Q.Ch=function(){throw O(new Zd)},Q.Dh=function(){var e,t=this.Xh().Mk();return!t&&this.wh().Rk(t=(Wh(),e=oke(MR(this.Ah())),e==null?JBt:new jy(this,e))),t},Q.Eh=function(e,t){return e},Q.Fh=function(e){return e.nk()?e.Jj():uN(this.Ah(),e)},Q.Gh=function(){var e=this.wh();return e?e.Ok():null},Q.Hh=function(){return this.wh()?this.wh().Lk():null},Q.Ih=function(e,t,n){return gP(this,e,t,n)},Q.Jh=function(e){return wD(this,e)},Q.Kh=function(e,t){return dFe(this,e,t)},Q.Lh=function(){var e=this.wh();return!!e&&e.Pk()},Q.Mh=function(){throw O(new Zd)},Q.Nh=function(){return UN(this)},Q.Oh=function(e,t,n,r){return fP(this,e,t,r)},Q.Ph=function(e,t,n){return F(yO(this.Ah(),t),69).uk().xk(this,this.ei(),t-this.gi(),e,n)},Q.Qh=function(e,t,n,r){return Lw(this,e,t,r)},Q.Rh=function(e,t,n){return F(yO(this.Ah(),t),69).uk().yk(this,this.ei(),t-this.gi(),e,n)},Q.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},Q.Th=function(e){return rP(this,e)},Q.Uh=function(e){return Nke(this,e)},Q.Wh=function(e){return Ict(this,e)},Q.Xh=function(){throw O(new Zd)},Q.Yh=function(){return this.wh()?this.wh().Nk():null},Q.Zh=function(){return UN(this)},Q.$h=function(e,t){jI(this,e,t)},Q._h=function(e){this.Xh().Qk(e)},Q.ai=function(e){this.Xh().Tk(e)},Q.bi=function(e){this.Xh().Sk(e)},Q.ci=function(e,t){var n,r,i,a=this.Gh();return a&&e&&(t=hP(a.Cl(),this,t),a.Gl(this)),r=this.Mh(),r&&((cR(this,this.Mh(),this.Ch()).Bb&jV)==0?(t=(n=this.Ch(),n>=0?this.xh(t):this.Mh().Qh(this,-1-n,null,t)),t=this.zh(null,-1,t)):(i=r.Nh(),i&&(e?!a&&i.Gl(this):i.Fl(this)))),this.ai(e),t},Q.di=function(e){var t,n=this.Ah(),r,i,a=uN(n,e),o,s,c;if(t=this.gi(),a>=t)return F(e,69).uk().Bk(this,this.ei(),a-t);if(a<=-1){if(o=mz((xI(),p9),n,e),o){if(qh(),F(o,69).vk()||(o=MT(GD(p9,o))),i=(r=this.Fh(o),F(r>=0?this.Ih(r,!0,!0):qI(this,o,!0),163)),c=o.Gk(),c>1||c==-1)return F(F(i,219).Ql(e,!1),78)}else throw O(new Hp(vK+e.ve()+bK))}else if(e.Hk())return r=this.Fh(e),F(r>=0?this.Ih(r,!1,!0):qI(this,e,!1),78);return s=new xpe(this,e),s},Q.ei=function(){return rRe(this)},Q.fi=function(){return(eC(),K7).S},Q.gi=function(){return tC(this.fi())},Q.hi=function(e){_I(this,e)},Q.Ib=function(){return cL(this)},R(SK,`BasicEObjectImpl`,100);var rBt;J(117,100,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1}),Q.ii=function(e){return iRe(this)[e]},Q.ji=function(e,t){fC(iRe(this),e,t)},Q.ki=function(e){fC(iRe(this),e,null)},Q.qh=function(){return F(yA(this,4),129)},Q.rh=function(){throw O(new Zd)},Q.sh=function(){return!!(this.Db&4)},Q.wh=function(){throw O(new Zd)},Q.li=function(e){zN(this,2,e)},Q.yh=function(e,t){this.Db=t<<16|this.Db&255,this.li(e)},Q.Ah=function(){return Fw(this)},Q.Ch=function(){return this.Db>>16},Q.Dh=function(){var e,t;return Wh(),t=oke(MR((e=F(yA(this,16),29),e||this.fi()))),t==null?JBt:new jy(this,t)},Q.th=function(){return!(this.Db&1)},Q.Gh=function(){return F(yA(this,128),1999)},Q.Hh=function(){return F(yA(this,16),29)},Q.Lh=function(){return!!(this.Db&32)},Q.Mh=function(){return F(yA(this,2),52)},Q.Sh=function(){return!!(this.Db&64)},Q.Xh=function(){throw O(new Zd)},Q.Yh=function(){return F(yA(this,64),290)},Q._h=function(e){zN(this,16,e)},Q.ai=function(e){zN(this,128,e)},Q.bi=function(e){zN(this,64,e)},Q.ei=function(){return RN(this)},Q.Db=0,R(SK,`MinimalEObjectImpl`,117),J(118,117,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.li=function(e){this.Cb=e},Q.Mh=function(){return this.Cb},R(SK,`MinimalEObjectImpl/Container`,118),J(CK,118,{109:1,343:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return RZe(this,e,t,n)},Q.Rh=function(e,t,n){return f2e(this,e,t,n)},Q.Th=function(e){return Aje(this,e)},Q.$h=function(e,t){ZUe(this,e,t)},Q.fi=function(){return Pz(),nBt},Q.hi=function(e){sUe(this,e)},Q.lf=function(){return FYe(this)},Q.fh=function(){return!this.o&&(this.o=new yD((Pz(),a7),u7,this,0)),this.o},Q.mf=function(e){return Y(this,e)},Q.nf=function(e){return lD(this,e)},Q.of=function(e,t){return pP(this,e,t)},R(wK,`EMapPropertyHolderImpl`,CK),J(559,118,{109:1,372:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},io),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return gP(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return rP(this,e)},Q.$h=function(e,t){switch(e){case 0:HO(this,k(P(t)));return;case 1:UO(this,k(P(t)));return}jI(this,e,t)},Q.fi=function(){return Pz(),Jzt},Q.hi=function(e){switch(e){case 0:HO(this,0);return;case 1:UO(this,0);return}_I(this,e)},Q.Ib=function(){var e;return this.Db&64?cL(this):(e=new gy(cL(this)),e.a+=` (x: `,zm(e,this.a),e.a+=`, y: `,zm(e,this.b),e.a+=`)`,e.a)},Q.a=0,Q.b=0,R(wK,`ElkBendPointImpl`,559),J(727,CK,{109:1,343:1,174:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return ZGe(this,e,t,n)},Q.Ph=function(e,t,n){return WF(this,e,t,n)},Q.Rh=function(e,t,n){return zA(this,e,t,n)},Q.Th=function(e){return vHe(this,e)},Q.$h=function(e,t){F$e(this,e,t)},Q.fi=function(){return Pz(),Zzt},Q.hi=function(e){kGe(this,e)},Q.ih=function(){return this.k},Q.jh=function(){return HC(this)},Q.Ib=function(){return PM(this)},Q.k=null,R(wK,`ElkGraphElementImpl`,727),J(728,727,{109:1,343:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return rqe(this,e,t,n)},Q.Th=function(e){return Cqe(this,e)},Q.$h=function(e,t){I$e(this,e,t)},Q.fi=function(){return Pz(),tBt},Q.hi=function(e){Uqe(this,e)},Q.kh=function(){return this.f},Q.lh=function(){return this.g},Q.mh=function(){return this.i},Q.nh=function(){return this.j},Q.oh=function(e,t){Sv(this,e,t)},Q.ph=function(e,t){Cv(this,e,t)},Q.Ib=function(){return lI(this)},Q.f=0,Q.g=0,Q.i=0,Q.j=0,R(wK,`ElkShapeImpl`,728),J(729,728,{109:1,343:1,84:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return MXe(this,e,t,n)},Q.Ph=function(e,t,n){return p$e(this,e,t,n)},Q.Rh=function(e,t,n){return m$e(this,e,t,n)},Q.Th=function(e){return GUe(this,e)},Q.$h=function(e,t){W8e(this,e,t)},Q.fi=function(){return Pz(),Yzt},Q.hi=function(e){XYe(this,e)},Q.gh=function(){return!this.d&&(this.d=new Db(Z5,this,8,5)),this.d},Q.hh=function(){return!this.e&&(this.e=new Db(Z5,this,7,4)),this.e},R(wK,`ElkConnectableShapeImpl`,729),J(271,727,{109:1,343:1,85:1,174:1,271:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},ro),Q.xh=function(e){return SQe(this,e)},Q.Ih=function(e,t,n){switch(e){case 3:return $w(this);case 4:return!this.b&&(this.b=new Db(X5,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Db(X5,this,5,8)),this.c;case 6:return!this.a&&(this.a=new I(Q5,this,6,6)),this.a;case 7:return by(),!this.b&&(this.b=new Db(X5,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Db(X5,this,5,8)),this.c.i<=1));case 8:return by(),!!$I(this);case 9:return by(),!!UI(this);case 10:return by(),!this.b&&(this.b=new Db(X5,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Db(X5,this,5,8)),this.c.i!=0)}return ZGe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16,r>=0?SQe(this,n):this.Cb.Qh(this,-1-r,null,n))),bve(this,F(e,26),n);case 4:return!this.b&&(this.b=new Db(X5,this,4,7)),_N(this.b,e,n);case 5:return!this.c&&(this.c=new Db(X5,this,5,8)),_N(this.c,e,n);case 6:return!this.a&&(this.a=new I(Q5,this,6,6)),_N(this.a,e,n)}return WF(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 3:return bve(this,null,n);case 4:return!this.b&&(this.b=new Db(X5,this,4,7)),hP(this.b,e,n);case 5:return!this.c&&(this.c=new Db(X5,this,5,8)),hP(this.c,e,n);case 6:return!this.a&&(this.a=new I(Q5,this,6,6)),hP(this.a,e,n)}return zA(this,e,t,n)},Q.Th=function(e){switch(e){case 3:return!!$w(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Db(X5,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Db(X5,this,5,8)),this.c.i<=1));case 8:return $I(this);case 9:return UI(this);case 10:return!this.b&&(this.b=new Db(X5,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Db(X5,this,5,8)),this.c.i!=0)}return vHe(this,e)},Q.$h=function(e,t){switch(e){case 3:SL(this,F(t,26));return;case 4:!this.b&&(this.b=new Db(X5,this,4,7)),uz(this.b),!this.b&&(this.b=new Db(X5,this,4,7)),nC(this.b,F(t,18));return;case 5:!this.c&&(this.c=new Db(X5,this,5,8)),uz(this.c),!this.c&&(this.c=new Db(X5,this,5,8)),nC(this.c,F(t,18));return;case 6:!this.a&&(this.a=new I(Q5,this,6,6)),uz(this.a),!this.a&&(this.a=new I(Q5,this,6,6)),nC(this.a,F(t,18));return}F$e(this,e,t)},Q.fi=function(){return Pz(),Xzt},Q.hi=function(e){switch(e){case 3:SL(this,null);return;case 4:!this.b&&(this.b=new Db(X5,this,4,7)),uz(this.b);return;case 5:!this.c&&(this.c=new Db(X5,this,5,8)),uz(this.c);return;case 6:!this.a&&(this.a=new I(Q5,this,6,6)),uz(this.a);return}kGe(this,e)},Q.Ib=function(){return eot(this)},R(wK,`ElkEdgeImpl`,271),J(443,CK,{109:1,343:1,170:1,443:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},ao),Q.xh=function(e){return gQe(this,e)},Q.Ih=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new oy(q5,this,5)),this.a;case 6:return Mke(this);case 7:return t?OP(this):this.i;case 8:return t?DP(this):this.f;case 9:return!this.g&&(this.g=new Db(Q5,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Db(Q5,this,10,9)),this.e;case 11:return this.d}return RZe(this,e,t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?gQe(this,n):this.Cb.Qh(this,-1-i,null,n))),xve(this,F(e,85),n);case 9:return!this.g&&(this.g=new Db(Q5,this,9,10)),_N(this.g,e,n);case 10:return!this.e&&(this.e=new Db(Q5,this,10,9)),_N(this.e,e,n)}return a=F(yO((r=F(yA(this,16),29),r||(Pz(),i7)),t),69),a.uk().xk(this,RN(this),t-tC((Pz(),i7)),e,n)},Q.Rh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new oy(q5,this,5)),hP(this.a,e,n);case 6:return xve(this,null,n);case 9:return!this.g&&(this.g=new Db(Q5,this,9,10)),hP(this.g,e,n);case 10:return!this.e&&(this.e=new Db(Q5,this,10,9)),hP(this.e,e,n)}return f2e(this,e,t,n)},Q.Th=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!Mke(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Aje(this,e)},Q.$h=function(e,t){switch(e){case 1:YO(this,k(P(t)));return;case 2:XO(this,k(P(t)));return;case 3:WO(this,k(P(t)));return;case 4:GO(this,k(P(t)));return;case 5:!this.a&&(this.a=new oy(q5,this,5)),uz(this.a),!this.a&&(this.a=new oy(q5,this,5)),nC(this.a,F(t,18));return;case 6:L7e(this,F(t,85));return;case 7:Ck(this,F(t,84));return;case 8:Sk(this,F(t,84));return;case 9:!this.g&&(this.g=new Db(Q5,this,9,10)),uz(this.g),!this.g&&(this.g=new Db(Q5,this,9,10)),nC(this.g,F(t,18));return;case 10:!this.e&&(this.e=new Db(Q5,this,10,9)),uz(this.e),!this.e&&(this.e=new Db(Q5,this,10,9)),nC(this.e,F(t,18));return;case 11:VBe(this,rb(t));return}ZUe(this,e,t)},Q.fi=function(){return Pz(),i7},Q.hi=function(e){switch(e){case 1:YO(this,0);return;case 2:XO(this,0);return;case 3:WO(this,0);return;case 4:GO(this,0);return;case 5:!this.a&&(this.a=new oy(q5,this,5)),uz(this.a);return;case 6:L7e(this,null);return;case 7:Ck(this,null);return;case 8:Sk(this,null);return;case 9:!this.g&&(this.g=new Db(Q5,this,9,10)),uz(this.g);return;case 10:!this.e&&(this.e=new Db(Q5,this,10,9)),uz(this.e);return;case 11:VBe(this,null);return}sUe(this,e)},Q.Ib=function(){return i8e(this)},Q.b=0,Q.c=0,Q.d=null,Q.j=0,Q.k=0,R(wK,`ElkEdgeSectionImpl`,443),J(161,118,{109:1,94:1,93:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Ih=function(e,t,n){var r;return e==0?(!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab):OD(this,e-tC(this.fi()),yO((r=F(yA(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n)):(i=F(yO((r=F(yA(this,16),29),r||this.fi()),t),69),i.uk().xk(this,RN(this),t-tC(this.fi()),e,n))},Q.Rh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n)):(i=F(yO((r=F(yA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,RN(this),t-tC(this.fi()),e,n))},Q.Th=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:uE(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.Wh=function(e){return Ylt(this,e)},Q.$h=function(e,t){var n;e===0?(!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18))):YM(this,e-tC(this.fi()),yO((n=F(yA(this,16),29),n||this.fi()),e),t)},Q.ai=function(e){zN(this,128,e)},Q.fi=function(){return Kz(),LBt},Q.hi=function(e){var t;e===0?(!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab)):sM(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.mi=function(){this.Bb|=1},Q.ni=function(e){return xR(this,e)},Q.Bb=0,R(SK,`EModelElementImpl`,161),J(710,161,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},yc),Q.oi=function(e,t){return vct(this,e,t)},Q.pi=function(e){var t,n,r,i,a;if(this.a!=LO(e)||e.Bb&256)throw O(new Hp(AK+e.zb+DK));for(r=Pw(e);bE(r.a).i!=0;){if(n=F(gz(r,0,(t=F(U(bE(r.a),0),87),a=t.c,N(a,88)?F(a,29):(Kz(),t9))),29),YP(n))return i=LO(n).ti().pi(n),F(i,52)._h(e),i;r=Pw(n)}return(e.D==null?e.B:e.D)==`java.util.Map$Entry`?new PCe(e):new tCe(e)},Q.qi=function(e,t){return Fz(this,e,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.a}return OD(this,e-tC((Kz(),Q7)),yO((r=F(yA(this,16),29),r||Q7),e),t,n)},Q.Ph=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 1:return this.a&&(n=F(this.a,52).Qh(this,4,n7,n)),hGe(this,F(e,241),n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),Q7)),t),69),i.uk().xk(this,RN(this),t-tC((Kz(),Q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 1:return hGe(this,null,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),Q7)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),Q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return uE(this,e-tC((Kz(),Q7)),yO((t=F(yA(this,16),29),t||Q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:Z0e(this,F(t,241));return}YM(this,e-tC((Kz(),Q7)),yO((n=F(yA(this,16),29),n||Q7),e),t)},Q.fi=function(){return Kz(),Q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:Z0e(this,null);return}sM(this,e-tC((Kz(),Q7)),yO((t=F(yA(this,16),29),t||Q7),e))};var l7,iBt,aBt;R(SK,`EFactoryImpl`,710),J(1019,710,{109:1,2078:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},oo),Q.oi=function(e,t){switch(e.fk()){case 12:return F(t,147).Og();case 13:return XM(t);default:throw O(new Hp(EK+e.ve()+DK))}},Q.pi=function(e){var t,n,r,i,a,o,s,c;switch(e.G==-1&&(e.G=(t=LO(e),t?SP(t.si(),e):-1)),e.G){case 4:return a=new so,a;case 6:return o=new Vf,o;case 7:return s=new Hf,s;case 8:return r=new ro,r;case 9:return n=new io,n;case 10:return i=new ao,i;case 11:return c=new co,c;default:throw O(new Hp(AK+e.zb+DK))}},Q.qi=function(e,t){switch(e.fk()){case 13:case 12:return null;default:throw O(new Hp(EK+e.ve()+DK))}},R(wK,`ElkGraphFactoryImpl`,1019),J(439,161,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Dh=function(){var e,t=(e=F(yA(this,16),29),oke(MR(e||this.fi())));return t==null?(Wh(),Wh(),JBt):new M_e(this,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.ve()}return OD(this,e-tC(this.fi()),yO((r=F(yA(this,16),29),r||this.fi()),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return uE(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:this.ri(rb(t));return}YM(this,e-tC(this.fi()),yO((n=F(yA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return Kz(),RBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:this.ri(null);return}sM(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.ve=function(){return this.zb},Q.ri=function(e){zk(this,e)},Q.Ib=function(){return tM(this)},Q.zb=null,R(SK,`ENamedElementImpl`,439),J(184,439,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},dOe),Q.xh=function(e){return bQe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new SS(this,P7,this)),this.rb;case 6:return!this.vb&&(this.vb=new Eb(n7,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?F(this.Cb,241):null:Gke(this)}return OD(this,e-tC((Kz(),r9)),yO((r=F(yA(this,16),29),r||r9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 4:return this.sb&&(n=F(this.sb,52).Qh(this,1,e7,n)),VGe(this,F(e,469),n);case 5:return!this.rb&&(this.rb=new SS(this,P7,this)),_N(this.rb,e,n);case 6:return!this.vb&&(this.vb=new Eb(n7,this,6,7)),_N(this.vb,e,n);case 7:return this.Cb&&(n=(i=this.Db>>16,i>=0?bQe(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,7,n)}return a=F(yO((r=F(yA(this,16),29),r||(Kz(),r9)),t),69),a.uk().xk(this,RN(this),t-tC((Kz(),r9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 4:return VGe(this,null,n);case 5:return!this.rb&&(this.rb=new SS(this,P7,this)),hP(this.rb,e,n);case 6:return!this.vb&&(this.vb=new Eb(n7,this,6,7)),hP(this.vb,e,n);case 7:return bR(this,null,7,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),r9)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),r9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!Gke(this)}return uE(this,e-tC((Kz(),r9)),yO((t=F(yA(this,16),29),t||r9),e))},Q.Wh=function(e){return v9e(this,e)||Ylt(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:zk(this,rb(t));return;case 2:Uk(this,rb(t));return;case 3:Hk(this,rb(t));return;case 4:oI(this,F(t,469));return;case 5:!this.rb&&(this.rb=new SS(this,P7,this)),uz(this.rb),!this.rb&&(this.rb=new SS(this,P7,this)),nC(this.rb,F(t,18));return;case 6:!this.vb&&(this.vb=new Eb(n7,this,6,7)),uz(this.vb),!this.vb&&(this.vb=new Eb(n7,this,6,7)),nC(this.vb,F(t,18));return}YM(this,e-tC((Kz(),r9)),yO((n=F(yA(this,16),29),n||r9),e),t)},Q.bi=function(e){var t,n;if(e&&this.rb)for(n=new uy(this.rb);n.e!=n.i.gc();)t=aP(n),N(t,360)&&(F(t,360).w=null);zN(this,64,e)},Q.fi=function(){return Kz(),r9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:zk(this,null);return;case 2:Uk(this,null);return;case 3:Hk(this,null);return;case 4:oI(this,null);return;case 5:!this.rb&&(this.rb=new SS(this,P7,this)),uz(this.rb);return;case 6:!this.vb&&(this.vb=new Eb(n7,this,6,7)),uz(this.vb);return}sM(this,e-tC((Kz(),r9)),yO((t=F(yA(this,16),29),t||r9),e))},Q.mi=function(){tF(this)},Q.si=function(){return!this.rb&&(this.rb=new SS(this,P7,this)),this.rb},Q.ti=function(){return this.sb},Q.ui=function(){return this.ub},Q.vi=function(){return this.xb},Q.wi=function(){return this.yb},Q.xi=function(e){this.ub=e},Q.Ib=function(){var e;return this.Db&64?tM(this):(e=new gy(tM(this)),e.a+=` (nsURI: `,Y_(e,this.yb),e.a+=`, nsPrefix: `,Y_(e,this.xb),e.a+=`)`,e.a)},Q.xb=null,Q.yb=null;var oBt;R(SK,`EPackageImpl`,184),J(556,184,{109:1,2080:1,556:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},T8e),Q.q=!1,Q.r=!1;var sBt=!1;R(wK,`ElkGraphPackageImpl`,556),J(362,728,{109:1,343:1,174:1,157:1,276:1,362:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},so),Q.xh=function(e){return _Qe(this,e)},Q.Ih=function(e,t,n){switch(e){case 7:return Kke(this);case 8:return this.a}return rqe(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===7?(this.Cb&&(n=(r=this.Db>>16,r>=0?_Qe(this,n):this.Cb.Qh(this,-1-r,null,n))),Ewe(this,F(e,174),n)):WF(this,e,t,n)},Q.Rh=function(e,t,n){return t==7?Ewe(this,null,n):zA(this,e,t,n)},Q.Th=function(e){switch(e){case 7:return!!Kke(this);case 8:return!kb(``,this.a)}return Cqe(this,e)},Q.$h=function(e,t){switch(e){case 7:g9e(this,F(t,174));return;case 8:NBe(this,rb(t));return}I$e(this,e,t)},Q.fi=function(){return Pz(),Qzt},Q.hi=function(e){switch(e){case 7:g9e(this,null);return;case 8:NBe(this,``);return}Uqe(this,e)},Q.Ib=function(){return c4e(this)},Q.a=``,R(wK,`ElkLabelImpl`,362),J(206,729,{109:1,343:1,84:1,174:1,26:1,276:1,206:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},Vf),Q.xh=function(e){return IQe(this,e)},Q.Ih=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new I(c7,this,9,9)),this.c;case 10:return!this.a&&(this.a=new I(s7,this,10,11)),this.a;case 11:return aT(this);case 12:return!this.b&&(this.b=new I(Z5,this,12,3)),this.b;case 13:return by(),!this.a&&(this.a=new I(s7,this,10,11)),this.a.i>0}return MXe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new I(c7,this,9,9)),_N(this.c,e,n);case 10:return!this.a&&(this.a=new I(s7,this,10,11)),_N(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16,r>=0?IQe(this,n):this.Cb.Qh(this,-1-r,null,n))),rye(this,F(e,26),n);case 12:return!this.b&&(this.b=new I(Z5,this,12,3)),_N(this.b,e,n)}return p$e(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new I(c7,this,9,9)),hP(this.c,e,n);case 10:return!this.a&&(this.a=new I(s7,this,10,11)),hP(this.a,e,n);case 11:return rye(this,null,n);case 12:return!this.b&&(this.b=new I(Z5,this,12,3)),hP(this.b,e,n)}return m$e(this,e,t,n)},Q.Th=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!aT(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new I(s7,this,10,11)),this.a.i>0}return GUe(this,e)},Q.$h=function(e,t){switch(e){case 9:!this.c&&(this.c=new I(c7,this,9,9)),uz(this.c),!this.c&&(this.c=new I(c7,this,9,9)),nC(this.c,F(t,18));return;case 10:!this.a&&(this.a=new I(s7,this,10,11)),uz(this.a),!this.a&&(this.a=new I(s7,this,10,11)),nC(this.a,F(t,18));return;case 11:TL(this,F(t,26));return;case 12:!this.b&&(this.b=new I(Z5,this,12,3)),uz(this.b),!this.b&&(this.b=new I(Z5,this,12,3)),nC(this.b,F(t,18));return}W8e(this,e,t)},Q.fi=function(){return Pz(),$zt},Q.hi=function(e){switch(e){case 9:!this.c&&(this.c=new I(c7,this,9,9)),uz(this.c);return;case 10:!this.a&&(this.a=new I(s7,this,10,11)),uz(this.a);return;case 11:TL(this,null);return;case 12:!this.b&&(this.b=new I(Z5,this,12,3)),uz(this.b);return}XYe(this,e)},Q.Ib=function(){return gnt(this)},R(wK,`ElkNodeImpl`,206),J(193,729,{109:1,343:1,84:1,174:1,125:1,276:1,193:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},Hf),Q.xh=function(e){return vQe(this,e)},Q.Ih=function(e,t,n){return e==9?eT(this):MXe(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===9?(this.Cb&&(n=(r=this.Db>>16,r>=0?vQe(this,n):this.Cb.Qh(this,-1-r,null,n))),Sve(this,F(e,26),n)):p$e(this,e,t,n)},Q.Rh=function(e,t,n){return t==9?Sve(this,null,n):m$e(this,e,t,n)},Q.Th=function(e){return e==9?!!eT(this):GUe(this,e)},Q.$h=function(e,t){e===9?R7e(this,F(t,26)):W8e(this,e,t)},Q.fi=function(){return Pz(),eBt},Q.hi=function(e){e===9?R7e(this,null):XYe(this,e)},Q.Ib=function(){return _nt(this)},R(wK,`ElkPortImpl`,193);var cBt=Ox(HK,`BasicEMap/Entry`);J(1092,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,117:1,118:1},co),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.Hb=function(){return Ty(this)},Q.Ai=function(e){PBe(this,F(e,147))},Q.Ih=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return gP(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return rP(this,e)},Q.$h=function(e,t){switch(e){case 0:PBe(this,F(t,147));return;case 1:ABe(this,t);return}jI(this,e,t)},Q.fi=function(){return Pz(),a7},Q.hi=function(e){switch(e){case 0:PBe(this,null);return;case 1:ABe(this,null);return}_I(this,e)},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?Lk(e):0),this.a},Q.kd=function(){return this.c},Q.zi=function(e){this.a=e},Q.ld=function(e){var t=this.c;return ABe(this,e),t},Q.Ib=function(){var e;return this.Db&64?cL(this):(e=new dm,Q_(Q_(Q_(e,this.b?this.b.Og():aB),fU),hy(this.c)),e.a)},Q.a=-1,Q.c=null;var u7=R(wK,`ElkPropertyToValueMapEntryImpl`,1092);J(981,1,{},rre),R(WK,`JsonAdapter`,981),J(215,63,HB,em),R(WK,`JsonImportException`,215),J(851,1,{},l8e),R(WK,`JsonImporter`,851),J(885,1,{},rpe),Q.Bi=function(e){h$e(this.a,this.b,F(e,139))},R(WK,`JsonImporter/lambda$0$Type`,885),J(886,1,{},ipe),Q.Bi=function(e){m6e(this.a,this.b,F(e,139))},R(WK,`JsonImporter/lambda$1$Type`,886),J(894,1,{},zoe),Q.Bi=function(e){fDe(this.a,F(e,149))},R(WK,`JsonImporter/lambda$10$Type`,894),J(896,1,{},ape),Q.Bi=function(e){I3e(this.a,this.b,F(e,139))},R(WK,`JsonImporter/lambda$11$Type`,896),J(897,1,{},ope),Q.Bi=function(e){L3e(this.a,this.b,F(e,139))},R(WK,`JsonImporter/lambda$12$Type`,897),J(903,1,{},IDe),Q.Bi=function(e){K2e(this.a,this.b,this.c,this.d,F(e,139))},R(WK,`JsonImporter/lambda$13$Type`,903),J(902,1,{},LDe),Q.Bi=function(e){Yrt(this.a,this.b,this.c,this.d,F(e,149))},R(WK,`JsonImporter/lambda$14$Type`,902),J(898,1,{},spe),Q.Bi=function(e){iye(this.a,this.b,rb(e))},R(WK,`JsonImporter/lambda$15$Type`,898),J(899,1,{},cpe),Q.Bi=function(e){aye(this.a,this.b,rb(e))},R(WK,`JsonImporter/lambda$16$Type`,899),J(900,1,{},lpe),Q.Bi=function(e){ZZe(this.b,this.a,F(e,139))},R(WK,`JsonImporter/lambda$17$Type`,900),J(901,1,{},upe),Q.Bi=function(e){QZe(this.b,this.a,F(e,139))},R(WK,`JsonImporter/lambda$18$Type`,901),J(906,1,{},Boe),Q.Bi=function(e){m2e(this.a,F(e,149))},R(WK,`JsonImporter/lambda$19$Type`,906),J(887,1,{},Voe),Q.Bi=function(e){zQe(this.a,F(e,139))},R(WK,`JsonImporter/lambda$2$Type`,887),J(904,1,{},od),Q.Bi=function(e){YO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$20$Type`,904),J(905,1,{},Hoe),Q.Bi=function(e){XO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$21$Type`,905),J(909,1,{},Uoe),Q.Bi=function(e){p2e(this.a,F(e,149))},R(WK,`JsonImporter/lambda$22$Type`,909),J(907,1,{},Woe),Q.Bi=function(e){WO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$23$Type`,907),J(908,1,{},Goe),Q.Bi=function(e){GO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$24$Type`,908),J(911,1,{},sd),Q.Bi=function(e){p1e(this.a,F(e,139))},R(WK,`JsonImporter/lambda$25$Type`,911),J(910,1,{},Koe),Q.Bi=function(e){pDe(this.a,F(e,149))},R(WK,`JsonImporter/lambda$26$Type`,910),J(912,1,xB,dpe),Q.Ad=function(e){$Ie(this.b,this.a,rb(e))},R(WK,`JsonImporter/lambda$27$Type`,912),J(913,1,xB,fpe),Q.Ad=function(e){eLe(this.b,this.a,rb(e))},R(WK,`JsonImporter/lambda$28$Type`,913),J(914,1,{},ppe),Q.Bi=function(e){i5e(this.a,this.b,F(e,139))},R(WK,`JsonImporter/lambda$29$Type`,914),J(890,1,{},qoe),Q.Bi=function(e){Rqe(this.a,F(e,149))},R(WK,`JsonImporter/lambda$3$Type`,890),J(915,1,{},mpe),Q.Bi=function(e){T7e(this.a,this.b,F(e,139))},R(WK,`JsonImporter/lambda$30$Type`,915),J(916,1,{},Joe),Q.Bi=function(e){oRe(this.a,P(e))},R(WK,`JsonImporter/lambda$31$Type`,916),J(917,1,{},Yoe),Q.Bi=function(e){lRe(this.a,P(e))},R(WK,`JsonImporter/lambda$32$Type`,917),J(918,1,{},Xoe),Q.Bi=function(e){sRe(this.a,P(e))},R(WK,`JsonImporter/lambda$33$Type`,918),J(919,1,{},Zoe),Q.Bi=function(e){cRe(this.a,P(e))},R(WK,`JsonImporter/lambda$34$Type`,919),J(920,1,{},Qoe),Q.Bi=function(e){G0e(this.a,F(e,57))},R(WK,`JsonImporter/lambda$35$Type`,920),J(921,1,{},$oe),Q.Bi=function(e){K0e(this.a,F(e,57))},R(WK,`JsonImporter/lambda$36$Type`,921),J(925,1,{},FDe),R(WK,`JsonImporter/lambda$37$Type`,925),J(922,1,xB,pSe),Q.Ad=function(e){SVe(this.a,this.c,this.b,F(e,372))},R(WK,`JsonImporter/lambda$38$Type`,922),J(923,1,xB,hpe),Q.Ad=function(e){Npe(this.a,this.b,F(e,170))},R(WK,`JsonImporter/lambda$39$Type`,923),J(888,1,{},ese),Q.Bi=function(e){YO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$4$Type`,888),J(924,1,xB,gpe),Q.Ad=function(e){Ppe(this.a,this.b,F(e,170))},R(WK,`JsonImporter/lambda$40$Type`,924),J(926,1,xB,mSe),Q.Ad=function(e){CVe(this.a,this.b,this.c,F(e,8))},R(WK,`JsonImporter/lambda$41$Type`,926),J(889,1,{},cd),Q.Bi=function(e){XO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$5$Type`,889),J(893,1,{},tse),Q.Bi=function(e){zqe(this.a,F(e,149))},R(WK,`JsonImporter/lambda$6$Type`,893),J(891,1,{},ld),Q.Bi=function(e){WO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$7$Type`,891),J(892,1,{},ud),Q.Bi=function(e){GO(this.a,k(P(e)))},R(WK,`JsonImporter/lambda$8$Type`,892),J(895,1,{},nse),Q.Bi=function(e){m1e(this.a,F(e,139))},R(WK,`JsonImporter/lambda$9$Type`,895),J(945,1,xB,rse),Q.Ad=function(e){_C(this.a,new vC(rb(e)))},R(WK,`JsonMetaDataConverter/lambda$0$Type`,945),J(946,1,xB,ise),Q.Ad=function(e){qTe(this.a,F(e,244))},R(WK,`JsonMetaDataConverter/lambda$1$Type`,946),J(947,1,xB,ase),Q.Ad=function(e){SAe(this.a,F(e,144))},R(WK,`JsonMetaDataConverter/lambda$2$Type`,947),J(948,1,xB,ose),Q.Ad=function(e){JTe(this.a,F(e,160))},R(WK,`JsonMetaDataConverter/lambda$3$Type`,948),J(244,24,{3:1,35:1,24:1,244:1},P_);var d7,f7,p7,m7,h7,g7,_7,v7,y7=rk(yH,`GraphFeature`,244,wJ,XRe,DSe),lBt;J(11,1,{35:1,147:1},fd,bb,rv,Mv),Q.Dd=function(e){return Yhe(this,F(e,147))},Q.Fb=function(e){return MOe(this,e)},Q.Rg=function(){return iP(this)},Q.Og=function(){return this.b},Q.Hb=function(){return hj(this.b)},Q.Ib=function(){return this.b},R(yH,`Property`,11),J(657,1,ZV,dd),Q.Le=function(e,t){return NKe(this,F(e,105),F(t,105))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Fl(this)},R(yH,`PropertyHolderComparator`,657),J(698,1,uB,md),Q.Nb=function(e){PS(this,e)},Q.Pb=function(){return rLe(this)},Q.Qb=function(){Ele()},Q.Ob=function(){return!!this.a},R(YK,`ElkGraphUtil/AncestorIterator`,698);var uBt=Ox(HK,`EList`);J(71,56,{20:1,31:1,56:1,18:1,16:1,71:1,61:1}),Q._c=function(e,t){fM(this,e,t)},Q.Ec=function(e){return hD(this,e)},Q.ad=function(e,t){return hUe(this,e,t)},Q.Fc=function(e){return nC(this,e)},Q.Gi=function(){return new Py(this)},Q.Hi=function(){return new Fy(this)},Q.Ii=function(e){return dk(this,e)},Q.Ji=function(){return!0},Q.Ki=function(e,t){},Q.Li=function(){},Q.Mi=function(e,t){cD(this,e,t)},Q.Ni=function(e,t,n){},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Fb=function(e){return Stt(this,e)},Q.Hb=function(){return JHe(this)},Q.Qi=function(){return!1},Q.Jc=function(){return new uy(this)},Q.cd=function(){return new Ny(this)},Q.dd=function(e){var t=this.gc();if(e<0||e>t)throw O(new Ob(e,t));return new qS(this,e)},Q.Si=function(e,t){this.Ri(e,this.bd(t))},Q.Kc=function(e){return rO(this,e)},Q.Ui=function(e,t){return t},Q.fd=function(e,t){return xP(this,e,t)},Q.Ib=function(){return _qe(this)},Q.Wi=function(){return!0},Q.Xi=function(e,t){return gj(this,t)},R(HK,`AbstractEList`,71),J(67,71,eq,lo,TO,HVe),Q.Ci=function(e,t){return GF(this,e,t)},Q.Di=function(e){return YXe(this,e)},Q.Ei=function(e,t){rM(this,e,t)},Q.Fi=function(e){WE(this,e)},Q.Yi=function(e){return cLe(this,e)},Q.$b=function(){UE(this)},Q.Gc=function(e){return xF(this,e)},Q.Xb=function(e){return U(this,e)},Q.Zi=function(e){var t,n,r;++this.j,n=this.g==null?0:this.g.length,e>n&&(r=this.g,t=n+(n/2|0)+4,t=0&&(this.ed(t),!0)},Q.Vi=function(e,t){return this.Bj(e,this.Xi(e,t))},Q.gc=function(){return this.Cj()},Q.Nc=function(){return this.Dj()},Q.Oc=function(e){return this.Ej(e)},Q.Ib=function(){return this.Fj()},R(HK,`DelegatingEList`,2058),J(2059,2058,Gvt),Q.Ci=function(e,t){return vit(this,e,t)},Q.Di=function(e){return this.Ci(this.Cj(),e)},Q.Ei=function(e,t){E8e(this,e,t)},Q.Fi=function(e){e8e(this,e)},Q.Ji=function(){return!this.Kj()},Q.$b=function(){dz(this)},Q.Gj=function(e,t,n,r,i){return new AOe(this,e,t,n,r,i)},Q.Hj=function(e){dA(this.hj(),e)},Q.Ij=function(){return null},Q.Jj=function(){return-1},Q.hj=function(){return null},Q.Kj=function(){return!1},Q.Lj=function(e,t){return t},Q.Mj=function(e,t){return t},Q.Nj=function(){return!1},Q.Oj=function(){return!this.yj()},Q.Ri=function(e,t){var n,r;return this.Nj()?(r=this.Oj(),n=J0e(this,e,t),this.Hj(this.Gj(7,K(t),n,e,r)),n):J0e(this,e,t)},Q.ed=function(e){var t,n,r,i;return this.Nj()?(n=null,r=this.Oj(),t=this.Gj(4,i=xx(this,e),null,e,r),this.Kj()&&i&&(n=this.Mj(i,n)),n?(n.lj(t),n.mj()):this.Hj(t),i):(i=xx(this,e),this.Kj()&&i&&(n=this.Mj(i,null),n&&n.mj()),i)},Q.Vi=function(e,t){return yit(this,e,t)},R(_K,`DelegatingNotifyingListImpl`,2059),J(151,1,dq),Q.lj=function(e){return b1e(this,e)},Q.mj=function(){LD(this)},Q.ej=function(){return this.d},Q.Ij=function(){return null},Q.Pj=function(){return null},Q.fj=function(e){return-1},Q.gj=function(){return get(this)},Q.hj=function(){return null},Q.ij=function(){return _et(this)},Q.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},Q.Qj=function(){return!1},Q.kj=function(e){var t,n,r,i,a,o,s,c,l,u,d;switch(this.d){case 1:case 2:switch(i=e.ej(),i){case 1:case 2:if(a=e.hj(),M(a)===M(this.hj())&&this.fj(null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0}case 4:if(i=e.ej(),i===4&&(a=e.hj(),M(a)===M(this.hj())&&this.fj(null)==e.fj(null)))return l=Pst(this),c=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.jj(),this.d=6,d=new TO(2),c<=o?(hD(d,this.n),hD(d,e.ij()),this.g=W(A(q9,1),cV,30,15,[this.o=c,o+1])):(hD(d,e.ij()),hD(d,this.n),this.g=W(A(q9,1),cV,30,15,[this.o=o,c])),this.n=d,l||(this.o=-2-this.o-1),!0;break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),M(a)===M(this.hj())&&this.fj(null)==e.fj(null))){for(l=Pst(this),o=e.jj(),u=F(this.g,54),r=H(q9,cV,30,u.length+1,15,1),t=0;t>>0,t.toString(16)));switch(r.a+=` (eventType: `,this.d){case 1:r.a+=`SET`;break;case 2:r.a+=`UNSET`;break;case 3:r.a+=`ADD`;break;case 5:r.a+=`ADD_MANY`;break;case 4:r.a+=`REMOVE`;break;case 6:r.a+=`REMOVE_MANY`;break;case 7:r.a+=`MOVE`;break;case 8:r.a+=`REMOVING_ADAPTER`;break;case 9:r.a+=`RESOLVE`;break;default:Bm(r,this.d)}if(Pnt(this)&&(r.a+=`, touch: true`),r.a+=`, position: `,Bm(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=`, notifier: `,J_(r,this.hj()),r.a+=`, feature: `,J_(r,this.Ij()),r.a+=`, oldValue: `,J_(r,_et(this)),r.a+=`, newValue: `,this.d==6&&N(this.g,54)){for(n=F(this.g,54),r.a+=`[`,e=0;e10?((!this.b||this.c.j!=this.a)&&(this.b=new jx(this),this.a=this.j),uh(this.b,e)):xF(this,e)},Q.Wi=function(){return!0},Q.a=0,R(HK,`AbstractEList/1`,950),J(306,99,TV,Ob),R(HK,`AbstractEList/BasicIndexOutOfBoundsException`,306),J(42,1,uB,uy),Q.Nb=function(e){PS(this,e)},Q.Vj=function(){if(this.i.j!=this.f)throw O(new Kd)},Q.Wj=function(){return aP(this)},Q.Ob=function(){return this.e!=this.i.gc()},Q.Pb=function(){return this.Wj()},Q.Qb=function(){DF(this)},Q.e=0,Q.f=0,Q.g=-1,R(HK,`AbstractEList/EIterator`,42),J(286,42,gB,Ny,qS),Q.Qb=function(){DF(this)},Q.Rb=function(e){sJe(this,e)},Q.Xj=function(){var e;try{return e=this.d.Xb(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=UA(e),N(e,99)?(this.Vj(),O(new Qd)):O(e)}},Q.Yj=function(e){aZe(this,e)},Q.Sb=function(){return this.e!=0},Q.Tb=function(){return this.e},Q.Ub=function(){return this.Xj()},Q.Vb=function(){return this.e-1},Q.Wb=function(e){this.Yj(e)},R(HK,`AbstractEList/EListIterator`,286),J(355,42,uB,Py),Q.Wj=function(){return oP(this)},Q.Qb=function(){throw O(new Zd)},R(HK,`AbstractEList/NonResolvingEIterator`,355),J(391,286,gB,Fy,Rye),Q.Rb=function(e){throw O(new Zd)},Q.Wj=function(){var e;try{return e=this.c.Ti(this.e),this.Vj(),this.g=this.e++,e}catch(e){throw e=UA(e),N(e,99)?(this.Vj(),O(new Qd)):O(e)}},Q.Xj=function(){var e;try{return e=this.c.Ti(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=UA(e),N(e,99)?(this.Vj(),O(new Qd)):O(e)}},Q.Qb=function(){throw O(new Zd)},Q.Wb=function(e){throw O(new Zd)},R(HK,`AbstractEList/NonResolvingEListIterator`,391),J(2045,71,Kvt),Q.Ci=function(e,t){var n,r,i=t.gc(),a,o,s,c,l,u,d,f;if(i!=0){for(l=F(yA(this.a,4),129),u=l==null?0:l.length,f=u+i,r=Sj(this,f),d=u-e,d>0&&OR(l,e,r,e+i,d),c=t.Jc(),o=0;on)throw O(new Ob(e,n));return new qEe(this,e)},Q.$b=function(){var e,t;++this.j,e=F(yA(this.a,4),129),t=e==null?0:e.length,lP(this,null),cD(this,t,e)},Q.Gc=function(e){var t=F(yA(this.a,4),129),n,r,i,a;if(t!=null){if(e!=null){for(r=t,i=0,a=r.length;i=n)throw O(new Ob(e,n));return t[e]},Q.bd=function(e){var t=F(yA(this.a,4),129),n,r;if(t!=null){if(e!=null){for(n=0,r=t.length;nn)throw O(new Ob(e,n));return new KEe(this,e)},Q.Ri=function(e,t){var n=xJe(this),r,i=n==null?0:n.length;if(e>=i)throw O(new Fp(ZK+e+QK+i));if(t>=i)throw O(new Fp($K+t+QK+i));return r=n[t],e!=t&&(e0&&OR(e,0,t,0,n),t},Q.Oc=function(e){var t=F(yA(this.a,4),129),n,r=t==null?0:t.length;return r>0&&(e.lengthr&&fC(e,r,null),e};var mBt;R(HK,`ArrayDelegatingEList`,2045),J(1033,42,uB,ZPe),Q.Vj=function(){if(this.b.j!=this.f||M(F(yA(this.b.a,4),129))!==M(this.a))throw O(new Kd)},Q.Qb=function(){DF(this),this.a=F(yA(this.b.a,4),129)},R(HK,`ArrayDelegatingEList/EIterator`,1033),J(712,286,gB,fTe,KEe),Q.Vj=function(){if(this.b.j!=this.f||M(F(yA(this.b.a,4),129))!==M(this.a))throw O(new Kd)},Q.Yj=function(e){aZe(this,e),this.a=F(yA(this.b.a,4),129)},Q.Qb=function(){DF(this),this.a=F(yA(this.b.a,4),129)},R(HK,`ArrayDelegatingEList/EListIterator`,712),J(1034,355,uB,QPe),Q.Vj=function(){if(this.b.j!=this.f||M(F(yA(this.b.a,4),129))!==M(this.a))throw O(new Kd)},R(HK,`ArrayDelegatingEList/NonResolvingEIterator`,1034),J(713,391,gB,pTe,qEe),Q.Vj=function(){if(this.b.j!=this.f||M(F(yA(this.b.a,4),129))!==M(this.a))throw O(new Kd)},R(HK,`ArrayDelegatingEList/NonResolvingEListIterator`,713),J(606,306,TV,iv),R(HK,`BasicEList/BasicIndexOutOfBoundsException`,606),J(699,67,eq,Spe),Q._c=function(e,t){throw O(new Zd)},Q.Ec=function(e){throw O(new Zd)},Q.ad=function(e,t){throw O(new Zd)},Q.Fc=function(e){throw O(new Zd)},Q.$b=function(){throw O(new Zd)},Q.Zi=function(e){throw O(new Zd)},Q.Jc=function(){return this.Gi()},Q.cd=function(){return this.Hi()},Q.dd=function(e){return this.Ii(e)},Q.Ri=function(e,t){throw O(new Zd)},Q.Si=function(e,t){throw O(new Zd)},Q.ed=function(e){throw O(new Zd)},Q.Kc=function(e){throw O(new Zd)},Q.fd=function(e,t){throw O(new Zd)},R(HK,`BasicEList/UnmodifiableEList`,699),J(711,1,{3:1,20:1,18:1,16:1,61:1,587:1}),Q._c=function(e,t){Ahe(this,e,F(t,45))},Q.Ec=function(e){return I_e(this,F(e,45))},Q.Ic=function(e){jE(this,e)},Q.Xb=function(e){return F(U(this.c,e),136)},Q.Ri=function(e,t){return F(this.c.Ri(e,t),45)},Q.Si=function(e,t){jhe(this,e,F(t,45))},Q.ed=function(e){return F(this.c.ed(e),45)},Q.fd=function(e,t){return WTe(this,e,F(t,45))},Q.gd=function(e){Wk(this,e)},Q.Lc=function(){return new DT(this,16)},Q.Mc=function(){return new Mx(null,new DT(this,16))},Q.ad=function(e,t){return this.c.ad(e,t)},Q.Fc=function(e){return this.c.Fc(e)},Q.$b=function(){this.c.$b()},Q.Gc=function(e){return this.c.Gc(e)},Q.Hc=function(e){return HA(this.c,e)},Q.Zj=function(){var e,t,n;if(this.d==null){for(this.d=H(dBt,qvt,67,2*this.f+1,0,1),n=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)e=F(t.Wj(),136),AP(this,e);this.e=n}},Q.Fb=function(e){return Xye(this,e)},Q.Hb=function(){return JHe(this.c)},Q.bd=function(e){return this.c.bd(e)},Q.$j=function(){this.c=new sse(this)},Q.dc=function(){return this.f==0},Q.Jc=function(){return this.c.Jc()},Q.cd=function(){return this.c.cd()},Q.dd=function(e){return this.c.dd(e)},Q._j=function(){return oD(this)},Q.ak=function(e,t,n){return new _Se(e,t,n)},Q.bk=function(){return new ho},Q.Kc=function(e){return rBe(this,e)},Q.gc=function(){return this.f},Q.hd=function(e,t){return new ET(this.c,e,t)},Q.Nc=function(){return this.c.Nc()},Q.Oc=function(e){return this.c.Oc(e)},Q.Ib=function(){return _qe(this.c)},Q.e=0,Q.f=0,R(HK,`BasicEMap`,711),J(1028,67,eq,sse),Q.Ki=function(e,t){Pse(this,F(t,136))},Q.Ni=function(e,t,n){var r;++(r=this,F(t,136),r).a.e},Q.Oi=function(e,t){sf(this,F(t,136))},Q.Pi=function(e,t,n){e_e(this,F(t,136),F(n,136))},Q.Mi=function(e,t){lHe(this.a)},R(HK,`BasicEMap/1`,1028),J(1029,67,eq,ho),Q.$i=function(e){return H(hBt,Jvt,612,e,0,1)},R(HK,`BasicEMap/2`,1029),J(1030,mB,hB,cse),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return mN(this.a,e)},Q.Jc=function(){return this.a.f==0?(db(),T7.a):new fle(this.a)},Q.Kc=function(e){var t=this.a.f;return IN(this.a,e),this.a.f!=t},Q.gc=function(){return this.a.f},R(HK,`BasicEMap/3`,1030),J(1031,31,pB,lse),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return Ctt(this.a,e)},Q.Jc=function(){return this.a.f==0?(db(),T7.a):new ple(this.a)},Q.gc=function(){return this.a.f},R(HK,`BasicEMap/4`,1031),J(1032,mB,hB,use),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){var t,n,r,i,a,o,s,c,l;if(this.a.f>0&&N(e,45)&&(this.a.Zj(),c=F(e,45),s=c.jd(),i=s==null?0:Lk(s),a=Nve(this.a,i),t=this.a.d[a],t)){for(n=F(t.g,374),l=t.i,o=0;o`+this.c},Q.a=0;var hBt=R(HK,`BasicEMap/EntryImpl`,612);J(535,1,{},po),R(HK,`BasicEMap/View`,535);var T7;J(770,1,{}),Q.Fb=function(e){return G8e((fw(),nY),e)},Q.Hb=function(){return HUe((fw(),nY))},Q.Ib=function(){return rI((fw(),nY))},R(HK,`ECollections/BasicEmptyUnmodifiableEList`,770),J(1303,1,gB,mo),Q.Nb=function(e){PS(this,e)},Q.Rb=function(e){throw O(new Zd)},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Pb=function(){throw O(new Qd)},Q.Tb=function(){return 0},Q.Ub=function(){throw O(new Qd)},Q.Vb=function(){return-1},Q.Qb=function(){throw O(new Zd)},Q.Wb=function(e){throw O(new Zd)},R(HK,`ECollections/BasicEmptyUnmodifiableEList/1`,1303),J(1301,770,{20:1,18:1,16:1,61:1},Gse),Q._c=function(e,t){Jle()},Q.Ec=function(e){return qle()},Q.ad=function(e,t){return Yle()},Q.Fc=function(e){return Xle()},Q.$b=function(){Zle()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){jE(this,e)},Q.Xb=function(e){return Bpe((fw(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return Qle()},Q.Si=function(e,t){$le()},Q.ed=function(e){return eue()},Q.Kc=function(e){return tue()},Q.fd=function(e,t){return nue()},Q.gc=function(){return 0},Q.gd=function(e){Wk(this,e)},Q.Lc=function(){return new DT(this,16)},Q.Mc=function(){return new Mx(null,new DT(this,16))},Q.hd=function(e,t){return fw(),new ET(nY,e,t)},Q.Nc=function(){return Bwe((fw(),nY))},Q.Oc=function(e){return fw(),BP(nY,e)},R(HK,`ECollections/EmptyUnmodifiableEList`,1301),J(1302,770,{20:1,18:1,16:1,61:1,587:1},Kse),Q._c=function(e,t){Jle()},Q.Ec=function(e){return qle()},Q.ad=function(e,t){return Yle()},Q.Fc=function(e){return Xle()},Q.$b=function(){Zle()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){jE(this,e)},Q.Xb=function(e){return Bpe((fw(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return Qle()},Q.Si=function(e,t){$le()},Q.ed=function(e){return eue()},Q.Kc=function(e){return tue()},Q.fd=function(e,t){return nue()},Q.gc=function(){return 0},Q.gd=function(e){Wk(this,e)},Q.Lc=function(){return new DT(this,16)},Q.Mc=function(){return new Mx(null,new DT(this,16))},Q.hd=function(e,t){return fw(),new ET(nY,e,t)},Q.Nc=function(){return Bwe((fw(),nY))},Q.Oc=function(e){return fw(),BP(nY,e)},Q._j=function(){return fw(),fw(),rY},R(HK,`ECollections/EmptyUnmodifiableEMap`,1302);var gBt=Ox(HK,`Enumerator`),E7;J(290,1,{290:1},Att),Q.Fb=function(e){var t;return this===e?!0:N(e,290)?(t=F(e,290),this.f==t.f&&fwe(this.i,t.i)&&Ix(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&Ix(this.d,t.d)&&Ix(this.g,t.g)&&Ix(this.e,t.e)&&KYe(this,t)):!1},Q.Hb=function(){return this.f},Q.Ib=function(){return Hrt(this)},Q.f=0;var _Bt=0,vBt=0,yBt=0,bBt=0,xBt=0,SBt=0,CBt=0,wBt=0,TBt=0,EBt,D7=0,O7=0,DBt=0,OBt=0,k7,kBt;R(HK,`URI`,290),J(1091,44,RV,Wf),Q.yc=function(e,t){return F(dT(this,rb(e),F(t,290)),290)},R(HK,`URI/URICache`,1091),J(492,67,eq,go,Bx),Q.Qi=function(){return!0},R(HK,`UniqueEList`,492),J(579,63,HB,XD),R(HK,`WrappedException`,579);var A7=Ox(hK,Zvt),j7=Ox(hK,Qvt),M7=Ox(hK,$vt),N7=Ox(hK,eyt),P7=Ox(hK,tyt),F7=Ox(hK,`EClass`),I7=Ox(hK,`EDataType`),ABt;J(1199,44,RV,Gf),Q.xc=function(e){return z_(e)?Ww(this,e):V_(Yx(this.f,e))},R(hK,`EDataType/Internal/ConversionDelegate/Factory/Registry/Impl`,1199);var L7=Ox(hK,`EEnum`),R7=Ox(hK,nyt),z7=Ox(hK,ryt),B7=Ox(hK,iyt),V7,H7=Ox(hK,ayt),U7=Ox(hK,oyt);J(mq,1,{},_o),Q.Ib=function(){return`NIL`},R(hK,`EStructuralFeature/Internal/DynamicValueHolder/1`,mq);var jBt;J(1023,44,RV,Kf),Q.xc=function(e){return z_(e)?Ww(this,e):V_(Yx(this.f,e))},R(hK,`EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl`,1023);var W7=Ox(hK,syt),G7=Ox(hK,`EValidator/PatternMatcher`),MBt,NBt,K7,q7,J7,Y7,PBt,FBt,IBt,X7,Z7,Q7,$7,e9,LBt,RBt,t9,n9,zBt,r9,i9,a9,o9,BBt,VBt,s9,c9=Ox(hq,`FeatureMap/Entry`);J(534,1,{75:1},F_),Q.Jk=function(){return this.a},Q.kd=function(){return this.b},R(SK,`BasicEObjectImpl/1`,534),J(1022,1,gq,xpe),Q.Dk=function(e){return dFe(this.a,this.b,e)},Q.Oj=function(){return Nke(this.a,this.b)},Q.Wb=function(e){xke(this.a,this.b,e)},Q.Ek=function(){FEe(this.a,this.b)},R(SK,`BasicEObjectImpl/4`,1022),J(2046,1,{114:1}),Q.Kk=function(e){this.e=e==0?HBt:H(hJ,iB,1,e,5,1)},Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Lk=function(){return this.c},Q.Mk=function(){throw O(new Zd)},Q.Nk=function(){throw O(new Zd)},Q.Ok=function(){return this.d},Q.Pk=function(){return this.e!=null},Q.Qk=function(e){this.c=e},Q.Rk=function(e){throw O(new Zd)},Q.Sk=function(e){throw O(new Zd)},Q.Tk=function(e){this.d=e};var HBt;R(SK,`BasicEObjectImpl/EPropertiesHolderBaseImpl`,2046),J(192,2046,{114:1},xc),Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},R(SK,`BasicEObjectImpl/EPropertiesHolderImpl`,192),J(502,100,G_t,vo),Q.rh=function(){return this.f},Q.wh=function(){return this.k},Q.yh=function(e,t){this.g=e,this.i=t},Q.Ah=function(){return this.j&2?this.Xh().Lk():this.fi()},Q.Ch=function(){return this.i},Q.th=function(){return!!(this.j&1)},Q.Mh=function(){return this.g},Q.Sh=function(){return!!(this.j&4)},Q.Xh=function(){return!this.k&&(this.k=new xc),this.k},Q._h=function(e){this.Xh().Qk(e),e?this.j|=2:this.j&=-3},Q.bi=function(e){this.Xh().Sk(e),e?this.j|=4:this.j&=-5},Q.fi=function(){return(eC(),K7).S},Q.i=0,Q.j=1,R(SK,`EObjectImpl`,502),J(786,502,{109:1,94:1,93:1,57:1,114:1,52:1,100:1},tCe),Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Ah=function(){return this.d},Q.Fh=function(e){return uN(this.d,e)},Q.Hh=function(){return this.d},Q.Lh=function(){return this.e!=null},Q.Xh=function(){return!this.k&&(this.k=new yo),this.k},Q._h=function(e){this.d=e},Q.ei=function(){var e;return this.e??=(e=tC(this.d),e==0?UBt:H(hJ,iB,1,e,5,1)),this},Q.gi=function(){return 0};var UBt;R(SK,`DynamicEObjectImpl`,786),J(1484,786,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1},PCe),Q.Fb=function(e){return this===e},Q.Hb=function(){return Ty(this)},Q._h=function(e){this.d=e,this.b=AL(e,`key`),this.c=AL(e,MK)},Q.yi=function(){var e;return this.a==-1&&(e=tO(this,this.b),this.a=e==null?0:Lk(e)),this.a},Q.jd=function(){return tO(this,this.b)},Q.kd=function(){return tO(this,this.c)},Q.zi=function(e){this.a=e},Q.Ai=function(e){xke(this,this.b,e)},Q.ld=function(e){var t=tO(this,this.c);return xke(this,this.c,e),t},Q.a=0,R(SK,`DynamicEObjectImpl/BasicEMapEntry`,1484),J(1485,1,{114:1},yo),Q.Kk=function(e){throw O(new Zd)},Q.ii=function(e){throw O(new Zd)},Q.ji=function(e,t){throw O(new Zd)},Q.ki=function(e){throw O(new Zd)},Q.Lk=function(){throw O(new Zd)},Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Ok=function(){return this.c},Q.Pk=function(){throw O(new Zd)},Q.Qk=function(e){throw O(new Zd)},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},Q.Tk=function(e){this.c=e},R(SK,`DynamicEObjectImpl/DynamicEPropertiesHolderImpl`,1485),J(505,161,{109:1,94:1,93:1,588:1,158:1,57:1,114:1,52:1,100:1,505:1,161:1,117:1,118:1},bo),Q.xh=function(e){return xQe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new Qy((Kz(),o9),d9,this)),this.b):(!this.b&&(this.b=new Qy((Kz(),o9),d9,this)),oD(this.b));case 3:return qke(this);case 4:return!this.a&&(this.a=new oy(G5,this,4)),this.a;case 5:return!this.c&&(this.c=new cy(G5,this,5)),this.c}return OD(this,e-tC((Kz(),q7)),yO((r=F(yA(this,16),29),r||q7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 3:return this.Cb&&(n=(i=this.Db>>16,i>=0?xQe(this,n):this.Cb.Qh(this,-1-i,null,n))),Dwe(this,F(e,158),n)}return a=F(yO((r=F(yA(this,16),29),r||(Kz(),q7)),t),69),a.uk().xk(this,RN(this),t-tC((Kz(),q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 2:return!this.b&&(this.b=new Qy((Kz(),o9),d9,this)),jb(this.b,e,n);case 3:return Dwe(this,null,n);case 4:return!this.a&&(this.a=new oy(G5,this,4)),hP(this.a,e,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),q7)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!qke(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return uE(this,e-tC((Kz(),q7)),yO((t=F(yA(this,16),29),t||q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:WCe(this,rb(t));return;case 2:!this.b&&(this.b=new Qy((Kz(),o9),d9,this)),aA(this.b,t);return;case 3:_9e(this,F(t,158));return;case 4:!this.a&&(this.a=new oy(G5,this,4)),uz(this.a),!this.a&&(this.a=new oy(G5,this,4)),nC(this.a,F(t,18));return;case 5:!this.c&&(this.c=new cy(G5,this,5)),uz(this.c),!this.c&&(this.c=new cy(G5,this,5)),nC(this.c,F(t,18));return}YM(this,e-tC((Kz(),q7)),yO((n=F(yA(this,16),29),n||q7),e),t)},Q.fi=function(){return Kz(),q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:MBe(this,null);return;case 2:!this.b&&(this.b=new Qy((Kz(),o9),d9,this)),this.b.c.$b();return;case 3:_9e(this,null);return;case 4:!this.a&&(this.a=new oy(G5,this,4)),uz(this.a);return;case 5:!this.c&&(this.c=new cy(G5,this,5)),uz(this.c);return}sM(this,e-tC((Kz(),q7)),yO((t=F(yA(this,16),29),t||q7),e))},Q.Ib=function(){return tKe(this)},Q.d=null,R(SK,`EAnnotationImpl`,505),J(142,711,cyt,yD),Q.Ei=function(e,t){Jme(this,e,F(t,45))},Q.Uk=function(e,t){return Gye(this,F(e,45),t)},Q.Yi=function(e){return F(F(this.c,72).Yi(e),136)},Q.Gi=function(){return F(this.c,72).Gi()},Q.Hi=function(){return F(this.c,72).Hi()},Q.Ii=function(e){return F(this.c,72).Ii(e)},Q.Vk=function(e,t){return jb(this,e,t)},Q.Dk=function(e){return F(this.c,78).Dk(e)},Q.$j=function(){},Q.Oj=function(){return F(this.c,78).Oj()},Q.ak=function(e,t,n){var r=F(LO(this.b).ti().pi(this.b),136);return r.zi(e),r.Ai(t),r.ld(n),r},Q.bk=function(){return new wd(this)},Q.Wb=function(e){aA(this,e)},Q.Ek=function(){F(this.c,78).Ek()},R(hq,`EcoreEMap`,142),J(169,142,cyt,Qy),Q.Zj=function(){var e,t,n,r,i,a;if(this.d==null){for(a=H(dBt,qvt,67,2*this.f+1,0,1),n=this.c.Jc();n.e!=n.i.gc();)t=F(n.Wj(),136),r=t.yi(),i=(r&$z)%a.length,e=a[i],!e&&(e=a[i]=new wd(this)),e.Ec(t);this.d=a}},R(SK,`EAnnotationImpl/1`,169),J(293,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,470:1,52:1,100:1,161:1,293:1,117:1,118:1}),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return by(),!!(this.Bb&256);case 3:return by(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return by(),!!this.Hk();case 7:return by(),i=this.s,i>=1;case 8:return t?mF(this):this.r;case 9:return this.q}return OD(this,e-tC(this.fi()),yO((r=F(yA(this,16),29),r||this.fi()),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 9:return rC(this,n)}return i=F(yO((r=F(yA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,RN(this),t-tC(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&yC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&yC(this.q).i==0)}return uE(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:this.ri(rb(t));return;case 2:cM(this,Gp(nb(t)));return;case 3:lM(this,Gp(nb(t)));return;case 4:QO(this,F(t,15).a);return;case 5:this.Xk(F(t,15).a);return;case 8:Hj(this,F(t,143));return;case 9:r=KF(this,F(t,87),null),r&&r.mj();return}YM(this,e-tC(this.fi()),yO((n=F(yA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return Kz(),VBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:this.ri(null);return;case 2:cM(this,!0);return;case 3:lM(this,!0);return;case 4:QO(this,0);return;case 5:this.Xk(1);return;case 8:Hj(this,null);return;case 9:n=KF(this,null,null),n&&n.mj();return}sM(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.mi=function(){mF(this),this.Bb|=1},Q.Fk=function(){return mF(this)},Q.Gk=function(){return this.t},Q.Hk=function(){var e=this.t;return e>1||e==-1},Q.Qi=function(){return!!(this.Bb&512)},Q.Wk=function(e,t){return UGe(this,e,t)},Q.Xk=function(e){$O(this,e)},Q.Ib=function(){return a8e(this)},Q.s=0,Q.t=1,R(SK,`ETypedElementImpl`,293),J(451,293,{109:1,94:1,93:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,451:1,293:1,117:1,118:1,682:1}),Q.xh=function(e){return WZe(this,e)},Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return by(),!!(this.Bb&256);case 3:return by(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return by(),!!this.Hk();case 7:return by(),i=this.s,i>=1;case 8:return t?mF(this):this.r;case 9:return this.q;case 10:return by(),(this.Bb&mq)!=0;case 11:return by(),(this.Bb&CK)!=0;case 12:return by(),(this.Bb&kV)!=0;case 13:return this.j;case 14:return CL(this);case 15:return by(),(this.Bb&_q)!=0;case 16:return by(),(this.Bb&yB)!=0;case 17:return oT(this)}return OD(this,e-tC(this.fi()),yO((r=F(yA(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 17:return this.Cb&&(n=(i=this.Db>>16,i>=0?WZe(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,17,n)}return a=F(yO((r=F(yA(this,16),29),r||this.fi()),t),69),a.uk().xk(this,RN(this),t-tC(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 9:return rC(this,n);case 17:return bR(this,null,17,n)}return i=F(yO((r=F(yA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,RN(this),t-tC(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&yC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&yC(this.q).i==0);case 10:return(this.Bb&mq)==0;case 11:return(this.Bb&CK)!=0;case 12:return(this.Bb&kV)!=0;case 13:return this.j!=null;case 14:return CL(this)!=null;case 15:return(this.Bb&_q)!=0;case 16:return(this.Bb&yB)!=0;case 17:return!!oT(this)}return uE(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:ST(this,rb(t));return;case 2:cM(this,Gp(nb(t)));return;case 3:lM(this,Gp(nb(t)));return;case 4:QO(this,F(t,15).a);return;case 5:this.Xk(F(t,15).a);return;case 8:Hj(this,F(t,143));return;case 9:r=KF(this,F(t,87),null),r&&r.mj();return;case 10:TM(this,Gp(nb(t)));return;case 11:DM(this,Gp(nb(t)));return;case 12:EM(this,Gp(nb(t)));return;case 13:Ope(this,rb(t));return;case 15:wM(this,Gp(nb(t)));return;case 16:HM(this,Gp(nb(t)));return}YM(this,e-tC(this.fi()),yO((n=F(yA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return Kz(),BBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:N(this.Cb,88)&&MI(LE(F(this.Cb,88)),4),zk(this,null);return;case 2:cM(this,!0);return;case 3:lM(this,!0);return;case 4:QO(this,0);return;case 5:this.Xk(1);return;case 8:Hj(this,null);return;case 9:n=KF(this,null,null),n&&n.mj();return;case 10:TM(this,!0);return;case 11:DM(this,!1);return;case 12:EM(this,!1);return;case 13:this.i=null,wk(this,null);return;case 15:wM(this,!1);return;case 16:HM(this,!1);return}sM(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.mi=function(){qC(GD((xI(),p9),this)),mF(this),this.Bb|=1},Q.nk=function(){return this.f},Q.gk=function(){return CL(this)},Q.ok=function(){return oT(this)},Q.sk=function(){return null},Q.Yk=function(){return this.k},Q.Jj=function(){return this.n},Q.tk=function(){return jF(this)},Q.uk=function(){var e,t,n,r,i,a,o,s,c;return this.p||(n=oT(this),(n.i??MR(n),n.i).length,r=this.sk(),r&&tC(oT(r)),i=mF(this),o=i.ik(),e=o?o.i&1?o==J9?LJ:o==q9?HJ:o==Q9?VJ:o==Z9?BJ:o==Y9?UJ:o==$9?GJ:o==X9?RJ:zJ:o:null,t=CL(this),s=i.gk(),KKe(this),(this.Bb&yB)!=0&&((a=g$e((xI(),p9),n))&&a!=this||(a=MT(GD(p9,this))))?this.p=new Tpe(this,a):this.Hk()?this.$k()?this.p=r?(this.Bb&_q)==0?e?this._k()?new uw(49,e,this,r):new uw(7,e,this,r):this._k()?new xE(48,this,r):new xE(6,this,r):e?this._k()?new uw(47,e,this,r):new uw(5,e,this,r):this._k()?new xE(46,this,r):new xE(4,this,r):(this.Bb&_q)==0?e?e==bJ?new Zb(41,cBt,this):this._k()?new Zb(45,e,this):new Zb(3,e,this):this._k()?new kw(44,this):new kw(2,this):e?e==bJ?new Zb(50,cBt,this):this._k()?new Zb(43,e,this):new Zb(1,e,this):this._k()?new kw(42,this):new kw(0,this):N(i,159)?this.p=e==c9?new kw(40,this):this.Bb&512?(this.Bb&_q)==0?e?new Zb(11,e,this):new kw(10,this):e?new Zb(9,e,this):new kw(8,this):(this.Bb&_q)==0?e?new Zb(15,e,this):new kw(14,this):e?new Zb(13,e,this):new kw(12,this):r?(c=r.t,this.p=c>1||c==-1?this._k()?(this.Bb&_q)==0?e?new uw(27,e,this,r):new xE(26,this,r):e?new uw(25,e,this,r):new xE(24,this,r):(this.Bb&_q)==0?e?new uw(31,e,this,r):new xE(30,this,r):e?new uw(29,e,this,r):new xE(28,this,r):this._k()?(this.Bb&_q)==0?e?new uw(35,e,this,r):new xE(34,this,r):e?new uw(33,e,this,r):new xE(32,this,r):(this.Bb&_q)==0?e?new uw(39,e,this,r):new xE(38,this,r):e?new uw(37,e,this,r):new xE(36,this,r)):this.p=this._k()?(this.Bb&_q)==0?e?new Zb(19,e,this):new kw(18,this):e?new Zb(17,e,this):new kw(16,this):(this.Bb&_q)==0?e?new Zb(23,e,this):new kw(22,this):e?new Zb(21,e,this):new kw(20,this):this.p=this.Zk()?this._k()?new ySe(F(i,29),this,r):new lke(F(i,29),this,r):N(i,159)?e==c9?new kw(40,this):(this.Bb&_q)==0?e?new Awe(t,s,this,(wN(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new RDe(F(i,159),t,s,this):e?new jwe(t,s,this,(wN(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new zDe(F(i,159),t,s,this):this.$k()?r?(this.Bb&_q)==0?this._k()?new SSe(F(i,29),this,r):new Qb(F(i,29),this,r):this._k()?new wSe(F(i,29),this,r):new CSe(F(i,29),this,r):(this.Bb&_q)==0?this._k()?new U_e(F(i,29),this):new $y(F(i,29),this):this._k()?new G_e(F(i,29),this):new W_e(F(i,29),this):this._k()?r?(this.Bb&_q)==0?new bSe(F(i,29),this,r):new TSe(F(i,29),this,r):(this.Bb&_q)==0?new V_e(F(i,29),this):new K_e(F(i,29),this):r?(this.Bb&_q)==0?new xSe(F(i,29),this,r):new ESe(F(i,29),this,r):(this.Bb&_q)==0?new zx(F(i,29),this):new H_e(F(i,29),this)),this.p},Q.pk=function(){return(this.Bb&mq)!=0},Q.Zk=function(){return!1},Q.$k=function(){return!1},Q.qk=function(){return(this.Bb&yB)!=0},Q.vk=function(){return iO(this)},Q._k=function(){return!1},Q.rk=function(){return(this.Bb&_q)!=0},Q.al=function(e){this.k=e},Q.ri=function(e){ST(this,e)},Q.Ib=function(){return ZL(this)},Q.e=!1,Q.n=0,R(SK,`EStructuralFeatureImpl`,451),J(335,451,{109:1,94:1,93:1,38:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,335:1,161:1,451:1,293:1,117:1,118:1,682:1},qf),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return by(),!!(this.Bb&256);case 3:return by(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return by(),!!h6e(this);case 7:return by(),i=this.s,i>=1;case 8:return t?mF(this):this.r;case 9:return this.q;case 10:return by(),(this.Bb&mq)!=0;case 11:return by(),(this.Bb&CK)!=0;case 12:return by(),(this.Bb&kV)!=0;case 13:return this.j;case 14:return CL(this);case 15:return by(),(this.Bb&_q)!=0;case 16:return by(),(this.Bb&yB)!=0;case 17:return oT(this);case 18:return by(),(this.Bb&xK)!=0;case 19:return t?LA(this):VFe(this)}return OD(this,e-tC((Kz(),J7)),yO((r=F(yA(this,16),29),r||J7),e),t,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return h6e(this);case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&yC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&yC(this.q).i==0);case 10:return(this.Bb&mq)==0;case 11:return(this.Bb&CK)!=0;case 12:return(this.Bb&kV)!=0;case 13:return this.j!=null;case 14:return CL(this)!=null;case 15:return(this.Bb&_q)!=0;case 16:return(this.Bb&yB)!=0;case 17:return!!oT(this);case 18:return(this.Bb&xK)!=0;case 19:return!!VFe(this)}return uE(this,e-tC((Kz(),J7)),yO((t=F(yA(this,16),29),t||J7),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:ST(this,rb(t));return;case 2:cM(this,Gp(nb(t)));return;case 3:lM(this,Gp(nb(t)));return;case 4:QO(this,F(t,15).a);return;case 5:Cle(this,F(t,15).a);return;case 8:Hj(this,F(t,143));return;case 9:r=KF(this,F(t,87),null),r&&r.mj();return;case 10:TM(this,Gp(nb(t)));return;case 11:DM(this,Gp(nb(t)));return;case 12:EM(this,Gp(nb(t)));return;case 13:Ope(this,rb(t));return;case 15:wM(this,Gp(nb(t)));return;case 16:HM(this,Gp(nb(t)));return;case 18:UM(this,Gp(nb(t)));return}YM(this,e-tC((Kz(),J7)),yO((n=F(yA(this,16),29),n||J7),e),t)},Q.fi=function(){return Kz(),J7},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:N(this.Cb,88)&&MI(LE(F(this.Cb,88)),4),zk(this,null);return;case 2:cM(this,!0);return;case 3:lM(this,!0);return;case 4:QO(this,0);return;case 5:this.b=0,$O(this,1);return;case 8:Hj(this,null);return;case 9:n=KF(this,null,null),n&&n.mj();return;case 10:TM(this,!0);return;case 11:DM(this,!1);return;case 12:EM(this,!1);return;case 13:this.i=null,wk(this,null);return;case 15:wM(this,!1);return;case 16:HM(this,!1);return;case 18:UM(this,!1);return}sM(this,e-tC((Kz(),J7)),yO((t=F(yA(this,16),29),t||J7),e))},Q.mi=function(){LA(this),qC(GD((xI(),p9),this)),mF(this),this.Bb|=1},Q.Hk=function(){return h6e(this)},Q.Wk=function(e,t){return this.b=0,this.a=null,UGe(this,e,t)},Q.Xk=function(e){Cle(this,e)},Q.Ib=function(){var e;return this.Db&64?ZL(this):(e=new gy(ZL(this)),e.a+=` (iD: `,Vm(e,(this.Bb&xK)!=0),e.a+=`)`,e.a)},Q.b=0,R(SK,`EAttributeImpl`,335),J(360,439,{109:1,94:1,93:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1}),Q.bl=function(e){return e.Ah()==this},Q.xh=function(e){return QP(this,e)},Q.yh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return YP(this);case 4:return this.gk();case 5:return this.F;case 6:return t?LO(this):iT(this);case 7:return!this.A&&(this.A=new sy(W7,this,7)),this.A}return OD(this,e-tC(this.fi()),yO((r=F(yA(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?QP(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,6,n)}return a=F(yO((r=F(yA(this,16),29),r||this.fi()),t),69),a.uk().xk(this,RN(this),t-tC(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 6:return bR(this,null,6,n);case 7:return!this.A&&(this.A=new sy(W7,this,7)),hP(this.A,e,n)}return i=F(yO((r=F(yA(this,16),29),r||this.fi()),t),69),i.uk().yk(this,RN(this),t-tC(this.fi()),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!YP(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!iT(this);case 7:return!!this.A&&this.A.i!=0}return uE(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:CT(this,rb(t));return;case 2:Ev(this,rb(t));return;case 5:vz(this,rb(t));return;case 7:!this.A&&(this.A=new sy(W7,this,7)),uz(this.A),!this.A&&(this.A=new sy(W7,this,7)),nC(this.A,F(t,18));return}YM(this,e-tC(this.fi()),yO((n=F(yA(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return Kz(),PBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:N(this.Cb,184)&&(F(this.Cb,184).tb=null),zk(this,null);return;case 2:Pj(this,null),ek(this,this.D);return;case 5:vz(this,null);return;case 7:!this.A&&(this.A=new sy(W7,this,7)),uz(this.A);return}sM(this,e-tC(this.fi()),yO((t=F(yA(this,16),29),t||this.fi()),e))},Q.fk=function(){var e;return this.G==-1&&(this.G=(e=LO(this),e?SP(e.si(),this):-1)),this.G},Q.gk=function(){return null},Q.hk=function(){return LO(this)},Q.cl=function(){return this.v},Q.ik=function(){return YP(this)},Q.jk=function(){return this.D==null?this.B:this.D},Q.kk=function(){return this.F},Q.dk=function(e){return TR(this,e)},Q.dl=function(e){this.v=e},Q.el=function(e){fVe(this,e)},Q.fl=function(e){this.C=e},Q.ri=function(e){CT(this,e)},Q.Ib=function(){return fN(this)},Q.C=null,Q.D=null,Q.G=-1,R(SK,`EClassifierImpl`,360),J(88,360,{109:1,94:1,93:1,29:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,88:1,360:1,161:1,471:1,117:1,118:1,681:1},bc),Q.bl=function(e){return Sye(this,e.Ah())},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return YP(this);case 4:return null;case 5:return this.F;case 6:return t?LO(this):iT(this);case 7:return!this.A&&(this.A=new sy(W7,this,7)),this.A;case 8:return by(),!!(this.Bb&256);case 9:return by(),!!(this.Bb&512);case 10:return Pw(this);case 11:return!this.q&&(this.q=new I(B7,this,11,10)),this.q;case 12:return KR(this);case 13:return HR(this);case 14:return HR(this),this.r;case 15:return KR(this),this.k;case 16:return H4e(this);case 17:return RR(this);case 18:return MR(this);case 19:return yL(this);case 20:return KR(this),this.o;case 21:return!this.s&&(this.s=new I(M7,this,21,17)),this.s;case 22:return bE(this);case 23:return htt(this)}return OD(this,e-tC((Kz(),Y7)),yO((r=F(yA(this,16),29),r||Y7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?QP(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,6,n);case 11:return!this.q&&(this.q=new I(B7,this,11,10)),_N(this.q,e,n);case 21:return!this.s&&(this.s=new I(M7,this,21,17)),_N(this.s,e,n)}return a=F(yO((r=F(yA(this,16),29),r||(Kz(),Y7)),t),69),a.uk().xk(this,RN(this),t-tC((Kz(),Y7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 6:return bR(this,null,6,n);case 7:return!this.A&&(this.A=new sy(W7,this,7)),hP(this.A,e,n);case 11:return!this.q&&(this.q=new I(B7,this,11,10)),hP(this.q,e,n);case 21:return!this.s&&(this.s=new I(M7,this,21,17)),hP(this.s,e,n);case 22:return hP(bE(this),e,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),Y7)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),Y7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!YP(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!iT(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!!(this.Bb&256);case 9:return!!(this.Bb&512);case 10:return!!this.u&&bE(this.u.a).i!=0&&!(this.n&&NP(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return KR(this).i!=0;case 13:return HR(this).i!=0;case 14:return HR(this),this.r.i!=0;case 15:return KR(this),this.k.i!=0;case 16:return H4e(this).i!=0;case 17:return RR(this).i!=0;case 18:return MR(this).i!=0;case 19:return yL(this).i!=0;case 20:return KR(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&NP(this.n);case 23:return htt(this).i!=0}return uE(this,e-tC((Kz(),Y7)),yO((t=F(yA(this,16),29),t||Y7),e))},Q.Wh=function(e){return(this.i==null||this.q&&this.q.i!=0?null:AL(this,e))||Ylt(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:CT(this,rb(t));return;case 2:Ev(this,rb(t));return;case 5:vz(this,rb(t));return;case 7:!this.A&&(this.A=new sy(W7,this,7)),uz(this.A),!this.A&&(this.A=new sy(W7,this,7)),nC(this.A,F(t,18));return;case 8:$Ge(this,Gp(nb(t)));return;case 9:eKe(this,Gp(nb(t)));return;case 10:dz(Pw(this)),nC(Pw(this),F(t,18));return;case 11:!this.q&&(this.q=new I(B7,this,11,10)),uz(this.q),!this.q&&(this.q=new I(B7,this,11,10)),nC(this.q,F(t,18));return;case 21:!this.s&&(this.s=new I(M7,this,21,17)),uz(this.s),!this.s&&(this.s=new I(M7,this,21,17)),nC(this.s,F(t,18));return;case 22:uz(bE(this)),nC(bE(this),F(t,18));return}YM(this,e-tC((Kz(),Y7)),yO((n=F(yA(this,16),29),n||Y7),e),t)},Q.fi=function(){return Kz(),Y7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:N(this.Cb,184)&&(F(this.Cb,184).tb=null),zk(this,null);return;case 2:Pj(this,null),ek(this,this.D);return;case 5:vz(this,null);return;case 7:!this.A&&(this.A=new sy(W7,this,7)),uz(this.A);return;case 8:$Ge(this,!1);return;case 9:eKe(this,!1);return;case 10:this.u&&dz(this.u);return;case 11:!this.q&&(this.q=new I(B7,this,11,10)),uz(this.q);return;case 21:!this.s&&(this.s=new I(M7,this,21,17)),uz(this.s);return;case 22:this.n&&uz(this.n);return}sM(this,e-tC((Kz(),Y7)),yO((t=F(yA(this,16),29),t||Y7),e))},Q.mi=function(){var e,t;if(KR(this),HR(this),H4e(this),RR(this),MR(this),yL(this),htt(this),UE(PSe(LE(this))),this.s)for(e=0,t=this.s.i;e=0;--t)U(this,t);return Kqe(this,e)},Q.Ek=function(){uz(this)},Q.Xi=function(e,t){return tBe(this,e,t)},R(hq,`EcoreEList`,624),J(491,624,Eq,lx),Q.Ji=function(){return!1},Q.Jj=function(){return this.c},Q.Kj=function(){return!1},Q.ml=function(){return!0},Q.Qi=function(){return!0},Q.Ui=function(e,t){return t},Q.Wi=function(){return!1},Q.c=0,R(hq,`EObjectEList`,491),J(81,491,Eq,oy),Q.Kj=function(){return!0},Q.kl=function(){return!1},Q.$k=function(){return!0},R(hq,`EObjectContainmentEList`,81),J(544,81,Eq,ay),Q.Li=function(){this.b=!0},Q.Oj=function(){return this.b},Q.Ek=function(){var e;uz(this),_v(this.e)?(e=this.b,this.b=!1,dA(this.e,new RE(this.e,2,this.c,e,!1))):this.b=!1},Q.b=!1,R(hq,`EObjectContainmentEList/Unsettable`,544),J(1131,544,Eq,Owe),Q.Ri=function(e,t){var n=F(SM(this,e,t),87),r;return _v(this.e)&&cf(this,new xD(this.a,7,(Kz(),FBt),K(t),(r=n.c,N(r,88)?F(r,29):t9),e)),n},Q.Sj=function(e,t){return eJe(this,F(e,87),t)},Q.Tj=function(e,t){return $qe(this,F(e,87),t)},Q.Uj=function(e,t,n){return j$e(this,F(e,87),F(t,87),n)},Q.Gj=function(e,t,n,r,i){switch(e){case 3:return fT(this,e,t,n,r,this.i>1);case 5:return fT(this,e,t,n,r,this.i-F(n,16).gc()>0);default:return new ZD(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return NP(this)},Q.Ek=function(){uz(this)},R(SK,`EClassImpl/1`,1131),J(1145,1144,Wvt),Q.bj=function(e){var t,n=e.ej(),r,i,a,o,s;if(n!=8){if(r=EYe(e),r==0)switch(n){case 1:case 9:s=e.ij(),s!=null&&(t=LE(F(s,471)),!t.c&&(t.c=new No),rO(t.c,e.hj())),o=e.gj(),o!=null&&(i=F(o,471),i.Bb&1||(t=LE(i),!t.c&&(t.c=new No),hD(t.c,F(e.hj(),29))));break;case 3:o=e.gj(),o!=null&&(i=F(o,471),i.Bb&1||(t=LE(i),!t.c&&(t.c=new No),hD(t.c,F(e.hj(),29))));break;case 5:if(o=e.gj(),o!=null)for(a=F(o,18).Jc();a.Ob();)i=F(a.Pb(),471),i.Bb&1||(t=LE(i),!t.c&&(t.c=new No),hD(t.c,F(e.hj(),29)));break;case 4:s=e.ij(),s!=null&&(i=F(s,471),i.Bb&1||(t=LE(i),!t.c&&(t.c=new No),rO(t.c,e.hj())));break;case 6:if(s=e.ij(),s!=null)for(a=F(s,18).Jc();a.Ob();)i=F(a.Pb(),471),i.Bb&1||(t=LE(i),!t.c&&(t.c=new No),rO(t.c,e.hj()))}this.ol(r)}},Q.ol=function(e){Utt(this,e)},Q.b=63,R(SK,`ESuperAdapter`,1145),J(1146,1145,Wvt,fse),Q.ol=function(e){MI(this,e)},R(SK,`EClassImpl/10`,1146),J(1135,699,Eq),Q.Ci=function(e,t){return GF(this,e,t)},Q.Di=function(e){return YXe(this,e)},Q.Ei=function(e,t){rM(this,e,t)},Q.Fi=function(e){WE(this,e)},Q.Yi=function(e){return cLe(this,e)},Q.Vi=function(e,t){return nO(this,e,t)},Q.Uk=function(e,t){throw O(new Zd)},Q.Gi=function(){return new Py(this)},Q.Hi=function(){return new Fy(this)},Q.Ii=function(e){return dk(this,e)},Q.Vk=function(e,t){throw O(new Zd)},Q.Dk=function(e){return this},Q.Oj=function(){return this.i!=0},Q.Wb=function(e){throw O(new Zd)},Q.Ek=function(){throw O(new Zd)},R(hq,`EcoreEList/UnmodifiableEList`,1135),J(333,1135,Eq,av),Q.Wi=function(){return!1},R(hq,`EcoreEList/UnmodifiableEList/FastCompare`,333),J(1138,333,Eq,AUe),Q.bd=function(e){var t,n,r;if(N(e,179)&&(t=F(e,179),n=t.Jj(),n!=-1)){for(r=this.i;n4){if(this.dk(e)){if(this.$k()){if(r=F(e,52),n=r.Bh(),s=n==this.b&&(this.kl()?r.vh(r.Ch(),F(yO(Fw(this.b),this.Jj()).Fk(),29).ik())==kP(F(yO(Fw(this.b),this.Jj()),19)).n:-1-r.Ch()==this.Jj()),this.ll()&&!s&&!n&&r.Gh()){for(i=0;i1||r==-1)):!1},Q.kl=function(){var e,t=yO(Fw(this.b),this.Jj()),n;return N(t,103)?(e=F(t,19),n=kP(e),!!n):!1},Q.ll=function(){var e,t=yO(Fw(this.b),this.Jj());return N(t,103)?(e=F(t,19),(e.Bb&jV)!=0):!1},Q.bd=function(e){var t,n,r=this.xj(e),i;if(r>=0)return r;if(this.ml()){for(n=0,i=this.Cj();n=0;--e)gz(this,e,this.vj(e));return this.Dj()},Q.Oc=function(e){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)gz(this,t,this.vj(t));return this.Ej(e)},Q.Ek=function(){dz(this)},Q.Xi=function(e,t){return _Le(this,e,t)},R(hq,`DelegatingEcoreEList`,744),J(1141,744,myt,Eve),Q.oj=function(e,t){B_e(this,e,F(t,29))},Q.pj=function(e){Wme(this,F(e,29))},Q.vj=function(e){var t=F(U(bE(this.a),e),87).c;return N(t,88)?F(t,29):(Kz(),t9)},Q.Aj=function(e){var t=F(UL(bE(this.a),e),87).c;return N(t,88)?F(t,29):(Kz(),t9)},Q.Bj=function(e,t){return ZXe(this,e,F(t,29))},Q.Ji=function(){return!1},Q.Gj=function(e,t,n,r,i){return null},Q.qj=function(){return new mse(this)},Q.rj=function(){uz(bE(this.a))},Q.sj=function(e){return rKe(this,e)},Q.tj=function(e){for(var t,n=e.Jc();n.Ob();)if(t=n.Pb(),!rKe(this,t))return!1;return!0},Q.uj=function(e){var t,n,r;if(N(e,16)&&(r=F(e,16),r.gc()==bE(this.a).i)){for(t=r.Jc(),n=new uy(this);t.Ob();)if(M(t.Pb())!==M(aP(n)))return!1;return!0}return!1},Q.wj=function(){var e,t,n=1,r,i;for(t=new uy(bE(this.a));t.e!=t.i.gc();)e=F(aP(t),87),r=(i=e.c,N(i,88)?F(i,29):(Kz(),t9)),n=31*n+(r?Ty(r):0);return n},Q.xj=function(e){var t,n,r=0,i;for(n=new uy(bE(this.a));n.e!=n.i.gc();){if(t=F(aP(n),87),M(e)===M((i=t.c,N(i,88)?F(i,29):(Kz(),t9))))return r;++r}return-1},Q.yj=function(){return bE(this.a).i==0},Q.zj=function(){return null},Q.Cj=function(){return bE(this.a).i},Q.Dj=function(){var e,t,n,r,i,a=bE(this.a).i;for(i=H(hJ,iB,1,a,5,1),n=0,t=new uy(bE(this.a));t.e!=t.i.gc();)e=F(aP(t),87),i[n++]=(r=e.c,N(r,88)?F(r,29):(Kz(),t9));return i},Q.Ej=function(e){var t,n,r,i,a,o,s=bE(this.a).i;for(e.lengths&&fC(e,s,null),r=0,n=new uy(bE(this.a));n.e!=n.i.gc();)t=F(aP(n),87),a=(o=t.c,N(o,88)?F(o,29):(Kz(),t9)),fC(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new lm;for(i.a+=`[`,e=bE(this.a),t=0,r=bE(this.a).i;t>16,i>=0?QP(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,6,n);case 9:return!this.a&&(this.a=new I(R7,this,9,5)),_N(this.a,e,n)}return a=F(yO((r=F(yA(this,16),29),r||(Kz(),X7)),t),69),a.uk().xk(this,RN(this),t-tC((Kz(),X7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 6:return bR(this,null,6,n);case 7:return!this.A&&(this.A=new sy(W7,this,7)),hP(this.A,e,n);case 9:return!this.a&&(this.a=new I(R7,this,9,5)),hP(this.a,e,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),X7)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),X7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!YP(this);case 4:return!!zWe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!iT(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256);case 9:return!!this.a&&this.a.i!=0}return uE(this,e-tC((Kz(),X7)),yO((t=F(yA(this,16),29),t||X7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:CT(this,rb(t));return;case 2:Ev(this,rb(t));return;case 5:vz(this,rb(t));return;case 7:!this.A&&(this.A=new sy(W7,this,7)),uz(this.A),!this.A&&(this.A=new sy(W7,this,7)),nC(this.A,F(t,18));return;case 8:uM(this,Gp(nb(t)));return;case 9:!this.a&&(this.a=new I(R7,this,9,5)),uz(this.a),!this.a&&(this.a=new I(R7,this,9,5)),nC(this.a,F(t,18));return}YM(this,e-tC((Kz(),X7)),yO((n=F(yA(this,16),29),n||X7),e),t)},Q.fi=function(){return Kz(),X7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:N(this.Cb,184)&&(F(this.Cb,184).tb=null),zk(this,null);return;case 2:Pj(this,null),ek(this,this.D);return;case 5:vz(this,null);return;case 7:!this.A&&(this.A=new sy(W7,this,7)),uz(this.A);return;case 8:uM(this,!0);return;case 9:!this.a&&(this.a=new I(R7,this,9,5)),uz(this.a);return}sM(this,e-tC((Kz(),X7)),yO((t=F(yA(this,16),29),t||X7),e))},Q.mi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e>16==5?F(this.Cb,675):null}return OD(this,e-tC((Kz(),Z7)),yO((r=F(yA(this,16),29),r||Z7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 5:return this.Cb&&(n=(i=this.Db>>16,i>=0?yQe(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,5,n)}return a=F(yO((r=F(yA(this,16),29),r||(Kz(),Z7)),t),69),a.uk().xk(this,RN(this),t-tC((Kz(),Z7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 5:return bR(this,null,5,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),Z7)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),Z7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&F(this.Cb,675))}return uE(this,e-tC((Kz(),Z7)),yO((t=F(yA(this,16),29),t||Z7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:zk(this,rb(t));return;case 2:ZO(this,F(t,15).a);return;case 3:z6e(this,F(t,2004));return;case 4:yk(this,rb(t));return}YM(this,e-tC((Kz(),Z7)),yO((n=F(yA(this,16),29),n||Z7),e),t)},Q.fi=function(){return Kz(),Z7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:zk(this,null);return;case 2:ZO(this,0);return;case 3:z6e(this,null);return;case 4:yk(this,null);return}sM(this,e-tC((Kz(),Z7)),yO((t=F(yA(this,16),29),t||Z7),e))},Q.Ib=function(){return this.c??this.zb},Q.b=null,Q.c=null,Q.d=0,R(SK,`EEnumLiteralImpl`,568);var KBt=Ox(SK,`EFactoryImpl/InternalEDateTimeFormat`);J(485,1,{2079:1},hd),R(SK,`EFactoryImpl/1ClientInternalEDateTimeFormat`,485),J(248,118,{109:1,94:1,93:1,87:1,57:1,114:1,52:1,100:1,248:1,117:1,118:1},jd),Q.zh=function(e,t,n){var r;return n=bR(this,e,t,n),this.e&&N(e,179)&&(r=vL(this,this.e),r!=this.c&&(n=yz(this,r,n))),n},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new oy(z7,this,1)),this.d;case 2:return t?wR(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?IP(this):this.a}return OD(this,e-tC((Kz(),$7)),yO((r=F(yA(this,16),29),r||$7),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return _Ge(this,null,n);case 1:return!this.d&&(this.d=new oy(z7,this,1)),hP(this.d,e,n);case 3:return gGe(this,null,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),$7)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),$7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return uE(this,e-tC((Kz(),$7)),yO((t=F(yA(this,16),29),t||$7),e))},Q.$h=function(e,t){var n;switch(e){case 0:o1e(this,F(t,87));return;case 1:!this.d&&(this.d=new oy(z7,this,1)),uz(this.d),!this.d&&(this.d=new oy(z7,this,1)),nC(this.d,F(t,18));return;case 3:a1e(this,F(t,87));return;case 4:Q0e(this,F(t,835));return;case 5:IO(this,F(t,143));return}YM(this,e-tC((Kz(),$7)),yO((n=F(yA(this,16),29),n||$7),e),t)},Q.fi=function(){return Kz(),$7},Q.hi=function(e){var t;switch(e){case 0:o1e(this,null);return;case 1:!this.d&&(this.d=new oy(z7,this,1)),uz(this.d);return;case 3:a1e(this,null);return;case 4:Q0e(this,null);return;case 5:IO(this,null);return}sM(this,e-tC((Kz(),$7)),yO((t=F(yA(this,16),29),t||$7),e))},Q.Ib=function(){var e=new _y(cL(this));return e.a+=` (expression: `,tz(this,e),e.a+=`)`,e.a};var qBt;R(SK,`EGenericTypeImpl`,248),J(2032,2027,Aq),Q.Ei=function(e,t){wve(this,e,t)},Q.Uk=function(e,t){return wve(this,this.gc(),e),t},Q.Yi=function(e){return mP(this.nj(),e)},Q.Gi=function(){return this.Hi()},Q.nj=function(){return new gse(this)},Q.Hi=function(){return this.Ii(0)},Q.Ii=function(e){return this.nj().dd(e)},Q.Vk=function(e,t){return lN(this,e,!0),t},Q.Ri=function(e,t){var n,r=lF(this,t);return n=this.dd(e),n.Rb(r),r},Q.Si=function(e,t){var n;lN(this,t,!0),n=this.dd(e),n.Rb(t)},R(hq,`AbstractSequentialInternalEList`,2032),J(482,2032,Aq,jy),Q.Yi=function(e){return mP(this.nj(),e)},Q.Gi=function(){return this.b==null?(Gh(),Gh(),u9):this.ql()},Q.nj=function(){return new $pe(this.a,this.b)},Q.Hi=function(){return this.b==null?(Gh(),Gh(),u9):this.ql()},Q.Ii=function(e){var t,n;if(this.b==null){if(e<0||e>1)throw O(new Fp(fq+e+`, size=0`));return Gh(),Gh(),u9}for(n=this.ql(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.nk()!=K5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(a=this.b.Kh(t,this.sl()),this.f=(qh(),F(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=F(a,16),this.k=r):(r=F(a,72),this.k=this.j=r),N(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?E4e(this,this.p):l3e(this))return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=F(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=F(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}},Q.Pb=function(){return bA(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw O(new Qd)},Q.Vb=function(){return this.a-1},Q.Qb=function(){throw O(new Zd)},Q.sl=function(){return!1},Q.Wb=function(e){throw O(new Zd)},Q.tl=function(){return!0},Q.a=0,Q.d=0,Q.f=!1,Q.g=0,Q.n=0,Q.o=0;var u9;R(hq,`EContentsEList/FeatureIteratorImpl`,287),J(700,287,jq,N_e),Q.sl=function(){return!0},R(hq,`EContentsEList/ResolvingFeatureIteratorImpl`,700),J(1148,700,jq,F_e),Q.tl=function(){return!1},R(SK,`ENamedElementImpl/1/1`,1148),J(1149,287,jq,P_e),Q.tl=function(){return!1},R(SK,`ENamedElementImpl/1/2`,1149),J(39,151,dq,SE,QNe,CS,bD,ZD,RE,Wze,Ije,Gze,Lje,tFe,Rje,Jze,zje,eFe,Bje,Kze,Vje,wS,xD,vw,qze,Hje,$Pe,Fje),Q.Ij=function(){return JIe(this)},Q.Pj=function(){var e=JIe(this);return e?e.gk():null},Q.fj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,e)},Q.hj=function(){return this.c},Q.Qj=function(){var e=JIe(this);return e?e.rk():!1},Q.b=-1,R(SK,`ENotificationImpl`,39),J(403,293,{109:1,94:1,93:1,158:1,197:1,57:1,62:1,114:1,470:1,52:1,100:1,161:1,403:1,293:1,117:1,118:1},Jf),Q.xh=function(e){return LQe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return by(),!!(this.Bb&256);case 3:return by(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return by(),a=this.t,a>1||a==-1;case 7:return by(),i=this.s,i>=1;case 8:return t?mF(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?F(this.Cb,29):null;case 11:return!this.d&&(this.d=new sy(W7,this,11)),this.d;case 12:return!this.c&&(this.c=new I(H7,this,12,10)),this.c;case 13:return!this.a&&(this.a=new ub(this,this)),this.a;case 14:return qD(this)}return OD(this,e-tC((Kz(),n9)),yO((r=F(yA(this,16),29),r||n9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?LQe(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,10,n);case 12:return!this.c&&(this.c=new I(H7,this,12,10)),_N(this.c,e,n)}return a=F(yO((r=F(yA(this,16),29),r||(Kz(),n9)),t),69),a.uk().xk(this,RN(this),t-tC((Kz(),n9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 9:return rC(this,n);case 10:return bR(this,null,10,n);case 11:return!this.d&&(this.d=new sy(W7,this,11)),hP(this.d,e,n);case 12:return!this.c&&(this.c=new I(H7,this,12,10)),hP(this.c,e,n);case 14:return hP(qD(this),e,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),n9)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),n9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&yC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&yC(this.q).i==0);case 10:return!!(this.Db>>16==10&&F(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&qD(this.a.a).i!=0&&!(this.b&&PP(this.b));case 14:return!!this.b&&PP(this.b)}return uE(this,e-tC((Kz(),n9)),yO((t=F(yA(this,16),29),t||n9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:zk(this,rb(t));return;case 2:cM(this,Gp(nb(t)));return;case 3:lM(this,Gp(nb(t)));return;case 4:QO(this,F(t,15).a);return;case 5:$O(this,F(t,15).a);return;case 8:Hj(this,F(t,143));return;case 9:r=KF(this,F(t,87),null),r&&r.mj();return;case 11:!this.d&&(this.d=new sy(W7,this,11)),uz(this.d),!this.d&&(this.d=new sy(W7,this,11)),nC(this.d,F(t,18));return;case 12:!this.c&&(this.c=new I(H7,this,12,10)),uz(this.c),!this.c&&(this.c=new I(H7,this,12,10)),nC(this.c,F(t,18));return;case 13:!this.a&&(this.a=new ub(this,this)),dz(this.a),!this.a&&(this.a=new ub(this,this)),nC(this.a,F(t,18));return;case 14:uz(qD(this)),nC(qD(this),F(t,18));return}YM(this,e-tC((Kz(),n9)),yO((n=F(yA(this,16),29),n||n9),e),t)},Q.fi=function(){return Kz(),n9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:zk(this,null);return;case 2:cM(this,!0);return;case 3:lM(this,!0);return;case 4:QO(this,0);return;case 5:$O(this,1);return;case 8:Hj(this,null);return;case 9:n=KF(this,null,null),n&&n.mj();return;case 11:!this.d&&(this.d=new sy(W7,this,11)),uz(this.d);return;case 12:!this.c&&(this.c=new I(H7,this,12,10)),uz(this.c);return;case 13:this.a&&dz(this.a);return;case 14:this.b&&uz(this.b);return}sM(this,e-tC((Kz(),n9)),yO((t=F(yA(this,16),29),t||n9),e))},Q.mi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;es&&fC(e,s,null),r=0,n=new uy(qD(this.a));n.e!=n.i.gc();)t=F(aP(n),87),a=(o=t.c,o||(Kz(),e9)),fC(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new lm;for(i.a+=`[`,e=qD(this.a),t=0,r=qD(this.a).i;t1);case 5:return fT(this,e,t,n,r,this.i-F(n,16).gc()>0);default:return new ZD(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return PP(this)},Q.Ek=function(){uz(this)},R(SK,`EOperationImpl/2`,1332),J(493,1,{2002:1,493:1},wpe),R(SK,`EPackageImpl/1`,493),J(14,81,Eq,I),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.kl=function(){return!0},Q.b=0,R(hq,`EObjectContainmentWithInverseEList`,14),J(361,14,Eq,Eb),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectContainmentWithInverseEList/Resolving`,361),J(313,361,Eq,SS),Q.Li=function(){this.a.tb=null},R(SK,`EPackageImpl/2`,313),J(1244,1,{},ore),R(SK,`EPackageImpl/3`,1244),J(721,44,RV,Yf),Q._b=function(e){return z_(e)?ww(this,e):!!Yx(this.f,e)},R(SK,`EPackageRegistryImpl`,721),J(504,293,{109:1,94:1,93:1,158:1,197:1,57:1,2081:1,114:1,470:1,52:1,100:1,161:1,504:1,293:1,117:1,118:1},Xf),Q.xh=function(e){return RQe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return by(),!!(this.Bb&256);case 3:return by(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return by(),a=this.t,a>1||a==-1;case 7:return by(),i=this.s,i>=1;case 8:return t?mF(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?F(this.Cb,62):null}return OD(this,e-tC((Kz(),i9)),yO((r=F(yA(this,16),29),r||i9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),_N(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?RQe(this,n):this.Cb.Qh(this,-1-i,null,n))),bR(this,e,10,n)}return a=F(yO((r=F(yA(this,16),29),r||(Kz(),i9)),t),69),a.uk().xk(this,RN(this),t-tC((Kz(),i9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 9:return rC(this,n);case 10:return bR(this,null,10,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),i9)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),i9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&yC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&yC(this.q).i==0);case 10:return!!(this.Db>>16==10&&F(this.Cb,62))}return uE(this,e-tC((Kz(),i9)),yO((t=F(yA(this,16),29),t||i9),e))},Q.fi=function(){return Kz(),i9},R(SK,`EParameterImpl`,504),J(103,451,{109:1,94:1,93:1,158:1,197:1,57:1,19:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,103:1,451:1,293:1,117:1,118:1,682:1},tve),Q.Ih=function(e,t,n){var r,i,a,o;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return by(),!!(this.Bb&256);case 3:return by(),!!(this.Bb&512);case 4:return K(this.s);case 5:return K(this.t);case 6:return by(),o=this.t,o>1||o==-1;case 7:return by(),i=this.s,i>=1;case 8:return t?mF(this):this.r;case 9:return this.q;case 10:return by(),(this.Bb&mq)!=0;case 11:return by(),(this.Bb&CK)!=0;case 12:return by(),(this.Bb&kV)!=0;case 13:return this.j;case 14:return CL(this);case 15:return by(),(this.Bb&_q)!=0;case 16:return by(),(this.Bb&yB)!=0;case 17:return oT(this);case 18:return by(),(this.Bb&xK)!=0;case 19:return by(),a=kP(this),!!(a&&(a.Bb&xK)!=0);case 20:return by(),(this.Bb&jV)!=0;case 21:return t?kP(this):this.b;case 22:return t?wUe(this):YPe(this);case 23:return!this.a&&(this.a=new cy(N7,this,23)),this.a}return OD(this,e-tC((Kz(),a9)),yO((r=F(yA(this,16),29),r||a9),e),t,n)},Q.Th=function(e){var t,n,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&yC(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&yC(this.q).i==0);case 10:return(this.Bb&mq)==0;case 11:return(this.Bb&CK)!=0;case 12:return(this.Bb&kV)!=0;case 13:return this.j!=null;case 14:return CL(this)!=null;case 15:return(this.Bb&_q)!=0;case 16:return(this.Bb&yB)!=0;case 17:return!!oT(this);case 18:return(this.Bb&xK)!=0;case 19:return r=kP(this),!!r&&(r.Bb&xK)!=0;case 20:return(this.Bb&jV)==0;case 21:return!!this.b;case 22:return!!YPe(this);case 23:return!!this.a&&this.a.i!=0}return uE(this,e-tC((Kz(),a9)),yO((t=F(yA(this,16),29),t||a9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:ST(this,rb(t));return;case 2:cM(this,Gp(nb(t)));return;case 3:lM(this,Gp(nb(t)));return;case 4:QO(this,F(t,15).a);return;case 5:$O(this,F(t,15).a);return;case 8:Hj(this,F(t,143));return;case 9:r=KF(this,F(t,87),null),r&&r.mj();return;case 10:TM(this,Gp(nb(t)));return;case 11:DM(this,Gp(nb(t)));return;case 12:EM(this,Gp(nb(t)));return;case 13:Ope(this,rb(t));return;case 15:wM(this,Gp(nb(t)));return;case 16:HM(this,Gp(nb(t)));return;case 18:dAe(this,Gp(nb(t)));return;case 20:UKe(this,Gp(nb(t)));return;case 21:YBe(this,F(t,19));return;case 23:!this.a&&(this.a=new cy(N7,this,23)),uz(this.a),!this.a&&(this.a=new cy(N7,this,23)),nC(this.a,F(t,18));return}YM(this,e-tC((Kz(),a9)),yO((n=F(yA(this,16),29),n||a9),e),t)},Q.fi=function(){return Kz(),a9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:N(this.Cb,88)&&MI(LE(F(this.Cb,88)),4),zk(this,null);return;case 2:cM(this,!0);return;case 3:lM(this,!0);return;case 4:QO(this,0);return;case 5:$O(this,1);return;case 8:Hj(this,null);return;case 9:n=KF(this,null,null),n&&n.mj();return;case 10:TM(this,!0);return;case 11:DM(this,!1);return;case 12:EM(this,!1);return;case 13:this.i=null,wk(this,null);return;case 15:wM(this,!1);return;case 16:HM(this,!1);return;case 18:HKe(this,!1),N(this.Cb,88)&&MI(LE(F(this.Cb,88)),2);return;case 20:UKe(this,!0);return;case 21:YBe(this,null);return;case 23:!this.a&&(this.a=new cy(N7,this,23)),uz(this.a);return}sM(this,e-tC((Kz(),a9)),yO((t=F(yA(this,16),29),t||a9),e))},Q.mi=function(){wUe(this),qC(GD((xI(),p9),this)),mF(this),this.Bb|=1},Q.sk=function(){return kP(this)},Q.Zk=function(){var e=kP(this);return!!e&&(e.Bb&xK)!=0},Q.$k=function(){return(this.Bb&xK)!=0},Q._k=function(){return(this.Bb&jV)!=0},Q.Wk=function(e,t){return this.c=null,UGe(this,e,t)},Q.Ib=function(){var e;return this.Db&64?ZL(this):(e=new gy(ZL(this)),e.a+=` (containment: `,Vm(e,(this.Bb&xK)!=0),e.a+=`, resolveProxies: `,Vm(e,(this.Bb&jV)!=0),e.a+=`)`,e.a)},R(SK,`EReferenceImpl`,103),J(550,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,550:1,117:1,118:1},Do),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return Ty(this)},Q.Ai=function(e){GCe(this,rb(e))},Q.ld=function(e){return uCe(this,rb(e))},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.b;case 1:return this.c}return OD(this,e-tC((Kz(),o9)),yO((r=F(yA(this,16),29),r||o9),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return uE(this,e-tC((Kz(),o9)),yO((t=F(yA(this,16),29),t||o9),e))},Q.$h=function(e,t){var n;switch(e){case 0:KCe(this,rb(t));return;case 1:jBe(this,rb(t));return}YM(this,e-tC((Kz(),o9)),yO((n=F(yA(this,16),29),n||o9),e),t)},Q.fi=function(){return Kz(),o9},Q.hi=function(e){var t;switch(e){case 0:FBe(this,null);return;case 1:jBe(this,null);return}sM(this,e-tC((Kz(),o9)),yO((t=F(yA(this,16),29),t||o9),e))},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:hj(e)),this.a},Q.zi=function(e){this.a=e},Q.Ib=function(){var e;return this.Db&64?cL(this):(e=new gy(cL(this)),e.a+=` (key: `,Y_(e,this.b),e.a+=`, value: `,Y_(e,this.c),e.a+=`)`,e.a)},Q.a=-1,Q.b=null,Q.c=null;var d9=R(SK,`EStringToStringMapEntryImpl`,550),YBt=Ox(hq,`FeatureMap/Entry/Internal`);J(562,1,Mq),Q.vl=function(e){return this.wl(F(e,52))},Q.wl=function(e){return this.vl(e)},Q.Fb=function(e){var t,n;return this===e?!0:N(e,75)?(t=F(e,75),t.Jk()==this.c&&(n=this.kd(),n==null?t.kd()==null:aM(n,t.kd()))):!1},Q.Jk=function(){return this.c},Q.Hb=function(){var e=this.kd();return Lk(this.c)^(e==null?0:Lk(e))},Q.Ib=function(){var e=this.c,t=LO(e.ok()).vi();return e.ve(),(t!=null&&t.length!=0?t+`:`+e.ve():e.ve())+`=`+this.kd()},R(SK,`EStructuralFeatureImpl/BasicFeatureMapEntry`,562),J(778,562,Mq,Wve),Q.wl=function(e){return new Wve(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return RVe(this,e,this.a,t,n)},Q.yl=function(e,t,n){return zVe(this,e,this.a,t,n)},R(SK,`EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry`,778),J(1305,1,{},Tpe),Q.wk=function(e,t,n,r,i){return F(wD(e,this.b),219).Wl(this.a).Dk(r)},Q.xk=function(e,t,n,r,i){return F(wD(e,this.b),219).Nl(this.a,r,i)},Q.yk=function(e,t,n,r,i){return F(wD(e,this.b),219).Ol(this.a,r,i)},Q.zk=function(e,t,n){return F(wD(e,this.b),219).Wl(this.a).Oj()},Q.Ak=function(e,t,n,r){F(wD(e,this.b),219).Wl(this.a).Wb(r)},Q.Bk=function(e,t,n){return F(wD(e,this.b),219).Wl(this.a)},Q.Ck=function(e,t,n){F(wD(e,this.b),219).Wl(this.a).Ek()},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator`,1305),J(89,1,{},Zb,uw,kw,xE),Q.wk=function(e,t,n,r,i){var a=t.ii(n);if(a??t.ji(n,a=Vz(this,e)),!i)switch(this.e){case 50:case 41:return F(a,587)._j();case 40:return F(a,219).Tl()}return a},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return o??t.ji(n,o=Vz(this,e)),a=F(o,72).Uk(r,i),a},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return a!=null&&(i=F(a,72).Vk(r,i)),i},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&F(r,78).Oj()},Q.Ak=function(e,t,n,r){var i=F(t.ii(n),78);!i&&t.ji(n,i=Vz(this,e)),i.Wb(r)},Q.Bk=function(e,t,n){var r,i=t.ii(n);return i??t.ji(n,i=Vz(this,e)),N(i,78)?F(i,78):(r=F(t.ii(n),16),new hse(r))},Q.Ck=function(e,t,n){var r=F(t.ii(n),78);!r&&t.ji(n,r=Vz(this,e)),r.Ek()},Q.b=0,Q.e=0,R(SK,`EStructuralFeatureImpl/InternalSettingDelegateMany`,89),J(499,1,{}),Q.xk=function(e,t,n,r,i){throw O(new Zd)},Q.yk=function(e,t,n,r,i){throw O(new Zd)},Q.Bk=function(e,t,n){return new PDe(this,e,t,n)};var f9;R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingle`,499),J(1322,1,gq,PDe),Q.Dk=function(e){return this.a.wk(this.c,this.d,this.b,e,!0)},Q.Oj=function(){return this.a.zk(this.c,this.d,this.b)},Q.Wb=function(e){this.a.Ak(this.c,this.d,this.b,e)},Q.Ek=function(){this.a.Ck(this.c,this.d,this.b)},Q.b=0,R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingle/1`,1322),J(771,499,{},lke),Q.wk=function(e,t,n,r,i){return cR(e,e.Mh(),e.Ch())==this.b?this._k()&&r?tL(e):e.Mh():null},Q.xk=function(e,t,n,r,i){var a,o;return e.Mh()&&(i=(a=e.Ch(),a>=0?e.xh(i):e.Mh().Qh(e,-1-a,null,i))),o=uN(e.Ah(),this.e),e.zh(r,o,i)},Q.yk=function(e,t,n,r,i){var a=uN(e.Ah(),this.e);return e.zh(null,a,i)},Q.zk=function(e,t,n){var r=uN(e.Ah(),this.e);return!!e.Mh()&&e.Ch()==r},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!TR(this.a,r))throw O(new Vp(Nq+(N(r,57)?t1e(F(r,57).Ah()):Tze(Cj(r)))+Pq+this.a+`'`));if(i=e.Mh(),o=uN(e.Ah(),this.e),M(r)!==M(i)||e.Ch()!=o&&r!=null){if(fF(e,F(r,57)))throw O(new Hp(TK+e.Ib()));c=null,i&&(c=(a=e.Ch(),a>=0?e.xh(c):e.Mh().Qh(e,-1-a,null,c))),s=F(r,52),s&&(c=s.Oh(e,uN(s.Ah(),this.b),null,c)),c=e.zh(s,o,c),c&&c.mj()}else e.sh()&&e.th()&&dA(e,new CS(e,1,o,r,r))},Q.Ck=function(e,t,n){var r=e.Mh(),i,a,o;r?(o=(i=e.Ch(),i>=0?e.xh(null):e.Mh().Qh(e,-1-i,null,null)),a=uN(e.Ah(),this.e),o=e.zh(null,a,o),o&&o.mj()):e.sh()&&e.th()&&dA(e,new wS(e,1,this.e,null,null))},Q._k=function(){return!1},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainer`,771),J(1306,771,{},ySe),Q._k=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving`,1306),J(560,499,{}),Q.wk=function(e,t,n,r,i){var a=t.ii(n);return a==null?this.b:M(a)===M(f9)?null:a},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&(M(r)===M(f9)||!aM(r,this.b))},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=(a=t.ii(n),a==null?this.b:M(a)===M(f9)?null:a),r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),dA(e,this.d.Al(e,1,this.e,i,r))):r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=(i=t.ii(n),i==null?this.b:M(i)===M(f9)?null:i),t.ki(n),dA(e,this.d.Al(e,1,this.e,r,this.b))):t.ki(n)},Q.zl=function(e){throw O(new Gd)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData`,560),J(Fq,1,{},sre),Q.Al=function(e,t,n,r,i){return new wS(e,t,n,r,i)},Q.Bl=function(e,t,n,r,i,a){return new vw(e,t,n,r,i,a)};var XBt,ZBt,QBt,$Bt,eVt,tVt,nVt,rVt,iVt;R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator`,Fq),J(1323,Fq,{},cre),Q.Al=function(e,t,n,r,i){return new $Pe(e,t,n,Gp(nb(r)),Gp(nb(i)))},Q.Bl=function(e,t,n,r,i,a){return new Fje(e,t,n,Gp(nb(r)),Gp(nb(i)),a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1`,1323),J(1324,Fq,{},Oo),Q.Al=function(e,t,n,r,i){return new Wze(e,t,n,F(r,221).a,F(i,221).a)},Q.Bl=function(e,t,n,r,i,a){return new Ije(e,t,n,F(r,221).a,F(i,221).a,a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2`,1324),J(1325,Fq,{},ko),Q.Al=function(e,t,n,r,i){return new Gze(e,t,n,F(r,180).a,F(i,180).a)},Q.Bl=function(e,t,n,r,i,a){return new Lje(e,t,n,F(r,180).a,F(i,180).a,a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3`,1325),J(1326,Fq,{},Ao),Q.Al=function(e,t,n,r,i){return new tFe(e,t,n,k(P(r)),k(P(i)))},Q.Bl=function(e,t,n,r,i,a){return new Rje(e,t,n,k(P(r)),k(P(i)),a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4`,1326),J(1327,Fq,{},jo),Q.Al=function(e,t,n,r,i){return new Jze(e,t,n,F(r,164).a,F(i,164).a)},Q.Bl=function(e,t,n,r,i,a){return new zje(e,t,n,F(r,164).a,F(i,164).a,a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5`,1327),J(1328,Fq,{},lre),Q.Al=function(e,t,n,r,i){return new eFe(e,t,n,F(r,15).a,F(i,15).a)},Q.Bl=function(e,t,n,r,i,a){return new Bje(e,t,n,F(r,15).a,F(i,15).a,a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6`,1328),J(1329,Fq,{},ure),Q.Al=function(e,t,n,r,i){return new Kze(e,t,n,F(r,190).a,F(i,190).a)},Q.Bl=function(e,t,n,r,i,a){return new Vje(e,t,n,F(r,190).a,F(i,190).a,a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7`,1329),J(1330,Fq,{},Mo),Q.Al=function(e,t,n,r,i){return new qze(e,t,n,F(r,191).a,F(i,191).a)},Q.Bl=function(e,t,n,r,i,a){return new Hje(e,t,n,F(r,191).a,F(i,191).a,a)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8`,1330),J(1308,560,{},RDe),Q.zl=function(e){if(!this.a.dk(e))throw O(new Vp(Nq+Cj(e)+Pq+this.a+`'`))},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic`,1308),J(1309,560,{},Awe),Q.zl=function(e){},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic`,1309),J(772,560,{}),Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=!0,a=t.ii(n),a==null?(i=!1,a=this.b):M(a)===M(f9)&&(a=null),r==null?this.c==null?t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),dA(e,this.d.Bl(e,1,this.e,a,r,!i))):r==null?this.c==null?t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=!0,i=t.ii(n),i==null?(r=!1,i=this.b):M(i)===M(f9)&&(i=null),t.ki(n),dA(e,this.d.Bl(e,2,this.e,i,this.b,r))):t.ki(n)},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable`,772),J(1310,772,{},zDe),Q.zl=function(e){if(!this.a.dk(e))throw O(new Vp(Nq+Cj(e)+Pq+this.a+`'`))},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic`,1310),J(1311,772,{},jwe),Q.zl=function(e){},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic`,1311),J(402,499,{},zx),Q.wk=function(e,t,n,r,i){var a,o,s,c,l=t.ii(n);if(this.rk()&&M(l)===M(f9))return null;if(this._k()&&r&&l!=null){if(s=F(l,52),s.Sh()&&(c=Qj(e,s),s!=c)){if(!TR(this.a,c))throw O(new Vp(Nq+Cj(c)+Pq+this.a+`'`));t.ji(n,l=c),this.$k()&&(a=F(c,52),o=s.Qh(e,this.b?uN(s.Ah(),this.b):-1-uN(e.Ah(),this.e),null,null),!a.Mh()&&(o=a.Oh(e,this.b?uN(a.Ah(),this.b):-1-uN(e.Ah(),this.e),null,o)),o&&o.mj()),e.sh()&&e.th()&&dA(e,new wS(e,9,this.e,s,c))}return l}return l},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return M(o)===M(f9)&&(o=null),t.ji(n,r),this.Kj()?M(o)!==M(r)&&o!=null&&(a=F(o,52),i=a.Qh(e,uN(a.Ah(),this.b),null,i)):this.$k()&&o!=null&&(i=F(o,52).Qh(e,-1-uN(e.Ah(),this.e),null,i)),e.sh()&&e.th()&&(!i&&(i=new Fm(4)),i.lj(new wS(e,1,this.e,o,r))),i},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return M(a)===M(f9)&&(a=null),t.ki(n),e.sh()&&e.th()&&(!i&&(i=new Fm(4)),this.rk()?i.lj(new wS(e,2,this.e,a,null)):i.lj(new wS(e,1,this.e,a,null))),i},Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!TR(this.a,r))throw O(new Vp(Nq+(N(r,57)?t1e(F(r,57).Ah()):Tze(Cj(r)))+Pq+this.a+`'`));c=t.ii(n),s=c!=null,this.rk()&&M(c)===M(f9)&&(c=null),o=null,this.Kj()?M(c)!==M(r)&&(c!=null&&(i=F(c,52),o=i.Qh(e,uN(i.Ah(),this.b),null,o)),r!=null&&(i=F(r,52),o=i.Oh(e,uN(i.Ah(),this.b),null,o))):this.$k()&&M(c)!==M(r)&&(c!=null&&(o=F(c,52).Qh(e,-1-uN(e.Ah(),this.e),null,o)),r!=null&&(o=F(r,52).Oh(e,-1-uN(e.Ah(),this.e),null,o))),r==null&&this.rk()?t.ji(n,f9):t.ji(n,r),e.sh()&&e.th()?(a=new vw(e,1,this.e,c,r,this.rk()&&!s),o?(o.lj(a),o.mj()):dA(e,a)):o&&o.mj()},Q.Ck=function(e,t,n){var r,i,a,o,s=t.ii(n);o=s!=null,this.rk()&&M(s)===M(f9)&&(s=null),a=null,s!=null&&(this.Kj()?(r=F(s,52),a=r.Qh(e,uN(r.Ah(),this.b),null,a)):this.$k()&&(a=F(s,52).Qh(e,-1-uN(e.Ah(),this.e),null,a))),t.ki(n),e.sh()&&e.th()?(i=new vw(e,this.rk()?2:1,this.e,s,null,o),a?(a.lj(i),a.mj()):dA(e,i)):a&&a.mj()},Q.Kj=function(){return!1},Q.$k=function(){return!1},Q._k=function(){return!1},Q.rk=function(){return!1},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObject`,402),J(561,402,{},$y),Q.$k=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment`,561),J(1314,561,{},U_e),Q._k=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving`,1314),J(774,561,{},W_e),Q.rk=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable`,774),J(1316,774,{},G_e),Q._k=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving`,1316),J(639,561,{},Qb),Q.Kj=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse`,639),J(1315,639,{},SSe),Q._k=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving`,1315),J(775,639,{},CSe),Q.rk=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable`,775),J(1317,775,{},wSe),Q._k=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving`,1317),J(640,402,{},V_e),Q._k=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving`,640),J(1318,640,{},K_e),Q.rk=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable`,1318),J(776,640,{},bSe),Q.Kj=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse`,776),J(1319,776,{},TSe),Q.rk=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable`,1319),J(1312,402,{},H_e),Q.rk=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable`,1312),J(773,402,{},xSe),Q.Kj=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse`,773),J(1313,773,{},ESe),Q.rk=function(){return!0},R(SK,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable`,1313),J(777,562,Mq,bEe),Q.wl=function(e){return new bEe(this.a,this.c,e)},Q.kd=function(){return this.b},Q.xl=function(e,t,n){return EIe(this,e,this.b,n)},Q.yl=function(e,t,n){return DIe(this,e,this.b,n)},R(SK,`EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry`,777),J(1320,1,gq,hse),Q.Dk=function(e){return this.a},Q.Oj=function(){return N(this.a,98)?F(this.a,98).Oj():!this.a.dc()},Q.Wb=function(e){this.a.$b(),this.a.Fc(F(e,16))},Q.Ek=function(){N(this.a,98)?F(this.a,98).Ek():this.a.$b()},R(SK,`EStructuralFeatureImpl/SettingMany`,1320),J(1321,562,Mq,ZNe),Q.vl=function(e){return new xb((hz(),A9),this.b.oi(this.a,e))},Q.kd=function(){return null},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},R(SK,`EStructuralFeatureImpl/SimpleContentFeatureMapEntry`,1321),J(641,562,Mq,xb),Q.vl=function(e){return new xb(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},R(SK,`EStructuralFeatureImpl/SimpleFeatureMapEntry`,641),J(396,492,eq,No),Q.$i=function(e){return H(F7,iB,29,e,0,1)},Q.Wi=function(){return!1},R(SK,`ESuperAdapter/1`,396),J(446,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,835:1,52:1,100:1,161:1,446:1,117:1,118:1},Po),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new Vx(this,z7,this)),this.a}return OD(this,e-tC((Kz(),s9)),yO((r=F(yA(this,16),29),r||s9),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new I(A7,this,0,3)),hP(this.Ab,e,n);case 2:return!this.a&&(this.a=new Vx(this,z7,this)),hP(this.a,e,n)}return i=F(yO((r=F(yA(this,16),29),r||(Kz(),s9)),t),69),i.uk().yk(this,RN(this),t-tC((Kz(),s9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return uE(this,e-tC((Kz(),s9)),yO((t=F(yA(this,16),29),t||s9),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab),!this.Ab&&(this.Ab=new I(A7,this,0,3)),nC(this.Ab,F(t,18));return;case 1:zk(this,rb(t));return;case 2:!this.a&&(this.a=new Vx(this,z7,this)),uz(this.a),!this.a&&(this.a=new Vx(this,z7,this)),nC(this.a,F(t,18));return}YM(this,e-tC((Kz(),s9)),yO((n=F(yA(this,16),29),n||s9),e),t)},Q.fi=function(){return Kz(),s9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new I(A7,this,0,3)),uz(this.Ab);return;case 1:zk(this,null);return;case 2:!this.a&&(this.a=new Vx(this,z7,this)),uz(this.a);return}sM(this,e-tC((Kz(),s9)),yO((t=F(yA(this,16),29),t||s9),e))},R(SK,`ETypeParameterImpl`,446),J(447,81,Eq,Vx),Q.Lj=function(e,t){return l0e(this,F(e,87),t)},Q.Mj=function(e,t){return u0e(this,F(e,87),t)},R(SK,`ETypeParameterImpl/1`,447),J(638,44,RV,Zf),Q.ec=function(){return new _d(this)},R(SK,`ETypeParameterImpl/2`,638),J(557,mB,hB,_d),Q.Ec=function(e){return Tye(this,F(e,87))},Q.Fc=function(e){var t,n,r=!1;for(n=e.Jc();n.Ob();)t=F(n.Pb(),87),LC(this.a,t,``)??(r=!0);return r},Q.$b=function(){BS(this.a)},Q.Gc=function(e){return jS(this.a,e)},Q.Jc=function(){return new vd(new cA(new Dl(this.a).a))},Q.Kc=function(e){return FFe(this,e)},Q.gc=function(){return lh(this.a)},R(SK,`ETypeParameterImpl/2/1`,557),J(558,1,uB,vd),Q.Nb=function(e){PS(this,e)},Q.Pb=function(){return F(Tk(this.a).jd(),87)},Q.Ob=function(){return this.a.b},Q.Qb=function(){nRe(this.a)},R(SK,`ETypeParameterImpl/2/1/1`,558),J(1282,44,RV,Qf),Q._b=function(e){return z_(e)?ww(this,e):!!Yx(this.f,e)},Q.xc=function(e){var t=z_(e)?Ww(this,e):V_(Yx(this.f,e)),n;return N(t,836)?(n=F(t,836),t=n.Ik(),LC(this,F(e,241),t),t):t??(e==null?(Kh(),fVt):null)},R(SK,`EValidatorRegistryImpl`,1282),J(1304,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,2005:1,52:1,100:1,161:1,117:1,118:1},Fo),Q.oi=function(e,t){switch(e.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:XM(t);case 25:return Sze(t);case 27:return fLe(t);case 28:return pLe(t);case 29:return t==null?null:Che(l7[0],F(t,205));case 41:return t==null?``:Um(F(t,298));case 42:return XM(t);case 50:return rb(t);default:throw O(new Hp(EK+e.ve()+DK))}},Q.pi=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;switch(e.G==-1&&(e.G=(f=LO(e),f?SP(f.si(),e):-1)),e.G){case 0:return n=new qf,n;case 1:return t=new bo,t;case 2:return r=new bc,r;case 4:return i=new ef,i;case 5:return a=new Jse,a;case 6:return o=new Dse,o;case 7:return s=new yc,s;case 10:return l=new vo,l;case 11:return u=new Jf,u;case 12:return d=new dOe,d;case 13:return p=new Xf,p;case 14:return m=new tve,m;case 17:return h=new Do,h;case 18:return c=new jd,c;case 19:return g=new Po,g;default:throw O(new Hp(AK+e.zb+DK))}},Q.qi=function(e,t){switch(e.fk()){case 20:return t==null?null:new Tle(t);case 21:return t==null?null:new Ov(t);case 23:case 22:return t==null?null:HJe(t);case 26:case 24:return t==null?null:eO(_R(t,-128,127)<<24>>24);case 25:return x5e(t);case 27:return zZe(t);case 28:return BZe(t);case 29:return B0e(t);case 32:case 31:return t==null?null:sI(t);case 38:case 37:return t==null?null:new uf(t);case 40:case 39:return t==null?null:K(_R(t,VB,$z));case 41:return null;case 42:return null;case 44:case 43:return t==null?null:VN(kz(t));case 49:case 48:return t==null?null:$j(_R(t,Lq,32767)<<16>>16);case 50:return t;default:throw O(new Hp(EK+e.ve()+DK))}},R(SK,`EcoreFactoryImpl`,1304),J(549,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,2003:1,52:1,100:1,161:1,184:1,549:1,117:1,118:1,680:1},JEe),Q.gb=!1,Q.hb=!1;var aVt,oVt=!1;R(SK,`EcorePackageImpl`,549),J(1200,1,{836:1},dre),Q.Ik=function(){return dge(),pVt},R(SK,`EcorePackageImpl/1`,1200),J(1209,1,Vq,Io),Q.dk=function(e){return N(e,158)},Q.ek=function(e){return H($5,iB,158,e,0,1)},R(SK,`EcorePackageImpl/10`,1209),J(1210,1,Vq,Lo),Q.dk=function(e){return N(e,197)},Q.ek=function(e){return H(t7,iB,197,e,0,1)},R(SK,`EcorePackageImpl/11`,1210),J(1211,1,Vq,Ro),Q.dk=function(e){return N(e,57)},Q.ek=function(e){return H(G5,iB,57,e,0,1)},R(SK,`EcorePackageImpl/12`,1211),J(1212,1,Vq,zo),Q.dk=function(e){return N(e,403)},Q.ek=function(e){return H(B7,dyt,62,e,0,1)},R(SK,`EcorePackageImpl/13`,1212),J(1213,1,Vq,Bo),Q.dk=function(e){return N(e,241)},Q.ek=function(e){return H(n7,iB,241,e,0,1)},R(SK,`EcorePackageImpl/14`,1213),J(1214,1,Vq,Vo),Q.dk=function(e){return N(e,504)},Q.ek=function(e){return H(H7,iB,2081,e,0,1)},R(SK,`EcorePackageImpl/15`,1214),J(1215,1,Vq,Ho),Q.dk=function(e){return N(e,103)},Q.ek=function(e){return H(U7,Tq,19,e,0,1)},R(SK,`EcorePackageImpl/16`,1215),J(1216,1,Vq,fre),Q.dk=function(e){return N(e,179)},Q.ek=function(e){return H(M7,Tq,179,e,0,1)},R(SK,`EcorePackageImpl/17`,1216),J(1217,1,Vq,pre),Q.dk=function(e){return N(e,470)},Q.ek=function(e){return H(j7,iB,470,e,0,1)},R(SK,`EcorePackageImpl/18`,1217),J(1218,1,Vq,Uo),Q.dk=function(e){return N(e,550)},Q.ek=function(e){return H(d9,Jvt,550,e,0,1)},R(SK,`EcorePackageImpl/19`,1218),J(1201,1,Vq,mre),Q.dk=function(e){return N(e,335)},Q.ek=function(e){return H(N7,Tq,38,e,0,1)},R(SK,`EcorePackageImpl/2`,1201),J(1219,1,Vq,Wo),Q.dk=function(e){return N(e,248)},Q.ek=function(e){return H(z7,pyt,87,e,0,1)},R(SK,`EcorePackageImpl/20`,1219),J(1220,1,Vq,Go),Q.dk=function(e){return N(e,446)},Q.ek=function(e){return H(W7,iB,835,e,0,1)},R(SK,`EcorePackageImpl/21`,1220),J(1221,1,Vq,Ko),Q.dk=function(e){return L_(e)},Q.ek=function(e){return H(LJ,vB,473,e,8,1)},R(SK,`EcorePackageImpl/22`,1221),J(1222,1,Vq,qo),Q.dk=function(e){return N(e,195)},Q.ek=function(e){return H(X9,vB,195,e,0,2)},R(SK,`EcorePackageImpl/23`,1222),J(1223,1,Vq,Jo),Q.dk=function(e){return N(e,221)},Q.ek=function(e){return H(RJ,vB,221,e,0,1)},R(SK,`EcorePackageImpl/24`,1223),J(1224,1,Vq,Yo),Q.dk=function(e){return N(e,180)},Q.ek=function(e){return H(zJ,vB,180,e,0,1)},R(SK,`EcorePackageImpl/25`,1224),J(1225,1,Vq,hre),Q.dk=function(e){return N(e,205)},Q.ek=function(e){return H(MJ,vB,205,e,0,1)},R(SK,`EcorePackageImpl/26`,1225),J(1226,1,Vq,Xo),Q.dk=function(e){return!1},Q.ek=function(e){return H(cHt,iB,2177,e,0,1)},R(SK,`EcorePackageImpl/27`,1226),J(1227,1,Vq,Zo),Q.dk=function(e){return R_(e)},Q.ek=function(e){return H(BJ,vB,346,e,7,1)},R(SK,`EcorePackageImpl/28`,1227),J(1228,1,Vq,Qo),Q.dk=function(e){return N(e,61)},Q.ek=function(e){return H(uBt,hH,61,e,0,1)},R(SK,`EcorePackageImpl/29`,1228),J(1202,1,Vq,gre),Q.dk=function(e){return N(e,505)},Q.ek=function(e){return H(A7,{3:1,4:1,5:1,1998:1},588,e,0,1)},R(SK,`EcorePackageImpl/3`,1202),J(1229,1,Vq,$o),Q.dk=function(e){return N(e,568)},Q.ek=function(e){return H(gBt,iB,2004,e,0,1)},R(SK,`EcorePackageImpl/30`,1229),J(1230,1,Vq,es),Q.dk=function(e){return N(e,163)},Q.ek=function(e){return H(dVt,hH,163,e,0,1)},R(SK,`EcorePackageImpl/31`,1230),J(1231,1,Vq,ts),Q.dk=function(e){return N(e,75)},Q.ek=function(e){return H(c9,wyt,75,e,0,1)},R(SK,`EcorePackageImpl/32`,1231),J(1232,1,Vq,_re),Q.dk=function(e){return N(e,164)},Q.ek=function(e){return H(VJ,vB,164,e,0,1)},R(SK,`EcorePackageImpl/33`,1232),J(1233,1,Vq,vre),Q.dk=function(e){return N(e,15)},Q.ek=function(e){return H(HJ,vB,15,e,0,1)},R(SK,`EcorePackageImpl/34`,1233),J(1234,1,Vq,ns),Q.dk=function(e){return N(e,298)},Q.ek=function(e){return H(Sbt,iB,298,e,0,1)},R(SK,`EcorePackageImpl/35`,1234),J(1235,1,Vq,yre),Q.dk=function(e){return N(e,190)},Q.ek=function(e){return H(UJ,vB,190,e,0,1)},R(SK,`EcorePackageImpl/36`,1235),J(1236,1,Vq,rs),Q.dk=function(e){return N(e,92)},Q.ek=function(e){return H(wbt,iB,92,e,0,1)},R(SK,`EcorePackageImpl/37`,1236),J(1237,1,Vq,is),Q.dk=function(e){return N(e,589)},Q.ek=function(e){return H(sVt,iB,589,e,0,1)},R(SK,`EcorePackageImpl/38`,1237),J(1238,1,Vq,as),Q.dk=function(e){return!1},Q.ek=function(e){return H(lHt,iB,2178,e,0,1)},R(SK,`EcorePackageImpl/39`,1238),J(1203,1,Vq,os),Q.dk=function(e){return N(e,88)},Q.ek=function(e){return H(F7,iB,29,e,0,1)},R(SK,`EcorePackageImpl/4`,1203),J(1239,1,Vq,bre),Q.dk=function(e){return N(e,191)},Q.ek=function(e){return H(GJ,vB,191,e,0,1)},R(SK,`EcorePackageImpl/40`,1239),J(1240,1,Vq,ss),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R(SK,`EcorePackageImpl/41`,1240),J(1241,1,Vq,cs),Q.dk=function(e){return N(e,586)},Q.ek=function(e){return H(fBt,iB,586,e,0,1)},R(SK,`EcorePackageImpl/42`,1241),J(1242,1,Vq,xre),Q.dk=function(e){return!1},Q.ek=function(e){return H(uHt,vB,2179,e,0,1)},R(SK,`EcorePackageImpl/43`,1242),J(1243,1,Vq,ls),Q.dk=function(e){return N(e,45)},Q.ek=function(e){return H(bJ,DB,45,e,0,1)},R(SK,`EcorePackageImpl/44`,1243),J(1204,1,Vq,us),Q.dk=function(e){return N(e,143)},Q.ek=function(e){return H(P7,iB,143,e,0,1)},R(SK,`EcorePackageImpl/5`,1204),J(1205,1,Vq,ds),Q.dk=function(e){return N(e,159)},Q.ek=function(e){return H(I7,iB,159,e,0,1)},R(SK,`EcorePackageImpl/6`,1205),J(1206,1,Vq,fs),Q.dk=function(e){return N(e,459)},Q.ek=function(e){return H(L7,iB,675,e,0,1)},R(SK,`EcorePackageImpl/7`,1206),J(1207,1,Vq,ps),Q.dk=function(e){return N(e,568)},Q.ek=function(e){return H(R7,iB,684,e,0,1)},R(SK,`EcorePackageImpl/8`,1207),J(1208,1,Vq,ms),Q.dk=function(e){return N(e,469)},Q.ek=function(e){return H(e7,iB,469,e,0,1)},R(SK,`EcorePackageImpl/9`,1208),J(1020,2045,Kvt,lce),Q.Ki=function(e,t){qGe(this,F(t,415))},Q.Oi=function(e,t){K4e(this,e,F(t,415))},R(SK,`MinimalEObjectImpl/1ArrayDelegatingAdapterList`,1020),J(1021,151,dq,xEe),Q.hj=function(){return this.a.a},R(SK,`MinimalEObjectImpl/1ArrayDelegatingAdapterList/1`,1021),J(1048,1047,{},Qme),R(`org.eclipse.emf.ecore.plugin`,`EcorePlugin`,1048);var sVt=Ox(Tyt,`Resource`);J(787,1486,Eyt),Q.Fl=function(e){},Q.Gl=function(e){},Q.Cl=function(){return!this.a&&(this.a=new Cd(this)),this.a},Q.Dl=function(e){var t,n,r=e.length,i,a;if(r>0){if(kT(0,e.length),e.charCodeAt(0)==47){for(a=new pD(4),i=1,t=1;t0&&(e=(uD(0,n,e.length),e.substr(0,n))))}return n6e(this,e)},Q.El=function(){return this.c},Q.Ib=function(){var e;return Um(this.Pm)+`@`+(e=Lk(this)>>>0,e.toString(16))+` uri='`+this.d+`'`},Q.b=!1,R(Dyt,`ResourceImpl`,787),J(1487,787,Eyt,Sd),R(Dyt,`BinaryResourceImpl`,1487),J(1160,697,tq),Q._i=function(e){return N(e,57)?NOe(this,F(e,57)):N(e,589)?new uy(F(e,589).Cl()):M(e)===M(this.f)?F(e,18).Jc():(db(),T7.a)},Q.Ob=function(){return L6e(this)},Q.a=!1,R(hq,`EcoreUtil/ContentTreeIterator`,1160),J(1488,1160,tq,mTe),Q._i=function(e){return M(e)===M(this.f)?F(e,16).Jc():new AMe(F(e,57))},R(Dyt,`ResourceImpl/5`,1488),J(648,2057,fyt,Cd),Q.Gc=function(e){return this.i<=4?xF(this,e):N(e,52)&&F(e,52).Gh()==this.a},Q.Ki=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},Q.Mi=function(e,t){e==0?this.a.b||(this.a.b=!0):cD(this,e,t)},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Jj=function(){return 2},Q.hj=function(){return this.a},Q.Kj=function(){return!0},Q.Lj=function(e,t){return t=F(e,52).ci(this.a,t),t},Q.Mj=function(e,t){return F(e,52).ci(null,t)},Q.Nj=function(){return!1},Q.Qi=function(){return!0},Q.$i=function(e){return H(G5,iB,57,e,0,1)},Q.Wi=function(){return!1},R(Dyt,`ResourceImpl/ContentsEList`,648),J(954,2027,IB,gse),Q.dd=function(e){return this.a.Ii(e)},Q.gc=function(){return this.a.gc()},R(hq,`AbstractSequentialInternalEList/1`,954);var cVt,lVt,p9,uVt;J(626,1,{},iCe);var m9,h9;R(hq,`BasicExtendedMetaData`,626),J(1151,1,{},Epe),Q.Hl=function(){return null},Q.Il=function(){return this.a==-2&&fl(this,O0e(this.d,this.b)),this.a},Q.Jl=function(){return null},Q.Kl=function(){return fw(),fw(),nY},Q.ve=function(){return this.c==Xq&&tae(this,aYe(this.d,this.b)),this.c},Q.Ll=function(){return 0},Q.a=-2,Q.c=Xq,R(hq,`BasicExtendedMetaData/EClassExtendedMetaDataImpl`,1151),J(1152,1,{},Wje),Q.Hl=function(){return this.a==(QE(),m9)&&eae(this,$tt(this.f,this.b)),this.a},Q.Il=function(){return 0},Q.Jl=function(){return this.c==(QE(),m9)&&nae(this,ent(this.f,this.b)),this.c},Q.Kl=function(){return!this.d&&rae(this,eat(this.f,this.b)),this.d},Q.ve=function(){return this.e==Xq&&aae(this,aYe(this.f,this.b)),this.e},Q.Ll=function(){return this.g==-2&&sae(this,N1e(this.f,this.b)),this.g},Q.e=Xq,Q.g=-2,R(hq,`BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl`,1152),J(1150,1,{},Dpe),Q.b=!1,Q.c=!1,R(hq,`BasicExtendedMetaData/EPackageExtendedMetaDataImpl`,1150),J(1153,1,{},Gje),Q.c=-2,Q.e=Xq,Q.f=Xq,R(hq,`BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl`,1153),J(582,624,Eq,ux),Q.Jj=function(){return this.c},Q.ml=function(){return!1},Q.Ui=function(e,t){return t},Q.c=0,R(hq,`EDataTypeEList`,582);var dVt=Ox(hq,`FeatureMap`);J(76,582,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},sA),Q._c=function(e,t){i9e(this,e,F(t,75))},Q.Ec=function(e){return s7e(this,F(e,75))},Q.Fi=function(e){XTe(this,F(e,75))},Q.Lj=function(e,t){return Kye(this,F(e,75),t)},Q.Mj=function(e,t){return qye(this,F(e,75),t)},Q.Ri=function(e,t){return Crt(this,e,t)},Q.Ui=function(e,t){return Hst(this,e,F(t,75))},Q.fd=function(e,t){return set(this,e,F(t,75))},Q.Sj=function(e,t){return Jye(this,F(e,75),t)},Q.Tj=function(e,t){return Yye(this,F(e,75),t)},Q.Uj=function(e,t,n){return s1e(this,F(e,75),F(t,75),n)},Q.Xi=function(e,t){return zF(this,e,F(t,75))},Q.Ml=function(e,t){return nrt(this,e,t)},Q.ad=function(e,t){var n,r,i,a,o,s,c,l=new TO(t.gc()),u;for(i=t.Jc();i.Ob();)if(r=F(i.Pb(),75),a=r.Jk(),BL(this.e,a))(!a.Qi()||!hE(this,a,r.kd())&&!xF(l,r))&&hD(l,r);else{for(u=LL(this.e.Ah(),a),n=F(this.g,122),o=!0,s=0;s=0;)if(t=e[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},R(hq,`BasicFeatureMap/FeatureEIterator`,412),J(666,412,gB,ov),Q.sl=function(){return!0},R(hq,`BasicFeatureMap/ResolvingFeatureEIterator`,666),J(952,482,Aq,Fhe),Q.nj=function(){return this},R(hq,`EContentsEList/1`,952),J(953,482,Aq,$pe),Q.sl=function(){return!1},R(hq,`EContentsEList/2`,953),J(951,287,jq,Ihe),Q.ul=function(e){},Q.Ob=function(){return!1},Q.Sb=function(){return!1},R(hq,`EContentsEList/FeatureIteratorImpl/1`,951),J(825,582,Eq,ege),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;uz(this),_v(this.e)?(e=this.a,this.a=!1,dA(this.e,new RE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(hq,`EDataTypeEList/Unsettable`,825),J(1923,582,Eq,tge),Q.Qi=function(){return!0},R(hq,`EDataTypeUniqueEList`,1923),J(1924,825,Eq,nge),Q.Qi=function(){return!0},R(hq,`EDataTypeUniqueEList/Unsettable`,1924),J(145,81,Eq,sy),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectContainmentEList/Resolving`,145),J(1154,544,Eq,rge),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectContainmentEList/Unsettable/Resolving`,1154),J(753,14,Eq,sye),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;uz(this),_v(this.e)?(e=this.a,this.a=!1,dA(this.e,new RE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(hq,`EObjectContainmentWithInverseEList/Unsettable`,753),J(1188,753,Eq,cye),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectContainmentWithInverseEList/Unsettable/Resolving`,1188),J(745,491,Eq,ige),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;uz(this),_v(this.e)?(e=this.a,this.a=!1,dA(this.e,new RE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(hq,`EObjectEList/Unsettable`,745),J(339,491,Eq,cy),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectResolvingEList`,339),J(1828,745,Eq,age),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectResolvingEList/Unsettable`,1828),J(1489,1,{},hs);var fVt;R(hq,`EObjectValidator`,1489),J(548,491,Eq,TS),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.Kj=function(){return!0},Q.kl=function(){return!0},Q.b=0,R(hq,`EObjectWithInverseEList`,548),J(1191,548,Eq,lye),Q.jl=function(){return!0},R(hq,`EObjectWithInverseEList/ManyInverse`,1191),J(627,548,Eq,uye),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;uz(this),_v(this.e)?(e=this.a,this.a=!1,dA(this.e,new RE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(hq,`EObjectWithInverseEList/Unsettable`,627),J(1190,627,Eq,dye),Q.jl=function(){return!0},R(hq,`EObjectWithInverseEList/Unsettable/ManyInverse`,1190),J(754,548,Eq,fye),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectWithInverseResolvingEList`,754),J(33,754,Eq,Db),Q.jl=function(){return!0},R(hq,`EObjectWithInverseResolvingEList/ManyInverse`,33),J(755,627,Eq,pye),Q.ll=function(){return!0},Q.Ui=function(e,t){return QI(this,e,F(t,57))},R(hq,`EObjectWithInverseResolvingEList/Unsettable`,755),J(1189,755,Eq,mye),Q.jl=function(){return!0},R(hq,`EObjectWithInverseResolvingEList/Unsettable/ManyInverse`,1189),J(1155,624,Eq),Q.Ji=function(){return!(this.b&1792)},Q.Li=function(){this.b|=1},Q.il=function(){return!!(this.b&4)},Q.Kj=function(){return!!(this.b&40)},Q.jl=function(){return!!(this.b&16)},Q.kl=function(){return!!(this.b&8)},Q.ll=function(){return(this.b&CK)!=0},Q.$k=function(){return!!(this.b&32)},Q.ml=function(){return(this.b&mq)!=0},Q.dk=function(e){return this.d?SNe(this.d,e):this.Jk().Fk().dk(e)},Q.Oj=function(){return this.b&2?!!(this.b&1):this.i!=0},Q.Qi=function(){return!!(this.b&128)},Q.Ek=function(){var e;uz(this),this.b&2&&(_v(this.e)?(e=!!(this.b&1),this.b&=-2,cf(this,new RE(this.e,2,uN(this.e.Ah(),this.Jk()),e,!1))):this.b&=-2)},Q.Wi=function(){return!(this.b&1536)},Q.b=0,R(hq,`EcoreEList/Generic`,1155),J(1156,1155,Eq,pOe),Q.Jk=function(){return this.a},R(hq,`EcoreEList/Dynamic`,1156),J(752,67,eq,wd),Q.$i=function(e){return tk(this.a.a,e)},R(hq,`EcoreEMap/1`,752),J(751,81,Eq,gTe),Q.Ki=function(e,t){AP(this.b,F(t,136))},Q.Mi=function(e,t){lHe(this.b)},Q.Ni=function(e,t,n){var r;++(r=this.b,F(t,136),r).e},Q.Oi=function(e,t){CM(this.b,F(t,136))},Q.Pi=function(e,t,n){CM(this.b,F(n,136)),M(n)===M(t)&&F(n,136).zi(Ume(F(t,136).jd())),AP(this.b,F(t,136))},R(hq,`EcoreEMap/DelegateEObjectContainmentEList`,751),J(1186,142,cyt,iBe),R(hq,`EcoreEMap/Unsettable`,1186),J(1187,751,Eq,hye),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;uz(this),_v(this.e)?(e=this.a,this.a=!1,dA(this.e,new RE(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,R(hq,`EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList`,1187),J(1159,223,RV,QTe),Q.a=!1,Q.b=!1,R(hq,`EcoreUtil/Copier`,1159),J(747,1,uB,AMe),Q.Nb=function(e){PS(this,e)},Q.Ob=function(){return uJe(this)},Q.Pb=function(){var e;return uJe(this),e=this.b,this.b=null,e},Q.Qb=function(){this.a.Qb()},R(hq,`EcoreUtil/ProperContentIterator`,747),J(1490,1489,{},bie);var pVt;R(hq,`EcoreValidator`,1490);var mVt;Ox(hq,`FeatureMapUtil/Validator`),J(1260,1,{2006:1},gs),Q.$l=function(e){return!0},R(hq,`FeatureMapUtil/1`,1260),J(760,1,{2006:1},Tlt),Q.$l=function(e){var t;return this.c==e||(t=nb(pC(this.a,e)),t==null?lnt(this,e)?(hFe(this.a,e,(by(),IJ)),!0):(hFe(this.a,e,(by(),FJ)),!1):t==(by(),IJ))},Q.e=!1;var hVt;R(hq,`FeatureMapUtil/BasicValidator`,760),J(761,44,RV,Bhe),R(hq,`FeatureMapUtil/BasicValidator/Cache`,761),J(495,56,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},W_),Q._c=function(e,t){vet(this.c,this.b,e,t)},Q.Ec=function(e){return nrt(this.c,this.b,e)},Q.ad=function(e,t){return pot(this.c,this.b,e,t)},Q.Fc=function(e){return qv(this,e)},Q.Ei=function(e,t){oze(this.c,this.b,e,t)},Q.Uk=function(e,t){return ant(this.c,this.b,e,t)},Q.Yi=function(e){return YR(this.c,this.b,e,!1)},Q.Gi=function(){return kme(this.c,this.b)},Q.Hi=function(){return Ame(this.c,this.b)},Q.Ii=function(e){return OIe(this.c,this.b,e)},Q.Vk=function(e,t){return Pve(this,e,t)},Q.$b=function(){lf(this)},Q.Gc=function(e){return hE(this.c,this.b,e)},Q.Hc=function(e){return IVe(this.c,this.b,e)},Q.Xb=function(e){return YR(this.c,this.b,e,!0)},Q.Dk=function(e){return this},Q.bd=function(e){return FNe(this.c,this.b,e)},Q.dc=function(){return I_(this)},Q.Oj=function(){return!hN(this.c,this.b)},Q.Jc=function(){return mRe(this.c,this.b)},Q.cd=function(){return hRe(this.c,this.b)},Q.dd=function(e){return DKe(this.c,this.b,e)},Q.Ri=function(e,t){return Dit(this.c,this.b,e,t)},Q.Si=function(e,t){NIe(this.c,this.b,e,t)},Q.ed=function(e){return l4e(this.c,this.b,e)},Q.Kc=function(e){return Jnt(this.c,this.b,e)},Q.fd=function(e,t){return aat(this.c,this.b,e,t)},Q.Wb=function(e){ZI(this.c,this.b),qv(this,F(e,16))},Q.gc=function(){return OKe(this.c,this.b)},Q.Nc=function(){return qje(this.c,this.b)},Q.Oc=function(e){return INe(this.c,this.b,e)},Q.Ib=function(){var e,t=new lm;for(t.a+=`[`,e=kme(this.c,this.b);xj(e);)Y_(t,hy(vP(e))),xj(e)&&(t.a+=rB);return t.a+=`]`,t.a},Q.Ek=function(){ZI(this.c,this.b)},R(hq,`FeatureMapUtil/FeatureEList`,495),J(635,39,dq,$Ne),Q.fj=function(e){return dM(this,e)},Q.kj=function(e){var t,n,r,i,a,o,s;switch(this.d){case 1:case 2:if(a=e.hj(),M(a)===M(this.c)&&dM(this,null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0;break;case 3:if(i=e.ej(),i===3&&(a=e.hj(),M(a)===M(this.c)&&dM(this,null)==e.fj(null)))return this.d=5,t=new TO(2),hD(t,this.g),hD(t,e.gj()),this.g=t,!0;break;case 5:if(i=e.ej(),i===3&&(a=e.hj(),M(a)===M(this.c)&&dM(this,null)==e.fj(null)))return n=F(this.g,18),n.Ec(e.gj()),!0;break;case 4:switch(i=e.ej(),i){case 3:if(a=e.hj(),M(a)===M(this.c)&&dM(this,null)==e.fj(null))return this.d=1,this.g=e.gj(),!0;break;case 4:if(a=e.hj(),M(a)===M(this.c)&&dM(this,null)==e.fj(null))return this.d=6,s=new TO(2),hD(s,this.n),hD(s,e.ij()),this.n=s,o=W(A(q9,1),cV,30,15,[this.o,e.jj()]),this.g=o,!0}break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),M(a)===M(this.c)&&dM(this,null)==e.fj(null)))return n=F(this.n,18),n.Ec(e.ij()),o=F(this.g,54),r=H(q9,cV,30,o.length+1,15,1),OR(o,0,r,0,o.length),r[o.length]=e.jj(),this.g=r,!0}return!1},R(hq,`FeatureMapUtil/FeatureENotificationImpl`,635),J(554,495,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},Cx),Q.Ml=function(e,t){return nrt(this.c,e,t)},Q.Nl=function(e,t,n){return ant(this.c,e,t,n)},Q.Ol=function(e,t,n){return Kat(this.c,e,t,n)},Q.Pl=function(){return this},Q.Ql=function(e,t){return JR(this.c,e,t)},Q.Rl=function(e){return F(YR(this.c,this.b,e,!1),75).Jk()},Q.Sl=function(e){return F(YR(this.c,this.b,e,!1),75).kd()},Q.Tl=function(){return this.a},Q.Ul=function(e){return!hN(this.c,e)},Q.Vl=function(e,t){ez(this.c,e,t)},Q.Wl=function(e){return LBe(this.c,e)},Q.Xl=function(e){pZe(this.c,e)},R(hq,`FeatureMapUtil/FeatureFeatureMap`,554),J(1259,1,gq,Ipe),Q.Dk=function(e){return YR(this.b,this.a,-1,e)},Q.Oj=function(){return!hN(this.b,this.a)},Q.Wb=function(e){ez(this.b,this.a,e)},Q.Ek=function(){ZI(this.b,this.a)},R(hq,`FeatureMapUtil/FeatureValue`,1259);var g9,gVt,_Vt,_9,vVt,v9=Ox(Qq,`AnyType`);J(670,63,HB,nm),R(Qq,`InvalidDatatypeValueException`,670);var y9=Ox(Qq,Pyt),b9=Ox(Qq,Fyt),yVt=Ox(Qq,Iyt),bVt,x9,xVt,S9,SVt,CVt,wVt,TVt,EVt,DVt,OVt,kVt,AVt,jVt,MVt,C9,NVt,w9,T9,PVt,E9,D9,O9,FVt,k9,A9;J(829,502,{109:1,94:1,93:1,57:1,52:1,100:1,842:1},$f),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new sA(this,0)),this.c):(!this.c&&(this.c=new sA(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new sA(this,0)),F(TT(this.c,(hz(),S9)),163)):(!this.c&&(this.c=new sA(this,0)),F(F(TT(this.c,(hz(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new sA(this,2)),this.b):(!this.b&&(this.b=new sA(this,2)),this.b.b)}return OD(this,e-tC(this.fi()),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():this.fi(),e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.c&&(this.c=new sA(this,0)),dR(this.c,e,n);case 1:return(!this.c&&(this.c=new sA(this,0)),F(F(TT(this.c,(hz(),S9)),163),72)).Vk(e,n);case 2:return!this.b&&(this.b=new sA(this,2)),dR(this.b,e,n)}return r=F(yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():this.fi(),t),69),r.uk().yk(this,rRe(this),t-tC(this.fi()),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new sA(this,0)),F(TT(this.c,(hz(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0}return uE(this,e-tC(this.fi()),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():this.fi(),e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new sA(this,0)),WS(this.c,t);return;case 1:(!this.c&&(this.c=new sA(this,0)),F(F(TT(this.c,(hz(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new sA(this,2)),WS(this.b,t);return}YM(this,e-tC(this.fi()),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():this.fi(),e),t)},Q.fi=function(){return hz(),xVt},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new sA(this,0)),uz(this.c);return;case 1:(!this.c&&(this.c=new sA(this,0)),F(TT(this.c,(hz(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new sA(this,2)),uz(this.b);return}sM(this,e-tC(this.fi()),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():this.fi(),e))},Q.Ib=function(){var e;return this.j&4?cL(this):(e=new gy(cL(this)),e.a+=` (mixed: `,J_(e,this.c),e.a+=`, anyAttribute: `,J_(e,this.b),e.a+=`)`,e.a)},R($q,`AnyTypeImpl`,829),J(671,502,{109:1,94:1,93:1,57:1,52:1,100:1,2084:1,671:1},vs),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return OD(this,e-tC((hz(),C9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():C9,e),t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return uE(this,e-tC((hz(),C9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():C9,e))},Q.$h=function(e,t){switch(e){case 0:hl(this,rb(t));return;case 1:dae(this,rb(t));return}YM(this,e-tC((hz(),C9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():C9,e),t)},Q.fi=function(){return hz(),C9},Q.hi=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}sM(this,e-tC((hz(),C9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():C9,e))},Q.Ib=function(){var e;return this.j&4?cL(this):(e=new gy(cL(this)),e.a+=` (data: `,Y_(e,this.a),e.a+=`, target: `,Y_(e,this.b),e.a+=`)`,e.a)},Q.a=null,Q.b=null,R($q,`ProcessingInstructionImpl`,671),J(672,829,{109:1,94:1,93:1,57:1,52:1,100:1,842:1,2085:1,672:1},ep),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new sA(this,0)),this.c):(!this.c&&(this.c=new sA(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new sA(this,0)),F(TT(this.c,(hz(),S9)),163)):(!this.c&&(this.c=new sA(this,0)),F(F(TT(this.c,(hz(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new sA(this,2)),this.b):(!this.b&&(this.b=new sA(this,2)),this.b.b);case 3:return!this.c&&(this.c=new sA(this,0)),rb(JR(this.c,(hz(),T9),!0));case 4:return vye(this.a,(!this.c&&(this.c=new sA(this,0)),rb(JR(this.c,(hz(),T9),!0))));case 5:return this.a}return OD(this,e-tC((hz(),w9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():w9,e),t,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new sA(this,0)),F(TT(this.c,(hz(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new sA(this,0)),rb(JR(this.c,(hz(),T9),!0))!=null;case 4:return vye(this.a,(!this.c&&(this.c=new sA(this,0)),rb(JR(this.c,(hz(),T9),!0))))!=null;case 5:return!!this.a}return uE(this,e-tC((hz(),w9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():w9,e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new sA(this,0)),WS(this.c,t);return;case 1:(!this.c&&(this.c=new sA(this,0)),F(F(TT(this.c,(hz(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new sA(this,2)),WS(this.b,t);return;case 3:Kje(this,rb(t));return;case 4:Kje(this,_ye(this.a,t));return;case 5:uae(this,F(t,159));return}YM(this,e-tC((hz(),w9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():w9,e),t)},Q.fi=function(){return hz(),w9},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new sA(this,0)),uz(this.c);return;case 1:(!this.c&&(this.c=new sA(this,0)),F(TT(this.c,(hz(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new sA(this,2)),uz(this.b);return;case 3:!this.c&&(this.c=new sA(this,0)),ez(this.c,(hz(),T9),null);return;case 4:Kje(this,_ye(this.a,null));return;case 5:this.a=null;return}sM(this,e-tC((hz(),w9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():w9,e))},R($q,`SimpleAnyTypeImpl`,672),J(673,502,{109:1,94:1,93:1,57:1,52:1,100:1,2086:1,673:1},tp),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new sA(this,0)),this.a):(!this.a&&(this.a=new sA(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new yD((Kz(),o9),d9,this,1)),this.b):(!this.b&&(this.b=new yD((Kz(),o9),d9,this,1)),oD(this.b));case 2:return n?(!this.c&&(this.c=new yD((Kz(),o9),d9,this,2)),this.c):(!this.c&&(this.c=new yD((Kz(),o9),d9,this,2)),oD(this.c));case 3:return!this.a&&(this.a=new sA(this,0)),TT(this.a,(hz(),D9));case 4:return!this.a&&(this.a=new sA(this,0)),TT(this.a,(hz(),O9));case 5:return!this.a&&(this.a=new sA(this,0)),TT(this.a,(hz(),k9));case 6:return!this.a&&(this.a=new sA(this,0)),TT(this.a,(hz(),A9))}return OD(this,e-tC((hz(),E9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():E9,e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.a&&(this.a=new sA(this,0)),dR(this.a,e,n);case 1:return!this.b&&(this.b=new yD((Kz(),o9),d9,this,1)),jb(this.b,e,n);case 2:return!this.c&&(this.c=new yD((Kz(),o9),d9,this,2)),jb(this.c,e,n);case 5:return!this.a&&(this.a=new sA(this,0)),Pve(TT(this.a,(hz(),k9)),e,n)}return r=F(yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():(hz(),E9),t),69),r.uk().yk(this,rRe(this),t-tC((hz(),E9)),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new sA(this,0)),!I_(TT(this.a,(hz(),D9)));case 4:return!this.a&&(this.a=new sA(this,0)),!I_(TT(this.a,(hz(),O9)));case 5:return!this.a&&(this.a=new sA(this,0)),!I_(TT(this.a,(hz(),k9)));case 6:return!this.a&&(this.a=new sA(this,0)),!I_(TT(this.a,(hz(),A9)))}return uE(this,e-tC((hz(),E9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():E9,e))},Q.$h=function(e,t){switch(e){case 0:!this.a&&(this.a=new sA(this,0)),WS(this.a,t);return;case 1:!this.b&&(this.b=new yD((Kz(),o9),d9,this,1)),aA(this.b,t);return;case 2:!this.c&&(this.c=new yD((Kz(),o9),d9,this,2)),aA(this.c,t);return;case 3:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),D9))),!this.a&&(this.a=new sA(this,0)),qv(TT(this.a,D9),F(t,18));return;case 4:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),O9))),!this.a&&(this.a=new sA(this,0)),qv(TT(this.a,O9),F(t,18));return;case 5:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),k9))),!this.a&&(this.a=new sA(this,0)),qv(TT(this.a,k9),F(t,18));return;case 6:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),A9))),!this.a&&(this.a=new sA(this,0)),qv(TT(this.a,A9),F(t,18));return}YM(this,e-tC((hz(),E9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():E9,e),t)},Q.fi=function(){return hz(),E9},Q.hi=function(e){switch(e){case 0:!this.a&&(this.a=new sA(this,0)),uz(this.a);return;case 1:!this.b&&(this.b=new yD((Kz(),o9),d9,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new yD((Kz(),o9),d9,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),D9)));return;case 4:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),O9)));return;case 5:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),k9)));return;case 6:!this.a&&(this.a=new sA(this,0)),lf(TT(this.a,(hz(),A9)));return}sM(this,e-tC((hz(),E9)),yO(this.j&2?(!this.k&&(this.k=new xc),this.k).Lk():E9,e))},Q.Ib=function(){var e;return this.j&4?cL(this):(e=new gy(cL(this)),e.a+=` (mixed: `,J_(e,this.a),e.a+=`)`,e.a)},R($q,`XMLTypeDocumentRootImpl`,673),J(1993,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1,2087:1},_s),Q.oi=function(e,t){switch(e.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:XM(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return rb(t);case 6:return $_e(F(t,195));case 12:case 47:case 49:case 11:return vct(this,e,t);case 13:return t==null?null:bot(F(t,247));case 15:case 14:return t==null?null:FTe(k(P(t)));case 17:return c1e((hz(),t));case 18:return c1e(t);case 21:case 20:return t==null?null:ITe(F(t,164).a);case 27:return eve(F(t,195));case 30:return mZe((hz(),F(t,16)));case 31:return mZe(F(t,16));case 40:return Q_e((hz(),t));case 42:return l1e((hz(),t));case 43:return l1e(t);case 59:case 48:return Z_e((hz(),t));default:throw O(new Hp(EK+e.ve()+DK))}},Q.pi=function(e){var t,n,r,i,a;switch(e.G==-1&&(e.G=(n=LO(e),n?SP(n.si(),e):-1)),e.G){case 0:return t=new $f,t;case 1:return r=new vs,r;case 2:return i=new ep,i;case 3:return a=new tp,a;default:throw O(new Hp(AK+e.zb+DK))}},Q.qi=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;switch(e.fk()){case 5:case 52:case 4:return t;case 6:return IYe(t);case 8:case 7:return t==null?null:S1e(t);case 9:return t==null?null:eO(_R((r=QR(t,!0),r.length>0&&(kT(0,r.length),r.charCodeAt(0)==43)?(kT(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:eO(_R((i=QR(t,!0),i.length>0&&(kT(0,i.length),i.charCodeAt(0)==43)?(kT(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 11:return rb(Fz(this,(hz(),wVt),t));case 12:return rb(Fz(this,(hz(),TVt),t));case 13:return t==null?null:new Tle(QR(t,!0));case 15:case 14:return f7e(t);case 16:return rb(Fz(this,(hz(),EVt),t));case 17:return SJe((hz(),t));case 18:return SJe(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return QR(t,!0);case 21:case 20:return E7e(t);case 22:return rb(Fz(this,(hz(),DVt),t));case 23:return rb(Fz(this,(hz(),OVt),t));case 24:return rb(Fz(this,(hz(),kVt),t));case 25:return rb(Fz(this,(hz(),AVt),t));case 26:return rb(Fz(this,(hz(),jVt),t));case 27:return SYe(t);case 30:return CJe((hz(),t));case 31:return CJe(t);case 32:return t==null?null:K(_R((u=QR(t,!0),u.length>0&&(kT(0,u.length),u.charCodeAt(0)==43)?(kT(1,u.length+1),u.substr(1)):u),VB,$z));case 33:return t==null?null:new Ov((d=QR(t,!0),d.length>0&&(kT(0,d.length),d.charCodeAt(0)==43)?(kT(1,d.length+1),d.substr(1)):d));case 34:return t==null?null:K(_R((f=QR(t,!0),f.length>0&&(kT(0,f.length),f.charCodeAt(0)==43)?(kT(1,f.length+1),f.substr(1)):f),VB,$z));case 36:return t==null?null:VN(kz((p=QR(t,!0),p.length>0&&(kT(0,p.length),p.charCodeAt(0)==43)?(kT(1,p.length+1),p.substr(1)):p)));case 37:return t==null?null:VN(kz((m=QR(t,!0),m.length>0&&(kT(0,m.length),m.charCodeAt(0)==43)?(kT(1,m.length+1),m.substr(1)):m)));case 40:return $Xe((hz(),t));case 42:return wJe((hz(),t));case 43:return wJe(t);case 44:return t==null?null:new Ov((h=QR(t,!0),h.length>0&&(kT(0,h.length),h.charCodeAt(0)==43)?(kT(1,h.length+1),h.substr(1)):h));case 45:return t==null?null:new Ov((g=QR(t,!0),g.length>0&&(kT(0,g.length),g.charCodeAt(0)==43)?(kT(1,g.length+1),g.substr(1)):g));case 46:return QR(t,!1);case 47:return rb(Fz(this,(hz(),MVt),t));case 59:case 48:return QXe((hz(),t));case 49:return rb(Fz(this,(hz(),NVt),t));case 50:return t==null?null:$j(_R((_=QR(t,!0),_.length>0&&(kT(0,_.length),_.charCodeAt(0)==43)?(kT(1,_.length+1),_.substr(1)):_),Lq,32767)<<16>>16);case 51:return t==null?null:$j(_R((a=QR(t,!0),a.length>0&&(kT(0,a.length),a.charCodeAt(0)==43)?(kT(1,a.length+1),a.substr(1)):a),Lq,32767)<<16>>16);case 53:return rb(Fz(this,(hz(),PVt),t));case 55:return t==null?null:$j(_R((o=QR(t,!0),o.length>0&&(kT(0,o.length),o.charCodeAt(0)==43)?(kT(1,o.length+1),o.substr(1)):o),Lq,32767)<<16>>16);case 56:return t==null?null:$j(_R((s=QR(t,!0),s.length>0&&(kT(0,s.length),s.charCodeAt(0)==43)?(kT(1,s.length+1),s.substr(1)):s),Lq,32767)<<16>>16);case 57:return t==null?null:VN(kz((c=QR(t,!0),c.length>0&&(kT(0,c.length),c.charCodeAt(0)==43)?(kT(1,c.length+1),c.substr(1)):c)));case 58:return t==null?null:VN(kz((l=QR(t,!0),l.length>0&&(kT(0,l.length),l.charCodeAt(0)==43)?(kT(1,l.length+1),l.substr(1)):l)));case 60:return t==null?null:K(_R((n=QR(t,!0),n.length>0&&(kT(0,n.length),n.charCodeAt(0)==43)?(kT(1,n.length+1),n.substr(1)):n),VB,$z));case 61:return t==null?null:K(_R(QR(t,!0),VB,$z));default:throw O(new Hp(EK+e.ve()+DK))}};var IVt,LVt,RVt,zVt;R($q,`XMLTypeFactoryImpl`,1993),J(583,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1,2009:1,583:1},YEe),Q.N=!1,Q.O=!1;var BVt=!1;R($q,`XMLTypePackageImpl`,583),J(1926,1,{836:1},Sre),Q.Ik=function(){return Cit(),oHt},R($q,`XMLTypePackageImpl/1`,1926),J(1935,1,Vq,Cre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/10`,1935),J(1936,1,Vq,wre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/11`,1936),J(1937,1,Vq,Tre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/12`,1937),J(1938,1,Vq,Ere),Q.dk=function(e){return R_(e)},Q.ek=function(e){return H(BJ,vB,346,e,7,1)},R($q,`XMLTypePackageImpl/13`,1938),J(1939,1,Vq,ys),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/14`,1939),J(1940,1,Vq,bs),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(yJ,hH,16,e,0,1)},R($q,`XMLTypePackageImpl/15`,1940),J(1941,1,Vq,Dre),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(yJ,hH,16,e,0,1)},R($q,`XMLTypePackageImpl/16`,1941),J(1942,1,Vq,xs),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/17`,1942),J(1943,1,Vq,Ore),Q.dk=function(e){return N(e,164)},Q.ek=function(e){return H(VJ,vB,164,e,0,1)},R($q,`XMLTypePackageImpl/18`,1943),J(1944,1,Vq,Ss),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/19`,1944),J(1927,1,Vq,Cs),Q.dk=function(e){return N(e,842)},Q.ek=function(e){return H(v9,iB,842,e,0,1)},R($q,`XMLTypePackageImpl/2`,1927),J(1945,1,Vq,ws),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/20`,1945),J(1946,1,Vq,Ts),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/21`,1946),J(1947,1,Vq,Es),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/22`,1947),J(1948,1,Vq,kre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/23`,1948),J(1949,1,Vq,Ds),Q.dk=function(e){return N(e,195)},Q.ek=function(e){return H(X9,vB,195,e,0,2)},R($q,`XMLTypePackageImpl/24`,1949),J(1950,1,Vq,Are),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/25`,1950),J(1951,1,Vq,Os),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/26`,1951),J(1952,1,Vq,ks),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(yJ,hH,16,e,0,1)},R($q,`XMLTypePackageImpl/27`,1952),J(1953,1,Vq,As),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(yJ,hH,16,e,0,1)},R($q,`XMLTypePackageImpl/28`,1953),J(1954,1,Vq,js),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/29`,1954),J(1928,1,Vq,Ms),Q.dk=function(e){return N(e,671)},Q.ek=function(e){return H(y9,iB,2084,e,0,1)},R($q,`XMLTypePackageImpl/3`,1928),J(1955,1,Vq,Ns),Q.dk=function(e){return N(e,15)},Q.ek=function(e){return H(HJ,vB,15,e,0,1)},R($q,`XMLTypePackageImpl/30`,1955),J(1956,1,Vq,Ps),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/31`,1956),J(1957,1,Vq,jre),Q.dk=function(e){return N(e,190)},Q.ek=function(e){return H(UJ,vB,190,e,0,1)},R($q,`XMLTypePackageImpl/32`,1957),J(1958,1,Vq,Mre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/33`,1958),J(1959,1,Vq,Nre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/34`,1959),J(1960,1,Vq,Pre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/35`,1960),J(1961,1,Vq,Fre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/36`,1961),J(1962,1,Vq,Fs),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(yJ,hH,16,e,0,1)},R($q,`XMLTypePackageImpl/37`,1962),J(1963,1,Vq,Is),Q.dk=function(e){return N(e,16)},Q.ek=function(e){return H(yJ,hH,16,e,0,1)},R($q,`XMLTypePackageImpl/38`,1963),J(1964,1,Vq,Ire),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/39`,1964),J(1929,1,Vq,Lre),Q.dk=function(e){return N(e,672)},Q.ek=function(e){return H(b9,iB,2085,e,0,1)},R($q,`XMLTypePackageImpl/4`,1929),J(1965,1,Vq,Rre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/40`,1965),J(1966,1,Vq,zre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/41`,1966),J(1967,1,Vq,Ls),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/42`,1967),J(1968,1,Vq,Rs),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/43`,1968),J(1969,1,Vq,zs),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/44`,1969),J(1970,1,Vq,Bs),Q.dk=function(e){return N(e,191)},Q.ek=function(e){return H(GJ,vB,191,e,0,1)},R($q,`XMLTypePackageImpl/45`,1970),J(1971,1,Vq,Vs),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/46`,1971),J(1972,1,Vq,Hs),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/47`,1972),J(1973,1,Vq,Bre),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/48`,1973),J(1974,1,Vq,Us),Q.dk=function(e){return N(e,191)},Q.ek=function(e){return H(GJ,vB,191,e,0,1)},R($q,`XMLTypePackageImpl/49`,1974),J(1930,1,Vq,Ws),Q.dk=function(e){return N(e,673)},Q.ek=function(e){return H(yVt,iB,2086,e,0,1)},R($q,`XMLTypePackageImpl/5`,1930),J(1975,1,Vq,Gs),Q.dk=function(e){return N(e,190)},Q.ek=function(e){return H(UJ,vB,190,e,0,1)},R($q,`XMLTypePackageImpl/50`,1975),J(1976,1,Vq,Ks),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/51`,1976),J(1977,1,Vq,Vre),Q.dk=function(e){return N(e,15)},Q.ek=function(e){return H(HJ,vB,15,e,0,1)},R($q,`XMLTypePackageImpl/52`,1977),J(1931,1,Vq,qs),Q.dk=function(e){return z_(e)},Q.ek=function(e){return H(KJ,vB,2,e,6,1)},R($q,`XMLTypePackageImpl/6`,1931),J(1932,1,Vq,Js),Q.dk=function(e){return N(e,195)},Q.ek=function(e){return H(X9,vB,195,e,0,2)},R($q,`XMLTypePackageImpl/7`,1932),J(1933,1,Vq,Hre),Q.dk=function(e){return L_(e)},Q.ek=function(e){return H(LJ,vB,473,e,8,1)},R($q,`XMLTypePackageImpl/8`,1933),J(1934,1,Vq,Ure),Q.dk=function(e){return N(e,221)},Q.ek=function(e){return H(RJ,vB,221,e,0,1)},R($q,`XMLTypePackageImpl/9`,1934);var j9,M9,N9,P9,$;J(53,63,HB,tm),R(iJ,`RegEx/ParseException`,53),J(821,1,{},Wre),Q._l=function(e){return en*16)throw O(new tm(Jz((Iv(),Pvt))));n=n*16+i}while(1);if(this.a!=125)throw O(new tm(Jz((Iv(),Fvt))));if(n>aJ)throw O(new tm(Jz((Iv(),Ivt))));e=n}else{if(i=0,this.c!=0||(i=LP(this.a))<0||(n=i,Rz(this),this.c!=0||(i=LP(this.a))<0))throw O(new tm(Jz((Iv(),lq))));n=n*16+i,e=n}break;case 117:if(r=0,Rz(this),this.c!=0||(r=LP(this.a))<0||(t=r,Rz(this),this.c!=0||(r=LP(this.a))<0)||(t=t*16+r,Rz(this),this.c!=0||(r=LP(this.a))<0)||(t=t*16+r,Rz(this),this.c!=0||(r=LP(this.a))<0))throw O(new tm(Jz((Iv(),lq))));t=t*16+r,e=t;break;case 118:if(Rz(this),this.c!=0||(r=LP(this.a))<0||(t=r,Rz(this),this.c!=0||(r=LP(this.a))<0)||(t=t*16+r,Rz(this),this.c!=0||(r=LP(this.a))<0)||(t=t*16+r,Rz(this),this.c!=0||(r=LP(this.a))<0)||(t=t*16+r,Rz(this),this.c!=0||(r=LP(this.a))<0)||(t=t*16+r,Rz(this),this.c!=0||(r=LP(this.a))<0))throw O(new tm(Jz((Iv(),lq))));if(t=t*16+r,t>aJ)throw O(new tm(Jz((Iv(),`parser.descappe.4`))));e=t;break;case 65:case 90:case 122:throw O(new tm(Jz((Iv(),Lvt))))}return e},Q.bm=function(e){var t,n;switch(e){case 100:n=(this.e&32)==32?Az(`Nd`,!0):(Wz(),B9);break;case 68:n=(this.e&32)==32?Az(`Nd`,!1):(Wz(),YVt);break;case 119:n=(this.e&32)==32?Az(`IsWord`,!0):(Wz(),U9);break;case 87:n=(this.e&32)==32?Az(`IsWord`,!1):(Wz(),ZVt);break;case 115:n=(this.e&32)==32?Az(`IsSpace`,!0):(Wz(),H9);break;case 83:n=(this.e&32)==32?Az(`IsSpace`,!1):(Wz(),XVt);break;default:throw O(new wp((t=e,ibt+t.toString(16))))}return n},Q.cm=function(e){var t,n,r,i,a,o,s,c,l,u,d,f;for(this.b=1,Rz(this),t=null,this.c==0&&this.a==94?(Rz(this),e?u=(Wz(),Wz(),++W9,new RT(5)):(t=(Wz(),Wz(),++W9,new RT(4)),VL(t,0,aJ),u=(++W9,new RT(4)))):u=(Wz(),Wz(),++W9,new RT(4)),i=!0;(f=this.c)!=1&&(f!=0||this.a!=93||i);){if(i=!1,n=this.a,r=!1,f==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:$R(u,this.bm(n)),r=!0;break;case 105:case 73:case 99:case 67:n=this.sm(u,n),n<0&&(r=!0);break;case 112:case 80:if(d=g6e(this,n),!d)throw O(new tm(Jz((Iv(),oq))));$R(u,d),r=!0;break;default:n=this.am()}else if(f==20){if(o=Ry(this.i,58,this.d),o<0)throw O(new tm(Jz((Iv(),Evt))));if(s=!0,IC(this.i,this.d)==94&&(++this.d,s=!1),a=jw(this.i,this.d,o),c=YIe(a,s,(this.e&512)==512),!c)throw O(new tm(Jz((Iv(),Dvt))));if($R(u,c),r=!0,o+1>=this.j||IC(this.i,o+1)!=93)throw O(new tm(Jz((Iv(),Evt))));this.d=o+2}if(Rz(this),!r){if(this.c!=0||this.a!=45)VL(u,n,n);else{if(Rz(this),(f=this.c)==1)throw O(new tm(Jz((Iv(),sq))));f==0&&this.a==93?(VL(u,n,n),VL(u,45,45)):(l=this.a,f==10&&(l=this.am()),Rz(this),VL(u,n,l))}}(this.e&mq)==mq&&this.c==0&&this.a==44&&Rz(this)}if(this.c==1)throw O(new tm(Jz((Iv(),sq))));return t&&(_z(t,u),u=t),sL(u),sz(u),this.b=0,Rz(this),u},Q.dm=function(){for(var e,t,n=this.cm(!1),r;(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(Rz(this),this.c!=9)throw O(new tm(Jz((Iv(),jvt))));if(t=this.cm(!1),r==4)$R(n,t);else if(e==45)_z(n,t);else if(e==38)act(n,t);else throw O(new wp(`ASSERT`))}else throw O(new tm(Jz((Iv(),Mvt))));return Rz(this),n},Q.em=function(){var e=this.a-48,t=(Wz(),Wz(),++W9,new zw(12,null,e));return!this.g&&(this.g=new ff),af(this.g,new Td(e)),Rz(this),t},Q.fm=function(){return Rz(this),Wz(),$Vt},Q.gm=function(){return Rz(this),Wz(),QVt},Q.hm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.im=function(){throw O(new tm(Jz((Iv(),uq))))},Q.jm=function(){return Rz(this),iWe()},Q.km=function(){return Rz(this),Wz(),tHt},Q.lm=function(){return Rz(this),Wz(),rHt},Q.mm=function(){var e;if(this.d>=this.j||((e=IC(this.i,this.d++))&65504)!=64)throw O(new tm(Jz((Iv(),Svt))));return Rz(this),Wz(),Wz(),++W9,new Rx(0,e-64)},Q.nm=function(){return Rz(this),Kit()},Q.om=function(){return Rz(this),Wz(),iHt},Q.pm=function(){var e=(Wz(),Wz(),++W9,new Rx(0,105));return Rz(this),e},Q.qm=function(){return Rz(this),Wz(),nHt},Q.rm=function(){return Rz(this),Wz(),eHt},Q.sm=function(e,t){return this.am()},Q.tm=function(){return Rz(this),Wz(),qVt},Q.um=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw O(new tm(Jz((Iv(),yvt))));if(r=-1,t=null,e=IC(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new ff),af(this.g,new Td(r)),++this.d,IC(this.i,this.d)!=41)throw O(new tm(Jz((Iv(),aq))));++this.d}else switch(e==63&&--this.d,Rz(this),t=Xut(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw O(new tm(Jz((Iv(),aq))));break;default:throw O(new tm(Jz((Iv(),bvt))))}if(Rz(this),i=FN(this),n=null,i.e==2){if(i.Nm()!=2)throw O(new tm(Jz((Iv(),xvt))));n=i.Jm(1),i=i.Jm(0)}if(this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),Wz(),Wz(),++W9,new URe(r,t,i,n)},Q.vm=function(){return Rz(this),Wz(),JVt},Q.wm=function(){var e;if(Rz(this),e=MS(24,FN(this)),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),e},Q.xm=function(){var e;if(Rz(this),e=MS(20,FN(this)),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),e},Q.ym=function(){var e;if(Rz(this),e=MS(22,FN(this)),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),e},Q.zm=function(){var e=0,t,n=0,r,i;for(t=-1;this.d=this.j)throw O(new tm(Jz((Iv(),_vt))));if(t==45){for(++this.d;this.d=this.j)throw O(new tm(Jz((Iv(),_vt))))}if(t==58){if(++this.d,Rz(this),r=YTe(FN(this),e,n),this.c!=7)throw O(new tm(Jz((Iv(),aq))));Rz(this)}else if(t==41)++this.d,Rz(this),r=YTe(FN(this),e,n);else throw O(new tm(Jz((Iv(),vvt))));return r},Q.Am=function(){var e;if(Rz(this),e=MS(21,FN(this)),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),e},Q.Bm=function(){var e;if(Rz(this),e=MS(23,FN(this)),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),e},Q.Cm=function(){var e,t;if(Rz(this),e=this.f++,t=NS(FN(this),e),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),t},Q.Dm=function(){var e;if(Rz(this),e=NS(FN(this),0),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),e},Q.Em=function(e){return Rz(this),this.c==5?(Rz(this),Lx(e,(Wz(),Wz(),++W9,new vE(9,e)))):Lx(e,(Wz(),Wz(),++W9,new vE(3,e)))},Q.Fm=function(e){var t;return Rz(this),t=(Wz(),Wz(),++W9,new Lv(2)),this.c==5?(Rz(this),lz(t,V9),lz(t,e)):(lz(t,e),lz(t,V9)),t},Q.Gm=function(e){return Rz(this),this.c==5?(Rz(this),Wz(),Wz(),++W9,new vE(9,e)):(Wz(),Wz(),++W9,new vE(3,e))},Q.a=0,Q.b=0,Q.c=0,Q.d=0,Q.e=0,Q.f=1,Q.g=null,Q.j=0,R(iJ,`RegEx/RegexParser`,821),J(1913,821,{},Yse),Q._l=function(e){return!1},Q.am=function(){return gtt(this)},Q.bm=function(e){return vR(e)},Q.cm=function(e){return hdt(this)},Q.dm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.em=function(){throw O(new tm(Jz((Iv(),uq))))},Q.fm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.gm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.hm=function(){return Rz(this),vR(67)},Q.im=function(){return Rz(this),vR(73)},Q.jm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.km=function(){throw O(new tm(Jz((Iv(),uq))))},Q.lm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.mm=function(){return Rz(this),vR(99)},Q.nm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.om=function(){throw O(new tm(Jz((Iv(),uq))))},Q.pm=function(){return Rz(this),vR(105)},Q.qm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.rm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.sm=function(e,t){return $R(e,vR(t)),-1},Q.tm=function(){return Rz(this),Wz(),Wz(),++W9,new Rx(0,94)},Q.um=function(){throw O(new tm(Jz((Iv(),uq))))},Q.vm=function(){return Rz(this),Wz(),Wz(),++W9,new Rx(0,36)},Q.wm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.xm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.ym=function(){throw O(new tm(Jz((Iv(),uq))))},Q.zm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.Am=function(){throw O(new tm(Jz((Iv(),uq))))},Q.Bm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.Cm=function(){var e;if(Rz(this),e=NS(FN(this),0),this.c!=7)throw O(new tm(Jz((Iv(),aq))));return Rz(this),e},Q.Dm=function(){throw O(new tm(Jz((Iv(),uq))))},Q.Em=function(e){return Rz(this),Lx(e,(Wz(),Wz(),++W9,new vE(3,e)))},Q.Fm=function(e){var t;return Rz(this),t=(Wz(),Wz(),++W9,new Lv(2)),lz(t,e),lz(t,V9),t},Q.Gm=function(e){return Rz(this),Wz(),Wz(),++W9,new vE(3,e)};var F9=null,I9=null;R(iJ,`RegEx/ParserForXMLSchema`,1913),J(121,1,fJ,Ed),Q.Hm=function(e){throw O(new wp(`Not supported.`))},Q.Im=function(){return-1},Q.Jm=function(e){return null},Q.Km=function(){return null},Q.Lm=function(e){},Q.Mm=function(e){},Q.Nm=function(){return 0},Q.Ib=function(){return this.Om(0)},Q.Om=function(e){return this.e==11?`.`:``},Q.e=0;var VVt,L9,R9,HVt,UVt,z9=null,B9,WVt=null,GVt,V9,KVt=null,qVt,JVt,YVt,XVt,ZVt,QVt,H9,$Vt,eHt,tHt,nHt,U9,rHt,iHt,W9=0,aHt=R(iJ,`RegEx/Token`,121);J(137,121,{3:1,137:1,121:1},RT),Q.Om=function(e){var t,n,r;if(this.e==4){if(this==GVt)n=`.`;else if(this==B9)n=`\\d`;else if(this==U9)n=`\\w`;else if(this==H9)n=`\\s`;else{for(r=new lm,r.a+=`[`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?Y_(r,IR(this.b[t])):(Y_(r,IR(this.b[t])),r.a+=`-`,Y_(r,IR(this.b[t+1])));r.a+=`]`,n=r.a}}else if(this==YVt)n=`\\D`;else if(this==ZVt)n=`\\W`;else if(this==XVt)n=`\\S`;else{for(r=new lm,r.a+=`[^`,t=0;t0&&(r.a+=`,`),this.b[t]===this.b[t+1]?Y_(r,IR(this.b[t])):(Y_(r,IR(this.b[t])),r.a+=`-`,Y_(r,IR(this.b[t+1])));r.a+=`]`,n=r.a}return n},Q.a=!1,Q.c=!1,R(iJ,`RegEx/RangeToken`,137),J(581,1,{581:1},Td),Q.a=0,R(iJ,`RegEx/RegexParser/ReferencePosition`,581),J(580,1,{3:1,580:1},kue),Q.Fb=function(e){var t;return e==null||!N(e,580)?!1:(t=F(e,580),kb(this.b,t.b)&&this.a==t.a)},Q.Hb=function(){return hj(this.b+`/`+I9e(this.a))},Q.Ib=function(){return this.c.Om(this.a)},Q.a=0,R(iJ,`RegEx/RegularExpression`,580),J(228,121,fJ,Rx),Q.Im=function(){return this.a},Q.Om=function(e){var t,n,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r=`\\`+gb(this.a&JB);break;case 12:r=`\\f`;break;case 10:r=`\\n`;break;case 13:r=`\\r`;break;case 9:r=`\\t`;break;case 27:r=`\\e`;break;default:this.a>=jV?(n=(t=this.a>>>0,`0`+t.toString(16)),r=`\\v`+jw(n,n.length-6,n.length)):r=``+gb(this.a&JB)}break;case 8:r=this==qVt||this==JVt?``+gb(this.a&JB):`\\`+gb(this.a&JB);break;default:r=null}return r},Q.a=0,R(iJ,`RegEx/Token/CharToken`,228),J(323,121,fJ,vE),Q.Jm=function(e){return this.a},Q.Lm=function(e){this.b=e},Q.Mm=function(e){this.c=e},Q.Nm=function(){return 1},Q.Om=function(e){var t;if(this.e==3){if(this.c<0&&this.b<0)t=this.a.Om(e)+`*`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}`;else throw O(new wp(`Token#toString(): CLOSURE `+this.c+rB+this.b))}else if(this.c<0&&this.b<0)t=this.a.Om(e)+`*?`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}?`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}?`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}?`;else throw O(new wp(`Token#toString(): NONGREEDYCLOSURE `+this.c+rB+this.b));return t},Q.b=0,Q.c=0,R(iJ,`RegEx/Token/ClosureToken`,323),J(822,121,fJ,MTe),Q.Jm=function(e){return e==0?this.a:this.b},Q.Nm=function(){return 2},Q.Om=function(e){return this.b.e==3&&this.b.Jm(0)==this.a?this.a.Om(e)+`+`:this.b.e==9&&this.b.Jm(0)==this.a?this.a.Om(e)+`+?`:this.a.Om(e)+(``+this.b.Om(e))},R(iJ,`RegEx/Token/ConcatToken`,822),J(1911,121,fJ,URe),Q.Jm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw O(new wp(`Internal Error: `+e))},Q.Nm=function(){return this.b?2:1},Q.Om=function(e){var t=this.c>0?`(?(`+this.c+`)`:this.a.e==8?`(?(`+this.a+`)`:`(?`+this.a;return this.b?t+=this.d+`|`+this.b+`)`:t+=this.d+`)`,t},Q.c=0,R(iJ,`RegEx/Token/ConditionToken`,1911),J(1912,121,fJ,hje),Q.Jm=function(e){return this.b},Q.Nm=function(){return 1},Q.Om=function(e){return`(?`+(this.a==0?``:I9e(this.a))+(this.c==0?``:I9e(this.c))+`:`+this.b.Om(e)+`)`},Q.a=0,Q.c=0,R(iJ,`RegEx/Token/ModifierToken`,1912),J(823,121,fJ,wEe),Q.Jm=function(e){return this.a},Q.Nm=function(){return 1},Q.Om=function(e){var t=null;switch(this.e){case 6:t=this.b==0?`(?:`+this.a.Om(e)+`)`:`(`+this.a.Om(e)+`)`;break;case 20:t=`(?=`+this.a.Om(e)+`)`;break;case 21:t=`(?!`+this.a.Om(e)+`)`;break;case 22:t=`(?<=`+this.a.Om(e)+`)`;break;case 23:t=`(?`+this.a.Om(e)+`)`}return t},Q.b=0,R(iJ,`RegEx/Token/ParenToken`,823),J(518,121,{3:1,121:1,518:1},zw),Q.Km=function(){return this.b},Q.Om=function(e){return this.e==12?`\\`+this.a:W5e(this.b)},Q.a=0,R(iJ,`RegEx/Token/StringToken`,518),J(466,121,fJ,Lv),Q.Hm=function(e){lz(this,e)},Q.Jm=function(e){return F(TC(this.a,e),121)},Q.Nm=function(){return this.a?this.a.a.c.length:0},Q.Om=function(e){var t,n,r,i,a;if(this.e==1){if(this.a.a.c.length==2)t=F(TC(this.a,0),121),n=F(TC(this.a,1),121),i=n.e==3&&n.Jm(0)==t?t.Om(e)+`+`:n.e==9&&n.Jm(0)==t?t.Om(e)+`+?`:t.Om(e)+(``+n.Om(e));else{for(a=new lm,r=0;r=this.c.b:this.a<=this.c.b},Q.Sb=function(){return this.b>0},Q.Tb=function(){return this.b},Q.Vb=function(){return this.b-1},Q.Qb=function(){throw O(new Zp(mbt))},Q.a=0,Q.b=0,R(dbt,`ExclusiveRange/RangeIterator`,259);var K9=PC(yq,`C`),q9=PC(Sq,`I`),J9=PC(Xz,`Z`),Y9=PC(Cq,`J`),X9=PC(vq,`B`),Z9=PC(bq,`D`),Q9=PC(xq,`F`),$9=PC(wq,`S`),sHt=Ox(`org.eclipse.elk.core.labels`,`ILabelManager`),cHt=Ox(HK,`DiagnosticChain`),lHt=Ox(Tyt,`ResourceSet`),uHt=R(HK,`InvocationTargetException`,null),dHt=(cm(),qPe),fHt=fHt=J$e;uBe(Mse),pVe(`permProps`,[[[`locale`,`default`],[hbt,`gecko1_8`]],[[`locale`,`default`],[hbt,`safari`]]]),fHt(null,`elk`,null)}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],3:[function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:{};c(this,n);var r=Object.assign({},t),i=!1;try{e.resolve(`web-worker`),i=!0}catch{}if(t.workerUrl){if(i){var a=e("web-worker");r.workerFactory=function(e){return new a(e)}}else console.warn(`Web worker requested but 'web-worker' package not installed. Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`)}if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){"use strict";t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})}))(),1);function qp(e,t){typeof e==`function`?e(t):e.handleEvent(t)}var Jp=class{constructor(){this.onmessage=null,this.onerror=null,this.messageListeners=new Set,this.errorListeners=new Set,this.elk=null,this.terminated=!1}postMessage(e){queueMicrotask(()=>{this.handleRequest(e)})}addEventListener(e,t){t&&(e===`message`&&this.messageListeners.add(t),e===`error`&&this.errorListeners.add(t))}removeEventListener(e,t){t&&(e===`message`&&this.messageListeners.delete(t),e===`error`&&this.errorListeners.delete(t))}terminate(){if(this.terminated=!0,this.messageListeners.clear(),this.errorListeners.clear(),this.onmessage=null,this.onerror=null,this.elk?.terminateWorker)try{this.elk.terminateWorker()}catch{}this.elk=null}getElk(){return this.elk||=new Kp.default,this.elk}async handleRequest(e){if(this.terminated)return;let{graph:t,layoutOptions:n,requestId:r}=e;if(!t||!n)this.emitMessage({success:!1,error:`Missing graph or layoutOptions`,requestId:r});else try{let e=await this.getElk().layout(t,{layoutOptions:n,logging:!1,measureExecutionTime:!1});this.emitMessage({success:!0,graph:e,requestId:r})}catch(e){let t=e instanceof Error?e.message:`Unknown error`;this.emitMessage({success:!1,error:t,requestId:r})}}emitMessage(e){if(this.terminated)return;let t=new MessageEvent(`message`,{data:e});this.onmessage?.(t);for(let e of this.messageListeners)qp(e,t)}};function ace(){return new Jp}aa.elkWorkerFactory=ace,aa.graphDependentWorkerFactory=Sf;var Yp=class extends Gp{constructor(...e){super(...e),this._changePanelExpanded=!1,this._manuallyCollapsed=!1,this._lastExpandedPosition=70,this._onSplitReposition=e=>{let t=e.target;t&&this._changePanelExpanded&&(this._lastExpandedPosition=t.position)},this._onChangePanelToggled=e=>{let t=e.detail.hidden;t&&this.graphSplit?.position&&this.graphSplit.position<100&&(this._lastExpandedPosition=this.graphSplit.position),this._changePanelExpanded=!t,this._manuallyCollapsed=t},this._onExplorerNodeClicked=e=>{let t=e.detail?.nodeId;t&&(this.selectNode(t),this.modelTree&&this.modelTree.explorerClicked(t),this.explorer&&this.activeMainTab===`graph`&&this.explorer.revealPathToNode(t))}}_applySplitCollapsed(){let e=this.graphSplit;e&&(e.position=100,e.disabled=!0,e.style.setProperty(`--min`,`20px`),e.style.setProperty(`--max`,`calc(100% - 20px)`),e.style.setProperty(`--divider-width`,`0px`),e.classList.add(`collapsed`),this.graphSplitDivider&&(this.graphSplitDivider.style.display=`none`))}_applySplitExpanded(){let e=this.graphSplit;e&&(e.position=this._lastExpandedPosition,e.disabled=!1,e.style.setProperty(`--min`,`200px`),e.style.setProperty(`--max`,`calc(100% - 200px)`),e.style.setProperty(`--divider-width`,`2px`),e.classList.remove(`collapsed`),this.graphSplitDivider&&(this.graphSplitDivider.style.display=``))}updated(e){super.updated(e),e.has(`_changePanelExpanded`)&&(this._changePanelExpanded?this._applySplitExpanded():this._applySplitCollapsed(),requestAnimationFrame(()=>{this.explorer?.updateViewBoxForContainer&&this.explorer.updateViewBoxForContainer()}))}connectedCallback(){super.connectedCallback(),this.addEventListener(wn,this._onExplorerNodeClicked),this.addEventListener(`explorer-change-panel-toggled`,this._onChangePanelToggled)}disconnectedCallback(){this.removeEventListener(wn,this._onExplorerNodeClicked),this.removeEventListener(`explorer-change-panel-toggled`,this._onChangePanelToggled),super.disconnectedCallback()}onDataOrIndexChanged(e){this.updateExplorer(),super.onDataOrIndexChanged(e)}selectItem(e){this.explorer&&this.explorer.resetSelection(),this._manuallyCollapsed=!1,super.selectItem(e)}onTabShow(e){super.onTabShow(e),e.detail.name===`graph`&&this.explorer&&(this.selectedNodeId?this.updateComplete.then(()=>{this.explorer.nodeMap?.get(this.selectedNodeId)&&this.explorer.revealPathToNode(this.selectedNodeId)}):this.updateComplete.then(()=>{setTimeout(()=>this.explorer.centerOnRoot(),200)})),e.detail.name===`diff`&&this.selectedNodeChanges.length>0&&(this.selectedDiffChanges=[...this.selectedNodeChanges])}selectNode(e){super.selectNode(e),this.selectedNodeChanges.length>0&&!this._manuallyCollapsed&&!this._changePanelExpanded&&(this._changePanelExpanded=!0)}handleTreeNodeClicked(e){let{nodeId:t}=e.detail;t&&(this.selectNode(t),this.activeMainTab===`graph`&&this.explorer?this.explorer.revealPathToNode(t):super.handleTreeNodeClicked(e))}updateExplorer(){let e=this.activeItem;this.explorer&&e&&(this.explorer.embeddedMode=!0,this.explorer.renderEqualizer=!1,this.explorer.disablePovMode=!0,this.explorer.hideExamples=!0,this.explorer.graphMode=Ut.change,this.explorer.equalizer&&(this.explorer.equalizer.renderEqualizer=!1),this.explorer.updateGraphResponse(e.explorerGraph||e.graph))}renderExtraTabNavs(){return T`Explore Changes`}renderExtraTabPanels(){let e=this.activeItem;return T` +... Falling back to non-web worker version.`)}if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){"use strict";t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})}))(),1);function Up(e,t){typeof e==`function`?e(t):e.handleEvent(t)}var uce=class{constructor(){this.onmessage=null,this.onerror=null,this.messageListeners=new Set,this.errorListeners=new Set,this.elk=null,this.terminated=!1}postMessage(e){queueMicrotask(()=>{this.handleRequest(e)})}addEventListener(e,t){t&&(e===`message`&&this.messageListeners.add(t),e===`error`&&this.errorListeners.add(t))}removeEventListener(e,t){t&&(e===`message`&&this.messageListeners.delete(t),e===`error`&&this.errorListeners.delete(t))}terminate(){if(this.terminated=!0,this.messageListeners.clear(),this.errorListeners.clear(),this.onmessage=null,this.onerror=null,this.elk?.terminateWorker)try{this.elk.terminateWorker()}catch{}this.elk=null}getElk(){return this.elk||=new Hp.default,this.elk}async handleRequest(e){if(this.terminated)return;let{graph:t,layoutOptions:n,requestId:r}=e;if(!t||!n)this.emitMessage({success:!1,error:`Missing graph or layoutOptions`,requestId:r});else try{let e=await this.getElk().layout(t,{layoutOptions:n,logging:!1,measureExecutionTime:!1});this.emitMessage({success:!0,graph:e,requestId:r})}catch(e){let t=e instanceof Error?e.message:`Unknown error`;this.emitMessage({success:!1,error:t,requestId:r})}}emitMessage(e){if(this.terminated)return;let t=new MessageEvent(`message`,{data:e});this.onmessage?.(t);for(let e of this.messageListeners)Up(e,t)}};function Wp(){return new uce}ta.elkWorkerFactory=Wp,ta.graphDependentWorkerFactory=bf;var Gp=class extends Vp{constructor(...e){super(...e),this._changePanelExpanded=!1,this._manuallyCollapsed=!1,this._lastExpandedPosition=70,this._onSplitReposition=e=>{let t=e.target;t&&this._changePanelExpanded&&(this._lastExpandedPosition=t.position)},this._onChangePanelToggled=e=>{let t=e.detail.hidden;t&&this.graphSplit?.position&&this.graphSplit.position<100&&(this._lastExpandedPosition=this.graphSplit.position),this._changePanelExpanded=!t,this._manuallyCollapsed=t},this._onExplorerNodeClicked=e=>{let t=e.detail?.nodeId;t&&(this.selectNode(t),this.modelTree&&this.modelTree.explorerClicked(t),this.explorer&&this.activeMainTab===`graph`&&this.explorer.revealPathToNode(t))}}_applySplitCollapsed(){let e=this.graphSplit;e&&(e.position=100,e.disabled=!0,e.style.setProperty(`--min`,`20px`),e.style.setProperty(`--max`,`calc(100% - 20px)`),e.style.setProperty(`--divider-width`,`0px`),e.classList.add(`collapsed`),this.graphSplitDivider&&(this.graphSplitDivider.style.display=`none`))}_applySplitExpanded(){let e=this.graphSplit;e&&(e.position=this._lastExpandedPosition,e.disabled=!1,e.style.setProperty(`--min`,`200px`),e.style.setProperty(`--max`,`calc(100% - 200px)`),e.style.setProperty(`--divider-width`,`2px`),e.classList.remove(`collapsed`),this.graphSplitDivider&&(this.graphSplitDivider.style.display=``))}updated(e){super.updated(e),e.has(`_changePanelExpanded`)&&(this._changePanelExpanded?this._applySplitExpanded():this._applySplitCollapsed(),requestAnimationFrame(()=>{this.explorer?.updateViewBoxForContainer&&this.explorer.updateViewBoxForContainer()}))}connectedCallback(){super.connectedCallback(),this.addEventListener(wn,this._onExplorerNodeClicked),this.addEventListener(`explorer-change-panel-toggled`,this._onChangePanelToggled)}disconnectedCallback(){this.removeEventListener(wn,this._onExplorerNodeClicked),this.removeEventListener(`explorer-change-panel-toggled`,this._onChangePanelToggled),super.disconnectedCallback()}onDataOrIndexChanged(e){this.updateExplorer(),super.onDataOrIndexChanged(e)}selectItem(e){this.explorer&&this.explorer.resetSelection(),this._manuallyCollapsed=!1,super.selectItem(e)}onTabShow(e){super.onTabShow(e),e.detail.name===`graph`&&this.explorer&&(this.selectedNodeId?this.updateComplete.then(()=>{this.explorer.nodeMap?.get(this.selectedNodeId)&&this.explorer.revealPathToNode(this.selectedNodeId)}):this.updateComplete.then(()=>{setTimeout(()=>this.explorer.centerOnRoot(),200)})),e.detail.name===`diff`&&this.selectedNodeChanges.length>0&&(this.selectedDiffChanges=[...this.selectedNodeChanges])}selectNode(e){super.selectNode(e),this.selectedNodeChanges.length>0&&!this._manuallyCollapsed&&!this._changePanelExpanded&&(this._changePanelExpanded=!0)}handleTreeNodeClicked(e){let{nodeId:t}=e.detail;t&&(this.selectNode(t),this.activeMainTab===`graph`&&this.explorer?this.explorer.revealPathToNode(t):super.handleTreeNodeClicked(e))}updateExplorer(){let e=this.activeItem;this.explorer&&e&&(this.explorer.embeddedMode=!0,this.explorer.renderEqualizer=!1,this.explorer.disablePovMode=!0,this.explorer.hideExamples=!0,this.explorer.graphMode=Ut.change,this.explorer.equalizer&&(this.explorer.equalizer.renderEqualizer=!1),this.explorer.updateGraphResponse(e.explorerGraph||e.graph))}renderExtraTabNavs(){return T`Explore Changes`}renderExtraTabPanels(){let e=this.activeItem;return T` @@ -9504,8 +9524,8 @@ Consider installing the package or pass your own 'workerFactory' to ELK's constr .originalHighlighted=${e.originalHighlighted||{}} .modifiedHighlighted=${e.modifiedHighlighted||{}}> - `:ct} + `:st} - `}};xp([kt(`pb33f-explorer`)],Yp.prototype,`explorer`,void 0),xp([kt(`.graph-split`)],Yp.prototype,`graphSplit`,void 0),xp([kt(`.graph-split > sl-icon[slot="divider"]`)],Yp.prototype,`graphSplitDivider`,void 0),xp([Et()],Yp.prototype,`_changePanelExpanded`,void 0),Yp=xp([wt(`openapi-changes-report`)],Yp),document.documentElement.setAttribute(`theme`,`dark`),document.documentElement.classList.add(`sl-theme-dark`),me();var Xp=document.getElementById(`preloader`);Xp&&Xp.remove();var k=document.getElementById(`app`);if(k){let e=document.createElement(`openapi-changes-report`);k.appendChild(e)}})(); \ No newline at end of file + `}};_p([Ot(`pb33f-explorer`)],Gp.prototype,`explorer`,void 0),_p([Ot(`.graph-split`)],Gp.prototype,`graphSplit`,void 0),_p([Ot(`.graph-split > sl-icon[slot="divider"]`)],Gp.prototype,`graphSplitDivider`,void 0),_p([Tt()],Gp.prototype,`_changePanelExpanded`,void 0),Gp=_p([Ct(`openapi-changes-report`)],Gp),document.documentElement.setAttribute(`theme`,`dark`),document.documentElement.classList.add(`sl-theme-dark`),me();var k=document.getElementById(`preloader`);k&&k.remove();var Kp=document.getElementById(`app`);if(Kp){let e=document.createElement(`openapi-changes-report`);Kp.appendChild(e)}})(); \ No newline at end of file diff --git a/html-report/ui/package-lock.json b/html-report/ui/package-lock.json index 980258b..5281cec 100644 --- a/html-report/ui/package-lock.json +++ b/html-report/ui/package-lock.json @@ -8,7 +8,7 @@ "name": "@pb33f/openapi-changes-report-ui", "version": "0.0.1", "dependencies": { - "@pb33f/cowboy-components": "git+https://github.com/pb33f/cowboy-components.git#9a9763f7bd7ade1202528497175f444d73a4802b", + "@pb33f/cowboy-components": "github:pb33f/cowboy-components#efc9ceef4b8f33f5e98c6eabd746df50c879d7a8", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3" @@ -403,8 +403,8 @@ }, "node_modules/@pb33f/cowboy-components": { "version": "0.0.0", - "resolved": "git+ssh://git@github.com/pb33f/cowboy-components.git#9a9763f7bd7ade1202528497175f444d73a4802b", - "integrity": "sha512-UdRt2n52Pfkh3liIBarJVFrtKlBNmFCU9smmfVo887kuD6NEca3DQAHagP1WkukJOhrHCWPJJIMpac8dvUWqXg==", + "resolved": "git+ssh://git@github.com/pb33f/cowboy-components.git#efc9ceef4b8f33f5e98c6eabd746df50c879d7a8", + "integrity": "sha512-0LXoh/228Tl9MsbDKEy8TavQJEG8qdOw3nzi5rPPBTrJTXQd9gtFS+CcWsi/UpTP5tzC56RmxwaESefxPjS7/w==", "license": "BUSL-1.1", "dependencies": { "@pb33f/ranch": "^0.7.0", diff --git a/html-report/ui/package.json b/html-report/ui/package.json index ddbdc0d..80f3bae 100644 --- a/html-report/ui/package.json +++ b/html-report/ui/package.json @@ -11,7 +11,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@pb33f/cowboy-components": "git+https://github.com/pb33f/cowboy-components.git#9a9763f7bd7ade1202528497175f444d73a4802b", + "@pb33f/cowboy-components": "github:pb33f/cowboy-components#efc9ceef4b8f33f5e98c6eabd746df50c879d7a8", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3" From a9d906cd6fc9171a7d3ab7b49f9586475bb7c19a Mon Sep 17 00:00:00 2001 From: quobix Date: Sun, 1 Nov 2026 09:07:01 -0500 Subject: [PATCH 16/19] build: align report pipeline on Node 26 and refresh dependencies --- .ai-docs/bilingual-comparison.md | 8 ++++++++ .github/workflows/build.yaml | 4 ++-- .github/workflows/publish.yaml | 6 +++--- .nvmrc | 1 + html-report/ui/package-lock.json | 21 ++++++++++++--------- html-report/ui/package.json | 2 +- 6 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 .nvmrc diff --git a/.ai-docs/bilingual-comparison.md b/.ai-docs/bilingual-comparison.md index 6a841ba..16bb95b 100644 --- a/.ai-docs/bilingual-comparison.md +++ b/.ai-docs/bilingual-comparison.md @@ -82,6 +82,14 @@ left edge in both regular Doctor and change views. SVG node wrappers permit decoration overflow so selected borders do not clip the annotation badges or active arrow. The explorer viewport remains clipped. +## Build runtime + +CI and publication read Node 26.13.0 from the root `.nvmrc`, matching Cowboy +Components. The report UI lockfile retains its Mermaid, UUID, and KaTeX +overrides; dependency overrides in Cowboy do not propagate to consumers. +Rebuild both embedded bundles whenever the Cowboy pin or build dependencies +change. Replace the private Git pin with the public package after release. + ## Verification Keep the canonical petstore totals unchanged: summary 42 changes / 18 breaking; diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3507813..353482f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -52,7 +52,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version-file: .nvmrc - name: Build report UI run: npm ci && npm run build @@ -82,7 +82,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version-file: .nvmrc - name: Install dependencies run: npm ci diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 37ba503..107f724 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -25,7 +25,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version-file: .nvmrc - name: Build report UI run: npm ci && npm run build @@ -66,10 +66,10 @@ jobs: - name: Check version run: echo "Version ${{ github.event.client_payload.new-tag }}" - - name: Use Node.js 24 + - name: Set up Node.js uses: actions/setup-node@v7 with: - node-version: 24 + node-version-file: .nvmrc registry-url: https://registry.npmjs.org/ - name: Bump NPM version diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..1dda03d --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +26.13.0 diff --git a/html-report/ui/package-lock.json b/html-report/ui/package-lock.json index 5281cec..45e3e89 100644 --- a/html-report/ui/package-lock.json +++ b/html-report/ui/package-lock.json @@ -8,7 +8,7 @@ "name": "@pb33f/openapi-changes-report-ui", "version": "0.0.1", "dependencies": { - "@pb33f/cowboy-components": "github:pb33f/cowboy-components#efc9ceef4b8f33f5e98c6eabd746df50c879d7a8", + "@pb33f/cowboy-components": "github:pb33f/cowboy-components#84bdd603b85a5cfe083c74570d5e483e1facb138", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3" @@ -403,8 +403,8 @@ }, "node_modules/@pb33f/cowboy-components": { "version": "0.0.0", - "resolved": "git+ssh://git@github.com/pb33f/cowboy-components.git#efc9ceef4b8f33f5e98c6eabd746df50c879d7a8", - "integrity": "sha512-0LXoh/228Tl9MsbDKEy8TavQJEG8qdOw3nzi5rPPBTrJTXQd9gtFS+CcWsi/UpTP5tzC56RmxwaESefxPjS7/w==", + "resolved": "git+ssh://git@github.com/pb33f/cowboy-components.git#84bdd603b85a5cfe083c74570d5e483e1facb138", + "integrity": "sha512-V6VrAHk/E237z8wvJRQpSr9wYknXktFDwWUpMHLT8si5cTaIDpH0nvHQx3zIFmgV0QWTme0f68FVptIwnaccZg==", "license": "BUSL-1.1", "dependencies": { "@pb33f/ranch": "^0.7.0", @@ -422,6 +422,9 @@ "prismjs": "1.30.0", "snapsvg-cjs": "^0.0.6", "web-worker": "^1.3.0" + }, + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" } }, "node_modules/@pb33f/cowboy-components/node_modules/elkjs": { @@ -2149,9 +2152,9 @@ "integrity": "sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==" }, "node_modules/dompurify": { - "version": "3.4.16", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.16.tgz", - "integrity": "sha512-sqo+pNp3qRhCIpbgRi1y8Tgk27Bo2Ry7w0dC1NBeNTdZChWjz9Xb/KOoZbRP/R6pQZ80Qw8YhXw13hWWBbMRnQ==", + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", + "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==", "license": "(MPL-2.0 OR Apache-2.0)", "optionalDependencies": { "@types/trusted-types": "^2.0.7" @@ -3292,9 +3295,9 @@ } }, "node_modules/undici": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/undici/-/undici-8.11.2.tgz", - "integrity": "sha512-u4UB2/IrKdU6lFxumHmmo1a3fCQO5tzQllRorfoRS63txhrB7xTpSn1PftwC4qEHkOaqP95fCWW4lJzwErwzhQ==", + "version": "8.12.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.3.tgz", + "integrity": "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==", "dev": true, "license": "MIT", "engines": { diff --git a/html-report/ui/package.json b/html-report/ui/package.json index 80f3bae..0197fb9 100644 --- a/html-report/ui/package.json +++ b/html-report/ui/package.json @@ -11,7 +11,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@pb33f/cowboy-components": "github:pb33f/cowboy-components#efc9ceef4b8f33f5e98c6eabd746df50c879d7a8", + "@pb33f/cowboy-components": "github:pb33f/cowboy-components#84bdd603b85a5cfe083c74570d5e483e1facb138", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3" From 88c696b55df3b3e517a64c8db8272ed009bb9b12 Mon Sep 17 00:00:00 2001 From: quobix Date: Sun, 1 Nov 2026 09:08:00 -0500 Subject: [PATCH 17/19] build: align Docker report builder with Node 26 --- .ai-docs/bilingual-comparison.md | 3 ++- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ai-docs/bilingual-comparison.md b/.ai-docs/bilingual-comparison.md index 16bb95b..8a0d758 100644 --- a/.ai-docs/bilingual-comparison.md +++ b/.ai-docs/bilingual-comparison.md @@ -85,7 +85,8 @@ the annotation badges or active arrow. The explorer viewport remains clipped. ## Build runtime CI and publication read Node 26.13.0 from the root `.nvmrc`, matching Cowboy -Components. The report UI lockfile retains its Mermaid, UUID, and KaTeX +Components. The Docker UI builder pins the same version in its Node image. +The report UI lockfile retains its Mermaid, UUID, and KaTeX overrides; dependency overrides in Cowboy do not propagate to consumers. Rebuild both embedded bundles whenever the Cowboy pin or build dependencies change. Replace the private Git pin with the public package after release. diff --git a/Dockerfile b/Dockerfile index 200e5cd..d0c48e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM node:24-bookworm-slim AS ui-builder +FROM --platform=$BUILDPLATFORM node:26.13.0-bookworm-slim AS ui-builder WORKDIR /opt/openapi-changes/html-report/ui COPY html-report/ui/package.json html-report/ui/package-lock.json html-report/ui/tsconfig.json html-report/ui/vite.config.ts html-report/ui/index.html ./ From fb15ae0b9af2b94e989168e446f5c5d9faaf94bb Mon Sep 17 00:00:00 2001 From: quobix Date: Sun, 1 Nov 2026 09:19:21 -0500 Subject: [PATCH 18/19] build: pin Cowboy with audited browser test tooling --- html-report/ui/package-lock.json | 6 +++--- html-report/ui/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html-report/ui/package-lock.json b/html-report/ui/package-lock.json index 45e3e89..67abb47 100644 --- a/html-report/ui/package-lock.json +++ b/html-report/ui/package-lock.json @@ -8,7 +8,7 @@ "name": "@pb33f/openapi-changes-report-ui", "version": "0.0.1", "dependencies": { - "@pb33f/cowboy-components": "github:pb33f/cowboy-components#84bdd603b85a5cfe083c74570d5e483e1facb138", + "@pb33f/cowboy-components": "github:pb33f/cowboy-components#eed3a4d07ac8a161478ea37751c2417c1ec4cff3", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3" @@ -403,8 +403,8 @@ }, "node_modules/@pb33f/cowboy-components": { "version": "0.0.0", - "resolved": "git+ssh://git@github.com/pb33f/cowboy-components.git#84bdd603b85a5cfe083c74570d5e483e1facb138", - "integrity": "sha512-V6VrAHk/E237z8wvJRQpSr9wYknXktFDwWUpMHLT8si5cTaIDpH0nvHQx3zIFmgV0QWTme0f68FVptIwnaccZg==", + "resolved": "git+ssh://git@github.com/pb33f/cowboy-components.git#eed3a4d07ac8a161478ea37751c2417c1ec4cff3", + "integrity": "sha512-ydk7h9ButxU9tVgFNwYUoOoTxUZgTAfWXSmwJFn3IvQOHsQH/Lc8XvaB+DVmHoBQ705BCANtElU0Z0V6H4uHrQ==", "license": "BUSL-1.1", "dependencies": { "@pb33f/ranch": "^0.7.0", diff --git a/html-report/ui/package.json b/html-report/ui/package.json index 0197fb9..440d134 100644 --- a/html-report/ui/package.json +++ b/html-report/ui/package.json @@ -11,7 +11,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@pb33f/cowboy-components": "github:pb33f/cowboy-components#84bdd603b85a5cfe083c74570d5e483e1facb138", + "@pb33f/cowboy-components": "github:pb33f/cowboy-components#eed3a4d07ac8a161478ea37751c2417c1ec4cff3", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3" From 1de1f7eb79ce5a3e8236ac5538d0e3f550f2c64c Mon Sep 17 00:00:00 2001 From: quobix Date: Sun, 1 Nov 2026 10:52:48 -0500 Subject: [PATCH 19/19] build: use public Cowboy Components 0.16.0 release --- .ai-docs/bilingual-comparison.md | 6 +++--- html-report/ui/package-lock.json | 8 ++++---- html-report/ui/package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.ai-docs/bilingual-comparison.md b/.ai-docs/bilingual-comparison.md index 8a0d758..2b82b3d 100644 --- a/.ai-docs/bilingual-comparison.md +++ b/.ai-docs/bilingual-comparison.md @@ -58,8 +58,8 @@ document tree, explorer, and detail views. Cowboy's shared external `native-labels.css.ts` supplies these rules in each component's shadow root, using Cowboy palette tokens directly instead of inline Shoelace color overrides. Channels use hash icons in the document tree and explorer. Icons are embedded -in the offline report bundle; the UI dependency is pinned to a reviewed Git -commit until the corresponding package release. +in the offline report bundle. The UI pins the public Cowboy Components 0.16.0 +package; installation does not require private Git repository access. HTML and Markdown use doctor's native AsyncAPI report traversal with the same section levels, object headings, separators and change formatting as OpenAPI. @@ -89,7 +89,7 @@ Components. The Docker UI builder pins the same version in its Node image. The report UI lockfile retains its Mermaid, UUID, and KaTeX overrides; dependency overrides in Cowboy do not propagate to consumers. Rebuild both embedded bundles whenever the Cowboy pin or build dependencies -change. Replace the private Git pin with the public package after release. +change. Use the locked public npm package when rebuilding these assets. ## Verification diff --git a/html-report/ui/package-lock.json b/html-report/ui/package-lock.json index 67abb47..4122ac0 100644 --- a/html-report/ui/package-lock.json +++ b/html-report/ui/package-lock.json @@ -8,7 +8,7 @@ "name": "@pb33f/openapi-changes-report-ui", "version": "0.0.1", "dependencies": { - "@pb33f/cowboy-components": "github:pb33f/cowboy-components#eed3a4d07ac8a161478ea37751c2417c1ec4cff3", + "@pb33f/cowboy-components": "0.16.0", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3" @@ -402,9 +402,9 @@ } }, "node_modules/@pb33f/cowboy-components": { - "version": "0.0.0", - "resolved": "git+ssh://git@github.com/pb33f/cowboy-components.git#eed3a4d07ac8a161478ea37751c2417c1ec4cff3", - "integrity": "sha512-ydk7h9ButxU9tVgFNwYUoOoTxUZgTAfWXSmwJFn3IvQOHsQH/Lc8XvaB+DVmHoBQ705BCANtElU0Z0V6H4uHrQ==", + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/@pb33f/cowboy-components/-/cowboy-components-0.16.0.tgz", + "integrity": "sha512-Til9pqz79wfoeXvuQuUc3FHaLGNZTpaFiz+V3+PAwbeHLeWyK/cv1vG9orH1PpHJoK/Ivf92V/P6UB1CSW3KGg==", "license": "BUSL-1.1", "dependencies": { "@pb33f/ranch": "^0.7.0", diff --git a/html-report/ui/package.json b/html-report/ui/package.json index 440d134..1c81ee8 100644 --- a/html-report/ui/package.json +++ b/html-report/ui/package.json @@ -11,7 +11,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@pb33f/cowboy-components": "github:pb33f/cowboy-components#eed3a4d07ac8a161478ea37751c2417c1ec4cff3", + "@pb33f/cowboy-components": "0.16.0", "@shoelace-style/shoelace": "^2.20.1", "chart.js": "^4.5.1", "lit": "^3.3.3"